Identity

class aws_cdk.aws_ses.Identity

Bases: object

Identity.

ExampleMetadata:

infused

Example:

import aws_cdk.aws_iam as iam
# user: iam.User


identity = ses.EmailIdentity(self, "Identity",
    identity=ses.Identity.domain("cdk.dev")
)

identity.grant_send_email(user)

Attributes

hosted_zone

The hosted zone associated with this identity.

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

value

The value of the identity.

Static Methods

classmethod domain(domain)

Verify a domain name.

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

Parameters:

domain (str) –

Return type:

Identity

classmethod email(email)

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.

Parameters:

email (str) –

Return type:

Identity

classmethod public_hosted_zone(hosted_zone)

Verify a public hosted zone.

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

Parameters:

hosted_zone (IPublicHostedZone) –

Return type:

Identity