pub fn ser_update_automation_rule_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::update_automation_rule::UpdateAutomationRuleInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.rule_arn {
encoder.str("ruleArn").str(var_1.as_str());
}
if let Some(var_2) = &input.rule_revision {
encoder.str("ruleRevision").long(*var_2);
}
if let Some(var_3) = &input.name {
encoder.str("name").str(var_3.as_str());
}
if let Some(var_4) = &input.description {
encoder.str("description").str(var_4.as_str());
}
if let Some(var_5) = &input.rule_type {
encoder.str("ruleType").str(var_5.as_str());
}
if let Some(var_6) = &input.organization_configuration {
encoder.str("organizationConfiguration");
crate::protocol_serde::shape_organization_configuration::ser_organization_configuration(encoder, var_6)?;
}
if let Some(var_7) = &input.priority {
encoder.str("priority").str(var_7.as_str());
}
if let Some(var_8) = &input.recommended_action_types {
encoder.str("recommendedActionTypes");
encoder.array((*var_8).len());
for item_9 in var_8 {
{
encoder.str(item_9.as_str());
}
}
}
if let Some(var_10) = &input.criteria {
encoder.str("criteria");
crate::protocol_serde::shape_criteria::ser_criteria(encoder, var_10)?;
}
if let Some(var_11) = &input.schedule {
encoder.str("schedule");
crate::protocol_serde::shape_schedule::ser_schedule(encoder, var_11)?;
}
if let Some(var_12) = &input.status {
encoder.str("status").str(var_12.as_str());
}
if let Some(var_13) = &input.client_token {
encoder.str("clientToken").str(var_13.as_str());
}
encoder.end();
Ok(())
}