

# Action
<a name="API_Action"></a>

An action to be performed when the `condition` is TRUE.

## Contents
<a name="API_Action_Contents"></a>

 ** clearTimer **   <a name="iotevents-Type-Action-clearTimer"></a>
Information needed to clear the timer.  
Type: [ClearTimerAction](API_ClearTimerAction.md) object  
Required: No

 ** dynamoDB **   <a name="iotevents-Type-Action-dynamoDB"></a>
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](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in * AWS IoT Events Developer Guide*.  
Type: [DynamoDBAction](API_DynamoDBAction.md) object  
Required: No

 ** dynamoDBv2 **   <a name="iotevents-Type-Action-dynamoDBv2"></a>
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](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in * AWS IoT Events Developer Guide*.  
Type: [DynamoDBv2Action](API_DynamoDBv2Action.md) object  
Required: No

 ** firehose **   <a name="iotevents-Type-Action-firehose"></a>
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.  
Type: [FirehoseAction](API_FirehoseAction.md) object  
Required: No

 ** iotEvents **   <a name="iotevents-Type-Action-iotEvents"></a>
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.  
Type: [IotEventsAction](API_IotEventsAction.md) object  
Required: No

 ** iotSiteWise **   <a name="iotevents-Type-Action-iotSiteWise"></a>
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .  
Type: [IotSiteWiseAction](API_IotSiteWiseAction.md) object  
Required: No

 ** iotTopicPublish **   <a name="iotevents-Type-Action-iotTopicPublish"></a>
Publishes an MQTT message with the given topic to the AWS IoT message broker.  
Type: [IotTopicPublishAction](API_IotTopicPublishAction.md) object  
Required: No

 ** lambda **   <a name="iotevents-Type-Action-lambda"></a>
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.  
Type: [LambdaAction](API_LambdaAction.md) object  
Required: No

 ** resetTimer **   <a name="iotevents-Type-Action-resetTimer"></a>
Information needed to reset the timer.  
Type: [ResetTimerAction](API_ResetTimerAction.md) object  
Required: No

 ** setTimer **   <a name="iotevents-Type-Action-setTimer"></a>
Information needed to set the timer.  
Type: [SetTimerAction](API_SetTimerAction.md) object  
Required: No

 ** setVariable **   <a name="iotevents-Type-Action-setVariable"></a>
Sets a variable to a specified value.  
Type: [SetVariableAction](API_SetVariableAction.md) object  
Required: No

 ** sns **   <a name="iotevents-Type-Action-sns"></a>
Sends an Amazon SNS message.  
Type: [SNSTopicPublishAction](API_SNSTopicPublishAction.md) object  
Required: No

 ** sqs **   <a name="iotevents-Type-Action-sqs"></a>
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.  
Type: [SqsAction](API_SqsAction.md) object  
Required: No

## See Also
<a name="API_Action_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-2018-07-27/Action) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-2018-07-27/Action) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-2018-07-27/Action) 