Package com.pulumi.aws.ses
Class DomainIdentityVerification
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ses.DomainIdentityVerification
-
public class DomainIdentityVerification extends com.pulumi.resources.CustomResourceRepresents 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 Usagepackage 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.ArrayList; import java.util.Arrays; 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(exampleAwsRoute53Zone.zoneId()) .name(example.domain().applyValue(_domain -> String.format("_amazonses.%s", _domain))) .type("TXT") .ttl(600) .records(example.verificationToken()) .build()); var exampleVerification = new DomainIdentityVerification("exampleVerification", DomainIdentityVerificationArgs.builder() .domain(example.domain()) .build(), CustomResourceOptions.builder() .dependsOn(exampleAmazonsesVerificationRecord) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description DomainIdentityVerification(java.lang.String name)DomainIdentityVerification(java.lang.String name, DomainIdentityVerificationArgs args)DomainIdentityVerification(java.lang.String name, DomainIdentityVerificationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>domain()static DomainIdentityVerificationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DomainIdentityVerificationState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
DomainIdentityVerification
public DomainIdentityVerification(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
DomainIdentityVerification
public DomainIdentityVerification(java.lang.String name, DomainIdentityVerificationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
DomainIdentityVerification
public DomainIdentityVerification(java.lang.String name, DomainIdentityVerificationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the domain identity.
-
domain
public com.pulumi.core.Output<java.lang.String> domain()
- Returns:
- Domain name of the SES domain identity to verify.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static DomainIdentityVerification get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DomainIdentityVerificationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-