AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getEmailIdentity

Retrieve the active SES email identity

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Ses.GetEmailIdentity.InvokeAsync(new Aws.Ses.GetEmailIdentityArgs
        {
            Email = "awesome@example.com",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ses.LookupEmailIdentity(ctx, &ses.LookupEmailIdentityArgs{
			Email: "awesome@example.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(SesFunctions.getEmailIdentity(GetEmailIdentityArgs.builder()
            .email("awesome@example.com")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.ses.get_email_identity(email="awesome@example.com")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ses.getEmailIdentity({
    email: "awesome@example.com",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:ses:getEmailIdentity
      Arguments:
        email: awesome@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: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetEmailIdentityResult
def get_email_identity_output(email: Optional[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:ses/getEmailIdentity:getEmailIdentity
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Email string

The email identity.

Email string

The email identity.

email String

The email identity.

email string

The email identity.

email str

The email identity.

email String

The email identity.

getEmailIdentity Result

The following output properties are available:

Arn string

The ARN of the email identity.

Email string

The email identity.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

The ARN of the email identity.

Email string

The email identity.

Id string

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the email identity.

email String

The email identity.

id String

The provider-assigned unique ID for this managed resource.

arn string

The ARN of the email identity.

email string

The email identity.

id string

The provider-assigned unique ID for this managed resource.

arn str

The ARN of the email identity.

email str

The email identity.

id str

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the email identity.

email String

The email identity.

id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.