pub fn ser_create_proxy_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_proxy::CreateProxyInput,
) -> ::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.r#type {
encoder.str("type").str(var_2.as_str());
}
if let Some(var_3) = &input.proxy_version {
encoder.str("proxyVersion").str(var_3.as_str());
}
if let Some(var_4) = &input.role_arn {
encoder.str("roleArn").str(var_4.as_str());
}
if let Some(var_5) = &input.configuration {
encoder.str("configuration");
crate::protocol_serde::shape_proxy_configuration::ser_proxy_configuration(encoder, var_5)?;
}
if let Some(var_6) = &input.network_configuration {
encoder.str("networkConfiguration");
crate::protocol_serde::shape_proxy_network_user_configuration::ser_proxy_network_user_configuration(encoder, var_6)?;
}
if let Some(var_7) = &input.attributes {
encoder.str("attributes");
encoder.array((*var_7).len());
for item_8 in var_7 {
{
crate::protocol_serde::shape_attribute::ser_attribute(encoder, item_8)?;
}
}
}
if let Some(var_9) = &input.customer_kms_key_arn {
encoder.str("customerKmsKeyArn").str(var_9.as_str());
}
if let Some(var_10) = &input.tags {
encoder.str("tags");
encoder.map((*var_10).len());
for (key_11, value_12) in var_10 {
{
encoder.str(key_11.as_str()).str(value_12.as_str());
}
}
}
if let Some(var_13) = &input.client_token {
encoder.str("clientToken").str(var_13.as_str());
}
encoder.end();
Ok(())
}