{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-greengrass/refs/heads/main/json-schema/iot-greengrass-lambda-event-source-schema.json", "title": "LambdaEventSource", "description": "Contains information about an event source for an Lambda function. The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.", "type": "object", "properties": { "topic": { "allOf": [ { "$ref": "#/components/schemas/TopicString" }, { "description": "The topic to which to subscribe to receive event messages." } ] }, "type": { "allOf": [ { "$ref": "#/components/schemas/LambdaEventSourceType" }, { "description": "

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

" } ] } }, "required": [ "topic", "type" ] }