pub fn ser_auth_config(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::AuthConfig,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("AuthenticationType").string(input.authentication_type.as_str());
}
if let Some(var_1) = &input.authentication_metadata {
#[allow(unused_mut)]
let mut object_2 = object.key("AuthenticationMetadata").start_object();
crate::protocol_serde::shape_authentication_metadata::ser_authentication_metadata(&mut object_2, var_1)?;
object_2.finish();
}
Ok(())
}