aws-sdk-appstream 1.121.0

AWS SDK for Amazon AppStream
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_export_image_task_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::create_export_image_task::CreateExportImageTaskInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.image_name {
        encoder.str("ImageName").str(var_1.as_str());
    }
    if let Some(var_2) = &input.ami_name {
        encoder.str("AmiName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.iam_role_arn {
        encoder.str("IamRoleArn").str(var_3.as_str());
    }
    if let Some(var_4) = &input.tag_specifications {
        encoder.str("TagSpecifications");
        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.ami_description {
        encoder.str("AmiDescription").str(var_7.as_str());
    }
    encoder.end();
    Ok(())
}