Skip to content
v2.273.0

Identity Class ​

Identity.

Example ​

ts
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 ​

ts
new Identity()
python
Identity()
java
new Identity()
csharp
new Identity()
go
NewIdentity()

Properties ​

hostedZoneIPublicHostedZonehosted_zoneIPublicHostedZonehostedZoneIPublicHostedZoneHostedZoneIPublicHostedZoneHostedZoneIPublicHostedZone= no hosted zone is associated and…#
The hosted zone associated with this identity.
default

Default: no hosted zone is associated and no records are created

valuestringvaluestrvalueStringValuestringValue*stringrequired#
The value of the identity.

Methods ​

domain(domain: string): Identity // chainable@staticmethod def domain(domain: str) -> Identitypublic static Identity domain(String domain)public static Identity Domain(string domain)func Domain(Domain *string) Identitystatic#
Verify a domain name.

DKIM records will have to be added manually to complete the verification process

email(email: string): Identity // chainable@staticmethod def email(email: str) -> Identitypublic static Identity email(String email)public static Identity Email(string email)func Email(Email *string) Identitystatic#
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.

publicHostedZone(hostedZone: IPublicHostedZone): Identity // chainable@staticmethod def public_hosted_zone(hosted_zone: IPublicHostedZone) -> Identitypublic static Identity publicHostedZone(IPublicHostedZone hostedZone)public static Identity PublicHostedZone(IPublicHostedZone hostedZone)func PublicHostedZone(HostedZone IPublicHostedZone) Identitystatic#
Verify a public hosted zone.

DKIM and MAIL FROM records will be added automatically to the hosted zone