aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_update_environment_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_environment::UpdateEnvironmentInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.environment_arn {
        encoder.str("environmentArn").str(var_1.as_str());
    }
    if let Some(var_2) = &input.description {
        encoder.str("description").str(var_2.as_str());
    }
    if let Some(var_3) = &input.identity_store {
        encoder.str("identityStore");
        crate::protocol_serde::shape_identity_store_update::ser_identity_store_update(encoder, var_3)?;
    }
    if let Some(var_4) = &input.operator_role {
        encoder.str("operatorRole").str(var_4.as_str());
    }
    if let Some(var_5) = &input.kms_key_arn {
        encoder.str("kmsKeyArn").str(var_5.as_str());
    }
    if let Some(var_6) = &input.regions {
        encoder.str("regions");
        encoder.array((*var_6).len());
        for item_7 in var_6 {
            {
                encoder.str(item_7.as_str());
            }
        }
    }
    if let Some(var_8) = &input.environment_scope {
        encoder.str("environmentScope").str(var_8.as_str());
    }
    if let Some(var_9) = &input.organizational_unit_ids {
        encoder.str("organizationalUnitIds");
        crate::protocol_serde::shape_organizational_unit_ids_update::ser_organizational_unit_ids_update(encoder, var_9)?;
    }
    encoder.end();
    Ok(())
}