Amazon IoT Greengrass · JSON Structure

Iot Greengrass Lambda Event Source Structure

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: 2 Required: 2
Edge ComputingIoTLambdaMachine LearningReal-Time Processing

LambdaEventSource is a JSON Structure definition published by Amazon IoT Greengrass, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

topic type

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-greengrass/refs/heads/main/json-structure/iot-greengrass-lambda-event-source-structure.json",
  "name": "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": "<p>The type of event source. Choose from the following options:</p> <ul> <li> <p> <code>PUB_SUB</code> \u2013 Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (<code>+</code> and <code>#</code>) in the event source topic.</p> </li> <li> <p> <code>IOT_CORE</code> \u2013 Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (<code>+</code> and <code>#</code>) in the event source topic.</p> </li> </ul>"
        }
      ]
    }
  },
  "required": [
    "topic",
    "type"
  ]
}