Class CfnEmailIdentity
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
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();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEmailIdentity
.static interface
Used to associate a configuration set with an email identity.static interface
Used to enable or disable DKIM authentication for an email identity.static interface
Used to configure or change the DKIM authentication settings for an email domain identity.static interface
Used to enable or disable feedback forwarding for an identity.static interface
Used 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEmailIdentity
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEmailIdentity
(software.amazon.jsii.JsiiObjectRef objRef) CfnEmailIdentity
(software.constructs.Construct scope, String id, CfnEmailIdentityProps props) -
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Used to associate a configuration set with an email identity.void
Used to associate a configuration set with an email identity.void
setDkimAttributes
(IResolvable value) An object that contains information about the DKIM attributes for the identity.void
An object that contains information about the DKIM attributes for the identity.void
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 .void
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 .void
setEmailIdentity
(String value) The email address or domain to verify.void
setFeedbackAttributes
(IResolvable value) Used to enable or disable feedback forwarding for an identity.void
Used to enable or disable feedback forwarding for an identity.void
setMailFromAttributes
(IResolvable value) Used to enable or disable the custom Mail-From domain configuration for an email identity.void
Used to enable or disable the custom Mail-From domain configuration for an email identity.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnEmailIdentityProps 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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- 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 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:
getCfnProperties
in 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.
-