Class Identity
Identity.
Inheritance
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Identity(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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()
protected Identity()
Identity(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Identity(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Identity(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Identity(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
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
System.String
Methods
Domain(String)
Verify a domain name.
public static Identity Domain(string domain)
Parameters
- domain System.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 System.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