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.98.0 (build 00b106d)", date="2024-05-08T21:35:14.062Z") @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);
 
  • 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 interface IEmailIdentity
      Parameters:
      grantee - the principal (no-op if undefined). This parameter is required.
      actions - the set of actions to allow. This parameter is required.
    • grantSendEmail

      @Stability(Stable) @NotNull public Grant grantSendEmail(@NotNull IGrantable grantee)
      Permits an IAM principal the send email action.

      Actions: SendEmail, SendRawEmail.

      Specified by:
      grantSendEmail in interface IEmailIdentity
      Parameters:
      grantee - the principal to grant access to. This parameter is required.
    • getDkimDnsTokenName1

      @Stability(Stable) @NotNull public String getDkimDnsTokenName1()
      The host name for the first token that you have to add to the DNS configurationfor your domain.
    • getDkimDnsTokenName2

      @Stability(Stable) @NotNull public String getDkimDnsTokenName2()
      The host name for the second token that you have to add to the DNS configuration for your domain.
    • getDkimDnsTokenName3

      @Stability(Stable) @NotNull public String getDkimDnsTokenName3()
      The host name for the third token that you have to add to the DNS configuration for your domain.
    • getDkimDnsTokenValue1

      @Stability(Stable) @NotNull public String getDkimDnsTokenValue1()
      The record value for the first token that you have to add to the DNS configuration for your domain.
    • getDkimDnsTokenValue2

      @Stability(Stable) @NotNull public String getDkimDnsTokenValue2()
      The record value for the second token that you have to add to the DNS configuration for your domain.
    • getDkimDnsTokenValue3

      @Stability(Stable) @NotNull public String getDkimDnsTokenValue3()
      The record value for the third token that you have to add to the DNS configuration for your domain.
    • getDkimRecords

      @Stability(Stable) @NotNull public List<DkimRecord> getDkimRecords()
      DKIM records for this identity.
    • getEmailIdentityArn

      @Stability(Stable) @NotNull public String getEmailIdentityArn()
      The ARN of the email identity.
      Specified by:
      getEmailIdentityArn in interface IEmailIdentity
    • getEmailIdentityName

      @Stability(Stable) @NotNull public String getEmailIdentityName()
      The name of the email identity.
      Specified by:
      getEmailIdentityName in interface IEmailIdentity