aws-sdk-elasticache 1.110.0

AWS SDK for Amazon ElastiCache
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(unused_mut)]
pub fn ser_log_delivery_configuration_request(
    mut writer: ::aws_smithy_query::QueryValueWriter,
    input: &crate::types::LogDeliveryConfigurationRequest,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("LogType");
    if let Some(var_2) = &input.log_type {
        scope_1.string(var_2.as_str());
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("DestinationType");
    if let Some(var_4) = &input.destination_type {
        scope_3.string(var_4.as_str());
    }
    #[allow(unused_mut)]
    let mut scope_5 = writer.prefix("DestinationDetails");
    if let Some(var_6) = &input.destination_details {
        crate::protocol_serde::shape_destination_details::ser_destination_details(scope_5, var_6)?;
    }
    #[allow(unused_mut)]
    let mut scope_7 = writer.prefix("LogFormat");
    if let Some(var_8) = &input.log_format {
        scope_7.string(var_8.as_str());
    }
    #[allow(unused_mut)]
    let mut scope_9 = writer.prefix("Enabled");
    if let Some(var_10) = &input.enabled {
        scope_9.boolean(*var_10);
    }
    Ok(())
}