com.pulumi.awsnative.ses.kotlin.EmailIdentity.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
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityConfigurationSetAttributes
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityDkimAttributes
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityDkimSigningAttributes
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityFeedbackAttributes
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityMailFromAttributes
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityConfigurationSetAttributes.Companion.toKotlin as emailIdentityConfigurationSetAttributesToKotlin
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityDkimAttributes.Companion.toKotlin as emailIdentityDkimAttributesToKotlin
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityDkimSigningAttributes.Companion.toKotlin as emailIdentityDkimSigningAttributesToKotlin
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityFeedbackAttributes.Companion.toKotlin as emailIdentityFeedbackAttributesToKotlin
import com.pulumi.awsnative.ses.kotlin.outputs.EmailIdentityMailFromAttributes.Companion.toKotlin as emailIdentityMailFromAttributesToKotlin
/**
* Builder for [EmailIdentity].
*/
@PulumiTagMarker
public class EmailIdentityResourceBuilder internal constructor() {
public var name: String? = null
public var args: EmailIdentityArgs = EmailIdentityArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend EmailIdentityArgsBuilder.() -> Unit) {
val builder = EmailIdentityArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): EmailIdentity {
val builtJavaResource = com.pulumi.awsnative.ses.EmailIdentity(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EmailIdentity(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::SES::EmailIdentity
*/
public class EmailIdentity internal constructor(
override val javaResource: com.pulumi.awsnative.ses.EmailIdentity,
) : KotlinCustomResource(javaResource, EmailIdentityMapper) {
/**
* Used to associate a configuration set with an email identity.
*/
public val configurationSetAttributes: Output?
get() = javaResource.configurationSetAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
emailIdentityConfigurationSetAttributesToKotlin(args0)
})
}).orElse(null)
})
/**
* An object that contains information about the DKIM attributes for the identity.
*/
public val dkimAttributes: Output?
get() = javaResource.dkimAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> emailIdentityDkimAttributesToKotlin(args0) })
}).orElse(null)
})
/**
* The host name for the first token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenName1: Output
get() = javaResource.dkimDnsTokenName1().applyValue({ args0 -> args0 })
/**
* The host name for the second token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenName2: Output
get() = javaResource.dkimDnsTokenName2().applyValue({ args0 -> args0 })
/**
* The host name for the third token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenName3: Output
get() = javaResource.dkimDnsTokenName3().applyValue({ args0 -> args0 })
/**
* The record value for the first token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenValue1: Output
get() = javaResource.dkimDnsTokenValue1().applyValue({ args0 -> args0 })
/**
* The record value for the second token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenValue2: Output
get() = javaResource.dkimDnsTokenValue2().applyValue({ args0 -> args0 })
/**
* The record value for the third token that you have to add to the DNS configuration for your domain.
*/
public val dkimDnsTokenValue3: Output
get() = javaResource.dkimDnsTokenValue3().applyValue({ args0 -> args0 })
/**
* If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) .
* You can only specify this object if the email identity is a domain, as opposed to an address.
*/
public val dkimSigningAttributes: Output?
get() = javaResource.dkimSigningAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> emailIdentityDkimSigningAttributesToKotlin(args0) })
}).orElse(null)
})
/**
* The email address or domain to verify.
*/
public val emailIdentity: Output
get() = javaResource.emailIdentity().applyValue({ args0 -> args0 })
/**
* Used to enable or disable feedback forwarding for an identity.
*/
public val feedbackAttributes: Output?
get() = javaResource.feedbackAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> emailIdentityFeedbackAttributesToKotlin(args0) })
}).orElse(null)
})
/**
* Used to enable or disable the custom Mail-From domain configuration for an email identity.
*/
public val mailFromAttributes: Output?
get() = javaResource.mailFromAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> emailIdentityMailFromAttributesToKotlin(args0) })
}).orElse(null)
})
}
public object EmailIdentityMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ses.EmailIdentity::class == javaResource::class
override fun map(javaResource: Resource): EmailIdentity = EmailIdentity(
javaResource as
com.pulumi.awsnative.ses.EmailIdentity,
)
}
/**
* @see [EmailIdentity].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [EmailIdentity].
*/
public suspend fun emailIdentity(
name: String,
block: suspend EmailIdentityResourceBuilder.() -> Unit,
): EmailIdentity {
val builder = EmailIdentityResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [EmailIdentity].
* @param name The _unique_ name of the resulting resource.
*/
public fun emailIdentity(name: String): EmailIdentity {
val builder = EmailIdentityResourceBuilder()
builder.name(name)
return builder.build()
}