pub fn ser_describe_alarm_history_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::describe_alarm_history::DescribeAlarmHistoryInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.alarm_name {
encoder.str("AlarmName").str(var_1.as_str());
}
if let Some(var_2) = &input.alarm_contributor_id {
encoder.str("AlarmContributorId").str(var_2.as_str());
}
if let Some(var_3) = &input.alarm_types {
encoder.str("AlarmTypes");
encoder.array((*var_3).len());
for item_4 in var_3 {
{
encoder.str(item_4.as_str());
}
}
}
if let Some(var_5) = &input.history_item_type {
encoder.str("HistoryItemType").str(var_5.as_str());
}
if let Some(var_6) = &input.start_date {
encoder.str("StartDate").timestamp(var_6);
}
if let Some(var_7) = &input.end_date {
encoder.str("EndDate").timestamp(var_7);
}
if let Some(var_8) = &input.max_records {
encoder.str("MaxRecords").integer(*var_8);
}
if let Some(var_9) = &input.next_token {
encoder.str("NextToken").str(var_9.as_str());
}
if let Some(var_10) = &input.scan_by {
encoder.str("ScanBy").str(var_10.as_str());
}
encoder.end();
Ok(())
}