java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:20.621Z") @Stability(Stable) public class CfnIdentity extends CfnResource implements IInspectable, ITaggableV2
Specifies an identity to use for sending email through Amazon Pinpoint.

In Amazon Pinpoint, an identity is an email address or domain that you use when you send email. Before you can use Amazon Pinpoint to send an email from an identity, you first have to verify it. By verifying an identity, you demonstrate that you're the owner of the address or domain, and that you've given Amazon Pinpoint permission to send email from that identity.

When you verify an email address, Amazon Pinpoint sends an email to the address. Your email address is verified as soon as you follow the link in the verification email.

When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon Pinpoint detects these records in the DNS configuration for your domain. It usually takes around 72 hours to complete the domain verification process.

When you use CloudFormation to specify an identity, CloudFormation might indicate that the identity was created successfully. However, you have to verify the identity before you can use it to send email.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.pinpointemail.*;
 CfnIdentity cfnIdentity = CfnIdentity.Builder.create(this, "MyCfnIdentity")
         .name("name")
         // the properties below are optional
         .dkimSigningEnabled(false)
         .feedbackForwardingEnabled(false)
         .mailFromAttributes(MailFromAttributesProperty.builder()
                 .behaviorOnMxFailure("behaviorOnMxFailure")
                 .mailFromDomain("mailFromDomain")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnIdentity

      protected CfnIdentity(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnIdentity

      protected CfnIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnIdentity

      @Stability(Stable) public CfnIdentity(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIdentityProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getAttrIdentityDnsRecordName1

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordName1()
      The host name for the first token that you have to add to the DNS configuration for your domain.

      For more information, see Verifying a Domain in the Amazon Pinpoint User Guide.

    • getAttrIdentityDnsRecordName2

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordName2()
      The host name for the second token that you have to add to the DNS configuration for your domain.
    • getAttrIdentityDnsRecordName3

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordName3()
      The host name for the third token that you have to add to the DNS configuration for your domain.
    • getAttrIdentityDnsRecordValue1

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordValue1()
      The record value for the first token that you have to add to the DNS configuration for your domain.
    • getAttrIdentityDnsRecordValue2

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordValue2()
      The record value for the second token that you have to add to the DNS configuration for your domain.
    • getAttrIdentityDnsRecordValue3

      @Stability(Stable) @NotNull public String getAttrIdentityDnsRecordValue3()
      The record value for the third token that you have to add to the DNS configuration for your domain.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getName

      @Stability(Stable) @NotNull public String getName()
      The address or domain of the identity, such as sender@example.com or example.co.uk .
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The address or domain of the identity, such as sender@example.com or example.co.uk .
    • getDkimSigningEnabled

      @Stability(Stable) @Nullable public Object getDkimSigningEnabled()
      For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.
    • setDkimSigningEnabled

      @Stability(Stable) public void setDkimSigningEnabled(@Nullable Boolean value)
      For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.
    • setDkimSigningEnabled

      @Stability(Stable) public void setDkimSigningEnabled(@Nullable IResolvable value)
      For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.
    • getFeedbackForwardingEnabled

      @Stability(Stable) @Nullable public Object getFeedbackForwardingEnabled()
      Used to enable or disable feedback forwarding for an identity.
    • setFeedbackForwardingEnabled

      @Stability(Stable) public void setFeedbackForwardingEnabled(@Nullable Boolean value)
      Used to enable or disable feedback forwarding for an identity.
    • setFeedbackForwardingEnabled

      @Stability(Stable) public void setFeedbackForwardingEnabled(@Nullable IResolvable value)
      Used to enable or disable feedback forwarding for an identity.
    • getMailFromAttributes

      @Stability(Stable) @Nullable public Object getMailFromAttributes()
      Used to enable or disable the custom Mail-From domain configuration for an email identity.
    • setMailFromAttributes

      @Stability(Stable) public void setMailFromAttributes(@Nullable IResolvable value)
      Used to enable or disable the custom Mail-From domain configuration for an email identity.
    • setMailFromAttributes

      @Stability(Stable) public void setMailFromAttributes(@Nullable CfnIdentity.MailFromAttributesProperty value)
      Used to enable or disable the custom Mail-From domain configuration for an email identity.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An object that defines the tags (keys and values) that you want to associate with the email identity.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An object that defines the tags (keys and values) that you want to associate with the email identity.