Class Identity
Identity.
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Identity : DeputyBase
Syntax (vb)
Public MustInherit Class Identity Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
User user;
var identity = new EmailIdentity(this, "Identity", new EmailIdentityProps {
Identity = Identity.Domain("cdk.dev")
});
identity.GrantSendEmail(user);
Synopsis
Constructors
Identity() | Identity. |
Properties
HostedZone | The hosted zone associated with this identity. |
Value | The value of the identity. |
Methods
Domain(string) | Verify a domain name. |
Email(string) | Verify an email address. |
PublicHostedZone(IPublicHostedZone) | Verify a public hosted zone. |
Constructors
Identity()
Identity.
protected Identity()
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
User user;
var identity = new EmailIdentity(this, "Identity", new EmailIdentityProps {
Identity = Identity.Domain("cdk.dev")
});
identity.GrantSendEmail(user);
Properties
HostedZone
The hosted zone associated with this identity.
public abstract IPublicHostedZone? HostedZone { get; }
Property Value
Remarks
Default: - no hosted zone is associated and no records are created
Value
The value of the identity.
public abstract string Value { get; }
Property Value
Remarks
ExampleMetadata: infused
Methods
Domain(string)
Verify a domain name.
public static Identity Domain(string domain)
Parameters
- domain string
Returns
Remarks
DKIM records will have to be added manually to complete the verification process
Email(string)
Verify an email address.
public static Identity Email(string email)
Parameters
- email string
Returns
Remarks
To complete the verification process look for an email from no-reply-aws@amazon.com, open it and click the link.
PublicHostedZone(IPublicHostedZone)
Verify a public hosted zone.
public static Identity PublicHostedZone(IPublicHostedZone hostedZone)
Parameters
- hostedZone IPublicHostedZone
Returns
Remarks
DKIM and MAIL FROM records will be added automatically to the hosted zone