Struct aws_sdk_iotevents::types::builders::ActionBuilder
source · #[non_exhaustive]pub struct ActionBuilder { /* private fields */ }
Expand description
A builder for Action
.
Implementations§
source§impl ActionBuilder
impl ActionBuilder
sourcepub fn set_variable(self, input: SetVariableAction) -> Self
pub fn set_variable(self, input: SetVariableAction) -> Self
Sets a variable to a specified value.
sourcepub fn set_set_variable(self, input: Option<SetVariableAction>) -> Self
pub fn set_set_variable(self, input: Option<SetVariableAction>) -> Self
Sets a variable to a specified value.
sourcepub fn get_set_variable(&self) -> &Option<SetVariableAction>
pub fn get_set_variable(&self) -> &Option<SetVariableAction>
Sets a variable to a specified value.
sourcepub fn sns(self, input: SnsTopicPublishAction) -> Self
pub fn sns(self, input: SnsTopicPublishAction) -> Self
Sends an Amazon SNS message.
sourcepub fn set_sns(self, input: Option<SnsTopicPublishAction>) -> Self
pub fn set_sns(self, input: Option<SnsTopicPublishAction>) -> Self
Sends an Amazon SNS message.
sourcepub fn get_sns(&self) -> &Option<SnsTopicPublishAction>
pub fn get_sns(&self) -> &Option<SnsTopicPublishAction>
Sends an Amazon SNS message.
sourcepub fn iot_topic_publish(self, input: IotTopicPublishAction) -> Self
pub fn iot_topic_publish(self, input: IotTopicPublishAction) -> Self
Publishes an MQTT message with the given topic to the AWS IoT message broker.
sourcepub fn set_iot_topic_publish(self, input: Option<IotTopicPublishAction>) -> Self
pub fn set_iot_topic_publish(self, input: Option<IotTopicPublishAction>) -> Self
Publishes an MQTT message with the given topic to the AWS IoT message broker.
sourcepub fn get_iot_topic_publish(&self) -> &Option<IotTopicPublishAction>
pub fn get_iot_topic_publish(&self) -> &Option<IotTopicPublishAction>
Publishes an MQTT message with the given topic to the AWS IoT message broker.
sourcepub fn set_timer(self, input: SetTimerAction) -> Self
pub fn set_timer(self, input: SetTimerAction) -> Self
Information needed to set the timer.
sourcepub fn set_set_timer(self, input: Option<SetTimerAction>) -> Self
pub fn set_set_timer(self, input: Option<SetTimerAction>) -> Self
Information needed to set the timer.
sourcepub fn get_set_timer(&self) -> &Option<SetTimerAction>
pub fn get_set_timer(&self) -> &Option<SetTimerAction>
Information needed to set the timer.
sourcepub fn clear_timer(self, input: ClearTimerAction) -> Self
pub fn clear_timer(self, input: ClearTimerAction) -> Self
Information needed to clear the timer.
sourcepub fn set_clear_timer(self, input: Option<ClearTimerAction>) -> Self
pub fn set_clear_timer(self, input: Option<ClearTimerAction>) -> Self
Information needed to clear the timer.
sourcepub fn get_clear_timer(&self) -> &Option<ClearTimerAction>
pub fn get_clear_timer(&self) -> &Option<ClearTimerAction>
Information needed to clear the timer.
sourcepub fn reset_timer(self, input: ResetTimerAction) -> Self
pub fn reset_timer(self, input: ResetTimerAction) -> Self
Information needed to reset the timer.
sourcepub fn set_reset_timer(self, input: Option<ResetTimerAction>) -> Self
pub fn set_reset_timer(self, input: Option<ResetTimerAction>) -> Self
Information needed to reset the timer.
sourcepub fn get_reset_timer(&self) -> &Option<ResetTimerAction>
pub fn get_reset_timer(&self) -> &Option<ResetTimerAction>
Information needed to reset the timer.
sourcepub fn lambda(self, input: LambdaAction) -> Self
pub fn lambda(self, input: LambdaAction) -> Self
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
sourcepub fn set_lambda(self, input: Option<LambdaAction>) -> Self
pub fn set_lambda(self, input: Option<LambdaAction>) -> Self
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
sourcepub fn get_lambda(&self) -> &Option<LambdaAction>
pub fn get_lambda(&self) -> &Option<LambdaAction>
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
sourcepub fn iot_events(self, input: IotEventsAction) -> Self
pub fn iot_events(self, input: IotEventsAction) -> Self
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
sourcepub fn set_iot_events(self, input: Option<IotEventsAction>) -> Self
pub fn set_iot_events(self, input: Option<IotEventsAction>) -> Self
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
sourcepub fn get_iot_events(&self) -> &Option<IotEventsAction>
pub fn get_iot_events(&self) -> &Option<IotEventsAction>
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
sourcepub fn sqs(self, input: SqsAction) -> Self
pub fn sqs(self, input: SqsAction) -> Self
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
sourcepub fn set_sqs(self, input: Option<SqsAction>) -> Self
pub fn set_sqs(self, input: Option<SqsAction>) -> Self
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
sourcepub fn get_sqs(&self) -> &Option<SqsAction>
pub fn get_sqs(&self) -> &Option<SqsAction>
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
sourcepub fn firehose(self, input: FirehoseAction) -> Self
pub fn firehose(self, input: FirehoseAction) -> Self
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
sourcepub fn set_firehose(self, input: Option<FirehoseAction>) -> Self
pub fn set_firehose(self, input: Option<FirehoseAction>) -> Self
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
sourcepub fn get_firehose(&self) -> &Option<FirehoseAction>
pub fn get_firehose(&self) -> &Option<FirehoseAction>
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
sourcepub fn dynamo_db(self, input: DynamoDbAction) -> Self
pub fn dynamo_db(self, input: DynamoDbAction) -> Self
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.
sourcepub fn set_dynamo_db(self, input: Option<DynamoDbAction>) -> Self
pub fn set_dynamo_db(self, input: Option<DynamoDbAction>) -> Self
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.
sourcepub fn get_dynamo_db(&self) -> &Option<DynamoDbAction>
pub fn get_dynamo_db(&self) -> &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.
sourcepub fn dynamo_dbv2(self, input: DynamoDBv2Action) -> Self
pub fn dynamo_dbv2(self, input: DynamoDBv2Action) -> Self
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.
sourcepub fn set_dynamo_dbv2(self, input: Option<DynamoDBv2Action>) -> Self
pub fn set_dynamo_dbv2(self, input: Option<DynamoDBv2Action>) -> Self
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.
sourcepub fn get_dynamo_dbv2(&self) -> &Option<DynamoDBv2Action>
pub fn get_dynamo_dbv2(&self) -> &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.
sourcepub fn iot_site_wise(self, input: IotSiteWiseAction) -> Self
pub fn iot_site_wise(self, input: IotSiteWiseAction) -> Self
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
sourcepub fn set_iot_site_wise(self, input: Option<IotSiteWiseAction>) -> Self
pub fn set_iot_site_wise(self, input: Option<IotSiteWiseAction>) -> Self
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
sourcepub fn get_iot_site_wise(&self) -> &Option<IotSiteWiseAction>
pub fn get_iot_site_wise(&self) -> &Option<IotSiteWiseAction>
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
Trait Implementations§
source§impl Clone for ActionBuilder
impl Clone for ActionBuilder
source§fn clone(&self) -> ActionBuilder
fn clone(&self) -> ActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionBuilder
impl Debug for ActionBuilder
source§impl Default for ActionBuilder
impl Default for ActionBuilder
source§fn default() -> ActionBuilder
fn default() -> ActionBuilder
source§impl PartialEq for ActionBuilder
impl PartialEq for ActionBuilder
source§fn eq(&self, other: &ActionBuilder) -> bool
fn eq(&self, other: &ActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActionBuilder
Auto Trait Implementations§
impl Freeze for ActionBuilder
impl RefUnwindSafe for ActionBuilder
impl Send for ActionBuilder
impl Sync for ActionBuilder
impl Unpin for ActionBuilder
impl UnwindSafe for ActionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more