All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.kotlin.inputs.DiagnosticSettingEnabledLogArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property category The name of a Diagnostic Log Category for this Resource.
 * > **NOTE:** The Log Categories available vary depending on the Resource being used. You may wish to use the `azure.monitoring.getDiagnosticCategories` Data Source or [list of service specific schemas](https://docs.microsoft.com/azure/azure-monitor/platform/resource-logs-schema#service-specific-schemas) to identify which categories are available for a given Resource.
 * @property categoryGroup The name of a Diagnostic Log Category Group for this Resource.
 * > **NOTE:** Not all resources have category groups available.
 * > **NOTE:** Exactly one of `category` or `category_group` must be specified.
 * @property retentionPolicy A `retention_policy` block as defined below.
 * !> **NOTE:** `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention).
 */
public data class DiagnosticSettingEnabledLogArgs(
    public val category: Output? = null,
    public val categoryGroup: Output? = null,
    @Deprecated(
        message = """
  `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to
      learn more https://aka.ms/diagnostic_settings_log_retention
  """,
    )
    public val retentionPolicy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogArgs =
        com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogArgs.builder()
            .category(category?.applyValue({ args0 -> args0 }))
            .categoryGroup(categoryGroup?.applyValue({ args0 -> args0 }))
            .retentionPolicy(
                retentionPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DiagnosticSettingEnabledLogArgs].
 */
@PulumiTagMarker
public class DiagnosticSettingEnabledLogArgsBuilder internal constructor() {
    private var category: Output? = null

    private var categoryGroup: Output? = null

    private var retentionPolicy: Output? = null

    /**
     * @param value The name of a Diagnostic Log Category for this Resource.
     * > **NOTE:** The Log Categories available vary depending on the Resource being used. You may wish to use the `azure.monitoring.getDiagnosticCategories` Data Source or [list of service specific schemas](https://docs.microsoft.com/azure/azure-monitor/platform/resource-logs-schema#service-specific-schemas) to identify which categories are available for a given Resource.
     */
    @JvmName("qfspjhnohyadhdyk")
    public suspend fun category(`value`: Output) {
        this.category = value
    }

    /**
     * @param value The name of a Diagnostic Log Category Group for this Resource.
     * > **NOTE:** Not all resources have category groups available.
     * > **NOTE:** Exactly one of `category` or `category_group` must be specified.
     */
    @JvmName("dnnaxopdvuuvxpwk")
    public suspend fun categoryGroup(`value`: Output) {
        this.categoryGroup = value
    }

    /**
     * @param value A `retention_policy` block as defined below.
     * !> **NOTE:** `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention).
     */
    @Deprecated(
        message = """
  `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to
      learn more https://aka.ms/diagnostic_settings_log_retention
  """,
    )
    @JvmName("yhxglbgsmxpkgieg")
    public suspend fun retentionPolicy(`value`: Output) {
        this.retentionPolicy = value
    }

    /**
     * @param value The name of a Diagnostic Log Category for this Resource.
     * > **NOTE:** The Log Categories available vary depending on the Resource being used. You may wish to use the `azure.monitoring.getDiagnosticCategories` Data Source or [list of service specific schemas](https://docs.microsoft.com/azure/azure-monitor/platform/resource-logs-schema#service-specific-schemas) to identify which categories are available for a given Resource.
     */
    @JvmName("jerdaylgwwfcoqyb")
    public suspend fun category(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.category = mapped
    }

    /**
     * @param value The name of a Diagnostic Log Category Group for this Resource.
     * > **NOTE:** Not all resources have category groups available.
     * > **NOTE:** Exactly one of `category` or `category_group` must be specified.
     */
    @JvmName("hwrkcjtqocoaujhe")
    public suspend fun categoryGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categoryGroup = mapped
    }

    /**
     * @param value A `retention_policy` block as defined below.
     * !> **NOTE:** `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention).
     */
    @Deprecated(
        message = """
  `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to
      learn more https://aka.ms/diagnostic_settings_log_retention
  """,
    )
    @JvmName("nmpfbjfaexbrasss")
    public suspend fun retentionPolicy(`value`: DiagnosticSettingEnabledLogRetentionPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPolicy = mapped
    }

    /**
     * @param argument A `retention_policy` block as defined below.
     * !> **NOTE:** `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention).
     */
    @Deprecated(
        message = """
  `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to
      learn more https://aka.ms/diagnostic_settings_log_retention
  """,
    )
    @JvmName("hbvpqnisrglqrono")
    public suspend fun retentionPolicy(argument: suspend DiagnosticSettingEnabledLogRetentionPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = DiagnosticSettingEnabledLogRetentionPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.retentionPolicy = mapped
    }

    internal fun build(): DiagnosticSettingEnabledLogArgs = DiagnosticSettingEnabledLogArgs(
        category = category,
        categoryGroup = categoryGroup,
        retentionPolicy = retentionPolicy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy