Fork me on GitHub

Module sns

@pulumi/aws > sns

Index

sns/getTopic.ts sns/platformApplication.ts sns/smsPreferences.ts sns/topic.ts sns/topicPolicy.ts sns/topicSubscription.ts

class PlatformApplication

Provides an SNS platform application resource

constructor

new PlatformApplication(name: string, args: PlatformApplicationArgs, opts?: pulumi.CustomResourceOptions)

Create a PlatformApplication resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PlatformApplicationState): PlatformApplication

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property arn

public arn: pulumi.Output<string>;

The ARN of the SNS platform application

property eventDeliveryFailureTopicArn

public eventDeliveryFailureTopicArn: pulumi.Output<string | undefined>;

SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure.

property eventEndpointCreatedTopicArn

public eventEndpointCreatedTopicArn: pulumi.Output<string | undefined>;

SNS Topic triggered when a new platform endpoint is added to your platform application.

property eventEndpointDeletedTopicArn

public eventEndpointDeletedTopicArn: pulumi.Output<string | undefined>;

SNS Topic triggered when an existing platform endpoint is deleted from your platform application.

property eventEndpointUpdatedTopicArn

public eventEndpointUpdatedTopicArn: pulumi.Output<string | undefined>;

SNS Topic triggered when an existing platform endpoint is changed from your platform application.

property failureFeedbackRoleArn

public failureFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive failure feedback for this application.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

The friendly name for the SNS platform application

property platform

public platform: pulumi.Output<string>;

The platform that the app is registered with. See [Platform][1] for supported platforms.

property platformCredential

public platformCredential: pulumi.Output<string>;

Application Platform credential. See [Credential][1] for type of credential required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property platformPrincipal

public platformPrincipal: pulumi.Output<string | undefined>;

Application Platform principal. See [Principal][2] for type of principal required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property successFeedbackRoleArn

public successFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive success feedback for this application.

property successFeedbackSampleRate

public successFeedbackSampleRate: pulumi.Output<string | undefined>;

The percentage of success to sample (0-100)

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class SmsPreferences

Provides a way to set SNS SMS preferences.

constructor

new SmsPreferences(name: string, args?: SmsPreferencesArgs, opts?: pulumi.CustomResourceOptions)

Create a SmsPreferences resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SmsPreferencesState): SmsPreferences

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property defaultSenderId

public defaultSenderId: pulumi.Output<string | undefined>;

A string, such as your business brand, that is displayed as the sender on the receiving device.

property defaultSmsType

public defaultSmsType: pulumi.Output<string | undefined>;

The type of SMS message that you will send by default. Possible values are: Promotional, Transactional

property deliveryStatusIamRoleArn

public deliveryStatusIamRoleArn: pulumi.Output<string | undefined>;

The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.

property deliveryStatusSuccessSamplingRate

public deliveryStatusSuccessSamplingRate: pulumi.Output<string | undefined>;

The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property monthlySpendLimit

public monthlySpendLimit: pulumi.Output<string | undefined>;

The maximum amount in USD that you are willing to spend each month to send SMS messages.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property usageReportS3Bucket

public usageReportS3Bucket: pulumi.Output<string | undefined>;

The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.

class Topic

Provides an SNS topic resource

constructor

new Topic(name: string, args?: TopicArgs, opts?: pulumi.CustomResourceOptions)

Create a Topic resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TopicState): Topic

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property applicationFailureFeedbackRoleArn

public applicationFailureFeedbackRoleArn: pulumi.Output<string | undefined>;

IAM role for failure feedback

property applicationSuccessFeedbackRoleArn

public applicationSuccessFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive success feedback for this topic

property applicationSuccessFeedbackSampleRate

public applicationSuccessFeedbackSampleRate: pulumi.Output<number | undefined>;

Percentage of success to sample

property arn

public arn: pulumi.Output<ARN>;

The ARN of the SNS topic, as a more obvious property (clone of id)

property deliveryPolicy

public deliveryPolicy: pulumi.Output<string | undefined>;

The SNS delivery policy. More on AWS documentation

property displayName

public displayName: pulumi.Output<string | undefined>;

The display name for the SNS topic

property httpFailureFeedbackRoleArn

public httpFailureFeedbackRoleArn: pulumi.Output<string | undefined>;

IAM role for failure feedback

property httpSuccessFeedbackRoleArn

public httpSuccessFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive success feedback for this topic

property httpSuccessFeedbackSampleRate

public httpSuccessFeedbackSampleRate: pulumi.Output<number | undefined>;

Percentage of success to sample

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property lambdaFailureFeedbackRoleArn

public lambdaFailureFeedbackRoleArn: pulumi.Output<string | undefined>;

IAM role for failure feedback

property lambdaSuccessFeedbackRoleArn

public lambdaSuccessFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive success feedback for this topic

property lambdaSuccessFeedbackSampleRate

public lambdaSuccessFeedbackSampleRate: pulumi.Output<number | undefined>;

Percentage of success to sample

property name

public name: pulumi.Output<string>;

The friendly name for the SNS topic. By default generated by Terraform.

property namePrefix

public namePrefix: pulumi.Output<string | undefined>;

The friendly name for the SNS topic. Conflicts with name.

property policy

public policy: pulumi.Output<string>;

The fully-formed AWS policy as JSON

property sqsFailureFeedbackRoleArn

public sqsFailureFeedbackRoleArn: pulumi.Output<string | undefined>;

IAM role for failure feedback

property sqsSuccessFeedbackRoleArn

public sqsSuccessFeedbackRoleArn: pulumi.Output<string | undefined>;

The IAM role permitted to receive success feedback for this topic

property sqsSuccessFeedbackSampleRate

public sqsSuccessFeedbackSampleRate: pulumi.Output<number | undefined>;

Percentage of success to sample

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class TopicPolicy

Provides an SNS topic policy resource

~> NOTE: If a Principal is specified as just an AWS account ID rather than an ARN, AWS silently converts it to the ARN for the root user, causing future terraform plans to differ. To avoid this problem, just specify the full ARN, e.g. arn:aws:iam::123456789012:root

constructor

new TopicPolicy(name: string, args: TopicPolicyArgs, opts?: pulumi.CustomResourceOptions)

Create a TopicPolicy resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TopicPolicyState): TopicPolicy

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property arn

public arn: pulumi.Output<string>;

The ARN of the SNS topic

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property policy

public policy: pulumi.Output<string>;

The fully-formed AWS policy as JSON

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class TopicSubscription

Provides a resource for subscribing to SNS topics. Requires that an SNS topic exist for the subscription to attach to. This resource allows you to automatically place messages sent to SNS topics in SQS queues, send them as HTTP(S) POST requests to a given endpoint, send SMS messages, or notify devices / applications. The most likely use case for Terraform users will probably be SQS queues.

~> NOTE: If the SNS topic and SQS queue are in different AWS regions, it is important for the “aws_sns_topic_subscription” to use an AWS provider that is in the same region of the SNS topic. If the “aws_sns_topic_subscription” is using a provider with a different region than the SNS topic, terraform will fail to create the subscription.

~> NOTE: Setup of cross-account subscriptions from SNS topics to SQS queues requires Terraform to have access to BOTH accounts.

~> NOTE: If SNS topic and SQS queue are in different AWS accounts but the same region it is important for the “aws_sns_topic_subscription” to use the AWS provider of the account with the SQS queue. If “aws_sns_topic_subscription” is using a Provider with a different account than the SNS topic, terraform creates the subscriptions but does not keep state and tries to re-create the subscription at every apply.

~> NOTE: If SNS topic and SQS queue are in different AWS accounts and different AWS regions it is important to recognize that the subscription needs to be initiated from the account with the SQS queue but in the region of the SNS topic.

constructor

new TopicSubscription(name: string, args: TopicSubscriptionArgs, opts?: pulumi.CustomResourceOptions)

Create a TopicSubscription resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TopicSubscriptionState): TopicSubscription

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property arn

