amazonka-iotevents-2.0: Amazon IoT Events SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTEvents.Types.Action

Description

 
Synopsis

Documentation

data Action Source #

An action to be performed when the condition is TRUE.

See: newAction smart constructor.

Constructors

Action' 

Fields

  • clearTimer :: Maybe ClearTimerAction

    Information needed to clear the timer.

  • dynamoDB :: Maybe DynamoDBAction

    Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

  • dynamoDBv2 :: Maybe DynamoDBv2Action

    Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

  • firehose :: Maybe FirehoseAction

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

  • iotEvents :: Maybe IotEventsAction

    Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

  • iotSiteWise :: Maybe IotSiteWiseAction

    Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

  • iotTopicPublish :: Maybe IotTopicPublishAction

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

  • lambda :: Maybe LambdaAction

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

  • resetTimer :: Maybe ResetTimerAction

    Information needed to reset the timer.

  • setTimer :: Maybe SetTimerAction

    Information needed to set the timer.

  • setVariable :: Maybe SetVariableAction

    Sets a variable to a specified value.

  • sns :: Maybe SNSTopicPublishAction

    Sends an Amazon SNS message.

  • sqs :: Maybe SqsAction

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

Instances

Instances details
FromJSON Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

ToJSON Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Generic Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Associated Types

type Rep Action :: Type -> Type #

Methods

from :: Action -> Rep Action x #

to :: Rep Action x -> Action #

Read Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Show Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

NFData Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Methods

rnf :: Action -> () #

Eq Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Methods

(==) :: Action -> Action -> Bool #

(/=) :: Action -> Action -> Bool #

Hashable Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

Methods

hashWithSalt :: Int -> Action -> Int #

hash :: Action -> Int #

type Rep Action Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Action

type Rep Action = D1 ('MetaData "Action" "Amazonka.IoTEvents.Types.Action" "amazonka-iotevents-2.0-6xKaLx5KciSK3LEs0FyRYn" 'False) (C1 ('MetaCons "Action'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clearTimer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClearTimerAction)) :*: (S1 ('MetaSel ('Just "dynamoDB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DynamoDBAction)) :*: S1 ('MetaSel ('Just "dynamoDBv2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DynamoDBv2Action)))) :*: (S1 ('MetaSel ('Just "firehose") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FirehoseAction)) :*: (S1 ('MetaSel ('Just "iotEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IotEventsAction)) :*: S1 ('MetaSel ('Just "iotSiteWise") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IotSiteWiseAction))))) :*: ((S1 ('MetaSel ('Just "iotTopicPublish") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IotTopicPublishAction)) :*: (S1 ('MetaSel ('Just "lambda") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaAction)) :*: S1 ('MetaSel ('Just "resetTimer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResetTimerAction)))) :*: ((S1 ('MetaSel ('Just "setTimer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SetTimerAction)) :*: S1 ('MetaSel ('Just "setVariable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SetVariableAction))) :*: (S1 ('MetaSel ('Just "sns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SNSTopicPublishAction)) :*: S1 ('MetaSel ('Just "sqs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SqsAction)))))))

newAction :: Action Source #

Create a value of Action with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clearTimer:Action', action_clearTimer - Information needed to clear the timer.

$sel:dynamoDB:Action', action_dynamoDB - Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

$sel:dynamoDBv2:Action', action_dynamoDBv2 - Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

$sel:firehose:Action', action_firehose - Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

$sel:iotEvents:Action', action_iotEvents - Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

$sel:iotSiteWise:Action', action_iotSiteWise - Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

$sel:iotTopicPublish:Action', action_iotTopicPublish - Publishes an MQTT message with the given topic to the AWS IoT message broker.

$sel:lambda:Action', action_lambda - Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

$sel:resetTimer:Action', action_resetTimer - Information needed to reset the timer.

$sel:setTimer:Action', action_setTimer - Information needed to set the timer.

$sel:setVariable:Action', action_setVariable - Sets a variable to a specified value.

$sel:sns:Action', action_sns - Sends an Amazon SNS message.

$sel:sqs:Action', action_sqs - Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

action_clearTimer :: Lens' Action (Maybe ClearTimerAction) Source #

Information needed to clear the timer.

action_dynamoDB :: Lens' Action (Maybe DynamoDBAction) Source #

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

action_dynamoDBv2 :: Lens' Action (Maybe DynamoDBv2Action) Source #

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

action_firehose :: Lens' Action (Maybe FirehoseAction) Source #

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

action_iotEvents :: Lens' Action (Maybe IotEventsAction) Source #

Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

action_iotSiteWise :: Lens' Action (Maybe IotSiteWiseAction) Source #

Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

action_iotTopicPublish :: Lens' Action (Maybe IotTopicPublishAction) Source #

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

action_lambda :: Lens' Action (Maybe LambdaAction) Source #

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

action_resetTimer :: Lens' Action (Maybe ResetTimerAction) Source #

Information needed to reset the timer.

action_setTimer :: Lens' Action (Maybe SetTimerAction) Source #

Information needed to set the timer.

action_setVariable :: Lens' Action (Maybe SetVariableAction) Source #

Sets a variable to a specified value.

action_sns :: Lens' Action (Maybe SNSTopicPublishAction) Source #

Sends an Amazon SNS message.

action_sqs :: Lens' Action (Maybe SqsAction) Source #

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