aws-sdk-cloudfront 1.115.0

AWS SDK for Amazon CloudFront
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_ca_certificates_bundle_source(
    input: &crate::types::CaCertificatesBundleSource,
    writer: ::aws_smithy_xml::encode::ElWriter,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    let mut scope_writer = writer.finish();
    match input {
        crate::types::CaCertificatesBundleSource::CaCertificatesBundleS3Location(inner) => {
            let inner_writer = scope_writer.start_el("CaCertificatesBundleS3Location");
            crate::protocol_serde::shape_ca_certificates_bundle_s3_location::ser_ca_certificates_bundle_s3_location(inner, inner_writer)?
        }
        crate::types::CaCertificatesBundleSource::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "CaCertificatesBundleSource",
            ))
        }
    }
    Ok(())
}