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
new IdentityNotificationTopic(name: string, args: IdentityNotificationTopicArgs, opts?: CustomResourceOptions);def IdentityNotificationTopic(resource_name, opts=None, identity=None, include_original_headers=None, notification_type=None, topic_arn=None, __props__=None);func NewIdentityNotificationTopic(ctx *Context, name string, args IdentityNotificationTopicArgs, opts ...ResourceOption) (*IdentityNotificationTopic, error)public IdentityNotificationTopic(string name, IdentityNotificationTopicArgs args, CustomResourceOptions? opts = null)- 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).
- Notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- Include
Original boolHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- Topic
Arn 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).
- Notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- Include
Original boolHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- Topic
Arn 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).
- notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- include
Original booleanHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- topic
Arn 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_ boolheaders 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:
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.
public static get(name: string, id: Input<ID>, state?: IdentityNotificationTopicState, opts?: CustomResourceOptions): IdentityNotificationTopicstatic 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)public static IdentityNotificationTopic Get(string name, Input<string> id, IdentityNotificationTopicState? state, CustomResourceOptions? opts = null)- 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).
- Include
Original boolHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- Notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- Topic
Arn 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).
- Include
Original boolHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- Notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- Topic
Arn 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).
- include
Original booleanHeaders Whether SES should include original email headers in SNS notifications of this type. false by default.
- notification
Type string The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery.
- topic
Arn 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_ boolheaders 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
awsTerraform Provider.