aws-sdk-interconnect 1.1.0

AWS SDK for Interconnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_connection_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_connection::CreateConnectionInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.description {
        encoder.str("description").str(var_1.as_str());
    }
    if let Some(var_2) = &input.bandwidth {
        encoder.str("bandwidth").str(var_2.as_str());
    }
    if let Some(var_3) = &input.attach_point {
        encoder.str("attachPoint");
        crate::protocol_serde::shape_attach_point::ser_attach_point(encoder, var_3)?;
    }
    if let Some(var_4) = &input.environment_id {
        encoder.str("environmentId").str(var_4.as_str());
    }
    if let Some(var_5) = &input.remote_account {
        encoder.str("remoteAccount");
        crate::protocol_serde::shape_remote_account_identifier::ser_remote_account_identifier(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.client_token {
        encoder.str("clientToken").str(var_9.as_str());
    }
    encoder.end();
    Ok(())
}