Struct rusoto_iotevents::Action
source · [−]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
sourceimpl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more