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

com.pulumi.aws.sesv2.kotlin.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.sesv2.kotlin.inputs

import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 dimensionConfigurations An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
 */
public data class ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs(
    public val dimensionConfigurations: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs =
        com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.builder()
            .dimensionConfigurations(
                dimensionConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs].
 */
@PulumiTagMarker
public class ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgsBuilder
internal constructor() {
    private var dimensionConfigurations:
        Output>? =
        null

    /**
     * @param value An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("vlpyancbddogoysx")
    public suspend fun dimensionConfigurations(`value`: Output>) {
        this.dimensionConfigurations = value
    }

    @JvmName("adqesiqchwegpqhp")
    public suspend fun dimensionConfigurations(vararg values: Output) {
        this.dimensionConfigurations = Output.all(values.asList())
    }

    /**
     * @param values An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("ldtybeukeognfwty")
    public suspend fun dimensionConfigurations(values: List>) {
        this.dimensionConfigurations = Output.all(values)
    }

    /**
     * @param value An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("utamwcvjnuvqarkh")
    public suspend fun dimensionConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionConfigurations = mapped
    }

    /**
     * @param argument An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("hsgaljjdueqoxixk")
    public suspend fun dimensionConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensionConfigurations = mapped
    }

    /**
     * @param argument An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("uimtygesbpacymie")
    public suspend fun dimensionConfigurations(vararg argument: suspend ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensionConfigurations = mapped
    }

    /**
     * @param argument An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("himfbfdcdijqqmqe")
    public suspend fun dimensionConfigurations(argument: suspend ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.dimensionConfigurations = mapped
    }

    /**
     * @param values An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See `dimension_configuration` Block for details.
     */
    @JvmName("ehxoropltadyjvyr")
    public suspend fun dimensionConfigurations(vararg values: ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionConfigurations = mapped
    }

    internal fun build(): ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs =
        ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs(
            dimensionConfigurations = dimensionConfigurations ?: throw
                PulumiNullFieldException("dimensionConfigurations"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy