pub fn ser_enable_logging_input_input_input(
input: &crate::operation::enable_logging::EnableLoggingInput,
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "EnableLogging", "2012-12-01");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("ClusterIdentifier");
if let Some(var_2) = &input.cluster_identifier {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("BucketName");
if let Some(var_4) = &input.bucket_name {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("S3KeyPrefix");
if let Some(var_6) = &input.s3_key_prefix {
scope_5.string(var_6);
}
#[allow(unused_mut)]
let mut scope_7 = writer.prefix("LogDestinationType");
if let Some(var_8) = &input.log_destination_type {
scope_7.string(var_8.as_str());
}
#[allow(unused_mut)]
let mut scope_9 = writer.prefix("LogExports");
if let Some(var_10) = &input.log_exports {
let mut list_12 = scope_9.start_list(false, None);
for item_11 in var_10 {
#[allow(unused_mut)]
let mut entry_13 = list_12.entry();
entry_13.string(item_11);
}
list_12.finish();
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}