aws_sdk_firehose/protocol_serde/
shape_s3_destination_configuration.rs1pub fn ser_s3_destination_configuration(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::S3DestinationConfiguration,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 {
7 object.key("RoleARN").string(input.role_arn.as_str());
8 }
9 {
10 object.key("BucketARN").string(input.bucket_arn.as_str());
11 }
12 if let Some(var_1) = &input.prefix {
13 object.key("Prefix").string(var_1.as_str());
14 }
15 if let Some(var_2) = &input.error_output_prefix {
16 object.key("ErrorOutputPrefix").string(var_2.as_str());
17 }
18 if let Some(var_3) = &input.buffering_hints {
19 #[allow(unused_mut)]
20 let mut object_4 = object.key("BufferingHints").start_object();
21 crate::protocol_serde::shape_buffering_hints::ser_buffering_hints(&mut object_4, var_3)?;
22 object_4.finish();
23 }
24 if let Some(var_5) = &input.compression_format {
25 object.key("CompressionFormat").string(var_5.as_str());
26 }
27 if let Some(var_6) = &input.encryption_configuration {
28 #[allow(unused_mut)]
29 let mut object_7 = object.key("EncryptionConfiguration").start_object();
30 crate::protocol_serde::shape_encryption_configuration::ser_encryption_configuration(&mut object_7, var_6)?;
31 object_7.finish();
32 }
33 if let Some(var_8) = &input.cloud_watch_logging_options {
34 #[allow(unused_mut)]
35 let mut object_9 = object.key("CloudWatchLoggingOptions").start_object();
36 crate::protocol_serde::shape_cloud_watch_logging_options::ser_cloud_watch_logging_options(&mut object_9, var_8)?;
37 object_9.finish();
38 }
39 Ok(())
40}