Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Action = Action' {
- clearTimer :: Maybe ClearTimerAction
- dynamoDB :: Maybe DynamoDBAction
- dynamoDBv2 :: Maybe DynamoDBv2Action
- firehose :: Maybe FirehoseAction
- iotEvents :: Maybe IotEventsAction
- iotSiteWise :: Maybe IotSiteWiseAction
- iotTopicPublish :: Maybe IotTopicPublishAction
- lambda :: Maybe LambdaAction
- resetTimer :: Maybe ResetTimerAction
- setTimer :: Maybe SetTimerAction
- setVariable :: Maybe SetVariableAction
- sns :: Maybe SNSTopicPublishAction
- sqs :: Maybe SqsAction
- newAction :: Action
- action_clearTimer :: Lens' Action (Maybe ClearTimerAction)
- action_dynamoDB :: Lens' Action (Maybe DynamoDBAction)
- action_dynamoDBv2 :: Lens' Action (Maybe DynamoDBv2Action)
- action_firehose :: Lens' Action (Maybe FirehoseAction)
- action_iotEvents :: Lens' Action (Maybe IotEventsAction)
- action_iotSiteWise :: Lens' Action (Maybe IotSiteWiseAction)
- action_iotTopicPublish :: Lens' Action (Maybe IotTopicPublishAction)
- action_lambda :: Lens' Action (Maybe LambdaAction)
- action_resetTimer :: Lens' Action (Maybe ResetTimerAction)
- action_setTimer :: Lens' Action (Maybe SetTimerAction)
- action_setVariable :: Lens' Action (Maybe SetVariableAction)
- action_sns :: Lens' Action (Maybe SNSTopicPublishAction)
- action_sqs :: Lens' Action (Maybe SqsAction)
Documentation
An action to be performed when the condition
is TRUE.
See: newAction
smart constructor.
Action' | |
|
Instances
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.