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

com.pulumi.awsnative.ses.kotlin.inputs.ConfigurationSetEventDestinationEventDestinationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ses.kotlin.inputs

import com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationEventDestinationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property cloudWatchDestination An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
 * @property enabled Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
 * @property eventBridgeDestination An object that contains Event bus ARN associated with the event bridge destination.
 * @property kinesisFirehoseDestination An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
 * @property matchingEventTypes The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.
 * @property name The name of the event destination set.
 * @property snsDestination An object that contains SNS topic ARN associated event destination.
 */
public data class ConfigurationSetEventDestinationEventDestinationArgs(
    public val cloudWatchDestination: Output? = null,
    public val enabled: Output? = null,
    public val eventBridgeDestination: Output? = null,
    public val kinesisFirehoseDestination: Output? = null,
    public val matchingEventTypes: Output>,
    public val name: Output? = null,
    public val snsDestination: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationEventDestinationArgs =
        com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationEventDestinationArgs.builder()
            .cloudWatchDestination(
                cloudWatchDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .eventBridgeDestination(
                eventBridgeDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kinesisFirehoseDestination(
                kinesisFirehoseDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .matchingEventTypes(matchingEventTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .snsDestination(
                snsDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConfigurationSetEventDestinationEventDestinationArgs].
 */
@PulumiTagMarker
public class ConfigurationSetEventDestinationEventDestinationArgsBuilder internal constructor() {
    private var cloudWatchDestination:
        Output? = null

    private var enabled: Output? = null

    private var eventBridgeDestination:
        Output? = null

    private var kinesisFirehoseDestination:
        Output? = null

    private var matchingEventTypes: Output>? = null

    private var name: Output? = null

    private var snsDestination: Output? = null

    /**
     * @param value An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
     */
    @JvmName("hnmmwfdyhrufmhpo")
    public suspend fun cloudWatchDestination(`value`: Output) {
        this.cloudWatchDestination = value
    }

    /**
     * @param value Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
     */
    @JvmName("ddxhqtbmacqqnnyc")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value An object that contains Event bus ARN associated with the event bridge destination.
     */
    @JvmName("jqubeekoncaccpfb")
    public suspend fun eventBridgeDestination(`value`: Output) {
        this.eventBridgeDestination = value
    }

    /**
     * @param value An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
     */
    @JvmName("mfcrtlsdnisnowym")
    public suspend fun kinesisFirehoseDestination(`value`: Output) {
        this.kinesisFirehoseDestination = value
    }

    /**
     * @param value The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.
     */
    @JvmName("vdxlgjtxqwvbhgjw")
    public suspend fun matchingEventTypes(`value`: Output>) {
        this.matchingEventTypes = value
    }

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

    /**
     * @param values The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.
     */
    @JvmName("kmcgpxypxqxheivb")
    public suspend fun matchingEventTypes(values: List>) {
        this.matchingEventTypes = Output.all(values)
    }

    /**
     * @param value The name of the event destination set.
     */
    @JvmName("cxdcefdustfkvvqo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An object that contains SNS topic ARN associated event destination.
     */
    @JvmName("lgpeapovmtynlwaw")
    public suspend fun snsDestination(`value`: Output) {
        this.snsDestination = value
    }

    /**
     * @param value An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
     */
    @JvmName("thleccatxigcnixj")
    public suspend fun cloudWatchDestination(`value`: ConfigurationSetEventDestinationCloudWatchDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchDestination = mapped
    }

    /**
     * @param argument An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
     */
    @JvmName("ekkbittggwuijofg")
    public suspend fun cloudWatchDestination(argument: suspend ConfigurationSetEventDestinationCloudWatchDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConfigurationSetEventDestinationCloudWatchDestinationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.cloudWatchDestination = mapped
    }

    /**
     * @param value Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
     */
    @JvmName("jxhwfodnnwunnlgp")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value An object that contains Event bus ARN associated with the event bridge destination.
     */
    @JvmName("qjfytlcjetpyjios")
    public suspend fun eventBridgeDestination(`value`: ConfigurationSetEventDestinationEventBridgeDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventBridgeDestination = mapped
    }

    /**
     * @param argument An object that contains Event bus ARN associated with the event bridge destination.
     */
    @JvmName("tpdoojqgfyngfwnn")
    public suspend fun eventBridgeDestination(argument: suspend ConfigurationSetEventDestinationEventBridgeDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConfigurationSetEventDestinationEventBridgeDestinationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.eventBridgeDestination = mapped
    }

    /**
     * @param value An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
     */
    @JvmName("adqgdcapwnsjmusr")
    public suspend fun kinesisFirehoseDestination(`value`: ConfigurationSetEventDestinationKinesisFirehoseDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kinesisFirehoseDestination = mapped
    }

    /**
     * @param argument An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
     */
    @JvmName("tsnnsbshdnigkmxw")
    public suspend fun kinesisFirehoseDestination(argument: suspend ConfigurationSetEventDestinationKinesisFirehoseDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConfigurationSetEventDestinationKinesisFirehoseDestinationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.kinesisFirehoseDestination = mapped
    }

    /**
     * @param value The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.
     */
    @JvmName("qkmniifxteecqhmu")
    public suspend fun matchingEventTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchingEventTypes = mapped
    }

    /**
     * @param values The type of email sending events, send, reject, bounce, complaint, delivery, open, click, renderingFailure, deliveryDelay, and subscription.
     */
    @JvmName("tsawynuqvgexddbd")
    public suspend fun matchingEventTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchingEventTypes = mapped
    }

    /**
     * @param value The name of the event destination set.
     */
    @JvmName("mplbyxsfwfnfbtla")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An object that contains SNS topic ARN associated event destination.
     */
    @JvmName("ispsofecggiaogvs")
    public suspend fun snsDestination(`value`: ConfigurationSetEventDestinationSnsDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snsDestination = mapped
    }

    /**
     * @param argument An object that contains SNS topic ARN associated event destination.
     */
    @JvmName("efhugnbgwgwrheco")
    public suspend fun snsDestination(argument: suspend ConfigurationSetEventDestinationSnsDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationSetEventDestinationSnsDestinationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.snsDestination = mapped
    }

    internal fun build(): ConfigurationSetEventDestinationEventDestinationArgs =
        ConfigurationSetEventDestinationEventDestinationArgs(
            cloudWatchDestination = cloudWatchDestination,
            enabled = enabled,
            eventBridgeDestination = eventBridgeDestination,
            kinesisFirehoseDestination = kinesisFirehoseDestination,
            matchingEventTypes = matchingEventTypes ?: throw PulumiNullFieldException("matchingEventTypes"),
            name = name,
            snsDestination = snsDestination,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy