Try AWS Native preview for resources not in the classic version.
aws.ses.IdentityNotificationTopic
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing SES Identity Notification Topics
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Ses.IdentityNotificationTopic("test", new()
{
TopicArn = aws_sns_topic.Example.Arn,
NotificationType = "Bounce",
Identity = aws_ses_domain_identity.Example.Domain,
IncludeOriginalHeaders = true,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ses"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ses.NewIdentityNotificationTopic(ctx, "test", &ses.IdentityNotificationTopicArgs{
TopicArn: pulumi.Any(aws_sns_topic.Example.Arn),
NotificationType: pulumi.String("Bounce"),
Identity: pulumi.Any(aws_ses_domain_identity.Example.Domain),
IncludeOriginalHeaders: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.IdentityNotificationTopic;
import com.pulumi.aws.ses.IdentityNotificationTopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new IdentityNotificationTopic("test", IdentityNotificationTopicArgs.builder()
.topicArn(aws_sns_topic.example().arn())
.notificationType("Bounce")
.identity(aws_ses_domain_identity.example().domain())
.includeOriginalHeaders(true)
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.ses.IdentityNotificationTopic("test",
topic_arn=aws_sns_topic["example"]["arn"],
notification_type="Bounce",
identity=aws_ses_domain_identity["example"]["domain"],
include_original_headers=True)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ses.IdentityNotificationTopic("test", {
topicArn: aws_sns_topic.example.arn,
notificationType: "Bounce",
identity: aws_ses_domain_identity.example.domain,
includeOriginalHeaders: true,
});
resources:
test:
type: aws:ses:IdentityNotificationTopic
properties:
topicArn: ${aws_sns_topic.example.arn}
notificationType: Bounce
identity: ${aws_ses_domain_identity.example.domain}
includeOriginalHeaders: true
Create IdentityNotificationTopic Resource
new IdentityNotificationTopic(name: string, args: IdentityNotificationTopicArgs, opts?: CustomResourceOptions);
@overload
def IdentityNotificationTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[str] = None,
include_original_headers: Optional[bool] = None,
notification_type: Optional[str] = None,
topic_arn: Optional[str] = None)
@overload
def IdentityNotificationTopic(resource_name: str,
args: IdentityNotificationTopicArgs,
opts: Optional[ResourceOptions] = None)
func NewIdentityNotificationTopic(ctx *Context, name string, args IdentityNotificationTopicArgs, opts ...ResourceOption) (*IdentityNotificationTopic, error)
public IdentityNotificationTopic(string name, IdentityNotificationTopicArgs args, CustomResourceOptions? opts = null)
public IdentityNotificationTopic(String name, IdentityNotificationTopicArgs args)
public IdentityNotificationTopic(String name, IdentityNotificationTopicArgs args, CustomResourceOptions options)
type: aws:ses:IdentityNotificationTopic
properties: # The arguments to resource properties.
options: # 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.
- resource_name str
- The unique name of the resource.
- args IdentityNotificationTopicArgs
- 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 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.
- name String
- The unique name of the resource.
- args IdentityNotificationTopicArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts 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
orDelivery
.- 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
orDelivery
.- 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
orDelivery
.- 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 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
orDelivery
.- 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
orDelivery
.- 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.
- 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
orDelivery
.- 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.
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 string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up 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): IdentityNotificationTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[str] = None,
include_original_headers: Optional[bool] = None,
notification_type: Optional[str] = None,
topic_arn: Optional[str] = None) -> IdentityNotificationTopic
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)
public static IdentityNotificationTopic get(String name, Output<String> id, IdentityNotificationTopicState 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.
- 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
orDelivery
.- 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
orDelivery
.- 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
orDelivery
.- 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
orDelivery
.- 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
orDelivery
.- topic_
arn str 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
orDelivery
.- topic
Arn String The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to
""
(an empty string) to disable publishing.
Import
In TODO v1.5.0 and later, use an import
block to import Identity Notification Topics using the ID of the record. The ID is made up as IDENTITY|TYPE
where IDENTITY
is the SES Identity and TYPE
is the Notification Type. For exampleterraform import {
to = aws_ses_identity_notification_topic.test
id = “example.com|Bounce” } Using TODO import
, import Identity Notification Topics using the ID of the record. The ID is made up as IDENTITY|TYPE
where IDENTITY
is the SES Identity and TYPE
is the Notification Type. For exampleconsole % TODO import aws_ses_identity_notification_topic.test ’example.com|Bounce'
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.