AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.sesv2.getEmailIdentity
Explore with Pulumi AI
Data source for managing an AWS SESv2 (Simple Email V2) Email Identity.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.sesv2.getEmailIdentity({
    emailIdentity: "example.com",
});
import pulumi
import pulumi_aws as aws
example = aws.sesv2.get_email_identity(email_identity="example.com")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sesv2.LookupEmailIdentity(ctx, &sesv2.LookupEmailIdentityArgs{
			EmailIdentity: "example.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.SesV2.GetEmailIdentity.Invoke(new()
    {
        EmailIdentity = "example.com",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.Sesv2Functions;
import com.pulumi.aws.sesv2.inputs.GetEmailIdentityArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = Sesv2Functions.getEmailIdentity(GetEmailIdentityArgs.builder()
            .emailIdentity("example.com")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:sesv2:getEmailIdentity
      arguments:
        emailIdentity: example.com
Using getEmailIdentity
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEmailIdentity(args: GetEmailIdentityArgs, opts?: InvokeOptions): Promise<GetEmailIdentityResult>
function getEmailIdentityOutput(args: GetEmailIdentityOutputArgs, opts?: InvokeOptions): Output<GetEmailIdentityResult>def get_email_identity(email_identity: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetEmailIdentityResult
def get_email_identity_output(email_identity: Optional[pulumi.Input[str]] = None,
                       tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetEmailIdentityResult]func LookupEmailIdentity(ctx *Context, args *LookupEmailIdentityArgs, opts ...InvokeOption) (*LookupEmailIdentityResult, error)
func LookupEmailIdentityOutput(ctx *Context, args *LookupEmailIdentityOutputArgs, opts ...InvokeOption) LookupEmailIdentityResultOutput> Note: This function is named LookupEmailIdentity in the Go SDK.
public static class GetEmailIdentity 
{
    public static Task<GetEmailIdentityResult> InvokeAsync(GetEmailIdentityArgs args, InvokeOptions? opts = null)
    public static Output<GetEmailIdentityResult> Invoke(GetEmailIdentityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEmailIdentityResult> getEmailIdentity(GetEmailIdentityArgs args, InvokeOptions options)
public static Output<GetEmailIdentityResult> getEmailIdentity(GetEmailIdentityArgs args, InvokeOptions options)
fn::invoke:
  function: aws:sesv2/getEmailIdentity:getEmailIdentity
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EmailIdentity string
- The name of the email identity.
- Dictionary<string, string>
- Key-value mapping of resource tags.
- EmailIdentity string
- The name of the email identity.
- map[string]string
- Key-value mapping of resource tags.
- emailIdentity String
- The name of the email identity.
- Map<String,String>
- Key-value mapping of resource tags.
- emailIdentity string
- The name of the email identity.
- {[key: string]: string}
- Key-value mapping of resource tags.
- email_identity str
- The name of the email identity.
- Mapping[str, str]
- Key-value mapping of resource tags.
- emailIdentity String
- The name of the email identity.
- Map<String>
- Key-value mapping of resource tags.
getEmailIdentity Result
The following output properties are available:
- Arn string
- ARN of the Email Identity.
- ConfigurationSet stringName 
- DkimSigning List<GetAttributes Email Identity Dkim Signing Attribute> 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- EmailIdentity string
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityType string
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- Dictionary<string, string>
- Key-value mapping of resource tags.
- VerifiedFor boolSending Status 
- Specifies whether or not the identity is verified.
- Arn string
- ARN of the Email Identity.
- ConfigurationSet stringName 
- DkimSigning []GetAttributes Email Identity Dkim Signing Attribute 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- EmailIdentity string
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityType string
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- map[string]string
- Key-value mapping of resource tags.
- VerifiedFor boolSending Status 
- Specifies whether or not the identity is verified.
- arn String
- ARN of the Email Identity.
- configurationSet StringName 
- dkimSigning List<GetAttributes Email Identity Dkim Signing Attribute> 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- emailIdentity String
- id String
- The provider-assigned unique ID for this managed resource.
- identityType String
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- Map<String,String>
- Key-value mapping of resource tags.
- verifiedFor BooleanSending Status 
- Specifies whether or not the identity is verified.
- arn string
- ARN of the Email Identity.
- configurationSet stringName 
- dkimSigning GetAttributes Email Identity Dkim Signing Attribute[] 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- emailIdentity string
- id string
- The provider-assigned unique ID for this managed resource.
- identityType string
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- {[key: string]: string}
- Key-value mapping of resource tags.
- verifiedFor booleanSending Status 
- Specifies whether or not the identity is verified.
- arn str
- ARN of the Email Identity.
- configuration_set_ strname 
- dkim_signing_ Sequence[Getattributes Email Identity Dkim Signing Attribute] 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- email_identity str
- id str
- The provider-assigned unique ID for this managed resource.
- identity_type str
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- Mapping[str, str]
- Key-value mapping of resource tags.
- verified_for_ boolsending_ status 
- Specifies whether or not the identity is verified.
- arn String
- ARN of the Email Identity.
- configurationSet StringName 
- dkimSigning List<Property Map>Attributes 
- A list of objects that contains at most one element with information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.
- emailIdentity String
- id String
- The provider-assigned unique ID for this managed resource.
- identityType String
- The email identity type. Valid values: EMAIL_ADDRESS,DOMAIN.
- Map<String>
- Key-value mapping of resource tags.
- verifiedFor BooleanSending Status 
- Specifies whether or not the identity is verified.
Supporting Types
GetEmailIdentityDkimSigningAttribute     
- CurrentSigning stringKey Length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- DomainSigning stringPrivate Key 
- DomainSigning stringSelector 
- LastKey stringGeneration Timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- NextSigning stringKey Length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- SigningAttributes stringOrigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- Status string
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- Tokens List<string>
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
- CurrentSigning stringKey Length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- DomainSigning stringPrivate Key 
- DomainSigning stringSelector 
- LastKey stringGeneration Timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- NextSigning stringKey Length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- SigningAttributes stringOrigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- Status string
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- Tokens []string
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
- currentSigning StringKey Length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- domainSigning StringPrivate Key 
- domainSigning StringSelector 
- lastKey StringGeneration Timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- nextSigning StringKey Length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- signingAttributes StringOrigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- status String
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- tokens List<String>
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
- currentSigning stringKey Length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- domainSigning stringPrivate Key 
- domainSigning stringSelector 
- lastKey stringGeneration Timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- nextSigning stringKey Length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- signingAttributes stringOrigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- status string
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- tokens string[]
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
- current_signing_ strkey_ length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- domain_signing_ strprivate_ key 
- domain_signing_ strselector 
- last_key_ strgeneration_ timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- next_signing_ strkey_ length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- signing_attributes_ strorigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- status str
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- tokens Sequence[str]
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
- currentSigning StringKey Length 
- [Easy DKIM] The key length of the DKIM key pair in use.
- domainSigning StringPrivate Key 
- domainSigning StringSelector 
- lastKey StringGeneration Timestamp 
- [Easy DKIM] The last time a key pair was generated for this identity.
- nextSigning StringKey Length 
- [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.
- signingAttributes StringOrigin 
- A string that indicates how DKIM was configured for the identity. AWS_SESindicates that DKIM was configured for the identity by using Easy DKIM.EXTERNALindicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).
- status String
- Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses.
- tokens List<String>
- If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.