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_update_subscriber_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_subscriber::UpdateSubscriberInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.subscriber_arn {
        encoder.str("SubscriberArn").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.state {
        encoder.str("State").str(var_3.as_str());
    }
    if let Some(var_4) = &input.resume_position {
        encoder.str("ResumePosition").str(var_4.as_str());
    }
    if let Some(var_5) = &input.invoke_configuration {
        encoder.str("InvokeConfiguration");
        crate::protocol_serde::shape_update_invoke_configuration::ser_update_invoke_configuration(encoder, var_5)?;
    }
    if let Some(var_6) = &input.filter_configuration {
        encoder.str("FilterConfiguration");
        crate::protocol_serde::shape_filter_configuration::ser_filter_configuration(encoder, var_6)?;
    }
    if let Some(var_7) = &input.batch_configuration {
        encoder.str("BatchConfiguration");
        crate::protocol_serde::shape_batch_configuration::ser_batch_configuration(encoder, var_7)?;
    }
    if let Some(var_8) = &input.transformer {
        encoder.str("Transformer");
        crate::protocol_serde::shape_transformer::ser_transformer(encoder, var_8)?;
    }
    if let Some(var_9) = &input.retry_policy {
        encoder.str("RetryPolicy");
        crate::protocol_serde::shape_retry_policy::ser_retry_policy(encoder, var_9)?;
    }
    if let Some(var_10) = &input.on_failure_configuration {
        encoder.str("OnFailureConfiguration");
        crate::protocol_serde::shape_on_failure_configuration::ser_on_failure_configuration(encoder, var_10)?;
    }
    if let Some(var_11) = &input.log_configuration {
        encoder.str("LogConfiguration");
        crate::protocol_serde::shape_log_configuration::ser_log_configuration(encoder, var_11)?;
    }
    encoder.end();
    Ok(())
}