pub fn ser_create_subscriber_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_subscriber::CreateSubscriberInput,
) -> ::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.invoke_configuration {
encoder.str("InvokeConfiguration");
crate::protocol_serde::shape_invoke_configuration::ser_invoke_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.filter_configuration {
encoder.str("FilterConfiguration");
crate::protocol_serde::shape_filter_configuration::ser_filter_configuration(encoder, var_5)?;
}
if let Some(var_6) = &input.r#type {
encoder.str("Type").str(var_6.as_str());
}
if let Some(var_7) = &input.starting_position {
encoder.str("StartingPosition").str(var_7.as_str());
}
if let Some(var_8) = &input.point_in_time_configuration {
encoder.str("PointInTimeConfiguration");
crate::protocol_serde::shape_point_in_time_configuration::ser_point_in_time_configuration(encoder, var_8)?;
}
if let Some(var_9) = &input.batch_configuration {
encoder.str("BatchConfiguration");
crate::protocol_serde::shape_batch_configuration::ser_batch_configuration(encoder, var_9)?;
}
if let Some(var_10) = &input.transformer {
encoder.str("Transformer");
crate::protocol_serde::shape_transformer::ser_transformer(encoder, var_10)?;
}
if let Some(var_11) = &input.retry_policy {
encoder.str("RetryPolicy");
crate::protocol_serde::shape_retry_policy::ser_retry_policy(encoder, var_11)?;
}
if let Some(var_12) = &input.on_failure_configuration {
encoder.str("OnFailureConfiguration");
crate::protocol_serde::shape_on_failure_configuration::ser_on_failure_configuration(encoder, var_12)?;
}
if let Some(var_13) = &input.log_configuration {
encoder.str("LogConfiguration");
crate::protocol_serde::shape_log_configuration::ser_log_configuration(encoder, var_13)?;
}
if let Some(var_14) = &input.state {
encoder.str("State").str(var_14.as_str());
}
if let Some(var_15) = &input.tags {
encoder.str("Tags");
encoder.map((*var_15).len());
for (key_16, value_17) in var_15 {
{
encoder.str(key_16.as_str()).str(value_17.as_str());
}
}
}
if let Some(var_18) = &input.client_token {
encoder.str("ClientToken").str(var_18.as_str());
}
encoder.end();
Ok(())
}