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

com.pulumi.azure.monitoring.kotlin.outputs.DiagnosticSettingEnabledLog.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.outputs

import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 DiagnosticSettingEnabledLog(
    public val category: String? = null,
    public val categoryGroup: String? = 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: DiagnosticSettingEnabledLogRetentionPolicy? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.DiagnosticSettingEnabledLog): DiagnosticSettingEnabledLog = DiagnosticSettingEnabledLog(
            category = javaType.category().map({ args0 -> args0 }).orElse(null),
            categoryGroup = javaType.categoryGroup().map({ args0 -> args0 }).orElse(null),
            retentionPolicy = javaType.retentionPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.DiagnosticSettingEnabledLogRetentionPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy