pub fn ser_create_user_input_input_input(
input: &crate::operation::create_user::CreateUserInput,
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "CreateUser", "2015-02-02");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("UserId");
if let Some(var_2) = &input.user_id {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("UserName");
if let Some(var_4) = &input.user_name {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("Engine");
if let Some(var_6) = &input.engine {
scope_5.string(var_6);
}
#[allow(unused_mut)]
let mut scope_7 = writer.prefix("Passwords");
if let Some(var_8) = &input.passwords {
let mut list_10 = scope_7.start_list(false, None);
for item_9 in var_8 {
#[allow(unused_mut)]
let mut entry_11 = list_10.entry();
entry_11.string(item_9);
}
list_10.finish();
}
#[allow(unused_mut)]
let mut scope_12 = writer.prefix("AccessString");
if let Some(var_13) = &input.access_string {
scope_12.string(var_13);
}
#[allow(unused_mut)]
let mut scope_14 = writer.prefix("NoPasswordRequired");
if let Some(var_15) = &input.no_password_required {
scope_14.boolean(*var_15);
}
#[allow(unused_mut)]
let mut scope_16 = writer.prefix("Tags");
if let Some(var_17) = &input.tags {
let mut list_19 = scope_16.start_list(false, Some("Tag"));
for item_18 in var_17 {
#[allow(unused_mut)]
let mut entry_20 = list_19.entry();
crate::protocol_serde::shape_tag::ser_tag(entry_20, item_18)?;
}
list_19.finish();
}
#[allow(unused_mut)]
let mut scope_21 = writer.prefix("AuthenticationMode");
if let Some(var_22) = &input.authentication_mode {
crate::protocol_serde::shape_authentication_mode::ser_authentication_mode(scope_21, var_22)?;
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}