aws-sdk-cloudwatchomni 1.2.0

AWS SDK for CloudWatch Omni
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_update_integration_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_integration::UpdateIntegrationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.identifier {
        encoder.str("identifier");
        crate::protocol_serde::shape_integration_identifier::ser_integration_identifier(encoder, var_1)?;
    }
    if let Some(var_2) = &input.credential {
        encoder.str("credential");
        crate::protocol_serde::shape_integration_credential::ser_integration_credential(encoder, var_2)?;
    }
    if let Some(var_3) = &input.integration_attributes {
        encoder.str("integrationAttributes");
        encoder.map((*var_3).len());
        for (key_4, value_5) in var_3 {
            {
                encoder.str(key_4.as_str()).str(value_5.as_str());
            }
        }
    }
    if let Some(var_6) = &input.role_arn {
        encoder.str("roleArn").str(var_6.as_str());
    }
    encoder.end();
    Ok(())
}