pub fn ser_create_automation_rule_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_automation_rule::CreateAutomationRuleInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.name {
encoder.str("name").str(var_1.as_str());
}
if let Some(var_2) = &input.description {
encoder.str("description").str(var_2.as_str());
}
if let Some(var_3) = &input.rule_type {
encoder.str("ruleType").str(var_3.as_str());
}
if let Some(var_4) = &input.organization_configuration {
encoder.str("organizationConfiguration");
crate::protocol_serde::shape_organization_configuration::ser_organization_configuration(encoder, var_4)?;
}
if let Some(var_5) = &input.priority {
encoder.str("priority").str(var_5.as_str());
}
if let Some(var_6) = &input.recommended_action_types {
encoder.str("recommendedActionTypes");
encoder.array((*var_6).len());
for item_7 in var_6 {
{
encoder.str(item_7.as_str());
}
}
}
if let Some(var_8) = &input.criteria {
encoder.str("criteria");
crate::protocol_serde::shape_criteria::ser_criteria(encoder, var_8)?;
}
if let Some(var_9) = &input.schedule {
encoder.str("schedule");
crate::protocol_serde::shape_schedule::ser_schedule(encoder, var_9)?;
}
if let Some(var_10) = &input.status {
encoder.str("status").str(var_10.as_str());
}
if let Some(var_11) = &input.tags {
encoder.str("tags");
encoder.array((*var_11).len());
for item_12 in var_11 {
{
crate::protocol_serde::shape_tag::ser_tag(encoder, item_12)?;
}
}
}
if let Some(var_13) = &input.client_token {
encoder.str("clientToken").str(var_13.as_str());
}
encoder.end();
Ok(())
}