logo
pub struct Action {
Show 13 fields pub clear_timer: Option<ClearTimerAction>, pub dynamo_db: Option<DynamoDBAction>, pub dynamo_d_bv_2: Option<DynamoDBv2Action>, pub firehose: Option<FirehoseAction>, pub iot_events: Option<IotEventsAction>, pub iot_site_wise: Option<IotSiteWiseAction>, pub iot_topic_publish: Option<IotTopicPublishAction>, pub lambda: Option<LambdaAction>, pub reset_timer: Option<ResetTimerAction>, pub set_timer: Option<SetTimerAction>, pub set_variable: Option<SetVariableAction>, pub sns: Option<SNSTopicPublishAction>, pub sqs: Option<SqsAction>,
}
Expand description

An action to be performed when the condition is TRUE.

Fields

clear_timer: Option<ClearTimerAction>

Information needed to clear the timer.

dynamo_db: Option<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.

dynamo_d_bv_2: Option<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: Option<FirehoseAction>

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

iot_events: Option<IotEventsAction>

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

iot_site_wise: Option<IotSiteWiseAction>

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

iot_topic_publish: Option<IotTopicPublishAction>

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

lambda: Option<LambdaAction>

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

reset_timer: Option<ResetTimerAction>

Information needed to reset the timer.

set_timer: Option<SetTimerAction>

Information needed to set the timer.

set_variable: Option<SetVariableAction>

Sets a variable to a specified value.

sns: Option<SNSTopicPublishAction>

Sends an Amazon SNS message.

sqs: Option<SqsAction>

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more