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_create_integration_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_integration::CreateIntegrationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.integration_type {
        encoder.str("integrationType").str(var_1.as_str());
    }
    if let Some(var_2) = &input.name {
        encoder.str("name").str(var_2.as_str());
    }
    if let Some(var_3) = &input.credential {
        encoder.str("credential");
        crate::protocol_serde::shape_integration_credential::ser_integration_credential(encoder, var_3)?;
    }
    if let Some(var_4) = &input.integration_attributes {
        encoder.str("integrationAttributes");
        encoder.map((*var_4).len());
        for (key_5, value_6) in var_4 {
            {
                encoder.str(key_5.as_str()).str(value_6.as_str());
            }
        }
    }
    if let Some(var_7) = &input.role_arn {
        encoder.str("roleArn").str(var_7.as_str());
    }
    if let Some(var_8) = &input.tags {
        encoder.str("tags");
        encoder.map((*var_8).len());
        for (key_9, value_10) in var_8 {
            {
                encoder.str(key_9.as_str()).str(value_10.as_str());
            }
        }
    }
    if let Some(var_11) = &input.client_token {
        encoder.str("clientToken").str(var_11.as_str());
    }
    encoder.end();
    Ok(())
}