DomainIdentityVerificationArgs

data class DomainIdentityVerificationArgs(val domain: Output<String>? = null) : ConvertibleToJava<DomainIdentityVerificationArgs>

Represents a successful verification of an SES domain identity. Most commonly, this resource is used together with aws.route53.Record and aws.ses.DomainIdentity to request an SES domain identity, deploy the required DNS verification records, and wait for verification to complete.

WARNING: This resource implements a part of the verification workflow. It does not represent a real-world entity in AWS, therefore changing or deleting this resource on its own has no immediate effect.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.DomainIdentity;
import com.pulumi.aws.ses.DomainIdentityArgs;
import com.pulumi.aws.route53.Record;
import com.pulumi.aws.route53.RecordArgs;
import com.pulumi.aws.ses.DomainIdentityVerification;
import com.pulumi.aws.ses.DomainIdentityVerificationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 DomainIdentity("example", DomainIdentityArgs.builder()
.domain("example.com")
.build());
var exampleAmazonsesVerificationRecord = new Record("exampleAmazonsesVerificationRecord", RecordArgs.builder()
.zoneId(aws_route53_zone.example().zone_id())
.name(example.id().applyValue(id -> String.format("_amazonses.%s", id)))
.type("TXT")
.ttl("600")
.records(example.verificationToken())
.build());
var exampleVerification = new DomainIdentityVerification("exampleVerification", DomainIdentityVerificationArgs.builder()
.domain(example.id())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleAmazonsesVerificationRecord)
.build());
}
}

Constructors

Link copied to clipboard
constructor(domain: Output<String>? = null)

Properties

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

The domain name of the SES domain identity to verify.

Functions

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