LambdaEventSource - Amazon IoT Greengrass
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

LambdaEventSource

Contains information about an event source for an Amazon Lambda function. The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.

Contents

topic

The topic to which to subscribe to receive event messages.

Type: String

Required: Yes

type

The type of event source. Choose from the following options:

  • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

  • IOT_CORE – Subscribe to Amazon IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

Type: String

Valid Values: PUB_SUB | IOT_CORE

Required: Yes

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: