class Identity
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Identity |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsses#Identity |
Java | software.amazon.awscdk.services.ses.Identity |
Python | aws_cdk.aws_ses.Identity |
TypeScript (source) | aws-cdk-lib » aws_ses » Identity |
Identity.
Example
import * as iam from 'aws-cdk-lib/aws-iam';
declare const user: iam.User;
const identity = new ses.EmailIdentity(this, 'Identity', {
identity: ses.Identity.domain('cdk.dev'),
});
identity.grantSendEmail(user);
Initializer
new Identity()
Properties
Name | Type | Description |
---|---|---|
value | string | The value of the identity. |
hosted | IPublic | The hosted zone associated with this identity. |
value
Type:
string
The value of the identity.
hostedZone?
Type:
IPublic
(optional, default: no hosted zone is associated and no records are created)
The hosted zone associated with this identity.
Methods
Name | Description |
---|---|
static domain(domain) | Verify a domain name. |
static email(email) | Verify an email address. |
static public | Verify a public hosted zone. |
static domain(domain)
public static domain(domain: string): Identity
Parameters
- domain
string
Returns
Verify a domain name.
DKIM records will have to be added manually to complete the verification process
static email(email)
public static email(email: string): Identity
Parameters
- email
string
Returns
Verify an email address.
To complete the verification process look for an email from no-reply-aws@amazon.com, open it and click the link.
HostedZone(hostedZone)
static publicpublic static publicHostedZone(hostedZone: IPublicHostedZone): Identity
Parameters
- hostedZone
IPublic
Hosted Zone
Returns
Verify a public hosted zone.
DKIM and MAIL FROM records will be added automatically to the hosted zone