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

com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestination.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property azureMonitorMetrics A `azure_monitor_metrics` block as defined above.
 * @property eventHub One or more `event_hub` blocks as defined below.
 * @property eventHubDirect One or more `event_hub_direct` blocks as defined below.
 * @property logAnalytics One or more `log_analytics` blocks as defined below.
 * @property monitorAccounts One or more `monitor_account` blocks as defined below.
 * @property storageBlobDirects One or more `storage_blob_direct` blocks as defined below.
 * @property storageBlobs One or more `storage_blob` blocks as defined below.
 * @property storageTableDirects One or more `storage_table_direct` blocks as defined below.
 */
public data class GetDataCollectionRuleDestination(
    public val azureMonitorMetrics: List,
    public val eventHub: GetDataCollectionRuleDestinationEventHub? = null,
    public val eventHubDirect: GetDataCollectionRuleDestinationEventHubDirect? = null,
    public val logAnalytics: List,
    public val monitorAccounts: List,
    public val storageBlobDirects: List,
    public val storageBlobs: List,
    public val storageTableDirects: List,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.GetDataCollectionRuleDestination):
            GetDataCollectionRuleDestination = GetDataCollectionRuleDestination(
            azureMonitorMetrics = javaType.azureMonitorMetrics().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationAzureMonitorMetric.Companion.toKotlin(args0)
                })
            }),
            eventHub = javaType.eventHub().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationEventHub.Companion.toKotlin(args0)
                })
            }).orElse(null),
            eventHubDirect = javaType.eventHubDirect().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationEventHubDirect.Companion.toKotlin(args0)
                })
            }).orElse(null),
            logAnalytics = javaType.logAnalytics().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationLogAnalytic.Companion.toKotlin(args0)
                })
            }),
            monitorAccounts = javaType.monitorAccounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationMonitorAccount.Companion.toKotlin(args0)
                })
            }),
            storageBlobDirects = javaType.storageBlobDirects().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationStorageBlobDirect.Companion.toKotlin(args0)
                })
            }),
            storageBlobs = javaType.storageBlobs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationStorageBlob.Companion.toKotlin(args0)
                })
            }),
            storageTableDirects = javaType.storageTableDirects().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetDataCollectionRuleDestinationStorageTableDirect.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy