pub fn ser_create_imported_image_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_imported_image::CreateImportedImageInput,
) -> ::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.source_ami_id {
encoder.str("SourceAmiId").str(var_2.as_str());
}
if let Some(var_3) = &input.workspace_image_id {
encoder.str("WorkspaceImageId").str(var_3.as_str());
}
if let Some(var_4) = &input.iam_role_arn {
encoder.str("IamRoleArn").str(var_4.as_str());
}
if let Some(var_5) = &input.description {
encoder.str("Description").str(var_5.as_str());
}
if let Some(var_6) = &input.display_name {
encoder.str("DisplayName").str(var_6.as_str());
}
if let Some(var_7) = &input.tags {
encoder.str("Tags");
encoder.map((*var_7).len());
for (key_8, value_9) in var_7 {
{
encoder.str(key_8.as_str()).str(value_9.as_str());
}
}
}
if let Some(var_10) = &input.runtime_validation_config {
encoder.str("RuntimeValidationConfig");
crate::protocol_serde::shape_runtime_validation_config::ser_runtime_validation_config(encoder, var_10)?;
}
if let Some(var_11) = &input.agent_software_version {
encoder.str("AgentSoftwareVersion").str(var_11.as_str());
}
if let Some(var_12) = &input.app_catalog_config {
encoder.str("AppCatalogConfig");
encoder.array((*var_12).len());
for item_13 in var_12 {
{
crate::protocol_serde::shape_application_config::ser_application_config(encoder, item_13)?;
}
}
}
if let Some(var_14) = &input.dry_run {
encoder.str("DryRun").boolean(*var_14);
}
encoder.end();
Ok(())
}