class Aws::GreengrassV2::Types::LambdaEventSource

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.

@note When making an API call, you may pass LambdaEventSource

data as a hash:

    {
      topic: "TopicString", # required
      type: "PUB_SUB", # required, accepts PUB_SUB, IOT_CORE
    }

@!attribute [rw] topic

The topic to which to subscribe to receive event messages.
@return [String]

@!attribute [rw] 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 Web Services IoT Core MQTT
  messages. This event source type supports MQTT wildcards (`+` and
  `#`) in the event source topic.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/LambdaEventSource AWS API Documentation

Constants

SENSITIVE