// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_external_evaluation_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::put_external_evaluation::PutExternalEvaluationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.config_rule_name {
        object.key("ConfigRuleName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.external_evaluation {
        #[allow(unused_mut)]
        let mut object_3 = object.key("ExternalEvaluation").start_object();
        crate::protocol_serde::shape_external_evaluation::ser_external_evaluation(&mut object_3, var_2)?;
        object_3.finish();
    }
    Ok(())
}
