aws-sdk-firehose 1.102.0

AWS SDK for Amazon Kinesis Firehose
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateDeliveryStreamInput {
    /// <p>The name of the Firehose stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the Firehose streams are in different accounts or different Regions, you can have multiple Firehose streams with the same name.</p>
    pub delivery_stream_name: ::std::option::Option<::std::string::String>,
    /// <p>The Firehose stream type. This parameter can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    pub delivery_stream_type: ::std::option::Option<crate::types::DeliveryStreamType>,
    /// <p>The structure that configures parameters such as <code>ThroughputHintInMBs</code> for a stream configured with Direct PUT as a source.</p>
    pub direct_put_source_configuration: ::std::option::Option<crate::types::DirectPutSourceConfiguration>,
    /// <p>When a Kinesis data stream is used as the source for the Firehose stream, a <code>KinesisStreamSourceConfiguration</code> containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.</p>
    pub kinesis_stream_source_configuration: ::std::option::Option<crate::types::KinesisStreamSourceConfiguration>,
    /// <p>Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).</p>
    pub delivery_stream_encryption_configuration_input: ::std::option::Option<crate::types::DeliveryStreamEncryptionConfigurationInput>,
    /// <p>\[Deprecated\] The destination in Amazon S3. You can specify only one destination.</p>
    #[deprecated]
    pub s3_destination_configuration: ::std::option::Option<crate::types::S3DestinationConfiguration>,
    /// <p>The destination in Amazon S3. You can specify only one destination.</p>
    pub extended_s3_destination_configuration: ::std::option::Option<crate::types::ExtendedS3DestinationConfiguration>,
    /// <p>The destination in Amazon Redshift. You can specify only one destination.</p>
    pub redshift_destination_configuration: ::std::option::Option<crate::types::RedshiftDestinationConfiguration>,
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub elasticsearch_destination_configuration: ::std::option::Option<crate::types::ElasticsearchDestinationConfiguration>,
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub amazonopensearchservice_destination_configuration: ::std::option::Option<crate::types::AmazonopensearchserviceDestinationConfiguration>,
    /// <p>The destination in Splunk. You can specify only one destination.</p>
    pub splunk_destination_configuration: ::std::option::Option<crate::types::SplunkDestinationConfiguration>,
    /// <p>Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.</p>
    pub http_endpoint_destination_configuration: ::std::option::Option<crate::types::HttpEndpointDestinationConfiguration>,
    /// <p>A set of tags to assign to the Firehose stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
    /// <p>You can specify up to 50 tags when creating a Firehose stream.</p>
    /// <p>If you specify tags in the <code>CreateDeliveryStream</code> action, Amazon Data Firehose performs an additional authorization on the <code>firehose:TagDeliveryStream</code> action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose streams with IAM resource tags will fail with an <code>AccessDeniedException</code> such as following.</p>
    /// <p><b>AccessDeniedException</b></p>
    /// <p>User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy.</p>
    /// <p>For an example IAM policy, see <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_CreateDeliveryStream.html#API_CreateDeliveryStream_Examples">Tag example.</a></p>
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    /// <p>The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.</p>
    pub amazon_open_search_serverless_destination_configuration:
        ::std::option::Option<crate::types::AmazonOpenSearchServerlessDestinationConfiguration>,
    /// <p>The configuration for the Amazon MSK cluster to be used as the source for a delivery stream.</p>
    pub msk_source_configuration: ::std::option::Option<crate::types::MskSourceConfiguration>,
    /// <p>Configure Snowflake destination</p>
    pub snowflake_destination_configuration: ::std::option::Option<crate::types::SnowflakeDestinationConfiguration>,
    /// <p>Configure Apache Iceberg Tables destination.</p>
    pub iceberg_destination_configuration: ::std::option::Option<crate::types::IcebergDestinationConfiguration>,
    /// <p>The top level object for configuring streams with database as a source.</p>
    /// <p>Amazon Data Firehose is in preview release and is subject to change.</p>
    pub database_source_configuration: ::std::option::Option<crate::types::DatabaseSourceConfiguration>,
}
impl CreateDeliveryStreamInput {
    /// <p>The name of the Firehose stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the Firehose streams are in different accounts or different Regions, you can have multiple Firehose streams with the same name.</p>
    pub fn delivery_stream_name(&self) -> ::std::option::Option<&str> {
        self.delivery_stream_name.as_deref()
    }
    /// <p>The Firehose stream type. This parameter can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    pub fn delivery_stream_type(&self) -> ::std::option::Option<&crate::types::DeliveryStreamType> {
        self.delivery_stream_type.as_ref()
    }
    /// <p>The structure that configures parameters such as <code>ThroughputHintInMBs</code> for a stream configured with Direct PUT as a source.</p>
    pub fn direct_put_source_configuration(&self) -> ::std::option::Option<&crate::types::DirectPutSourceConfiguration> {
        self.direct_put_source_configuration.as_ref()
    }
    /// <p>When a Kinesis data stream is used as the source for the Firehose stream, a <code>KinesisStreamSourceConfiguration</code> containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.</p>
    pub fn kinesis_stream_source_configuration(&self) -> ::std::option::Option<&crate::types::KinesisStreamSourceConfiguration> {
        self.kinesis_stream_source_configuration.as_ref()
    }
    /// <p>Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).</p>
    pub fn delivery_stream_encryption_configuration_input(&self) -> ::std::option::Option<&crate::types::DeliveryStreamEncryptionConfigurationInput> {
        self.delivery_stream_encryption_configuration_input.as_ref()
    }
    /// <p>\[Deprecated\] The destination in Amazon S3. You can specify only one destination.</p>
    #[deprecated]
    pub fn s3_destination_configuration(&self) -> ::std::option::Option<&crate::types::S3DestinationConfiguration> {
        self.s3_destination_configuration.as_ref()
    }
    /// <p>The destination in Amazon S3. You can specify only one destination.</p>
    pub fn extended_s3_destination_configuration(&self) -> ::std::option::Option<&crate::types::ExtendedS3DestinationConfiguration> {
        self.extended_s3_destination_configuration.as_ref()
    }
    /// <p>The destination in Amazon Redshift. You can specify only one destination.</p>
    pub fn redshift_destination_configuration(&self) -> ::std::option::Option<&crate::types::RedshiftDestinationConfiguration> {
        self.redshift_destination_configuration.as_ref()
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn elasticsearch_destination_configuration(&self) -> ::std::option::Option<&crate::types::ElasticsearchDestinationConfiguration> {
        self.elasticsearch_destination_configuration.as_ref()
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn amazonopensearchservice_destination_configuration(
        &self,
    ) -> ::std::option::Option<&crate::types::AmazonopensearchserviceDestinationConfiguration> {
        self.amazonopensearchservice_destination_configuration.as_ref()
    }
    /// <p>The destination in Splunk. You can specify only one destination.</p>
    pub fn splunk_destination_configuration(&self) -> ::std::option::Option<&crate::types::SplunkDestinationConfiguration> {
        self.splunk_destination_configuration.as_ref()
    }
    /// <p>Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.</p>
    pub fn http_endpoint_destination_configuration(&self) -> ::std::option::Option<&crate::types::HttpEndpointDestinationConfiguration> {
        self.http_endpoint_destination_configuration.as_ref()
    }
    /// <p>A set of tags to assign to the Firehose stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
    /// <p>You can specify up to 50 tags when creating a Firehose stream.</p>
    /// <p>If you specify tags in the <code>CreateDeliveryStream</code> action, Amazon Data Firehose performs an additional authorization on the <code>firehose:TagDeliveryStream</code> action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose streams with IAM resource tags will fail with an <code>AccessDeniedException</code> such as following.</p>
    /// <p><b>AccessDeniedException</b></p>
    /// <p>User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy.</p>
    /// <p>For an example IAM policy, see <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_CreateDeliveryStream.html#API_CreateDeliveryStream_Examples">Tag example.</a></p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
    pub fn tags(&self) -> &[crate::types::Tag] {
        self.tags.as_deref().unwrap_or_default()
    }
    /// <p>The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn amazon_open_search_serverless_destination_configuration(
        &self,
    ) -> ::std::option::Option<&crate::types::AmazonOpenSearchServerlessDestinationConfiguration> {
        self.amazon_open_search_serverless_destination_configuration.as_ref()
    }
    /// <p>The configuration for the Amazon MSK cluster to be used as the source for a delivery stream.</p>
    pub fn msk_source_configuration(&self) -> ::std::option::Option<&crate::types::MskSourceConfiguration> {
        self.msk_source_configuration.as_ref()
    }
    /// <p>Configure Snowflake destination</p>
    pub fn snowflake_destination_configuration(&self) -> ::std::option::Option<&crate::types::SnowflakeDestinationConfiguration> {
        self.snowflake_destination_configuration.as_ref()
    }
    /// <p>Configure Apache Iceberg Tables destination.</p>
    pub fn iceberg_destination_configuration(&self) -> ::std::option::Option<&crate::types::IcebergDestinationConfiguration> {
        self.iceberg_destination_configuration.as_ref()
    }
    /// <p>The top level object for configuring streams with database as a source.</p>
    /// <p>Amazon Data Firehose is in preview release and is subject to change.</p>
    pub fn database_source_configuration(&self) -> ::std::option::Option<&crate::types::DatabaseSourceConfiguration> {
        self.database_source_configuration.as_ref()
    }
}
impl CreateDeliveryStreamInput {
    /// Creates a new builder-style object to manufacture [`CreateDeliveryStreamInput`](crate::operation::create_delivery_stream::CreateDeliveryStreamInput).
    pub fn builder() -> crate::operation::create_delivery_stream::builders::CreateDeliveryStreamInputBuilder {
        crate::operation::create_delivery_stream::builders::CreateDeliveryStreamInputBuilder::default()
    }
}

/// A builder for [`CreateDeliveryStreamInput`](crate::operation::create_delivery_stream::CreateDeliveryStreamInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateDeliveryStreamInputBuilder {
    pub(crate) delivery_stream_name: ::std::option::Option<::std::string::String>,
    pub(crate) delivery_stream_type: ::std::option::Option<crate::types::DeliveryStreamType>,
    pub(crate) direct_put_source_configuration: ::std::option::Option<crate::types::DirectPutSourceConfiguration>,
    pub(crate) kinesis_stream_source_configuration: ::std::option::Option<crate::types::KinesisStreamSourceConfiguration>,
    pub(crate) delivery_stream_encryption_configuration_input: ::std::option::Option<crate::types::DeliveryStreamEncryptionConfigurationInput>,
    pub(crate) s3_destination_configuration: ::std::option::Option<crate::types::S3DestinationConfiguration>,
    pub(crate) extended_s3_destination_configuration: ::std::option::Option<crate::types::ExtendedS3DestinationConfiguration>,
    pub(crate) redshift_destination_configuration: ::std::option::Option<crate::types::RedshiftDestinationConfiguration>,
    pub(crate) elasticsearch_destination_configuration: ::std::option::Option<crate::types::ElasticsearchDestinationConfiguration>,
    pub(crate) amazonopensearchservice_destination_configuration:
        ::std::option::Option<crate::types::AmazonopensearchserviceDestinationConfiguration>,
    pub(crate) splunk_destination_configuration: ::std::option::Option<crate::types::SplunkDestinationConfiguration>,
    pub(crate) http_endpoint_destination_configuration: ::std::option::Option<crate::types::HttpEndpointDestinationConfiguration>,
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    pub(crate) amazon_open_search_serverless_destination_configuration:
        ::std::option::Option<crate::types::AmazonOpenSearchServerlessDestinationConfiguration>,
    pub(crate) msk_source_configuration: ::std::option::Option<crate::types::MskSourceConfiguration>,
    pub(crate) snowflake_destination_configuration: ::std::option::Option<crate::types::SnowflakeDestinationConfiguration>,
    pub(crate) iceberg_destination_configuration: ::std::option::Option<crate::types::IcebergDestinationConfiguration>,
    pub(crate) database_source_configuration: ::std::option::Option<crate::types::DatabaseSourceConfiguration>,
}
impl CreateDeliveryStreamInputBuilder {
    /// <p>The name of the Firehose stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the Firehose streams are in different accounts or different Regions, you can have multiple Firehose streams with the same name.</p>
    /// This field is required.
    pub fn delivery_stream_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.delivery_stream_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the Firehose stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the Firehose streams are in different accounts or different Regions, you can have multiple Firehose streams with the same name.</p>
    pub fn set_delivery_stream_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.delivery_stream_name = input;
        self
    }
    /// <p>The name of the Firehose stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the Firehose streams are in different accounts or different Regions, you can have multiple Firehose streams with the same name.</p>
    pub fn get_delivery_stream_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.delivery_stream_name
    }
    /// <p>The Firehose stream type. This parameter can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    pub fn delivery_stream_type(mut self, input: crate::types::DeliveryStreamType) -> Self {
        self.delivery_stream_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Firehose stream type. This parameter can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    pub fn set_delivery_stream_type(mut self, input: ::std::option::Option<crate::types::DeliveryStreamType>) -> Self {
        self.delivery_stream_type = input;
        self
    }
    /// <p>The Firehose stream type. This parameter can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    pub fn get_delivery_stream_type(&self) -> &::std::option::Option<crate::types::DeliveryStreamType> {
        &self.delivery_stream_type
    }
    /// <p>The structure that configures parameters such as <code>ThroughputHintInMBs</code> for a stream configured with Direct PUT as a source.</p>
    pub fn direct_put_source_configuration(mut self, input: crate::types::DirectPutSourceConfiguration) -> Self {
        self.direct_put_source_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The structure that configures parameters such as <code>ThroughputHintInMBs</code> for a stream configured with Direct PUT as a source.</p>
    pub fn set_direct_put_source_configuration(mut self, input: ::std::option::Option<crate::types::DirectPutSourceConfiguration>) -> Self {
        self.direct_put_source_configuration = input;
        self
    }
    /// <p>The structure that configures parameters such as <code>ThroughputHintInMBs</code> for a stream configured with Direct PUT as a source.</p>
    pub fn get_direct_put_source_configuration(&self) -> &::std::option::Option<crate::types::DirectPutSourceConfiguration> {
        &self.direct_put_source_configuration
    }
    /// <p>When a Kinesis data stream is used as the source for the Firehose stream, a <code>KinesisStreamSourceConfiguration</code> containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.</p>
    pub fn kinesis_stream_source_configuration(mut self, input: crate::types::KinesisStreamSourceConfiguration) -> Self {
        self.kinesis_stream_source_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>When a Kinesis data stream is used as the source for the Firehose stream, a <code>KinesisStreamSourceConfiguration</code> containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.</p>
    pub fn set_kinesis_stream_source_configuration(mut self, input: ::std::option::Option<crate::types::KinesisStreamSourceConfiguration>) -> Self {
        self.kinesis_stream_source_configuration = input;
        self
    }
    /// <p>When a Kinesis data stream is used as the source for the Firehose stream, a <code>KinesisStreamSourceConfiguration</code> containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.</p>
    pub fn get_kinesis_stream_source_configuration(&self) -> &::std::option::Option<crate::types::KinesisStreamSourceConfiguration> {
        &self.kinesis_stream_source_configuration
    }
    /// <p>Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).</p>
    pub fn delivery_stream_encryption_configuration_input(mut self, input: crate::types::DeliveryStreamEncryptionConfigurationInput) -> Self {
        self.delivery_stream_encryption_configuration_input = ::std::option::Option::Some(input);
        self
    }
    /// <p>Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).</p>
    pub fn set_delivery_stream_encryption_configuration_input(
        mut self,
        input: ::std::option::Option<crate::types::DeliveryStreamEncryptionConfigurationInput>,
    ) -> Self {
        self.delivery_stream_encryption_configuration_input = input;
        self
    }
    /// <p>Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).</p>
    pub fn get_delivery_stream_encryption_configuration_input(
        &self,
    ) -> &::std::option::Option<crate::types::DeliveryStreamEncryptionConfigurationInput> {
        &self.delivery_stream_encryption_configuration_input
    }
    /// <p>\[Deprecated\] The destination in Amazon S3. You can specify only one destination.</p>
    #[deprecated]
    pub fn s3_destination_configuration(mut self, input: crate::types::S3DestinationConfiguration) -> Self {
        self.s3_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>\[Deprecated\] The destination in Amazon S3. You can specify only one destination.</p>
    #[deprecated]
    pub fn set_s3_destination_configuration(mut self, input: ::std::option::Option<crate::types::S3DestinationConfiguration>) -> Self {
        self.s3_destination_configuration = input;
        self
    }
    /// <p>\[Deprecated\] The destination in Amazon S3. You can specify only one destination.</p>
    #[deprecated]
    pub fn get_s3_destination_configuration(&self) -> &::std::option::Option<crate::types::S3DestinationConfiguration> {
        &self.s3_destination_configuration
    }
    /// <p>The destination in Amazon S3. You can specify only one destination.</p>
    pub fn extended_s3_destination_configuration(mut self, input: crate::types::ExtendedS3DestinationConfiguration) -> Self {
        self.extended_s3_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in Amazon S3. You can specify only one destination.</p>
    pub fn set_extended_s3_destination_configuration(
        mut self,
        input: ::std::option::Option<crate::types::ExtendedS3DestinationConfiguration>,
    ) -> Self {
        self.extended_s3_destination_configuration = input;
        self
    }
    /// <p>The destination in Amazon S3. You can specify only one destination.</p>
    pub fn get_extended_s3_destination_configuration(&self) -> &::std::option::Option<crate::types::ExtendedS3DestinationConfiguration> {
        &self.extended_s3_destination_configuration
    }
    /// <p>The destination in Amazon Redshift. You can specify only one destination.</p>
    pub fn redshift_destination_configuration(mut self, input: crate::types::RedshiftDestinationConfiguration) -> Self {
        self.redshift_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in Amazon Redshift. You can specify only one destination.</p>
    pub fn set_redshift_destination_configuration(mut self, input: ::std::option::Option<crate::types::RedshiftDestinationConfiguration>) -> Self {
        self.redshift_destination_configuration = input;
        self
    }
    /// <p>The destination in Amazon Redshift. You can specify only one destination.</p>
    pub fn get_redshift_destination_configuration(&self) -> &::std::option::Option<crate::types::RedshiftDestinationConfiguration> {
        &self.redshift_destination_configuration
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn elasticsearch_destination_configuration(mut self, input: crate::types::ElasticsearchDestinationConfiguration) -> Self {
        self.elasticsearch_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn set_elasticsearch_destination_configuration(
        mut self,
        input: ::std::option::Option<crate::types::ElasticsearchDestinationConfiguration>,
    ) -> Self {
        self.elasticsearch_destination_configuration = input;
        self
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn get_elasticsearch_destination_configuration(&self) -> &::std::option::Option<crate::types::ElasticsearchDestinationConfiguration> {
        &self.elasticsearch_destination_configuration
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn amazonopensearchservice_destination_configuration(mut self, input: crate::types::AmazonopensearchserviceDestinationConfiguration) -> Self {
        self.amazonopensearchservice_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn set_amazonopensearchservice_destination_configuration(
        mut self,
        input: ::std::option::Option<crate::types::AmazonopensearchserviceDestinationConfiguration>,
    ) -> Self {
        self.amazonopensearchservice_destination_configuration = input;
        self
    }
    /// <p>The destination in Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn get_amazonopensearchservice_destination_configuration(
        &self,
    ) -> &::std::option::Option<crate::types::AmazonopensearchserviceDestinationConfiguration> {
        &self.amazonopensearchservice_destination_configuration
    }
    /// <p>The destination in Splunk. You can specify only one destination.</p>
    pub fn splunk_destination_configuration(mut self, input: crate::types::SplunkDestinationConfiguration) -> Self {
        self.splunk_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in Splunk. You can specify only one destination.</p>
    pub fn set_splunk_destination_configuration(mut self, input: ::std::option::Option<crate::types::SplunkDestinationConfiguration>) -> Self {
        self.splunk_destination_configuration = input;
        self
    }
    /// <p>The destination in Splunk. You can specify only one destination.</p>
    pub fn get_splunk_destination_configuration(&self) -> &::std::option::Option<crate::types::SplunkDestinationConfiguration> {
        &self.splunk_destination_configuration
    }
    /// <p>Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.</p>
    pub fn http_endpoint_destination_configuration(mut self, input: crate::types::HttpEndpointDestinationConfiguration) -> Self {
        self.http_endpoint_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.</p>
    pub fn set_http_endpoint_destination_configuration(
        mut self,
        input: ::std::option::Option<crate::types::HttpEndpointDestinationConfiguration>,
    ) -> Self {
        self.http_endpoint_destination_configuration = input;
        self
    }
    /// <p>Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.</p>
    pub fn get_http_endpoint_destination_configuration(&self) -> &::std::option::Option<crate::types::HttpEndpointDestinationConfiguration> {
        &self.http_endpoint_destination_configuration
    }
    /// Appends an item to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>A set of tags to assign to the Firehose stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
    /// <p>You can specify up to 50 tags when creating a Firehose stream.</p>
    /// <p>If you specify tags in the <code>CreateDeliveryStream</code> action, Amazon Data Firehose performs an additional authorization on the <code>firehose:TagDeliveryStream</code> action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose streams with IAM resource tags will fail with an <code>AccessDeniedException</code> such as following.</p>
    /// <p><b>AccessDeniedException</b></p>
    /// <p>User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy.</p>
    /// <p>For an example IAM policy, see <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_CreateDeliveryStream.html#API_CreateDeliveryStream_Examples">Tag example.</a></p>
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
        let mut v = self.tags.unwrap_or_default();
        v.push(input);
        self.tags = ::std::option::Option::Some(v);
        self
    }
    /// <p>A set of tags to assign to the Firehose stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
    /// <p>You can specify up to 50 tags when creating a Firehose stream.</p>
    /// <p>If you specify tags in the <code>CreateDeliveryStream</code> action, Amazon Data Firehose performs an additional authorization on the <code>firehose:TagDeliveryStream</code> action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose streams with IAM resource tags will fail with an <code>AccessDeniedException</code> such as following.</p>
    /// <p><b>AccessDeniedException</b></p>
    /// <p>User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy.</p>
    /// <p>For an example IAM policy, see <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_CreateDeliveryStream.html#API_CreateDeliveryStream_Examples">Tag example.</a></p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>A set of tags to assign to the Firehose stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
    /// <p>You can specify up to 50 tags when creating a Firehose stream.</p>
    /// <p>If you specify tags in the <code>CreateDeliveryStream</code> action, Amazon Data Firehose performs an additional authorization on the <code>firehose:TagDeliveryStream</code> action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose streams with IAM resource tags will fail with an <code>AccessDeniedException</code> such as following.</p>
    /// <p><b>AccessDeniedException</b></p>
    /// <p>User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy.</p>
    /// <p>For an example IAM policy, see <a href="https://docs.aws.amazon.com/firehose/latest/APIReference/API_CreateDeliveryStream.html#API_CreateDeliveryStream_Examples">Tag example.</a></p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
        &self.tags
    }
    /// <p>The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn amazon_open_search_serverless_destination_configuration(
        mut self,
        input: crate::types::AmazonOpenSearchServerlessDestinationConfiguration,
    ) -> Self {
        self.amazon_open_search_serverless_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn set_amazon_open_search_serverless_destination_configuration(
        mut self,
        input: ::std::option::Option<crate::types::AmazonOpenSearchServerlessDestinationConfiguration>,
    ) -> Self {
        self.amazon_open_search_serverless_destination_configuration = input;
        self
    }
    /// <p>The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.</p>
    pub fn get_amazon_open_search_serverless_destination_configuration(
        &self,
    ) -> &::std::option::Option<crate::types::AmazonOpenSearchServerlessDestinationConfiguration> {
        &self.amazon_open_search_serverless_destination_configuration
    }
    /// <p>The configuration for the Amazon MSK cluster to be used as the source for a delivery stream.</p>
    pub fn msk_source_configuration(mut self, input: crate::types::MskSourceConfiguration) -> Self {
        self.msk_source_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration for the Amazon MSK cluster to be used as the source for a delivery stream.</p>
    pub fn set_msk_source_configuration(mut self, input: ::std::option::Option<crate::types::MskSourceConfiguration>) -> Self {
        self.msk_source_configuration = input;
        self
    }
    /// <p>The configuration for the Amazon MSK cluster to be used as the source for a delivery stream.</p>
    pub fn get_msk_source_configuration(&self) -> &::std::option::Option<crate::types::MskSourceConfiguration> {
        &self.msk_source_configuration
    }
    /// <p>Configure Snowflake destination</p>
    pub fn snowflake_destination_configuration(mut self, input: crate::types::SnowflakeDestinationConfiguration) -> Self {
        self.snowflake_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Configure Snowflake destination</p>
    pub fn set_snowflake_destination_configuration(mut self, input: ::std::option::Option<crate::types::SnowflakeDestinationConfiguration>) -> Self {
        self.snowflake_destination_configuration = input;
        self
    }
    /// <p>Configure Snowflake destination</p>
    pub fn get_snowflake_destination_configuration(&self) -> &::std::option::Option<crate::types::SnowflakeDestinationConfiguration> {
        &self.snowflake_destination_configuration
    }
    /// <p>Configure Apache Iceberg Tables destination.</p>
    pub fn iceberg_destination_configuration(mut self, input: crate::types::IcebergDestinationConfiguration) -> Self {
        self.iceberg_destination_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Configure Apache Iceberg Tables destination.</p>
    pub fn set_iceberg_destination_configuration(mut self, input: ::std::option::Option<crate::types::IcebergDestinationConfiguration>) -> Self {
        self.iceberg_destination_configuration = input;
        self
    }
    /// <p>Configure Apache Iceberg Tables destination.</p>
    pub fn get_iceberg_destination_configuration(&self) -> &::std::option::Option<crate::types::IcebergDestinationConfiguration> {
        &self.iceberg_destination_configuration
    }
    /// <p>The top level object for configuring streams with database as a source.</p>
    /// <p>Amazon Data Firehose is in preview release and is subject to change.</p>
    pub fn database_source_configuration(mut self, input: crate::types::DatabaseSourceConfiguration) -> Self {
        self.database_source_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The top level object for configuring streams with database as a source.</p>
    /// <p>Amazon Data Firehose is in preview release and is subject to change.</p>
    pub fn set_database_source_configuration(mut self, input: ::std::option::Option<crate::types::DatabaseSourceConfiguration>) -> Self {
        self.database_source_configuration = input;
        self
    }
    /// <p>The top level object for configuring streams with database as a source.</p>
    /// <p>Amazon Data Firehose is in preview release and is subject to change.</p>
    pub fn get_database_source_configuration(&self) -> &::std::option::Option<crate::types::DatabaseSourceConfiguration> {
        &self.database_source_configuration
    }
    /// Consumes the builder and constructs a [`CreateDeliveryStreamInput`](crate::operation::create_delivery_stream::CreateDeliveryStreamInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::create_delivery_stream::CreateDeliveryStreamInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::create_delivery_stream::CreateDeliveryStreamInput {
            delivery_stream_name: self.delivery_stream_name,
            delivery_stream_type: self.delivery_stream_type,
            direct_put_source_configuration: self.direct_put_source_configuration,
            kinesis_stream_source_configuration: self.kinesis_stream_source_configuration,
            delivery_stream_encryption_configuration_input: self.delivery_stream_encryption_configuration_input,
            s3_destination_configuration: self.s3_destination_configuration,
            extended_s3_destination_configuration: self.extended_s3_destination_configuration,
            redshift_destination_configuration: self.redshift_destination_configuration,
            elasticsearch_destination_configuration: self.elasticsearch_destination_configuration,
            amazonopensearchservice_destination_configuration: self.amazonopensearchservice_destination_configuration,
            splunk_destination_configuration: self.splunk_destination_configuration,
            http_endpoint_destination_configuration: self.http_endpoint_destination_configuration,
            tags: self.tags,
            amazon_open_search_serverless_destination_configuration: self.amazon_open_search_serverless_destination_configuration,
            msk_source_configuration: self.msk_source_configuration,
            snowflake_destination_configuration: self.snowflake_destination_configuration,
            iceberg_destination_configuration: self.iceberg_destination_configuration,
            database_source_configuration: self.database_source_configuration,
        })
    }
}