aws-sdk-migrationhub 1.102.0

AWS SDK for AWS Migration Hub
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_resource_attributes_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::put_resource_attributes::PutResourceAttributesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.progress_update_stream {
        object.key("ProgressUpdateStream").string(var_1.as_str());
    }
    if let Some(var_2) = &input.migration_task_name {
        object.key("MigrationTaskName").string(var_2.as_str());
    }
    if let Some(var_3) = &input.resource_attribute_list {
        let mut array_4 = object.key("ResourceAttributeList").start_array();
        for item_5 in var_3 {
            {
                #[allow(unused_mut)]
                let mut object_6 = array_4.value().start_object();
                crate::protocol_serde::shape_resource_attribute::ser_resource_attribute(&mut object_6, item_5)?;
                object_6.finish();
            }
        }
        array_4.finish();
    }
    if let Some(var_7) = &input.dry_run {
        object.key("DryRun").boolean(*var_7);
    }
    Ok(())
}