Show / Hide Table of Contents

Class IdentityPolicy

Manages a SES Identity Policy. More information about SES Sending Authorization Policies can be found in the SES Developer Guide.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var exampleDomainIdentity = new Aws.Ses.DomainIdentity("exampleDomainIdentity", new Aws.Ses.DomainIdentityArgs
    {
        Domain = "example.com",
    });
    var examplePolicyDocument = exampleDomainIdentity.Arn.Apply(arn => Aws.Iam.GetPolicyDocument.InvokeAsync(new Aws.Iam.GetPolicyDocumentArgs
    {
        Statements = 
        {
            new Aws.Iam.Inputs.GetPolicyDocumentStatementArgs
            {
                Actions = 
                {
                    "SES:SendEmail",
                    "SES:SendRawEmail",
                },
                Principals = 
                {
                    new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalArgs
                    {
                        Identifiers = 
                        {
                            "*",
                        },
                        Type = "AWS",
                    },
                },
                Resources = 
                {
                    arn,
                },
            },
        },
    }));
    var exampleIdentityPolicy = new Aws.Ses.IdentityPolicy("exampleIdentityPolicy", new Aws.Ses.IdentityPolicyArgs
    {
        Identity = exampleDomainIdentity.Arn,
        Policy = examplePolicyDocument.Apply(examplePolicyDocument => examplePolicyDocument.Json),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
IdentityPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class IdentityPolicy : CustomResource

Constructors

View Source

IdentityPolicy(String, IdentityPolicyArgs, CustomResourceOptions)

Create a IdentityPolicy resource with the given unique name, arguments, and options.

Declaration
public IdentityPolicy(string name, IdentityPolicyArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

IdentityPolicyArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Identity

Name or Amazon Resource Name (ARN) of the SES Identity.

Declaration
public Output<string> Identity { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Name of the policy.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Policy

JSON string of the policy.

Declaration
public Output<string> Policy { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, IdentityPolicyState, CustomResourceOptions)

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

Declaration
public static IdentityPolicy Get(string name, Input<string> id, IdentityPolicyState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

IdentityPolicyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
IdentityPolicy
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.