aws-sdk-iot 1.112.0

AWS SDK for AWS IoT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes the actions associated with a rule.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Action {
    /// <p>Write to a DynamoDB table.</p>
    pub dynamo_db: ::std::option::Option<crate::types::DynamoDbAction>,
    /// <p>Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.</p>
    pub dynamo_dbv2: ::std::option::Option<crate::types::DynamoDBv2Action>,
    /// <p>Invoke a Lambda function.</p>
    pub lambda: ::std::option::Option<crate::types::LambdaAction>,
    /// <p>Publish to an Amazon SNS topic.</p>
    pub sns: ::std::option::Option<crate::types::SnsAction>,
    /// <p>Publish to an Amazon SQS queue.</p>
    pub sqs: ::std::option::Option<crate::types::SqsAction>,
    /// <p>Write data to an Amazon Kinesis stream.</p>
    pub kinesis: ::std::option::Option<crate::types::KinesisAction>,
    /// <p>Publish to another MQTT topic.</p>
    pub republish: ::std::option::Option<crate::types::RepublishAction>,
    /// <p>Write to an Amazon S3 bucket.</p>
    pub s3: ::std::option::Option<crate::types::S3Action>,
    /// <p>Write to an Amazon Kinesis Firehose stream.</p>
    pub firehose: ::std::option::Option<crate::types::FirehoseAction>,
    /// <p>Capture a CloudWatch metric.</p>
    pub cloudwatch_metric: ::std::option::Option<crate::types::CloudwatchMetricAction>,
    /// <p>Change the state of a CloudWatch alarm.</p>
    pub cloudwatch_alarm: ::std::option::Option<crate::types::CloudwatchAlarmAction>,
    /// <p>Send data to CloudWatch Logs.</p>
    pub cloudwatch_logs: ::std::option::Option<crate::types::CloudwatchLogsAction>,
    /// <p>Write data to an Amazon OpenSearch Service domain.</p><note>
    /// <p>The <code>Elasticsearch</code> action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the <code>OpenSearch</code> rule action instead. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html">OpenSearchAction</a>.</p>
    /// </note>
    pub elasticsearch: ::std::option::Option<crate::types::ElasticsearchAction>,
    /// <p>Send a message to a Salesforce IoT Cloud Input Stream.</p>
    pub salesforce: ::std::option::Option<crate::types::SalesforceAction>,
    /// <p>Sends message data to an IoT Analytics channel.</p>
    pub iot_analytics: ::std::option::Option<crate::types::IotAnalyticsAction>,
    /// <p>Sends an input to an IoT Events detector.</p>
    pub iot_events: ::std::option::Option<crate::types::IotEventsAction>,
    /// <p>Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.</p>
    pub iot_site_wise: ::std::option::Option<crate::types::IotSiteWiseAction>,
    /// <p>Starts execution of a Step Functions state machine.</p>
    pub step_functions: ::std::option::Option<crate::types::StepFunctionsAction>,
    /// <p>The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html">Timestream</a> topic rule action documentation.</p>
    pub timestream: ::std::option::Option<crate::types::TimestreamAction>,
    /// <p>Send data to an HTTPS endpoint.</p>
    pub http: ::std::option::Option<crate::types::HttpAction>,
    /// <p>Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.</p>
    pub kafka: ::std::option::Option<crate::types::KafkaAction>,
    /// <p>Write data to an Amazon OpenSearch Service domain.</p>
    pub open_search: ::std::option::Option<crate::types::OpenSearchAction>,
    /// <p>The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.</p>
    pub location: ::std::option::Option<crate::types::LocationAction>,
}
impl Action {
    /// <p>Write to a DynamoDB table.</p>
    pub fn dynamo_db(&self) -> ::std::option::Option<&crate::types::DynamoDbAction> {
        self.dynamo_db.as_ref()
    }
    /// <p>Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.</p>
    pub fn dynamo_dbv2(&self) -> ::std::option::Option<&crate::types::DynamoDBv2Action> {
        self.dynamo_dbv2.as_ref()
    }
    /// <p>Invoke a Lambda function.</p>
    pub fn lambda(&self) -> ::std::option::Option<&crate::types::LambdaAction> {
        self.lambda.as_ref()
    }
    /// <p>Publish to an Amazon SNS topic.</p>
    pub fn sns(&self) -> ::std::option::Option<&crate::types::SnsAction> {
        self.sns.as_ref()
    }
    /// <p>Publish to an Amazon SQS queue.</p>
    pub fn sqs(&self) -> ::std::option::Option<&crate::types::SqsAction> {
        self.sqs.as_ref()
    }
    /// <p>Write data to an Amazon Kinesis stream.</p>
    pub fn kinesis(&self) -> ::std::option::Option<&crate::types::KinesisAction> {
        self.kinesis.as_ref()
    }
    /// <p>Publish to another MQTT topic.</p>
    pub fn republish(&self) -> ::std::option::Option<&crate::types::RepublishAction> {
        self.republish.as_ref()
    }
    /// <p>Write to an Amazon S3 bucket.</p>
    pub fn s3(&self) -> ::std::option::Option<&crate::types::S3Action> {
        self.s3.as_ref()
    }
    /// <p>Write to an Amazon Kinesis Firehose stream.</p>
    pub fn firehose(&self) -> ::std::option::Option<&crate::types::FirehoseAction> {
        self.firehose.as_ref()
    }
    /// <p>Capture a CloudWatch metric.</p>
    pub fn cloudwatch_metric(&self) -> ::std::option::Option<&crate::types::CloudwatchMetricAction> {
        self.cloudwatch_metric.as_ref()
    }
    /// <p>Change the state of a CloudWatch alarm.</p>
    pub fn cloudwatch_alarm(&self) -> ::std::option::Option<&crate::types::CloudwatchAlarmAction> {
        self.cloudwatch_alarm.as_ref()
    }
    /// <p>Send data to CloudWatch Logs.</p>
    pub fn cloudwatch_logs(&self) -> ::std::option::Option<&crate::types::CloudwatchLogsAction> {
        self.cloudwatch_logs.as_ref()
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p><note>
    /// <p>The <code>Elasticsearch</code> action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the <code>OpenSearch</code> rule action instead. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html">OpenSearchAction</a>.</p>
    /// </note>
    pub fn elasticsearch(&self) -> ::std::option::Option<&crate::types::ElasticsearchAction> {
        self.elasticsearch.as_ref()
    }
    /// <p>Send a message to a Salesforce IoT Cloud Input Stream.</p>
    pub fn salesforce(&self) -> ::std::option::Option<&crate::types::SalesforceAction> {
        self.salesforce.as_ref()
    }
    /// <p>Sends message data to an IoT Analytics channel.</p>
    pub fn iot_analytics(&self) -> ::std::option::Option<&crate::types::IotAnalyticsAction> {
        self.iot_analytics.as_ref()
    }
    /// <p>Sends an input to an IoT Events detector.</p>
    pub fn iot_events(&self) -> ::std::option::Option<&crate::types::IotEventsAction> {
        self.iot_events.as_ref()
    }
    /// <p>Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.</p>
    pub fn iot_site_wise(&self) -> ::std::option::Option<&crate::types::IotSiteWiseAction> {
        self.iot_site_wise.as_ref()
    }
    /// <p>Starts execution of a Step Functions state machine.</p>
    pub fn step_functions(&self) -> ::std::option::Option<&crate::types::StepFunctionsAction> {
        self.step_functions.as_ref()
    }
    /// <p>The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html">Timestream</a> topic rule action documentation.</p>
    pub fn timestream(&self) -> ::std::option::Option<&crate::types::TimestreamAction> {
        self.timestream.as_ref()
    }
    /// <p>Send data to an HTTPS endpoint.</p>
    pub fn http(&self) -> ::std::option::Option<&crate::types::HttpAction> {
        self.http.as_ref()
    }
    /// <p>Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.</p>
    pub fn kafka(&self) -> ::std::option::Option<&crate::types::KafkaAction> {
        self.kafka.as_ref()
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p>
    pub fn open_search(&self) -> ::std::option::Option<&crate::types::OpenSearchAction> {
        self.open_search.as_ref()
    }
    /// <p>The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.</p>
    pub fn location(&self) -> ::std::option::Option<&crate::types::LocationAction> {
        self.location.as_ref()
    }
}
impl Action {
    /// Creates a new builder-style object to manufacture [`Action`](crate::types::Action).
    pub fn builder() -> crate::types::builders::ActionBuilder {
        crate::types::builders::ActionBuilder::default()
    }
}

/// A builder for [`Action`](crate::types::Action).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ActionBuilder {
    pub(crate) dynamo_db: ::std::option::Option<crate::types::DynamoDbAction>,
    pub(crate) dynamo_dbv2: ::std::option::Option<crate::types::DynamoDBv2Action>,
    pub(crate) lambda: ::std::option::Option<crate::types::LambdaAction>,
    pub(crate) sns: ::std::option::Option<crate::types::SnsAction>,
    pub(crate) sqs: ::std::option::Option<crate::types::SqsAction>,
    pub(crate) kinesis: ::std::option::Option<crate::types::KinesisAction>,
    pub(crate) republish: ::std::option::Option<crate::types::RepublishAction>,
    pub(crate) s3: ::std::option::Option<crate::types::S3Action>,
    pub(crate) firehose: ::std::option::Option<crate::types::FirehoseAction>,
    pub(crate) cloudwatch_metric: ::std::option::Option<crate::types::CloudwatchMetricAction>,
    pub(crate) cloudwatch_alarm: ::std::option::Option<crate::types::CloudwatchAlarmAction>,
    pub(crate) cloudwatch_logs: ::std::option::Option<crate::types::CloudwatchLogsAction>,
    pub(crate) elasticsearch: ::std::option::Option<crate::types::ElasticsearchAction>,
    pub(crate) salesforce: ::std::option::Option<crate::types::SalesforceAction>,
    pub(crate) iot_analytics: ::std::option::Option<crate::types::IotAnalyticsAction>,
    pub(crate) iot_events: ::std::option::Option<crate::types::IotEventsAction>,
    pub(crate) iot_site_wise: ::std::option::Option<crate::types::IotSiteWiseAction>,
    pub(crate) step_functions: ::std::option::Option<crate::types::StepFunctionsAction>,
    pub(crate) timestream: ::std::option::Option<crate::types::TimestreamAction>,
    pub(crate) http: ::std::option::Option<crate::types::HttpAction>,
    pub(crate) kafka: ::std::option::Option<crate::types::KafkaAction>,
    pub(crate) open_search: ::std::option::Option<crate::types::OpenSearchAction>,
    pub(crate) location: ::std::option::Option<crate::types::LocationAction>,
}
impl ActionBuilder {
    /// <p>Write to a DynamoDB table.</p>
    pub fn dynamo_db(mut self, input: crate::types::DynamoDbAction) -> Self {
        self.dynamo_db = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write to a DynamoDB table.</p>
    pub fn set_dynamo_db(mut self, input: ::std::option::Option<crate::types::DynamoDbAction>) -> Self {
        self.dynamo_db = input;
        self
    }
    /// <p>Write to a DynamoDB table.</p>
    pub fn get_dynamo_db(&self) -> &::std::option::Option<crate::types::DynamoDbAction> {
        &self.dynamo_db
    }
    /// <p>Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.</p>
    pub fn dynamo_dbv2(mut self, input: crate::types::DynamoDBv2Action) -> Self {
        self.dynamo_dbv2 = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.</p>
    pub fn set_dynamo_dbv2(mut self, input: ::std::option::Option<crate::types::DynamoDBv2Action>) -> Self {
        self.dynamo_dbv2 = input;
        self
    }
    /// <p>Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.</p>
    pub fn get_dynamo_dbv2(&self) -> &::std::option::Option<crate::types::DynamoDBv2Action> {
        &self.dynamo_dbv2
    }
    /// <p>Invoke a Lambda function.</p>
    pub fn lambda(mut self, input: crate::types::LambdaAction) -> Self {
        self.lambda = ::std::option::Option::Some(input);
        self
    }
    /// <p>Invoke a Lambda function.</p>
    pub fn set_lambda(mut self, input: ::std::option::Option<crate::types::LambdaAction>) -> Self {
        self.lambda = input;
        self
    }
    /// <p>Invoke a Lambda function.</p>
    pub fn get_lambda(&self) -> &::std::option::Option<crate::types::LambdaAction> {
        &self.lambda
    }
    /// <p>Publish to an Amazon SNS topic.</p>
    pub fn sns(mut self, input: crate::types::SnsAction) -> Self {
        self.sns = ::std::option::Option::Some(input);
        self
    }
    /// <p>Publish to an Amazon SNS topic.</p>
    pub fn set_sns(mut self, input: ::std::option::Option<crate::types::SnsAction>) -> Self {
        self.sns = input;
        self
    }
    /// <p>Publish to an Amazon SNS topic.</p>
    pub fn get_sns(&self) -> &::std::option::Option<crate::types::SnsAction> {
        &self.sns
    }
    /// <p>Publish to an Amazon SQS queue.</p>
    pub fn sqs(mut self, input: crate::types::SqsAction) -> Self {
        self.sqs = ::std::option::Option::Some(input);
        self
    }
    /// <p>Publish to an Amazon SQS queue.</p>
    pub fn set_sqs(mut self, input: ::std::option::Option<crate::types::SqsAction>) -> Self {
        self.sqs = input;
        self
    }
    /// <p>Publish to an Amazon SQS queue.</p>
    pub fn get_sqs(&self) -> &::std::option::Option<crate::types::SqsAction> {
        &self.sqs
    }
    /// <p>Write data to an Amazon Kinesis stream.</p>
    pub fn kinesis(mut self, input: crate::types::KinesisAction) -> Self {
        self.kinesis = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write data to an Amazon Kinesis stream.</p>
    pub fn set_kinesis(mut self, input: ::std::option::Option<crate::types::KinesisAction>) -> Self {
        self.kinesis = input;
        self
    }
    /// <p>Write data to an Amazon Kinesis stream.</p>
    pub fn get_kinesis(&self) -> &::std::option::Option<crate::types::KinesisAction> {
        &self.kinesis
    }
    /// <p>Publish to another MQTT topic.</p>
    pub fn republish(mut self, input: crate::types::RepublishAction) -> Self {
        self.republish = ::std::option::Option::Some(input);
        self
    }
    /// <p>Publish to another MQTT topic.</p>
    pub fn set_republish(mut self, input: ::std::option::Option<crate::types::RepublishAction>) -> Self {
        self.republish = input;
        self
    }
    /// <p>Publish to another MQTT topic.</p>
    pub fn get_republish(&self) -> &::std::option::Option<crate::types::RepublishAction> {
        &self.republish
    }
    /// <p>Write to an Amazon S3 bucket.</p>
    pub fn s3(mut self, input: crate::types::S3Action) -> Self {
        self.s3 = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write to an Amazon S3 bucket.</p>
    pub fn set_s3(mut self, input: ::std::option::Option<crate::types::S3Action>) -> Self {
        self.s3 = input;
        self
    }
    /// <p>Write to an Amazon S3 bucket.</p>
    pub fn get_s3(&self) -> &::std::option::Option<crate::types::S3Action> {
        &self.s3
    }
    /// <p>Write to an Amazon Kinesis Firehose stream.</p>
    pub fn firehose(mut self, input: crate::types::FirehoseAction) -> Self {
        self.firehose = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write to an Amazon Kinesis Firehose stream.</p>
    pub fn set_firehose(mut self, input: ::std::option::Option<crate::types::FirehoseAction>) -> Self {
        self.firehose = input;
        self
    }
    /// <p>Write to an Amazon Kinesis Firehose stream.</p>
    pub fn get_firehose(&self) -> &::std::option::Option<crate::types::FirehoseAction> {
        &self.firehose
    }
    /// <p>Capture a CloudWatch metric.</p>
    pub fn cloudwatch_metric(mut self, input: crate::types::CloudwatchMetricAction) -> Self {
        self.cloudwatch_metric = ::std::option::Option::Some(input);
        self
    }
    /// <p>Capture a CloudWatch metric.</p>
    pub fn set_cloudwatch_metric(mut self, input: ::std::option::Option<crate::types::CloudwatchMetricAction>) -> Self {
        self.cloudwatch_metric = input;
        self
    }
    /// <p>Capture a CloudWatch metric.</p>
    pub fn get_cloudwatch_metric(&self) -> &::std::option::Option<crate::types::CloudwatchMetricAction> {
        &self.cloudwatch_metric
    }
    /// <p>Change the state of a CloudWatch alarm.</p>
    pub fn cloudwatch_alarm(mut self, input: crate::types::CloudwatchAlarmAction) -> Self {
        self.cloudwatch_alarm = ::std::option::Option::Some(input);
        self
    }
    /// <p>Change the state of a CloudWatch alarm.</p>
    pub fn set_cloudwatch_alarm(mut self, input: ::std::option::Option<crate::types::CloudwatchAlarmAction>) -> Self {
        self.cloudwatch_alarm = input;
        self
    }
    /// <p>Change the state of a CloudWatch alarm.</p>
    pub fn get_cloudwatch_alarm(&self) -> &::std::option::Option<crate::types::CloudwatchAlarmAction> {
        &self.cloudwatch_alarm
    }
    /// <p>Send data to CloudWatch Logs.</p>
    pub fn cloudwatch_logs(mut self, input: crate::types::CloudwatchLogsAction) -> Self {
        self.cloudwatch_logs = ::std::option::Option::Some(input);
        self
    }
    /// <p>Send data to CloudWatch Logs.</p>
    pub fn set_cloudwatch_logs(mut self, input: ::std::option::Option<crate::types::CloudwatchLogsAction>) -> Self {
        self.cloudwatch_logs = input;
        self
    }
    /// <p>Send data to CloudWatch Logs.</p>
    pub fn get_cloudwatch_logs(&self) -> &::std::option::Option<crate::types::CloudwatchLogsAction> {
        &self.cloudwatch_logs
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p><note>
    /// <p>The <code>Elasticsearch</code> action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the <code>OpenSearch</code> rule action instead. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html">OpenSearchAction</a>.</p>
    /// </note>
    pub fn elasticsearch(mut self, input: crate::types::ElasticsearchAction) -> Self {
        self.elasticsearch = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p><note>
    /// <p>The <code>Elasticsearch</code> action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the <code>OpenSearch</code> rule action instead. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html">OpenSearchAction</a>.</p>
    /// </note>
    pub fn set_elasticsearch(mut self, input: ::std::option::Option<crate::types::ElasticsearchAction>) -> Self {
        self.elasticsearch = input;
        self
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p><note>
    /// <p>The <code>Elasticsearch</code> action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the <code>OpenSearch</code> rule action instead. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html">OpenSearchAction</a>.</p>
    /// </note>
    pub fn get_elasticsearch(&self) -> &::std::option::Option<crate::types::ElasticsearchAction> {
        &self.elasticsearch
    }
    /// <p>Send a message to a Salesforce IoT Cloud Input Stream.</p>
    pub fn salesforce(mut self, input: crate::types::SalesforceAction) -> Self {
        self.salesforce = ::std::option::Option::Some(input);
        self
    }
    /// <p>Send a message to a Salesforce IoT Cloud Input Stream.</p>
    pub fn set_salesforce(mut self, input: ::std::option::Option<crate::types::SalesforceAction>) -> Self {
        self.salesforce = input;
        self
    }
    /// <p>Send a message to a Salesforce IoT Cloud Input Stream.</p>
    pub fn get_salesforce(&self) -> &::std::option::Option<crate::types::SalesforceAction> {
        &self.salesforce
    }
    /// <p>Sends message data to an IoT Analytics channel.</p>
    pub fn iot_analytics(mut self, input: crate::types::IotAnalyticsAction) -> Self {
        self.iot_analytics = ::std::option::Option::Some(input);
        self
    }
    /// <p>Sends message data to an IoT Analytics channel.</p>
    pub fn set_iot_analytics(mut self, input: ::std::option::Option<crate::types::IotAnalyticsAction>) -> Self {
        self.iot_analytics = input;
        self
    }
    /// <p>Sends message data to an IoT Analytics channel.</p>
    pub fn get_iot_analytics(&self) -> &::std::option::Option<crate::types::IotAnalyticsAction> {
        &self.iot_analytics
    }
    /// <p>Sends an input to an IoT Events detector.</p>
    pub fn iot_events(mut self, input: crate::types::IotEventsAction) -> Self {
        self.iot_events = ::std::option::Option::Some(input);
        self
    }
    /// <p>Sends an input to an IoT Events detector.</p>
    pub fn set_iot_events(mut self, input: ::std::option::Option<crate::types::IotEventsAction>) -> Self {
        self.iot_events = input;
        self
    }
    /// <p>Sends an input to an IoT Events detector.</p>
    pub fn get_iot_events(&self) -> &::std::option::Option<crate::types::IotEventsAction> {
        &self.iot_events
    }
    /// <p>Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.</p>
    pub fn iot_site_wise(mut self, input: crate::types::IotSiteWiseAction) -> Self {
        self.iot_site_wise = ::std::option::Option::Some(input);
        self
    }
    /// <p>Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.</p>
    pub fn set_iot_site_wise(mut self, input: ::std::option::Option<crate::types::IotSiteWiseAction>) -> Self {
        self.iot_site_wise = input;
        self
    }
    /// <p>Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.</p>
    pub fn get_iot_site_wise(&self) -> &::std::option::Option<crate::types::IotSiteWiseAction> {
        &self.iot_site_wise
    }
    /// <p>Starts execution of a Step Functions state machine.</p>
    pub fn step_functions(mut self, input: crate::types::StepFunctionsAction) -> Self {
        self.step_functions = ::std::option::Option::Some(input);
        self
    }
    /// <p>Starts execution of a Step Functions state machine.</p>
    pub fn set_step_functions(mut self, input: ::std::option::Option<crate::types::StepFunctionsAction>) -> Self {
        self.step_functions = input;
        self
    }
    /// <p>Starts execution of a Step Functions state machine.</p>
    pub fn get_step_functions(&self) -> &::std::option::Option<crate::types::StepFunctionsAction> {
        &self.step_functions
    }
    /// <p>The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html">Timestream</a> topic rule action documentation.</p>
    pub fn timestream(mut self, input: crate::types::TimestreamAction) -> Self {
        self.timestream = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html">Timestream</a> topic rule action documentation.</p>
    pub fn set_timestream(mut self, input: ::std::option::Option<crate::types::TimestreamAction>) -> Self {
        self.timestream = input;
        self
    }
    /// <p>The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html">Timestream</a> topic rule action documentation.</p>
    pub fn get_timestream(&self) -> &::std::option::Option<crate::types::TimestreamAction> {
        &self.timestream
    }
    /// <p>Send data to an HTTPS endpoint.</p>
    pub fn http(mut self, input: crate::types::HttpAction) -> Self {
        self.http = ::std::option::Option::Some(input);
        self
    }
    /// <p>Send data to an HTTPS endpoint.</p>
    pub fn set_http(mut self, input: ::std::option::Option<crate::types::HttpAction>) -> Self {
        self.http = input;
        self
    }
    /// <p>Send data to an HTTPS endpoint.</p>
    pub fn get_http(&self) -> &::std::option::Option<crate::types::HttpAction> {
        &self.http
    }
    /// <p>Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.</p>
    pub fn kafka(mut self, input: crate::types::KafkaAction) -> Self {
        self.kafka = ::std::option::Option::Some(input);
        self
    }
    /// <p>Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.</p>
    pub fn set_kafka(mut self, input: ::std::option::Option<crate::types::KafkaAction>) -> Self {
        self.kafka = input;
        self
    }
    /// <p>Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.</p>
    pub fn get_kafka(&self) -> &::std::option::Option<crate::types::KafkaAction> {
        &self.kafka
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p>
    pub fn open_search(mut self, input: crate::types::OpenSearchAction) -> Self {
        self.open_search = ::std::option::Option::Some(input);
        self
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p>
    pub fn set_open_search(mut self, input: ::std::option::Option<crate::types::OpenSearchAction>) -> Self {
        self.open_search = input;
        self
    }
    /// <p>Write data to an Amazon OpenSearch Service domain.</p>
    pub fn get_open_search(&self) -> &::std::option::Option<crate::types::OpenSearchAction> {
        &self.open_search
    }
    /// <p>The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.</p>
    pub fn location(mut self, input: crate::types::LocationAction) -> Self {
        self.location = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.</p>
    pub fn set_location(mut self, input: ::std::option::Option<crate::types::LocationAction>) -> Self {
        self.location = input;
        self
    }
    /// <p>The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.</p>
    pub fn get_location(&self) -> &::std::option::Option<crate::types::LocationAction> {
        &self.location
    }
    /// Consumes the builder and constructs a [`Action`](crate::types::Action).
    pub fn build(self) -> crate::types::Action {
        crate::types::Action {
            dynamo_db: self.dynamo_db,
            dynamo_dbv2: self.dynamo_dbv2,
            lambda: self.lambda,
            sns: self.sns,
            sqs: self.sqs,
            kinesis: self.kinesis,
            republish: self.republish,
            s3: self.s3,
            firehose: self.firehose,
            cloudwatch_metric: self.cloudwatch_metric,
            cloudwatch_alarm: self.cloudwatch_alarm,
            cloudwatch_logs: self.cloudwatch_logs,
            elasticsearch: self.elasticsearch,
            salesforce: self.salesforce,
            iot_analytics: self.iot_analytics,
            iot_events: self.iot_events,
            iot_site_wise: self.iot_site_wise,
            step_functions: self.step_functions,
            timestream: self.timestream,
            http: self.http,
            kafka: self.kafka,
            open_search: self.open_search,
            location: self.location,
        }
    }
}