pub fn ser_create_app_block_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_app_block::CreateAppBlockInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.name {
encoder.str("Name").str(var_1.as_str());
}
if let Some(var_2) = &input.description {
encoder.str("Description").str(var_2.as_str());
}
if let Some(var_3) = &input.display_name {
encoder.str("DisplayName").str(var_3.as_str());
}
if let Some(var_4) = &input.source_s3_location {
encoder.str("SourceS3Location");
crate::protocol_serde::shape_s3_location::ser_s3_location(encoder, var_4)?;
}
if let Some(var_5) = &input.setup_script_details {
encoder.str("SetupScriptDetails");
crate::protocol_serde::shape_script_details::ser_script_details(encoder, var_5)?;
}
if let Some(var_6) = &input.tags {
encoder.str("Tags");
encoder.map((*var_6).len());
for (key_7, value_8) in var_6 {
{
encoder.str(key_7.as_str()).str(value_8.as_str());
}
}
}
if let Some(var_9) = &input.post_setup_script_details {
encoder.str("PostSetupScriptDetails");
crate::protocol_serde::shape_script_details::ser_script_details(encoder, var_9)?;
}
if let Some(var_10) = &input.packaging_type {
encoder.str("PackagingType").str(var_10.as_str());
}
encoder.end();
Ok(())
}