aws_sdk_secretsmanager/protocol_serde/
shape_rotate_secret_input.rspub fn ser_rotate_secret_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::rotate_secret::RotateSecretInput,
) -> 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.client_request_token {
object.key("ClientRequestToken").string(var_2.as_str());
}
if let Some(var_3) = &input.rotation_lambda_arn {
object.key("RotationLambdaARN").string(var_3.as_str());
}
if let Some(var_4) = &input.rotation_rules {
#[allow(unused_mut)]
let mut object_5 = object.key("RotationRules").start_object();
crate::protocol_serde::shape_rotation_rules_type::ser_rotation_rules_type(&mut object_5, var_4)?;
object_5.finish();
}
if let Some(var_6) = &input.rotate_immediately {
object.key("RotateImmediately").boolean(*var_6);
}
Ok(())
}