AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SES::EmailIdentity

CfnEmailIdentity

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.

Import

import { CfnEmailIdentity } from 'aws-cdk-lib/aws-ses';

Or use the module namespace:

import * as ses from 'aws-cdk-lib/aws-ses';
// ses.CfnEmailIdentity

Properties

Configuration passed to the constructor as CfnEmailIdentityProps.

emailIdentityRequired
string

The email address or domain to verify.

configurationSetAttributesOptional
IResolvable | ConfigurationSetAttributesProperty

Used to associate a configuration set with an email identity.

dkimAttributesOptional
IResolvable | DkimAttributesProperty

An object that contains information about the DKIM attributes for the identity.

dkimSigningAttributesOptional
IResolvable | DkimSigningAttributesProperty

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](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . You can only specify this object if the email identity is a domain, as opposed to an address.

feedbackAttributesOptional
IResolvable | FeedbackAttributesProperty

Used to enable or disable feedback forwarding for an identity.

mailFromAttributesOptional
IResolvable | MailFromAttributesProperty

Used to enable or disable the custom Mail-From domain configuration for an email identity.

tagsOptional
CfnTag[]

An array of objects that define the tags (keys and values) to associate with the email identity.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon SES Cheat Sheet

Everything you need to know about Amazon SES on one page. HD quality, print-friendly.

Download Free Infographic