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),
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class IdentityPolicy : CustomResource
Constructors
View SourceIdentityPolicy(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 SourceIdentity
Name or Amazon Resource Name (ARN) of the SES Identity.
Declaration
public Output<string> Identity { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Name of the policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Policy
JSON string of the policy.
Declaration
public Output<string> Policy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |