aws-sdk-mailmanager 1.87.0

AWS SDK for MailManager
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_ingress_point_configuration(
    object_7: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::IngressPointConfiguration,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::IngressPointConfiguration::SmtpPassword(inner) => {
            object_7.key("SmtpPassword").string(inner.as_str());
        }
        crate::types::IngressPointConfiguration::SecretArn(inner) => {
            object_7.key("SecretArn").string(inner.as_str());
        }
        crate::types::IngressPointConfiguration::TlsAuthConfiguration(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_7.key("TlsAuthConfiguration").start_object();
            crate::protocol_serde::shape_tls_auth_configuration::ser_tls_auth_configuration(&mut object_1, inner)?;
            object_1.finish();
        }
        crate::types::IngressPointConfiguration::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "IngressPointConfiguration",
            ))
        }
    }
    Ok(())
}