pub fn ser_create_event_bus_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_event_bus::CreateEventBusInput,
) -> ::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.encryption_configuration {
encoder.str("EncryptionConfiguration");
crate::protocol_serde::shape_encryption_configuration::ser_encryption_configuration(encoder, var_3)?;
}
if let Some(var_4) = &input.storage_configuration {
encoder.str("StorageConfiguration");
crate::protocol_serde::shape_storage_configuration::ser_storage_configuration(encoder, var_4)?;
}
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(())
}