aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_change_set_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_change_set::CreateChangeSetInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.client_token {
        encoder.str("clientToken").str(var_1.as_str());
    }
    if let Some(var_2) = &input.access_control_config {
        encoder.str("accessControlConfig");
        crate::protocol_serde::shape_access_control_config::ser_access_control_config(encoder, var_2)?;
    }
    if let Some(var_3) = &input.agent_context_id {
        encoder.str("agentContextId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.operations {
        encoder.str("operations");
        encoder.array((*var_4).len());
        for item_5 in var_4 {
            {
                crate::protocol_serde::shape_change_set_operation::ser_change_set_operation(encoder, item_5)?;
            }
        }
    }
    encoder.end();
    Ok(())
}