1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_data_protection_policy_input_input(
    input: &crate::operation::put_data_protection_policy::PutDataProtectionPolicyInput,
) -> Result<::aws_smithy_http::body::SdkBody, ::aws_smithy_http::operation::error::SerializationError>
{
    let mut out = String::new();
    #[allow(unused_mut)]
    let mut writer =
        ::aws_smithy_query::QueryWriter::new(&mut out, "PutDataProtectionPolicy", "2010-03-31");
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("ResourceArn");
    if let Some(var_2) = &input.resource_arn {
        scope_1.string(var_2);
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("DataProtectionPolicy");
    if let Some(var_4) = &input.data_protection_policy {
        scope_3.string(var_4);
    }
    writer.finish();
    Ok(::aws_smithy_http::body::SdkBody::from(out))
}