public arn: pulumi.Output<string>;

The ARN of the subscription stored as a more user-friendly property

property confirmationTimeoutInMinutes

public confirmationTimeoutInMinutes: pulumi.Output<number | undefined>;

Integer indicating number of minutes to wait in retying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols (default is 1 minute).

property deliveryPolicy

public deliveryPolicy: pulumi.Output<string | undefined>;

property endpoint

public endpoint: pulumi.Output<string>;

The endpoint to send data to, the contents will vary with the protocol. (see below for more information)

property endpointAutoConfirms

public endpointAutoConfirms: pulumi.Output<boolean | undefined>;

Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty (default is false)

property filterPolicy

public filterPolicy: pulumi.Output<string | undefined>;

The text of a filter policy to the topic subscription.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property protocol

public protocol: pulumi.Output<string>;

The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially supported, see below) (email is option but unsupported, see below).

property rawMessageDelivery

public rawMessageDelivery: pulumi.Output<boolean | undefined>;

Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property) (default is false).

property topic

public topic: pulumi.Output<Topic>;

The ARN of the SNS topic to subscribe to

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

function getTopic

getTopic(args: GetTopicArgs, opts?: pulumi.InvokeOptions): Promise<GetTopicResult>

Use this data source to get the ARN of a topic in AWS Simple Notification Service (SNS). By using this data source, you can reference SNS topics without having to hard code the ARNs as input.

interface GetTopicArgs

A collection of arguments for invoking getTopic.

property name

name: string;

The friendly name of the topic to match.

interface GetTopicResult

A collection of values returned by getTopic.

property arn

arn: string;

Set to the ARN of the found topic, suitable for referencing in other resources that support SNS topics.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

interface PlatformApplicationArgs

The set of arguments for constructing a PlatformApplication resource.

property eventDeliveryFailureTopicArn

eventDeliveryFailureTopicArn?: pulumi.Input<string>;

SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure.

property eventEndpointCreatedTopicArn

eventEndpointCreatedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when a new platform endpoint is added to your platform application.

property eventEndpointDeletedTopicArn

eventEndpointDeletedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when an existing platform endpoint is deleted from your platform application.

property eventEndpointUpdatedTopicArn

eventEndpointUpdatedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when an existing platform endpoint is changed from your platform application.

property failureFeedbackRoleArn

failureFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive failure feedback for this application.

property name

name?: pulumi.Input<string>;

The friendly name for the SNS platform application

property platform

platform: pulumi.Input<string>;

The platform that the app is registered with. See [Platform][1] for supported platforms.

property platformCredential

platformCredential: pulumi.Input<string>;

Application Platform credential. See [Credential][1] for type of credential required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property platformPrincipal

platformPrincipal?: pulumi.Input<string>;

Application Platform principal. See [Principal][2] for type of principal required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property successFeedbackRoleArn

successFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this application.

property successFeedbackSampleRate

successFeedbackSampleRate?: pulumi.Input<string>;

The percentage of success to sample (0-100)

interface PlatformApplicationState

Input properties used for looking up and filtering PlatformApplication resources.

property arn

arn?: pulumi.Input<string>;

The ARN of the SNS platform application

property eventDeliveryFailureTopicArn

eventDeliveryFailureTopicArn?: pulumi.Input<string>;

SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure.

property eventEndpointCreatedTopicArn

eventEndpointCreatedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when a new platform endpoint is added to your platform application.

property eventEndpointDeletedTopicArn

eventEndpointDeletedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when an existing platform endpoint is deleted from your platform application.

property eventEndpointUpdatedTopicArn

eventEndpointUpdatedTopicArn?: pulumi.Input<string>;

SNS Topic triggered when an existing platform endpoint is changed from your platform application.

property failureFeedbackRoleArn

failureFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive failure feedback for this application.

property name

name?: pulumi.Input<string>;

The friendly name for the SNS platform application

property platform

platform?: pulumi.Input<string>;

The platform that the app is registered with. See [Platform][1] for supported platforms.

property platformCredential

