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
Filterssection specifies the filter conditions when subscribing to an SNS topic. See Amazon SNS Filtering for more details.Required: No
Type: JSON
Topic-
The
Topicattribute specifies the name of a resource parameter of typeAWS::SNS::Topicthat 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