Package com.pulumi.aws.ses
Class DomainDkim
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ses.DomainDkim
-
public class DomainDkim extends com.pulumi.resources.CustomResource
Provides an SES domain DKIM generation resource. Domain ownership needs to be confirmed first using ses_domain_identity Resource ## Example Usage ```java 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.ses.DomainDkim; import com.pulumi.aws.ses.DomainDkimArgs; import com.pulumi.aws.route53.Record; import com.pulumi.aws.route53.RecordArgs; import com.pulumi.codegen.internal.KeyedValue; 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 exampleDomainIdentity = new DomainIdentity("exampleDomainIdentity", DomainIdentityArgs.builder() .domain("example.com") .build()); var exampleDomainDkim = new DomainDkim("exampleDomainDkim", DomainDkimArgs.builder() .domain(exampleDomainIdentity.domain()) .build()); for (var i = 0; i < 3; i++) { new Record("exampleAmazonsesDkimRecord-" + i, RecordArgs.builder() .zoneId("ABCDEFGHIJ123") .name(exampleDomainDkim.dkimTokens().applyValue(dkimTokens -> String.format("%s._domainkey", dkimTokens[range.value()]))) .type("CNAME") .ttl("600") .records(exampleDomainDkim.dkimTokens().applyValue(dkimTokens -> String.format("%s.dkim.amazonses.com", dkimTokens[range.value()]))) .build()); } } } ``` ## Import Using `pulumi import`, import DKIM tokens using the `domain` attribute. For example: ```sh $ pulumi import aws:ses/domainDkim:DomainDkim example example.com ```
-
-
Constructor Summary
Constructors Constructor Description DomainDkim(java.lang.String name)
DomainDkim(java.lang.String name, DomainDkimArgs args)
DomainDkim(java.lang.String name, DomainDkimArgs 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.util.List<java.lang.String>>
dkimTokens()
com.pulumi.core.Output<java.lang.String>
domain()
static DomainDkim
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DomainDkimState 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.
-
-
-
Constructor Detail
-
DomainDkim
public DomainDkim(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
DomainDkim
public DomainDkim(java.lang.String name, DomainDkimArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
DomainDkim
public DomainDkim(java.lang.String name, DomainDkimArgs 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
-
dkimTokens
public com.pulumi.core.Output<java.util.List<java.lang.String>> dkimTokens()
- Returns:
- DKIM tokens generated by SES. These tokens should be used to create CNAME records used to verify SES Easy DKIM. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the [AWS SES docs](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
-
domain
public com.pulumi.core.Output<java.lang.String> domain()
- Returns:
- Verified domain name to generate DKIM tokens for.
-
get
public static DomainDkim get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DomainDkimState 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.
-
-