com.pulumi.aws.ses.kotlin.EmailIdentityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ses.kotlin
import com.pulumi.aws.ses.EmailIdentityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides an SES email identity resource
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.ses.EmailIdentity("example", {email: "[email protected]"});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.ses.EmailIdentity("example", email="[email protected]")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Ses.EmailIdentity("example", new()
* {
* Email = "[email protected]",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ses"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := ses.NewEmailIdentity(ctx, "example", &ses.EmailIdentityArgs{
* Email: pulumi.String("[email protected]"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.ses.EmailIdentity;
* import com.pulumi.aws.ses.EmailIdentityArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new EmailIdentity("example", EmailIdentityArgs.builder()
* .email("[email protected]")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:ses:EmailIdentity
* properties:
* email: [email protected]
* ```
*
* ## Import
* Using `pulumi import`, import SES email identities using the email address. For example:
* ```sh
* $ pulumi import aws:ses/emailIdentity:EmailIdentity example [email protected]
* ```
* @property email The email address to assign to SES.
*/
public data class EmailIdentityArgs(
public val email: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ses.EmailIdentityArgs =
com.pulumi.aws.ses.EmailIdentityArgs.builder()
.email(email?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EmailIdentityArgs].
*/
@PulumiTagMarker
public class EmailIdentityArgsBuilder internal constructor() {
private var email: Output? = null
/**
* @param value The email address to assign to SES.
*/
@JvmName("jtqnanrjtbcrwpej")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value The email address to assign to SES.
*/
@JvmName("jibnitryfelbsnmq")
public suspend fun email(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.email = mapped
}
internal fun build(): EmailIdentityArgs = EmailIdentityArgs(
email = email,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy