aws-sdk-securityhub 1.118.0

AWS SDK for AWS SecurityHub
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_cspm_provider_configuration(
    object_5: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::CspmProviderConfiguration,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::CspmProviderConfiguration::Azure(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_5.key("Azure").start_object();
            crate::protocol_serde::shape_azure_provider_configuration::ser_azure_provider_configuration(&mut object_1, inner)?;
            object_1.finish();
        }
        crate::types::CspmProviderConfiguration::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "CspmProviderConfiguration",
            ))
        }
    }
    Ok(())
}