# Identity

Identity.

- Source: [`aws-ses/lib/email-identity.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts#L120)
- Type last changed: v2.32.0 · 14 Jul 2022

## 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()
```

## Properties

- `hostedZone`: [IPublicHostedZone](/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IPublicHostedZone.html) = no hosted zone is associated and no records are created — The hosted zone associated with this identity.

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

- `value`: string (required) — The value of the identity.

## Methods

- `domain(domain: string): Identity // chainable` (static) — Verify a domain name.

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

- `email(email: string): Identity // chainable` (static) — 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` (static) — Verify a public hosted zone.

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