platformCredential?: pulumi.Input<string>;

Application Platform credential. See [Credential][1] for type of credential required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property platformPrincipal

platformPrincipal?: pulumi.Input<string>;

Application Platform principal. See [Principal][2] for type of principal required for platform. The value of this attribute when stored into the Terraform state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

property successFeedbackRoleArn

successFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this application.

property successFeedbackSampleRate

successFeedbackSampleRate?: pulumi.Input<string>;

The percentage of success to sample (0-100)

interface SmsPreferencesArgs

The set of arguments for constructing a SmsPreferences resource.

property defaultSenderId

defaultSenderId?: pulumi.Input<string>;

A string, such as your business brand, that is displayed as the sender on the receiving device.

property defaultSmsType

defaultSmsType?: pulumi.Input<string>;

The type of SMS message that you will send by default. Possible values are: Promotional, Transactional

property deliveryStatusIamRoleArn

deliveryStatusIamRoleArn?: pulumi.Input<string>;

The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.

property deliveryStatusSuccessSamplingRate

deliveryStatusSuccessSamplingRate?: pulumi.Input<string>;

The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.

property monthlySpendLimit

monthlySpendLimit?: pulumi.Input<string>;

The maximum amount in USD that you are willing to spend each month to send SMS messages.

property usageReportS3Bucket

usageReportS3Bucket?: pulumi.Input<string>;

The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.

interface SmsPreferencesState

Input properties used for looking up and filtering SmsPreferences resources.

property defaultSenderId

defaultSenderId?: pulumi.Input<string>;

A string, such as your business brand, that is displayed as the sender on the receiving device.

property defaultSmsType

defaultSmsType?: pulumi.Input<string>;

The type of SMS message that you will send by default. Possible values are: Promotional, Transactional

property deliveryStatusIamRoleArn

deliveryStatusIamRoleArn?: pulumi.Input<string>;

The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.

property deliveryStatusSuccessSamplingRate

deliveryStatusSuccessSamplingRate?: pulumi.Input<string>;

The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.

property monthlySpendLimit

monthlySpendLimit?: pulumi.Input<string>;

The maximum amount in USD that you are willing to spend each month to send SMS messages.

property usageReportS3Bucket

usageReportS3Bucket?: pulumi.Input<string>;

The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.

interface TopicArgs

The set of arguments for constructing a Topic resource.

property applicationFailureFeedbackRoleArn

applicationFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property applicationSuccessFeedbackRoleArn

applicationSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property applicationSuccessFeedbackSampleRate

applicationSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property deliveryPolicy

deliveryPolicy?: pulumi.Input<string>;

The SNS delivery policy. More on AWS documentation

property displayName

displayName?: pulumi.Input<string>;

The display name for the SNS topic

property httpFailureFeedbackRoleArn

httpFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property httpSuccessFeedbackRoleArn

httpSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property httpSuccessFeedbackSampleRate

httpSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property lambdaFailureFeedbackRoleArn

lambdaFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property lambdaSuccessFeedbackRoleArn

lambdaSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property lambdaSuccessFeedbackSampleRate

lambdaSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property name

name?: pulumi.Input<string>;

The friendly name for the SNS topic. By default generated by Terraform.

property namePrefix

namePrefix?: pulumi.Input<string>;

The friendly name for the SNS topic. Conflicts with name.

property policy

policy?: pulumi.Input<string>;

The fully-formed AWS policy as JSON

property sqsFailureFeedbackRoleArn

sqsFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property sqsSuccessFeedbackRoleArn

sqsSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property sqsSuccessFeedbackSampleRate

sqsSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

interface TopicPolicyArgs

The set of arguments for constructing a TopicPolicy resource.

property arn

arn: pulumi.Input<string>;

The ARN of the SNS topic

property policy

policy: pulumi.Input<string>;

The fully-formed AWS policy as JSON

interface TopicPolicyState

Input properties used for looking up and filtering TopicPolicy resources.

property arn

arn?: pulumi.Input<string>;

The ARN of the SNS topic

property policy

