Class CfnIdentity
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::PinpointEmail::Identity.
 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(TagsProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIdentity.static interfaceA list of attributes that are associated with a MAIL FROM domain.static interfaceAn object that defines the tags (keys and values) that you want to associate with the identity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnIdentity(Construct scope, String id, CfnIdentityProps props) Create a newAWS::PinpointEmail::Identity.protectedCfnIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIdentity(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionThe host name for the first token that you have to add to the DNS configuration for your domain.The host name for the second token that you have to add to the DNS configuration for your domain.The host name for the third token that you have to add to the DNS configuration for your domain.The record value for the first token that you have to add to the DNS configuration for your domain.The record value for the second token that you have to add to the DNS configuration for your domain.The record value for the third token that you have to add to the DNS configuration for your domain.For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.Used to enable or disable feedback forwarding for an identity.Used to enable or disable the custom Mail-From domain configuration for an email identity.getName()The address or domain of the identity, such as sender@example.com or example.co.uk .getTags()An object that defines the tags (keys and values) that you want to associate with the email identity.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDkimSigningEnabled(Boolean value) For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.voidsetDkimSigningEnabled(IResolvable value) For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.voidUsed to enable or disable feedback forwarding for an identity.voidUsed to enable or disable feedback forwarding for an identity.voidsetMailFromAttributes(IResolvable value) Used to enable or disable the custom Mail-From domain configuration for an email identity.voidUsed to enable or disable the custom Mail-From domain configuration for an email identity.voidThe address or domain of the identity, such as sender@example.com or example.co.uk .voidsetTags(List<CfnIdentity.TagsProperty> value) An object that defines the tags (keys and values) that you want to associate with the email identity.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnIdentityprotected CfnIdentity(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnIdentityprotected CfnIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnIdentity@Stability(Stable) public CfnIdentity(@NotNull Construct scope, @NotNull String id, @NotNull CfnIdentityProps props) Create a newAWS::PinpointEmail::Identity.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrIdentityDnsRecordName1The 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. 
- 
getAttrIdentityDnsRecordName2The host name for the second token that you have to add to the DNS configuration for your domain.
- 
getAttrIdentityDnsRecordName3The host name for the third token that you have to add to the DNS configuration for your domain.
- 
getAttrIdentityDnsRecordValue1The record value for the first token that you have to add to the DNS configuration for your domain.
- 
getAttrIdentityDnsRecordValue2The record value for the second token that you have to add to the DNS configuration for your domain.
- 
getAttrIdentityDnsRecordValue3The record value for the third token that you have to add to the DNS configuration for your domain.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getNameThe address or domain of the identity, such as sender@example.com or example.co.uk .
- 
setNameThe address or domain of the identity, such as sender@example.com or example.co.uk .
- 
getDkimSigningEnabledFor domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.If the value is true, then the messages that you send from the domain are signed using both the DKIM keys for your domain, as well as the keys for theamazonses.comdomain. If the value isfalse, then the messages that you send are only signed using the DKIM keys for theamazonses.comdomain.
- 
setDkimSigningEnabledFor domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.If the value is true, then the messages that you send from the domain are signed using both the DKIM keys for your domain, as well as the keys for theamazonses.comdomain. If the value isfalse, then the messages that you send are only signed using the DKIM keys for theamazonses.comdomain.
- 
setDkimSigningEnabledFor domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.If the value is true, then the messages that you send from the domain are signed using both the DKIM keys for your domain, as well as the keys for theamazonses.comdomain. If the value isfalse, then the messages that you send are only signed using the DKIM keys for theamazonses.comdomain.
- 
getFeedbackForwardingEnabledUsed to enable or disable feedback forwarding for an identity.This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event. When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email. When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled). 
- 
setFeedbackForwardingEnabledUsed to enable or disable feedback forwarding for an identity.This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event. When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email. When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled). 
- 
setFeedbackForwardingEnabledUsed to enable or disable feedback forwarding for an identity.This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event. When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email. When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled). 
- 
getMailFromAttributesUsed to enable or disable the custom Mail-From domain configuration for an email identity.
- 
setMailFromAttributesUsed 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.
- 
getTagsAn object that defines the tags (keys and values) that you want to associate with the email identity.
- 
setTagsAn object that defines the tags (keys and values) that you want to associate with the email identity.
 
-