Email Identity Mail From Attributes
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
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
The verified email identity.
Link copied to clipboard
The custom MAIL FROM domain that you want the verified identity to use. Required if behavior_on_mx_failure
is REJECT_MESSAGE
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard