Class CfnEmailIdentity
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SES::EmailIdentity.
Specifies an identity for using within SES. An identity is an email address or domain that you use when you send email. Before you can use an identity to send email, you first have to verify it. By verifying an identity, you demonstrate that you're the owner of the identity, and that you've given Amazon SES API v2 permission to send email from the identity.
When you verify an email address, SES 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 without specifying the DkimSigningAttributes properties, OR only the NextSigningKeyLength property of DkimSigningAttributes, this resource provides a set of CNAME token names and values (DkimDNSTokenName1, DkimDNSTokenValue1, DkimDNSTokenName2, DkimDNSTokenValue2, DkimDNSTokenName3, DkimDNSTokenValue3) as outputs. You can then add these to the DNS configuration for your domain. Your domain is verified when Amazon SES detects these records in the DNS configuration for your domain. This verification method is known as Easy DKIM.
Alternatively, you can perform the verification process by providing your own public-private key pair. This verification method is known as Bring Your Own DKIM (BYODKIM). To use BYODKIM, your resource must include DkimSigningAttributes properties DomainSigningSelector and DomainSigningPrivateKey. When you specify this object, you provide a selector (DomainSigningSelector) (a component of the DNS record name that identifies the public key to use for DKIM authentication) and a private key (DomainSigningPrivateKey).
Additionally, you can associate an existing configuration set with the email identity that you're verifying.
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.ses.*;
CfnEmailIdentity cfnEmailIdentity = CfnEmailIdentity.Builder.create(this, "MyCfnEmailIdentity")
.emailIdentity("emailIdentity")
// the properties below are optional
.configurationSetAttributes(ConfigurationSetAttributesProperty.builder()
.configurationSetName("configurationSetName")
.build())
.dkimAttributes(DkimAttributesProperty.builder()
.signingEnabled(false)
.build())
.dkimSigningAttributes(DkimSigningAttributesProperty.builder()
.domainSigningPrivateKey("domainSigningPrivateKey")
.domainSigningSelector("domainSigningSelector")
.nextSigningKeyLength("nextSigningKeyLength")
.build())
.feedbackAttributes(FeedbackAttributesProperty.builder()
.emailForwardingEnabled(false)
.build())
.mailFromAttributes(MailFromAttributesProperty.builder()
.behaviorOnMxFailure("behaviorOnMxFailure")
.mailFromDomain("mailFromDomain")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEmailIdentity.static interfaceUsed to associate a configuration set with an email identity.static interfaceUsed to enable or disable DKIM authentication for an email identity.static interfaceUsed to configure or change the DKIM authentication settings for an email domain identity.static interfaceUsed to enable or disable feedback forwarding for an identity.static interfaceUsed to enable or disable the custom Mail-From domain configuration for an email identity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEmailIdentity(Construct scope, String id, CfnEmailIdentityProps props) Create a newAWS::SES::EmailIdentity.protectedCfnEmailIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEmailIdentity(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier 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.Used to associate a configuration set with an email identity.An object that contains information about the DKIM attributes for the identity.If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM .The email address or domain to verify.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidUsed to associate a configuration set with an email identity.voidUsed to associate a configuration set with an email identity.voidsetDkimAttributes(IResolvable value) An object that contains information about the DKIM attributes for the identity.voidAn object that contains information about the DKIM attributes for the identity.voidIf your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM .voidIf your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM .voidsetEmailIdentity(String value) The email address or domain to verify.voidsetFeedbackAttributes(IResolvable value) Used 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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEmailIdentity
protected CfnEmailIdentity(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEmailIdentity
protected CfnEmailIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEmailIdentity
@Stability(Stable) public CfnEmailIdentity(@NotNull Construct scope, @NotNull String id, @NotNull CfnEmailIdentityProps props) Create a newAWS::SES::EmailIdentity.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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 classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDkimDnsTokenName1
The host name for the first token that you have to add to the DNS configuration for your domain. -
getAttrDkimDnsTokenName2
The host name for the second token that you have to add to the DNS configuration for your domain. -
getAttrDkimDnsTokenName3
The host name for the third token that you have to add to the DNS configuration for your domain. -
getAttrDkimDnsTokenValue1
The record value for the first token that you have to add to the DNS configuration for your domain. -
getAttrDkimDnsTokenValue2
The record value for the second token that you have to add to the DNS configuration for your domain. -
getAttrDkimDnsTokenValue3
The record value for the third token that you have to add to the DNS configuration for your domain. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEmailIdentity
The email address or domain to verify. -
setEmailIdentity
The email address or domain to verify. -
getConfigurationSetAttributes
Used to associate a configuration set with an email identity. -
setConfigurationSetAttributes
Used to associate a configuration set with an email identity. -
setConfigurationSetAttributes
@Stability(Stable) public void setConfigurationSetAttributes(@Nullable CfnEmailIdentity.ConfigurationSetAttributesProperty value) Used to associate a configuration set with an email identity. -
getDkimAttributes
An object that contains information about the DKIM attributes for the identity. -
setDkimAttributes
An object that contains information about the DKIM attributes for the identity. -
setDkimAttributes
@Stability(Stable) public void setDkimAttributes(@Nullable CfnEmailIdentity.DkimAttributesProperty value) An object that contains information about the DKIM attributes for the identity. -
getDkimSigningAttributes
If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM . -
setDkimSigningAttributes
If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM . -
setDkimSigningAttributes
@Stability(Stable) public void setDkimSigningAttributes(@Nullable CfnEmailIdentity.DkimSigningAttributesProperty value) If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM . -
getFeedbackAttributes
Used to enable or disable feedback forwarding for an identity. -
setFeedbackAttributes
Used to enable or disable feedback forwarding for an identity. -
setFeedbackAttributes
@Stability(Stable) public void setFeedbackAttributes(@Nullable CfnEmailIdentity.FeedbackAttributesProperty value) Used to enable or disable feedback forwarding for an identity. -
getMailFromAttributes
Used to enable or disable the custom Mail-From domain configuration for an email identity. -
setMailFromAttributes
Used to enable or disable the custom Mail-From domain configuration for an email identity. -
setMailFromAttributes
@Stability(Stable) public void setMailFromAttributes(@Nullable CfnEmailIdentity.MailFromAttributesProperty value) Used to enable or disable the custom Mail-From domain configuration for an email identity.
-