AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:sesv2/getEmailIdentity:getEmailIdentity
arguments:
# arguments dictionary
The following arguments are supported:
- Email
Identity string - The name of the email identity.
- Dictionary<string, string>
- Key-value mapping of resource tags.
- Email
Identity string - The name of the email identity.
- map[string]string
- Key-value mapping of resource tags.
- email
Identity String - The name of the email identity.
- Map<String,String>
- Key-value mapping of resource tags.
- email
Identity 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.
- email
Identity 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.
- Configuration
Set stringName - Dkim
Signing 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.
- Email
Identity string - Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Type string - The email identity type. Valid values:
EMAIL_ADDRESS
,DOMAIN
. - Dictionary<string, string>
- 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.
- Configuration
Set stringName - Dkim
Signing []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 string - Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Type string - The email identity type. Valid values:
EMAIL_ADDRESS
,DOMAIN
. - map[string]string
- 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.
- configuration
Set StringName - dkim
Signing 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.
- email
Identity String - id String
- The provider-assigned unique ID for this managed resource.
- identity
Type String - The email identity type. Valid values:
EMAIL_ADDRESS
,DOMAIN
. - Map<String,String>
- Key-value mapping of resource tags.
- verified
For BooleanSending Status - Specifies whether or not the identity is verified.
- arn string
- ARN of the Email Identity.
- configuration
Set stringName - dkim
Signing 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 string - id string
- The provider-assigned unique ID for this managed resource.
- identity
Type string - The email identity type. Valid values:
EMAIL_ADDRESS
,DOMAIN
. - {[key: string]: string}
- Key-value mapping of resource tags.
- verified
For 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.
- configuration
Set StringName - dkim
Signing 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.
- email
Identity String - id String
- The provider-assigned unique ID for this managed resource.
- identity
Type String - The email identity type. Valid values:
EMAIL_ADDRESS
,DOMAIN
. - Map<String>
- Key-value mapping of resource tags.
- verified
For BooleanSending Status - Specifies whether or not the identity is verified.
Supporting Types
GetEmailIdentityDkimSigningAttribute
- Current
Signing stringKey Length - [Easy DKIM] The key length of the DKIM key pair in use.
- Domain
Signing stringPrivate Key - Domain
Signing stringSelector - Last
Key stringGeneration Timestamp - [Easy DKIM] The last time a key pair was generated for this identity.
- Next
Signing 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.
- Signing
Attributes stringOrigin - A string that indicates how DKIM was configured for the identity.
AWS_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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.
- Current
Signing stringKey Length - [Easy DKIM] The key length of the DKIM key pair in use.
- Domain
Signing stringPrivate Key - Domain
Signing stringSelector - Last
Key stringGeneration Timestamp - [Easy DKIM] The last time a key pair was generated for this identity.
- Next
Signing 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.
- Signing
Attributes stringOrigin - A string that indicates how DKIM was configured for the identity.
AWS_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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 StringKey Length - [Easy DKIM] The key length of the DKIM key pair in use.
- domain
Signing StringPrivate Key - domain
Signing StringSelector - last
Key StringGeneration Timestamp - [Easy DKIM] The last time a key pair was generated for this identity.
- next
Signing 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.
- signing
Attributes StringOrigin - A string that indicates how DKIM was configured for the identity.
AWS_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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.
- current
Signing stringKey Length - [Easy DKIM] The key length of the DKIM key pair in use.
- domain
Signing stringPrivate Key - domain
Signing stringSelector - last
Key stringGeneration Timestamp - [Easy DKIM] The last time a key pair was generated for this identity.
- next
Signing 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.
- signing
Attributes stringOrigin - A string that indicates how DKIM was configured for the identity.
AWS_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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.
- current
Signing StringKey Length - [Easy DKIM] The key length of the DKIM key pair in use.
- domain
Signing StringPrivate Key - domain
Signing StringSelector - last
Key StringGeneration Timestamp - [Easy DKIM] The last time a key pair was generated for this identity.
- next
Signing 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.
- signing
Attributes StringOrigin - A string that indicates how DKIM was configured for the identity.
AWS_SES
indicates that DKIM was configured for the identity by using Easy DKIM.EXTERNAL
indicates 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
aws
Terraform Provider.