Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDestinationsArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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` 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.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
public data class DataCollectionRuleDestinationsArgs(
public val azureMonitorMetrics: Output? =
null,
public val eventHub: Output? = null,
public val eventHubDirect: Output? = null,
public val logAnalytics: Output>? = null,
public val monitorAccounts: Output>? =
null,
public val storageBlobDirects: Output>? =
null,
public val storageBlobs: Output>? = null,
public val storageTableDirects: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsArgs =
com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsArgs.builder()
.azureMonitorMetrics(
azureMonitorMetrics?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.eventHub(eventHub?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.eventHubDirect(eventHubDirect?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.logAnalytics(
logAnalytics?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.monitorAccounts(
monitorAccounts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.storageBlobDirects(
storageBlobDirects?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.storageBlobs(
storageBlobs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.storageTableDirects(
storageTableDirects?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [DataCollectionRuleDestinationsArgs].
*/
@PulumiTagMarker
public class DataCollectionRuleDestinationsArgsBuilder internal constructor() {
private var azureMonitorMetrics: Output? =
null
private var eventHub: Output? = null
private var eventHubDirect: Output? = null
private var logAnalytics: Output>? = null
private var monitorAccounts: Output>? =
null
private var storageBlobDirects: Output>? =
null
private var storageBlobs: Output>? = null
private var storageTableDirects:
Output>? = null
/**
* @param value A `azure_monitor_metrics` block as defined above.
*/
@JvmName("xxrcoshlwehcieyg")
public suspend fun azureMonitorMetrics(`value`: Output) {
this.azureMonitorMetrics = value
}
/**
* @param value One or more `event_hub` blocks as defined below.
*/
@JvmName("putdfpbxppmwrbsy")
public suspend fun eventHub(`value`: Output) {
this.eventHub = value
}
/**
* @param value One or more `event_hub` blocks as defined below.
*/
@JvmName("yvpsnummrfliogqv")
public suspend fun eventHubDirect(`value`: Output) {
this.eventHubDirect = value
}
/**
* @param value One or more `log_analytics` blocks as defined below.
*/
@JvmName("pnvtphbtsucuxghl")
public suspend fun logAnalytics(`value`: Output>) {
this.logAnalytics = value
}
@JvmName("smpfubkhjtdllwri")
public suspend fun logAnalytics(vararg values: Output) {
this.logAnalytics = Output.all(values.asList())
}
/**
* @param values One or more `log_analytics` blocks as defined below.
*/
@JvmName("ufnghjvpojdhujid")
public suspend fun logAnalytics(values: List>) {
this.logAnalytics = Output.all(values)
}
/**
* @param value One or more `monitor_account` blocks as defined below.
*/
@JvmName("dlmquqlmeapqtdma")
public suspend fun monitorAccounts(`value`: Output>) {
this.monitorAccounts = value
}
@JvmName("guupwniitpijxjrd")
public suspend fun monitorAccounts(vararg values: Output) {
this.monitorAccounts = Output.all(values.asList())
}
/**
* @param values One or more `monitor_account` blocks as defined below.
*/
@JvmName("wbxntxycncglxcmp")
public suspend fun monitorAccounts(values: List>) {
this.monitorAccounts = Output.all(values)
}
/**
* @param value One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("gijokpuitumeqvss")
public suspend fun storageBlobDirects(`value`: Output>) {
this.storageBlobDirects = value
}
@JvmName("mumjrpeldmofsuka")
public suspend fun storageBlobDirects(vararg values: Output) {
this.storageBlobDirects = Output.all(values.asList())
}
/**
* @param values One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("jgkqmjdpcrguwddv")
public suspend fun storageBlobDirects(values: List>) {
this.storageBlobDirects = Output.all(values)
}
/**
* @param value One or more `storage_blob` blocks as defined below.
*/
@JvmName("quubhswjnqwtpuxm")
public suspend fun storageBlobs(`value`: Output>) {
this.storageBlobs = value
}
@JvmName("ngmolbnmddfloftb")
public suspend fun storageBlobs(vararg values: Output) {
this.storageBlobs = Output.all(values.asList())
}
/**
* @param values One or more `storage_blob` blocks as defined below.
*/
@JvmName("mohtqvoducohchqt")
public suspend fun storageBlobs(values: List>) {
this.storageBlobs = Output.all(values)
}
/**
* @param value One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("ijlxumsrsivjhake")
public suspend fun storageTableDirects(`value`: Output>) {
this.storageTableDirects = value
}
@JvmName("etyduojncvwgqsqn")
public suspend fun storageTableDirects(vararg values: Output) {
this.storageTableDirects = Output.all(values.asList())
}
/**
* @param values One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("svafltjvrytacrud")
public suspend fun storageTableDirects(values: List>) {
this.storageTableDirects = Output.all(values)
}
/**
* @param value A `azure_monitor_metrics` block as defined above.
*/
@JvmName("tillkuveflkqenfo")
public suspend fun azureMonitorMetrics(`value`: DataCollectionRuleDestinationsAzureMonitorMetricsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureMonitorMetrics = mapped
}
/**
* @param argument A `azure_monitor_metrics` block as defined above.
*/
@JvmName("xgbbmnyygddrclug")
public suspend fun azureMonitorMetrics(argument: suspend DataCollectionRuleDestinationsAzureMonitorMetricsArgsBuilder.() -> Unit) {
val toBeMapped = DataCollectionRuleDestinationsAzureMonitorMetricsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.azureMonitorMetrics = mapped
}
/**
* @param value One or more `event_hub` blocks as defined below.
*/
@JvmName("ajmhittmunifciys")
public suspend fun eventHub(`value`: DataCollectionRuleDestinationsEventHubArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventHub = mapped
}
/**
* @param argument One or more `event_hub` blocks as defined below.
*/
@JvmName("vulssrukimlrniiw")
public suspend fun eventHub(argument: suspend DataCollectionRuleDestinationsEventHubArgsBuilder.() -> Unit) {
val toBeMapped = DataCollectionRuleDestinationsEventHubArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.eventHub = mapped
}
/**
* @param value One or more `event_hub` blocks as defined below.
*/
@JvmName("orwtpnedxawvapjn")
public suspend fun eventHubDirect(`value`: DataCollectionRuleDestinationsEventHubDirectArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventHubDirect = mapped
}
/**
* @param argument One or more `event_hub` blocks as defined below.
*/
@JvmName("gwlbrfhxqbmnsxwo")
public suspend fun eventHubDirect(argument: suspend DataCollectionRuleDestinationsEventHubDirectArgsBuilder.() -> Unit) {
val toBeMapped = DataCollectionRuleDestinationsEventHubDirectArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.eventHubDirect = mapped
}
/**
* @param value One or more `log_analytics` blocks as defined below.
*/
@JvmName("fvgbtvjaofxxxxku")
public suspend fun logAnalytics(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logAnalytics = mapped
}
/**
* @param argument One or more `log_analytics` blocks as defined below.
*/
@JvmName("hsumurhisiucgljm")
public suspend fun logAnalytics(argument: List Unit>) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsLogAnalyticArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.logAnalytics = mapped
}
/**
* @param argument One or more `log_analytics` blocks as defined below.
*/
@JvmName("wrfotiajhalawsyh")
public suspend fun logAnalytics(vararg argument: suspend DataCollectionRuleDestinationsLogAnalyticArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsLogAnalyticArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.logAnalytics = mapped
}
/**
* @param argument One or more `log_analytics` blocks as defined below.
*/
@JvmName("uvlltwirlxffactu")
public suspend fun logAnalytics(argument: suspend DataCollectionRuleDestinationsLogAnalyticArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
DataCollectionRuleDestinationsLogAnalyticArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.logAnalytics = mapped
}
/**
* @param values One or more `log_analytics` blocks as defined below.
*/
@JvmName("xvkheuydnvyqonpm")
public suspend fun logAnalytics(vararg values: DataCollectionRuleDestinationsLogAnalyticArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logAnalytics = mapped
}
/**
* @param value One or more `monitor_account` blocks as defined below.
*/
@JvmName("flblsojwjjmyesno")
public suspend fun monitorAccounts(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.monitorAccounts = mapped
}
/**
* @param argument One or more `monitor_account` blocks as defined below.
*/
@JvmName("qvmjgcukyxhjlnip")
public suspend fun monitorAccounts(argument: List Unit>) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsMonitorAccountArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.monitorAccounts = mapped
}
/**
* @param argument One or more `monitor_account` blocks as defined below.
*/
@JvmName("lkjlitmqxvqyfkyq")
public suspend fun monitorAccounts(vararg argument: suspend DataCollectionRuleDestinationsMonitorAccountArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsMonitorAccountArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.monitorAccounts = mapped
}
/**
* @param argument One or more `monitor_account` blocks as defined below.
*/
@JvmName("yxdqhenircdnsodf")
public suspend fun monitorAccounts(argument: suspend DataCollectionRuleDestinationsMonitorAccountArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
DataCollectionRuleDestinationsMonitorAccountArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.monitorAccounts = mapped
}
/**
* @param values One or more `monitor_account` blocks as defined below.
*/
@JvmName("ghojxmntfvywrcnu")
public suspend fun monitorAccounts(vararg values: DataCollectionRuleDestinationsMonitorAccountArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.monitorAccounts = mapped
}
/**
* @param value One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("bibvyxhrvfdmkiib")
public suspend fun storageBlobDirects(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageBlobDirects = mapped
}
/**
* @param argument One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("kyyomtsypalelhln")
public suspend fun storageBlobDirects(argument: List Unit>) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageBlobDirectArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageBlobDirects = mapped
}
/**
* @param argument One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("txpjpjdmtewomflf")
public suspend fun storageBlobDirects(vararg argument: suspend DataCollectionRuleDestinationsStorageBlobDirectArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageBlobDirectArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageBlobDirects = mapped
}
/**
* @param argument One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("oplsjgyxjyvknjvn")
public suspend fun storageBlobDirects(argument: suspend DataCollectionRuleDestinationsStorageBlobDirectArgsBuilder.() -> Unit) {
val toBeMapped =
listOf(
DataCollectionRuleDestinationsStorageBlobDirectArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.storageBlobDirects = mapped
}
/**
* @param values One or more `storage_blob_direct` blocks as defined below.
*/
@JvmName("wxgxwnjkptxccnrh")
public suspend fun storageBlobDirects(vararg values: DataCollectionRuleDestinationsStorageBlobDirectArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageBlobDirects = mapped
}
/**
* @param value One or more `storage_blob` blocks as defined below.
*/
@JvmName("bobxenixbykxvvcg")
public suspend fun storageBlobs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageBlobs = mapped
}
/**
* @param argument One or more `storage_blob` blocks as defined below.
*/
@JvmName("vuogakhuspjabqnx")
public suspend fun storageBlobs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageBlobArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageBlobs = mapped
}
/**
* @param argument One or more `storage_blob` blocks as defined below.
*/
@JvmName("eoggnplkberqhjhp")
public suspend fun storageBlobs(vararg argument: suspend DataCollectionRuleDestinationsStorageBlobArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageBlobArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageBlobs = mapped
}
/**
* @param argument One or more `storage_blob` blocks as defined below.
*/
@JvmName("ajsbyqhheuccgmqy")
public suspend fun storageBlobs(argument: suspend DataCollectionRuleDestinationsStorageBlobArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
DataCollectionRuleDestinationsStorageBlobArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.storageBlobs = mapped
}
/**
* @param values One or more `storage_blob` blocks as defined below.
*/
@JvmName("vmgkypxosafyxdpt")
public suspend fun storageBlobs(vararg values: DataCollectionRuleDestinationsStorageBlobArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageBlobs = mapped
}
/**
* @param value One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("oniuslgmdjpvwtrj")
public suspend fun storageTableDirects(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageTableDirects = mapped
}
/**
* @param argument One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("physhjtkjevsggie")
public suspend fun storageTableDirects(argument: List Unit>) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageTableDirectArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageTableDirects = mapped
}
/**
* @param argument One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("kygjbouyjbpageqb")
public suspend fun storageTableDirects(vararg argument: suspend DataCollectionRuleDestinationsStorageTableDirectArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
DataCollectionRuleDestinationsStorageTableDirectArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.storageTableDirects = mapped
}
/**
* @param argument One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("bfjmbmbpyssehsxp")
public suspend fun storageTableDirects(argument: suspend DataCollectionRuleDestinationsStorageTableDirectArgsBuilder.() -> Unit) {
val toBeMapped =
listOf(
DataCollectionRuleDestinationsStorageTableDirectArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.storageTableDirects = mapped
}
/**
* @param values One or more `storage_table_direct` blocks as defined below.
* > **NOTE** `event_hub_direct`, `storage_blob_direct`, and `storage_table_direct` are only available for rules of kind `AgentDirectToStore`.
* > **NOTE** At least one of `azure_monitor_metrics`, `event_hub`, `event_hub_direct`, `log_analytics`, `monitor_account`, `storage_blob`, `storage_blob_direct`,and `storage_table_direct` blocks must be specified.
*/
@JvmName("mpbcndevfksaanby")
public suspend fun storageTableDirects(vararg values: DataCollectionRuleDestinationsStorageTableDirectArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageTableDirects = mapped
}
internal fun build(): DataCollectionRuleDestinationsArgs = DataCollectionRuleDestinationsArgs(
azureMonitorMetrics = azureMonitorMetrics,
eventHub = eventHub,
eventHubDirect = eventHubDirect,
logAnalytics = logAnalytics,
monitorAccounts = monitorAccounts,
storageBlobDirects = storageBlobDirects,
storageBlobs = storageBlobs,
storageTableDirects = storageTableDirects,
)
}