AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.5.0 published on Wednesday, May 25, 2022 by Pulumi

EmailIdentity

Provides an SES email identity resource

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ses.EmailIdentity("example", new Aws.Ses.EmailIdentityArgs
        {
            Email = "email@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.NewEmailIdentity(ctx, "example", &ses.EmailIdentityArgs{
			Email: pulumi.String("email@example.com"),
		})
		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) {
        var example = new EmailIdentity("example", EmailIdentityArgs.builder()        
            .email("email@example.com")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

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

const example = new aws.ses.EmailIdentity("example", {
    email: "email@example.com",
});
resources:
  example:
    type: aws:ses:EmailIdentity
    properties:
      email: email@example.com

Create a EmailIdentity Resource

new EmailIdentity(name: string, args: EmailIdentityArgs, opts?: CustomResourceOptions);
@overload
def EmailIdentity(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  email: Optional[str] = None)
@overload
def EmailIdentity(resource_name: str,
                  args: EmailIdentityArgs,
                  opts: Optional[ResourceOptions] = None)
func NewEmailIdentity(ctx *Context, name string, args EmailIdentityArgs, opts ...ResourceOption) (*EmailIdentity, error)
public EmailIdentity(string name, EmailIdentityArgs args, CustomResourceOptions? opts = null)
public EmailIdentity(String name, EmailIdentityArgs args)
public EmailIdentity(String name, EmailIdentityArgs args, CustomResourceOptions options)
type: aws:ses:EmailIdentity
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EmailIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args EmailIdentityArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EmailIdentityArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EmailIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EmailIdentityArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EmailIdentity Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The EmailIdentity resource accepts the following input properties:

Email string

The email address to assign to SES

Email string

The email address to assign to SES

email String

The email address to assign to SES

email string

The email address to assign to SES

email str

The email address to assign to SES

email String

The email address to assign to SES

Outputs

All input properties are implicitly available as output properties. Additionally, the EmailIdentity resource produces the following output properties:

Arn string

The ARN of the email identity.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

The ARN of the email identity.

Id string

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the email identity.

id String

The provider-assigned unique ID for this managed resource.

arn string

The ARN of the email identity.

id string

The provider-assigned unique ID for this managed resource.

arn str

The ARN of the email identity.

id str

The provider-assigned unique ID for this managed resource.

arn String

The ARN of the email identity.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing EmailIdentity Resource

Get an existing EmailIdentity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EmailIdentityState, opts?: CustomResourceOptions): EmailIdentity
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        email: Optional[str] = None) -> EmailIdentity
func GetEmailIdentity(ctx *Context, name string, id IDInput, state *EmailIdentityState, opts ...ResourceOption) (*EmailIdentity, error)
public static EmailIdentity Get(string name, Input<string> id, EmailIdentityState? state, CustomResourceOptions? opts = null)
public static EmailIdentity get(String name, Output<String> id, EmailIdentityState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

The ARN of the email identity.

Email string

The email address to assign to SES

Arn string

The ARN of the email identity.

Email string

The email address to assign to SES

arn String

The ARN of the email identity.

email String

The email address to assign to SES

arn string

The ARN of the email identity.

email string

The email address to assign to SES

arn str

The ARN of the email identity.

email str

The email address to assign to SES

arn String

The ARN of the email identity.

email String

The email address to assign to SES

Import

SES email identities can be imported using the email address.

 $ pulumi import aws:ses/emailIdentity:EmailIdentity example email@example.com

Package Details

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

This Pulumi package is based on the aws Terraform Provider.