aws_sdk_secretsmanager/protocol_serde/
shape_replicate_secret_to_regions_input.rspub fn ser_replicate_secret_to_regions_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::replicate_secret_to_regions::ReplicateSecretToRegionsInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.secret_id {
object.key("SecretId").string(var_1.as_str());
}
if let Some(var_2) = &input.add_replica_regions {
let mut array_3 = object.key("AddReplicaRegions").start_array();
for item_4 in var_2 {
{
#[allow(unused_mut)]
let mut object_5 = array_3.value().start_object();
crate::protocol_serde::shape_replica_region_type::ser_replica_region_type(&mut object_5, item_4)?;
object_5.finish();
}
}
array_3.finish();
}
if let Some(var_6) = &input.force_overwrite_replica_secret {
object.key("ForceOverwriteReplicaSecret").boolean(*var_6);
}
Ok(())
}