pub fn ser_create_event_source_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_event_source::CreateEventSourceInput,
) -> ::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.event_bus_arn {
encoder.str("EventBusArn").str(var_2.as_str());
}
if let Some(var_3) = &input.configuration {
encoder.str("Configuration");
crate::protocol_serde::shape_event_source_configuration::ser_event_source_configuration(encoder, var_3)?;
}
if let Some(var_4) = &input.description {
encoder.str("Description").str(var_4.as_str());
}
if let Some(var_5) = &input.tags {
encoder.str("Tags");
encoder.map((*var_5).len());
for (key_6, value_7) in var_5 {
{
encoder.str(key_6.as_str()).str(value_7.as_str());
}
}
}
if let Some(var_8) = &input.client_token {
encoder.str("ClientToken").str(var_8.as_str());
}
encoder.end();
Ok(())
}