EmailIdentityMailFromAttributesArgs

data class EmailIdentityMailFromAttributesArgs(val behaviorOnMxFailure: Output<String>? = null, val emailIdentity: Output<String>? = null, val mailFromDomain: Output<String>? = null) : ConvertibleToJava<EmailIdentityMailFromAttributesArgs>

Resource for managing an AWS SESv2 (Simple Email V2) Email Identity Mail From Attributes.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.EmailIdentity;
import com.pulumi.aws.sesv2.EmailIdentityArgs;
import com.pulumi.aws.sesv2.EmailIdentityMailFromAttributes;
import com.pulumi.aws.sesv2.EmailIdentityMailFromAttributesArgs;
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 exampleEmailIdentity = new EmailIdentity("exampleEmailIdentity", EmailIdentityArgs.builder()
.emailIdentity("example.com")
.build());
var exampleEmailIdentityMailFromAttributes = new EmailIdentityMailFromAttributes("exampleEmailIdentityMailFromAttributes", EmailIdentityMailFromAttributesArgs.builder()
.emailIdentity(exampleEmailIdentity.emailIdentity())
.behaviorOnMxFailure("REJECT_MESSAGE")
.mailFromDomain(exampleEmailIdentity.emailIdentity().applyValue(emailIdentity -> String.format("subdomain.%s", emailIdentity)))
.build());
}
}

Import

SESv2 (Simple Email V2) Email Identity Mail From Attributes can be imported using the email_identity, e.g.,

$ pulumi import aws:sesv2/emailIdentityMailFromAttributes:EmailIdentityMailFromAttributes example example.com

Constructors

Link copied to clipboard
constructor(behaviorOnMxFailure: Output<String>? = null, emailIdentity: Output<String>? = null, mailFromDomain: Output<String>? = null)

Properties

Link copied to clipboard
val behaviorOnMxFailure: Output<String>? = null

The action to take if the required MX record isn't found when you send an email. Valid values: USE_DEFAULT_VALUE, REJECT_MESSAGE.

Link copied to clipboard
val emailIdentity: Output<String>? = null

The verified email identity.

Link copied to clipboard
val mailFromDomain: Output<String>? = null

The custom MAIL FROM domain that you want the verified identity to use. Required if behavior_on_mx_failure is REJECT_MESSAGE.

Functions

Link copied to clipboard
open override fun toJava(): EmailIdentityMailFromAttributesArgs