com.pulumi.awsnative.ses.kotlin.inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
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.awsnative.ses.kotlin.inputs
import com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.
* @property defaultDimensionValue The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.
* @property dimensionName The name of an Amazon CloudWatch dimension associated with an email sending metric.
* @property dimensionValueSource The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag.
*/
public data class ConfigurationSetEventDestinationDimensionConfigurationArgs(
public val defaultDimensionValue: Output,
public val dimensionName: Output,
public val dimensionValueSource: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs =
com.pulumi.awsnative.ses.inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs.builder()
.defaultDimensionValue(defaultDimensionValue.applyValue({ args0 -> args0 }))
.dimensionName(dimensionName.applyValue({ args0 -> args0 }))
.dimensionValueSource(dimensionValueSource.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConfigurationSetEventDestinationDimensionConfigurationArgs].
*/
@PulumiTagMarker
public class ConfigurationSetEventDestinationDimensionConfigurationArgsBuilder internal constructor() {
private var defaultDimensionValue: Output? = null
private var dimensionName: Output? = null
private var dimensionValueSource: Output? = null
/**
* @param value The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.
*/
@JvmName("fqypbcbidxtpkety")
public suspend fun defaultDimensionValue(`value`: Output) {
this.defaultDimensionValue = value
}
/**
* @param value The name of an Amazon CloudWatch dimension associated with an email sending metric.
*/
@JvmName("rcebwhlylsqbtuem")
public suspend fun dimensionName(`value`: Output) {
this.dimensionName = value
}
/**
* @param value The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag.
*/
@JvmName("gvbcolwvkgmigjnc")
public suspend fun dimensionValueSource(`value`: Output) {
this.dimensionValueSource = value
}
/**
* @param value The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.
*/
@JvmName("elkfyhhigjdrqujl")
public suspend fun defaultDimensionValue(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.defaultDimensionValue = mapped
}
/**
* @param value The name of an Amazon CloudWatch dimension associated with an email sending metric.
*/
@JvmName("rwowcjndfpipsvvb")
public suspend fun dimensionName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dimensionName = mapped
}
/**
* @param value The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag.
*/
@JvmName("gcvsvhvqgecnnuro")
public suspend fun dimensionValueSource(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dimensionValueSource = mapped
}
internal fun build(): ConfigurationSetEventDestinationDimensionConfigurationArgs =
ConfigurationSetEventDestinationDimensionConfigurationArgs(
defaultDimensionValue = defaultDimensionValue ?: throw
PulumiNullFieldException("defaultDimensionValue"),
dimensionName = dimensionName ?: throw PulumiNullFieldException("dimensionName"),
dimensionValueSource = dimensionValueSource ?: throw
PulumiNullFieldException("dimensionValueSource"),
)
}