aws_sdk_sts/protocol_serde/
shape_assume_root_input.rspub fn ser_assume_root_input_input_input(
input: &crate::operation::assume_root::AssumeRootInput,
) -> 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, "AssumeRoot", "2011-06-15");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("TargetPrincipal");
if let Some(var_2) = &input.target_principal {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("TaskPolicyArn");
if let Some(var_4) = &input.task_policy_arn {
crate::protocol_serde::shape_policy_descriptor_type::ser_policy_descriptor_type(scope_3, var_4)?;
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("DurationSeconds");
if let Some(var_6) = &input.duration_seconds {
scope_5.number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_6).into()),
);
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}