Show / Hide Table of Contents

SNS Topic Source

See SNS Topic sample for an example of how to use the SNS Topic source.

Syntax

Topic: String|Expression
Filters: JSON

Properties

Filters

The Filters section specifies the filter conditions when subscribing to an SNS topic. See Amazon SNS Filtering for more details.

Required: No

Type: JSON

Topic

The Topic attribute specifies the name of a resource parameter of type AWS::SNS::Topic that the Lambda function subscribes to.

Required: Yes

Type: String or Expression

Examples

Receive all SNS notifications

Sources:
  - Topic: SnsTopic

Receive only the SNS notification that meet the filter condition

Sources:
  - Topic: SnsTopic
    Filters:
      source:
        - shopping-cart
In This Article
Back to top Generated by DocFX