Class: Aws::GreengrassV2::Types::LambdaEventSource

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb

Overview

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
}

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#topicString

The topic to which to subscribe to receive event messages.

Returns:

  • (String)


2244
2245
2246
2247
2248
2249
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2244

class LambdaEventSource < Struct.new(
  :topic,
  :type)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

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.

Returns:

  • (String)


2244
2245
2246
2247
2248
2249
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2244

class LambdaEventSource < Struct.new(
  :topic,
  :type)
  SENSITIVE = []
  include Aws::Structure
end