aws-sdk-eventbridgev2 1.2.0

AWS SDK for Amazon EventBridgeV2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_raw_events_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::put_raw_events::PutRawEventsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.event_bus_arn {
        encoder.str("EventBusArn").str(var_1.as_str());
    }
    if let Some(var_2) = &input.entries {
        encoder.str("Entries");
        encoder.array((*var_2).len());
        for item_3 in var_2 {
            {
                crate::protocol_serde::shape_put_raw_events_request_entry::ser_put_raw_events_request_entry(encoder, item_3)?;
            }
        }
    }
    if let Some(var_4) = &input.schema_registry_configuration {
        encoder.str("SchemaRegistryConfiguration");
        crate::protocol_serde::shape_schema_registry_configuration::ser_schema_registry_configuration(encoder, var_4)?;
    }
    if let Some(var_5) = &input.deduplication_configuration {
        encoder.str("DeduplicationConfiguration");
        crate::protocol_serde::shape_deduplication_configuration::ser_deduplication_configuration(encoder, var_5)?;
    }
    encoder.end();
    Ok(())
}