Class: Aws::IoTEvents::Types::LambdaAction

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

Overview

Note:

When making an API call, you may pass LambdaAction data as a hash:

{
  function_arn: "AmazonResourceName", # required
  payload: {
    content_expression: "ContentExpression", # required
    type: "STRING", # required, accepts STRING, JSON
  },
}

Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#function_arnString

The ARN of the Lambda function that is executed.

Returns:

  • (String)


2490
2491
2492
2493
2494
2495
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 2490

class LambdaAction < Struct.new(
  :function_arn,
  :payload)
  SENSITIVE = []
  include Aws::Structure
end

#payloadTypes::Payload

You can configure the action payload when you send a message to a Lambda function.

Returns:



2490
2491
2492
2493
2494
2495
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 2490

class LambdaAction < Struct.new(
  :function_arn,
  :payload)
  SENSITIVE = []
  include Aws::Structure
end