Class EmailIdentity
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ses.EmailIdentity
- All Implemented Interfaces:
IResource
,IEmailIdentity
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:09.804Z")
@Stability(Stable)
public class EmailIdentity
extends Resource
implements IEmailIdentity
An email identity.
Example:
import software.amazon.awscdk.services.iam.*; User user; EmailIdentity identity = EmailIdentity.Builder.create(this, "Identity") .identity(Identity.domain("cdk.dev")) .build(); identity.grantSendEmail(user);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ses.IEmailIdentity
IEmailIdentity.Jsii$Default, IEmailIdentity.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
EmailIdentity
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EmailIdentity
(software.amazon.jsii.JsiiObjectRef objRef) EmailIdentity
(software.constructs.Construct scope, String id, EmailIdentityProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEmailIdentity
fromEmailIdentityName
(software.constructs.Construct scope, String id, String emailIdentityName) Use an existing email identity.The host name for the first token that you have to add to the DNS configurationfor your domain.The host name for the second token that you have to add to the DNS configuration for your domain.The host name for the third token that you have to add to the DNS configuration for your domain.The record value for the first token that you have to add to the DNS configuration for your domain.The record value for the second token that you have to add to the DNS configuration for your domain.The record value for the third token that you have to add to the DNS configuration for your domain.DKIM records for this identity.The ARN of the email identity.The name of the email identity.grant
(IGrantable grantee, @NotNull String... actions) Adds an IAM policy statement associated with this email identity to an IAM principal's policy.grantSendEmail
(IGrantable grantee) Permits an IAM principal the send email action.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EmailIdentity
protected EmailIdentity(software.amazon.jsii.JsiiObjectRef objRef) -
EmailIdentity
protected EmailIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EmailIdentity
@Stability(Stable) public EmailIdentity(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EmailIdentityProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromEmailIdentityName
@Stability(Stable) @NotNull public static IEmailIdentity fromEmailIdentityName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String emailIdentityName) Use an existing email identity.- Parameters:
scope
- This parameter is required.id
- This parameter is required.emailIdentityName
- This parameter is required.
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Adds an IAM policy statement associated with this email identity to an IAM principal's policy.- Specified by:
grant
in interfaceIEmailIdentity
- Parameters:
grantee
- the principal (no-op if undefined). This parameter is required.actions
- the set of actions to allow. This parameter is required.
-
grantSendEmail
Permits an IAM principal the send email action.Actions: SendEmail, SendRawEmail.
- Specified by:
grantSendEmail
in interfaceIEmailIdentity
- Parameters:
grantee
- the principal to grant access to. This parameter is required.
-
getDkimDnsTokenName1
The host name for the first token that you have to add to the DNS configurationfor your domain. -
getDkimDnsTokenName2
The host name for the second token that you have to add to the DNS configuration for your domain. -
getDkimDnsTokenName3
The host name for the third token that you have to add to the DNS configuration for your domain. -
getDkimDnsTokenValue1
The record value for the first token that you have to add to the DNS configuration for your domain. -
getDkimDnsTokenValue2
The record value for the second token that you have to add to the DNS configuration for your domain. -
getDkimDnsTokenValue3
The record value for the third token that you have to add to the DNS configuration for your domain. -
getDkimRecords
DKIM records for this identity. -
getEmailIdentityArn
The ARN of the email identity.- Specified by:
getEmailIdentityArn
in interfaceIEmailIdentity
-
getEmailIdentityName
The name of the email identity.- Specified by:
getEmailIdentityName
in interfaceIEmailIdentity
-