You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoTEvents::Types::Action

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Action as input to an Aws::Client method, you can use a vanilla Hash:

{
  set_variable: {
    variable_name: "VariableName", # required
    value: "VariableValue", # required
  },
  sns: {
    target_arn: "AmazonResourceName", # required
  },
  iot_topic_publish: {
    mqtt_topic: "MQTTTopic", # required
  },
  set_timer: {
    timer_name: "TimerName", # required
    seconds: 1,
    duration_expression: "VariableValue",
  },
  clear_timer: {
    timer_name: "TimerName", # required
  },
  reset_timer: {
    timer_name: "TimerName", # required
  },
  lambda: {
    function_arn: "AmazonResourceName", # required
  },
  iot_events: {
    input_name: "InputName", # required
  },
  sqs: {
    queue_url: "QueueUrl", # required
    use_base_64: false,
  },
  firehose: {
    delivery_stream_name: "DeliveryStreamName", # required
    separator: "FirehoseSeparator",
  },
}

An action to be performed when the condition is TRUE.

Instance Attribute Summary collapse

Instance Attribute Details

#clear_timerTypes::ClearTimerAction

Information needed to clear the timer.

Returns:

#firehoseTypes::FirehoseAction

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

Returns:

  • (Types::FirehoseAction)

    Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

#iot_eventsTypes::IotEventsAction

Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

Returns:

  • (Types::IotEventsAction)

    Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

#iot_topic_publishTypes::IotTopicPublishAction

Publishes an MQTT message with the given topic to the AWS IoT message broker.

Returns:

#lambdaTypes::LambdaAction

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

Returns:

  • (Types::LambdaAction)

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

#reset_timerTypes::ResetTimerAction

Information needed to reset the timer.

Returns:

#set_timerTypes::SetTimerAction

Information needed to set the timer.

Returns:

#set_variableTypes::SetVariableAction

Sets a variable to a specified value.

Returns:

#snsTypes::SNSTopicPublishAction

Sends an Amazon SNS message.

Returns:

#sqsTypes::SqsAction

Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

Returns:

  • (Types::SqsAction)

    Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.