aws-sdk-cloudformation 1.111.0

AWS SDK for AWS CloudFormation
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_detect_stack_set_drift_input_input_input(
    input: &crate::operation::detect_stack_set_drift::DetectStackSetDriftInput,
) -> ::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, "DetectStackSetDrift", "2010-05-15");
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("StackSetName");
    if let Some(var_2) = &input.stack_set_name {
        scope_1.string(var_2);
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("OperationPreferences");
    if let Some(var_4) = &input.operation_preferences {
        crate::protocol_serde::shape_stack_set_operation_preferences::ser_stack_set_operation_preferences(scope_3, var_4)?;
    }
    #[allow(unused_mut)]
    let mut scope_5 = writer.prefix("OperationId");
    if let Some(var_6) = &input.operation_id {
        scope_5.string(var_6);
    }
    #[allow(unused_mut)]
    let mut scope_7 = writer.prefix("CallAs");
    if let Some(var_8) = &input.call_as {
        scope_7.string(var_8.as_str());
    }
    writer.finish();
    Ok(::aws_smithy_types::body::SdkBody::from(out))
}