IdentityNotificationTopic

Resource for managing SES Identity Notification Topics

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new Aws.Ses.IdentityNotificationTopic("test", new Aws.Ses.IdentityNotificationTopicArgs
        {
            Identity = aws_ses_domain_identity.Example.Domain,
            IncludeOriginalHeaders = true,
            NotificationType = "Bounce",
            TopicArn = aws_sns_topic.Example.Arn,
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ses.NewIdentityNotificationTopic(ctx, "test", &ses.IdentityNotificationTopicArgs{
            Identity:               pulumi.String(aws_ses_domain_identity.Example.Domain),
            IncludeOriginalHeaders: pulumi.Bool(true),
            NotificationType:       pulumi.String("Bounce"),
            TopicArn:               pulumi.String(aws_sns_topic.Example.Arn),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test = aws.ses.IdentityNotificationTopic("test",
    identity=aws_ses_domain_identity["example"]["domain"],
    include_original_headers=True,
    notification_type="Bounce",
    topic_arn=aws_sns_topic["example"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.ses.IdentityNotificationTopic("test", {
    identity: aws_ses_domain_identity_example.domain,
    includeOriginalHeaders: true,
    notificationType: "Bounce",
    topicArn: aws_sns_topic_example.arn,
});

Create a IdentityNotificationTopic Resource

def IdentityNotificationTopic(resource_name, opts=None, identity=None, include_original_headers=None, notification_type=None, topic_arn=None, __props__=None);
name string
The unique name of the resource.
args IdentityNotificationTopicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IdentityNotificationTopicArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IdentityNotificationTopicArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

IdentityNotificationTopic Resource Properties

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

Inputs

The IdentityNotificationTopic resource accepts the following input properties:

Identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

NotificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

IncludeOriginalHeaders bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

TopicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

Identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

NotificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

IncludeOriginalHeaders bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

TopicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

notificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

includeOriginalHeaders boolean

Whether SES should include original email headers in SNS notifications of this type. false by default.

topicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

identity str

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

notification_type str

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

include_original_headers bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

topic_arn str

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing IdentityNotificationTopic Resource

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

static get(resource_name, id, opts=None, identity=None, include_original_headers=None, notification_type=None, topic_arn=None, __props__=None);
func GetIdentityNotificationTopic(ctx *Context, name string, id IDInput, state *IdentityNotificationTopicState, opts ...ResourceOption) (*IdentityNotificationTopic, error)
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.

The following state arguments are supported:

Identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

IncludeOriginalHeaders bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

NotificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

TopicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

Identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

IncludeOriginalHeaders bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

NotificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

TopicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

identity string

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

includeOriginalHeaders boolean

Whether SES should include original email headers in SNS notifications of this type. false by default.

notificationType string

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

topicArn string

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

identity str

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN).

include_original_headers bool

Whether SES should include original email headers in SNS notifications of this type. false by default.

notification_type str

The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.

topic_arn str

The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to “” (an empty string) to disable publishing.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.