policy?: pulumi.Input<string>;

The fully-formed AWS policy as JSON

interface TopicState

Input properties used for looking up and filtering Topic resources.

property applicationFailureFeedbackRoleArn

applicationFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property applicationSuccessFeedbackRoleArn

applicationSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property applicationSuccessFeedbackSampleRate

applicationSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property arn

arn?: pulumi.Input<ARN>;

The ARN of the SNS topic, as a more obvious property (clone of id)

property deliveryPolicy

deliveryPolicy?: pulumi.Input<string>;

The SNS delivery policy. More on AWS documentation

property displayName

displayName?: pulumi.Input<string>;

The display name for the SNS topic

property httpFailureFeedbackRoleArn

httpFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property httpSuccessFeedbackRoleArn

httpSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property httpSuccessFeedbackSampleRate

httpSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property lambdaFailureFeedbackRoleArn

lambdaFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property lambdaSuccessFeedbackRoleArn

lambdaSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property lambdaSuccessFeedbackSampleRate

lambdaSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

property name

name?: pulumi.Input<string>;

The friendly name for the SNS topic. By default generated by Terraform.

property namePrefix

namePrefix?: pulumi.Input<string>;

The friendly name for the SNS topic. Conflicts with name.

property policy

policy?: pulumi.Input<string>;

The fully-formed AWS policy as JSON

property sqsFailureFeedbackRoleArn

sqsFailureFeedbackRoleArn?: pulumi.Input<string>;

IAM role for failure feedback

property sqsSuccessFeedbackRoleArn

sqsSuccessFeedbackRoleArn?: pulumi.Input<string>;

The IAM role permitted to receive success feedback for this topic

property sqsSuccessFeedbackSampleRate

sqsSuccessFeedbackSampleRate?: pulumi.Input<number>;

Percentage of success to sample

interface TopicSubscriptionArgs

The set of arguments for constructing a TopicSubscription resource.

property confirmationTimeoutInMinutes

confirmationTimeoutInMinutes?: pulumi.Input<number>;

Integer indicating number of minutes to wait in retying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols (default is 1 minute).

property deliveryPolicy

deliveryPolicy?: pulumi.Input<string>;

property endpoint

endpoint: pulumi.Input<string>;

The endpoint to send data to, the contents will vary with the protocol. (see below for more information)

property endpointAutoConfirms

endpointAutoConfirms?: pulumi.Input<boolean>;

Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty (default is false)

property filterPolicy

filterPolicy?: pulumi.Input<string>;

The text of a filter policy to the topic subscription.

property protocol

protocol: pulumi.Input<string>;

The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially supported, see below) (email is option but unsupported, see below).

property rawMessageDelivery

rawMessageDelivery?: pulumi.Input<boolean>;

Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property) (default is false).

property topic

topic: pulumi.Input<Topic>;

The ARN of the SNS topic to subscribe to

interface TopicSubscriptionState

Input properties used for looking up and filtering TopicSubscription resources.

property arn

arn?: pulumi.Input<string>;

The ARN of the subscription stored as a more user-friendly property

property confirmationTimeoutInMinutes

confirmationTimeoutInMinutes?: pulumi.Input<number>;

Integer indicating number of minutes to wait in retying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols (default is 1 minute).

property deliveryPolicy

deliveryPolicy?: pulumi.Input<string>;

property endpoint

endpoint?: pulumi.Input<string>;

The endpoint to send data to, the contents will vary with the protocol. (see below for more information)

property endpointAutoConfirms

endpointAutoConfirms?: pulumi.Input<boolean>;

Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty (default is false)

property filterPolicy

filterPolicy?: pulumi.Input<string>;

The text of a filter policy to the topic subscription.

property protocol

protocol?: pulumi.Input<string>;

The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially supported, see below) (email is option but unsupported, see below).

property rawMessageDelivery

rawMessageDelivery?: pulumi.Input<boolean>;

Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property) (default is false).

property topic

topic?: pulumi.Input<Topic>;

The ARN of the SNS topic to subscribe to