IdentityNotificationTopicArgs

data class IdentityNotificationTopicArgs(val identity: Output<String>? = null, val includeOriginalHeaders: Output<Boolean>? = null, val notificationType: Output<String>? = null, val topicArn: Output<String>? = null) : ConvertibleToJava<IdentityNotificationTopicArgs>

Resource for managing SES Identity Notification Topics

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ses.IdentityNotificationTopic("test", {
topicArn: exampleAwsSnsTopic.arn,
notificationType: "Bounce",
identity: example.domain,
includeOriginalHeaders: true,
});
import pulumi
import pulumi_aws as aws
test = aws.ses.IdentityNotificationTopic("test",
topic_arn=example_aws_sns_topic["arn"],
notification_type="Bounce",
identity=example["domain"],
include_original_headers=True)
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 = exampleAwsSnsTopic.Arn,
NotificationType = "Bounce",
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(exampleAwsSnsTopic.Arn),
NotificationType: pulumi.String("Bounce"),
Identity: pulumi.Any(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(exampleAwsSnsTopic.arn())
.notificationType("Bounce")
.identity(example.domain())
.includeOriginalHeaders(true)
.build());
}
}
resources:
test:
type: aws:ses:IdentityNotificationTopic
properties:
topicArn: ${exampleAwsSnsTopic.arn}
notificationType: Bounce
identity: ${example.domain}
includeOriginalHeaders: true

Import

Using pulumi 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 example:

$ pulumi import aws:ses/identityNotificationTopic:IdentityNotificationTopic test 'example.com|Bounce'

Constructors

Link copied to clipboard
constructor(identity: Output<String>? = null, includeOriginalHeaders: Output<Boolean>? = null, notificationType: Output<String>? = null, topicArn: Output<String>? = null)

Properties

Link copied to clipboard
val identity: Output<String>? = null

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).

Link copied to clipboard
val includeOriginalHeaders: Output<Boolean>? = null

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

Link copied to clipboard
val notificationType: Output<String>? = null

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

Link copied to clipboard
val topicArn: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): IdentityNotificationTopicArgs