aws-sdk-ssm 1.112.0

AWS SDK for Amazon Simple Systems Manager (SSM)
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_resource_policy_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::put_resource_policy::PutResourcePolicyInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.resource_arn {
        object.key("ResourceArn").string(var_1.as_str());
    }
    if let Some(var_2) = &input.policy {
        object.key("Policy").string(var_2.as_str());
    }
    if let Some(var_3) = &input.policy_id {
        object.key("PolicyId").string(var_3.as_str());
    }
    if let Some(var_4) = &input.policy_hash {
        object.key("PolicyHash").string(var_4.as_str());
    }
    Ok(())
}