aws-sdk-securityhub 1.109.0

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