aws_sdk_redshift/protocol_serde/
shape_create_authentication_profile_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_create_authentication_profile_input_input_input(
3    input: &crate::operation::create_authentication_profile::CreateAuthenticationProfileInput,
4) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
5    let mut out = String::new();
6    #[allow(unused_mut)]
7    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "CreateAuthenticationProfile", "2012-12-01");
8    #[allow(unused_mut)]
9    let mut scope_1 = writer.prefix("AuthenticationProfileName");
10    if let Some(var_2) = &input.authentication_profile_name {
11        scope_1.string(var_2);
12    }
13    #[allow(unused_mut)]
14    let mut scope_3 = writer.prefix("AuthenticationProfileContent");
15    if let Some(var_4) = &input.authentication_profile_content {
16        scope_3.string(var_4);
17    }
18    writer.finish();
19    Ok(::aws_smithy_types::body::SdkBody::from(out))
20}