aws-sdk-mailmanager 1.89.0

AWS SDK for MailManager
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_archive_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_archive::CreateArchiveInput,
) -> ::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.archive_name {
        encoder.str("ArchiveName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.retention {
        encoder.str("Retention");
        crate::protocol_serde::shape_archive_retention::ser_archive_retention(encoder, var_3)?;
    }
    if let Some(var_4) = &input.kms_key_arn {
        encoder.str("KmsKeyArn").str(var_4.as_str());
    }
    if let Some(var_5) = &input.tags {
        encoder.str("Tags");
        encoder.array((*var_5).len());
        for item_6 in var_5 {
            {
                crate::protocol_serde::shape_tag::ser_tag(encoder, item_6)?;
            }
        }
    }
    encoder.end();
    Ok(())
}