AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_register_client_input.rs

@@ -1,0 +46,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_register_client_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::register_client::RegisterClientInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.client_name {
    7         -
        object.key("clientName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.client_type {
   10         -
        object.key("clientType").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.entitled_application_arn {
   13         -
        object.key("entitledApplicationArn").string(var_3.as_str());
   14         -
    }
   15         -
    if let Some(var_4) = &input.grant_types {
   16         -
        let mut array_5 = object.key("grantTypes").start_array();
   17         -
        for item_6 in var_4 {
   18         -
            {
   19         -
                array_5.value().string(item_6.as_str());
   20         -
            }
   21         -
        }
   22         -
        array_5.finish();
   23         -
    }
   24         -
    if let Some(var_7) = &input.issuer_url {
   25         -
        object.key("issuerUrl").string(var_7.as_str());
   26         -
    }
   27         -
    if let Some(var_8) = &input.redirect_uris {
   28         -
        let mut array_9 = object.key("redirectUris").start_array();
   29         -
        for item_10 in var_8 {
   30         -
            {
   31         -
                array_9.value().string(item_10.as_str());
   32         -
            }
   33         -
        }
   34         -
        array_9.finish();
   35         -
    }
   36         -
    if let Some(var_11) = &input.scopes {
   37         -
        let mut array_12 = object.key("scopes").start_array();
   38         -
        for item_13 in var_11 {
   39         -
            {
   40         -
                array_12.value().string(item_13.as_str());
   41         -
            }
   42         -
        }
   43         -
        array_12.finish();
   44         -
    }
   45         -
    Ok(())
   46         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_scopes.rs

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scopes<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<::std::string::String>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_slow_down_exception.rs

@@ -1,0 +49,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_slow_down_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::SlowDownExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::SlowDownExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    6         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    7         -
    let tokens = &mut tokens_owned;
    8         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    9         -
    loop {
   10         -
        match tokens.next().transpose()? {
   11         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   12         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   13         -
                "error" => {
   14         -
                    builder = builder.set_error(
   15         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   16         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   17         -
                            .transpose()?,
   18         -
                    );
   19         -
                }
   20         -
                "error_description" => {
   21         -
                    builder = builder.set_error_description(
   22         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   23         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   24         -
                            .transpose()?,
   25         -
                    );
   26         -
                }
   27         -
                "Message" => {
   28         -
                    builder = builder.set_message(
   29         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   30         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   31         -
                            .transpose()?,
   32         -
                    );
   33         -
                }
   34         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   35         -
            },
   36         -
            other => {
   37         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   38         -
                    "expected object key or end object, found: {other:?}"
   39         -
                )))
   40         -
            }
   41         -
        }
   42         -
    }
   43         -
    if tokens.next().is_some() {
   44         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   45         -
            "found more JSON tokens after completing parsing",
   46         -
        ));
   47         -
    }
   48         -
    Ok(builder)
   49         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_start_device_authorization.rs

@@ -1,0 +207,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_start_device_authorization_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::start_device_authorization::StartDeviceAuthorizationOutput,
    9         -
    crate::operation::start_device_authorization::StartDeviceAuthorizationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => {
   19         -
            return Err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled(
   20         -
                generic,
   21         -
            ))
   22         -
        }
   23         -
    };
   24         -
   25         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   26         -
    Err(match error_code {
   27         -
        "InternalServerException" => crate::operation::start_device_authorization::StartDeviceAuthorizationError::InternalServerException({
   28         -
            #[allow(unused_mut)]
   29         -
            let mut tmp = {
   30         -
                #[allow(unused_mut)]
   31         -
                let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default();
   32         -
                output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output)
   33         -
                    .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   34         -
                let output = output.meta(generic);
   35         -
                output.build()
   36         -
            };
   37         -
            if tmp.message.is_none() {
   38         -
                tmp.message = _error_message;
   39         -
            }
   40         -
            tmp
   41         -
        }),
   42         -
        "InvalidClientException" => crate::operation::start_device_authorization::StartDeviceAuthorizationError::InvalidClientException({
   43         -
            #[allow(unused_mut)]
   44         -
            let mut tmp = {
   45         -
                #[allow(unused_mut)]
   46         -
                let mut output = crate::types::error::builders::InvalidClientExceptionBuilder::default();
   47         -
                output = crate::protocol_serde::shape_invalid_client_exception::de_invalid_client_exception_json_err(_response_body, output)
   48         -
                    .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   49         -
                let output = output.meta(generic);
   50         -
                output.build()
   51         -
            };
   52         -
            if tmp.message.is_none() {
   53         -
                tmp.message = _error_message;
   54         -
            }
   55         -
            tmp
   56         -
        }),
   57         -
        "InvalidRequestException" => crate::operation::start_device_authorization::StartDeviceAuthorizationError::InvalidRequestException({
   58         -
            #[allow(unused_mut)]
   59         -
            let mut tmp = {
   60         -
                #[allow(unused_mut)]
   61         -
                let mut output = crate::types::error::builders::InvalidRequestExceptionBuilder::default();
   62         -
                output = crate::protocol_serde::shape_invalid_request_exception::de_invalid_request_exception_json_err(_response_body, output)
   63         -
                    .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   64         -
                let output = output.meta(generic);
   65         -
                output.build()
   66         -
            };
   67         -
            if tmp.message.is_none() {
   68         -
                tmp.message = _error_message;
   69         -
            }
   70         -
            tmp
   71         -
        }),
   72         -
        "SlowDownException" => crate::operation::start_device_authorization::StartDeviceAuthorizationError::SlowDownException({
   73         -
            #[allow(unused_mut)]
   74         -
            let mut tmp = {
   75         -
                #[allow(unused_mut)]
   76         -
                let mut output = crate::types::error::builders::SlowDownExceptionBuilder::default();
   77         -
                output = crate::protocol_serde::shape_slow_down_exception::de_slow_down_exception_json_err(_response_body, output)
   78         -
                    .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   79         -
                let output = output.meta(generic);
   80         -
                output.build()
   81         -
            };
   82         -
            if tmp.message.is_none() {
   83         -
                tmp.message = _error_message;
   84         -
            }
   85         -
            tmp
   86         -
        }),
   87         -
        "UnauthorizedClientException" => crate::operation::start_device_authorization::StartDeviceAuthorizationError::UnauthorizedClientException({
   88         -
            #[allow(unused_mut)]
   89         -
            let mut tmp = {
   90         -
                #[allow(unused_mut)]
   91         -
                let mut output = crate::types::error::builders::UnauthorizedClientExceptionBuilder::default();
   92         -
                output =
   93         -
                    crate::protocol_serde::shape_unauthorized_client_exception::de_unauthorized_client_exception_json_err(_response_body, output)
   94         -
                        .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
   95         -
                let output = output.meta(generic);
   96         -
                output.build()
   97         -
            };
   98         -
            if tmp.message.is_none() {
   99         -
                tmp.message = _error_message;
  100         -
            }
  101         -
            tmp
  102         -
        }),
  103         -
        _ => crate::operation::start_device_authorization::StartDeviceAuthorizationError::generic(generic),
  104         -
    })
  105         -
}
  106         -
  107         -
#[allow(clippy::unnecessary_wraps)]
  108         -
pub fn de_start_device_authorization_http_response(
  109         -
    _response_status: u16,
  110         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  111         -
    _response_body: &[u8],
  112         -
) -> std::result::Result<
  113         -
    crate::operation::start_device_authorization::StartDeviceAuthorizationOutput,
  114         -
    crate::operation::start_device_authorization::StartDeviceAuthorizationError,
  115         -
> {
  116         -
    Ok({
  117         -
        #[allow(unused_mut)]
  118         -
        let mut output = crate::operation::start_device_authorization::builders::StartDeviceAuthorizationOutputBuilder::default();
  119         -
        output = crate::protocol_serde::shape_start_device_authorization::de_start_device_authorization(_response_body, output)
  120         -
            .map_err(crate::operation::start_device_authorization::StartDeviceAuthorizationError::unhandled)?;
  121         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  122         -
        output.build()
  123         -
    })
  124         -
}
  125         -
  126         -
pub fn ser_start_device_authorization_input(
  127         -
    input: &crate::operation::start_device_authorization::StartDeviceAuthorizationInput,
  128         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  129         -
    let mut out = String::new();
  130         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  131         -
    crate::protocol_serde::shape_start_device_authorization_input::ser_start_device_authorization_input_input(&mut object, input)?;
  132         -
    object.finish();
  133         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  134         -
}
  135         -
  136         -
pub(crate) fn de_start_device_authorization(
  137         -
    _value: &[u8],
  138         -
    mut builder: crate::operation::start_device_authorization::builders::StartDeviceAuthorizationOutputBuilder,
  139         -
) -> ::std::result::Result<
  140         -
    crate::operation::start_device_authorization::builders::StartDeviceAuthorizationOutputBuilder,
  141         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  142         -
> {
  143         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  144         -
    let tokens = &mut tokens_owned;
  145         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  146         -
    loop {
  147         -
        match tokens.next().transpose()? {
  148         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  149         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  150         -
                "deviceCode" => {
  151         -
                    builder = builder.set_device_code(
  152         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  153         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  154         -
                            .transpose()?,
  155         -
                    );
  156         -
                }
  157         -
                "expiresIn" => {
  158         -
                    builder = builder.set_expires_in(
  159         -
                        ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
  160         -
                            .map(i32::try_from)
  161         -
                            .transpose()?,
  162         -
                    );
  163         -
                }
  164         -
                "interval" => {
  165         -
                    builder = builder.set_interval(
  166         -
                        ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
  167         -
                            .map(i32::try_from)
  168         -
                            .transpose()?,
  169         -
                    );
  170         -
                }
  171         -
                "userCode" => {
  172         -
                    builder = builder.set_user_code(
  173         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  174         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  175         -
                            .transpose()?,
  176         -
                    );
  177         -
                }
  178         -
                "verificationUri" => {
  179         -
                    builder = builder.set_verification_uri(
  180         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  181         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  182         -
                            .transpose()?,
  183         -
                    );
  184         -
                }
  185         -
                "verificationUriComplete" => {
  186         -
                    builder = builder.set_verification_uri_complete(
  187         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  188         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  189         -
                            .transpose()?,
  190         -
                    );
  191         -
                }
  192         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  193         -
            },
  194         -
            other => {
  195         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  196         -
                    "expected object key or end object, found: {other:?}"
  197         -
                )))
  198         -
            }
  199         -
        }
  200         -
    }
  201         -
    if tokens.next().is_some() {
  202         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  203         -
            "found more JSON tokens after completing parsing",
  204         -
        ));
  205         -
    }
  206         -
    Ok(builder)
  207         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_start_device_authorization_input.rs

@@ -1,0 +16,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_start_device_authorization_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::start_device_authorization::StartDeviceAuthorizationInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.client_id {
    7         -
        object.key("clientId").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.client_secret {
   10         -
        object.key("clientSecret").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.start_url {
   13         -
        object.key("startUrl").string(var_3.as_str());
   14         -
    }
   15         -
    Ok(())
   16         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_unauthorized_client_exception.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_unauthorized_client_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::UnauthorizedClientExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::UnauthorizedClientExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
{
    7         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    8         -
    let tokens = &mut tokens_owned;
    9         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   10         -
    loop {
   11         -
        match tokens.next().transpose()? {
   12         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   13         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   14         -
                "error" => {
   15         -
                    builder = builder.set_error(
   16         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   17         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   18         -
                            .transpose()?,
   19         -
                    );
   20         -
                }
   21         -
                "error_description" => {
   22         -
                    builder = builder.set_error_description(
   23         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   24         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   25         -
                            .transpose()?,
   26         -
                    );
   27         -
                }
   28         -
                "Message" => {
   29         -
                    builder = builder.set_message(
   30         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                            .transpose()?,
   33         -
                    );
   34         -
                }
   35         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   36         -
            },
   37         -
            other => {
   38         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   39         -
                    "expected object key or end object, found: {other:?}"
   40         -
                )))
   41         -
            }
   42         -
        }
   43         -
    }
   44         -
    if tokens.next().is_some() {
   45         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   46         -
            "found more JSON tokens after completing parsing",
   47         -
        ));
   48         -
    }
   49         -
    Ok(builder)
   50         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_unsupported_grant_type_exception.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_unsupported_grant_type_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::UnsupportedGrantTypeExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::UnsupportedGrantTypeExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
{
    7         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    8         -
    let tokens = &mut tokens_owned;
    9         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   10         -
    loop {
   11         -
        match tokens.next().transpose()? {
   12         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   13         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   14         -
                "error" => {
   15         -
                    builder = builder.set_error(
   16         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   17         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   18         -
                            .transpose()?,
   19         -
                    );
   20         -
                }
   21         -
                "error_description" => {
   22         -
                    builder = builder.set_error_description(
   23         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   24         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   25         -
                            .transpose()?,
   26         -
                    );
   27         -
                }
   28         -
                "Message" => {
   29         -
                    builder = builder.set_message(
   30         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                            .transpose()?,
   33         -
                    );
   34         -
                }
   35         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   36         -
            },
   37         -
            other => {
   38         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   39         -
                    "expected object key or end object, found: {other:?}"
   40         -
                )))
   41         -
            }
   42         -
        }
   43         -
    }
   44         -
    if tokens.next().is_some() {
   45         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   46         -
            "found more JSON tokens after completing parsing",
   47         -
        ));
   48         -
    }
   49         -
    Ok(builder)
   50         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/serialization_settings.rs

@@ -1,0 +89,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/*
    3         -
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4         -
 * SPDX-License-Identifier: Apache-2.0
    5         -
 */
    6         -
    7         -
#![allow(dead_code)]
    8         -
    9         -
use aws_smithy_http::header::set_request_header_if_absent;
   10         -
use aws_smithy_types::config_bag::{Storable, StoreReplace};
   11         -
use http_1x::header::{HeaderName, CONTENT_LENGTH, CONTENT_TYPE};
   12         -
   13         -
/// Configuration for how default protocol headers are serialized
   14         -
#[derive(Clone, Debug, Default)]
   15         -
pub(crate) struct HeaderSerializationSettings {
   16         -
    omit_default_content_length: bool,
   17         -
    omit_default_content_type: bool,
   18         -
}
   19         -
   20         -
impl HeaderSerializationSettings {
   21         -
    /// Creates new [`HeaderSerializationSettings`]
   22         -
    pub(crate) fn new() -> Self {
   23         -
        Default::default()
   24         -
    }
   25         -
   26         -
    /// Omit the default `Content-Length` header during serialization
   27         -
    pub(crate) fn omit_default_content_length(self) -> Self {
   28         -
        Self {
   29         -
            omit_default_content_length: true,
   30         -
            ..self
   31         -
        }
   32         -
    }
   33         -
   34         -
    /// Omit the default `Content-Type` header during serialization
   35         -
    pub(crate) fn omit_default_content_type(self) -> Self {
   36         -
        Self {
   37         -
            omit_default_content_type: true,
   38         -
            ..self
   39         -
        }
   40         -
    }
   41         -
   42         -
    /// Returns true if the given default header name should be serialized
   43         -
    fn include_header(&self, header: &HeaderName) -> bool {
   44         -
        (!self.omit_default_content_length || header != CONTENT_LENGTH) && (!self.omit_default_content_type || header != CONTENT_TYPE)
   45         -
    }
   46         -
   47         -
    /// Sets a default header on the given request builder if it should be serialized
   48         -
    pub(crate) fn set_default_header(
   49         -
        &self,
   50         -
        mut request: http_1x::request::Builder,
   51         -
        header_name: HeaderName,
   52         -
        value: &str,
   53         -
    ) -> http_1x::request::Builder {
   54         -
        if self.include_header(&header_name) {
   55         -
            request = set_request_header_if_absent(request, header_name, value);
   56         -
        }
   57         -
        request
   58         -
    }
   59         -
}
   60         -
   61         -
impl Storable for HeaderSerializationSettings {
   62         -
    type Storer = StoreReplace<Self>;
   63         -
}
   64         -
   65         -
#[cfg(test)]
   66         -
mod tests {
   67         -
    use super::*;
   68         -
   69         -
    #[test]
   70         -
    fn test_include_header() {
   71         -
        let settings = HeaderSerializationSettings::default();
   72         -
        assert!(settings.include_header(&CONTENT_LENGTH));
   73         -
        assert!(settings.include_header(&CONTENT_TYPE));
   74         -
   75         -
        let settings = HeaderSerializationSettings::default().omit_default_content_length();
   76         -
        assert!(!settings.include_header(&CONTENT_LENGTH));
   77         -
        assert!(settings.include_header(&CONTENT_TYPE));
   78         -
   79         -
        let settings = HeaderSerializationSettings::default().omit_default_content_type();
   80         -
        assert!(settings.include_header(&CONTENT_LENGTH));
   81         -
        assert!(!settings.include_header(&CONTENT_TYPE));
   82         -
   83         -
        let settings = HeaderSerializationSettings::default()
   84         -
            .omit_default_content_type()
   85         -
            .omit_default_content_length();
   86         -
        assert!(!settings.include_header(&CONTENT_LENGTH));
   87         -
        assert!(!settings.include_header(&CONTENT_TYPE));
   88         -
    }
   89         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/_aws_additional_details.rs

@@ -1,1 +109,120 @@
   20     20   
    "com.amazonaws.ssooidc",
   21     21   
    "AwsAdditionalDetails",
   22     22   
);
   23     23   
static AWSADDITIONALDETAILS_MEMBER_IDENTITY_CONTEXT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   24     24   
    ::aws_smithy_schema::ShapeId::from_static(
   25     25   
        "com.amazonaws.ssooidc#AwsAdditionalDetails$identityContext",
   26     26   
        "com.amazonaws.ssooidc",
   27     27   
        "AwsAdditionalDetails",
   28     28   
    ),
   29     29   
    ::aws_smithy_schema::ShapeType::String,
   30         -
    "identity_context",
          30  +
    "identityContext",
   31     31   
    0,
   32     32   
);
   33     33   
static AWSADDITIONALDETAILS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     34   
    AWSADDITIONALDETAILS_SCHEMA_ID,
   35     35   
    ::aws_smithy_schema::ShapeType::Structure,
   36     36   
    &[&AWSADDITIONALDETAILS_MEMBER_IDENTITY_CONTEXT],
   37     37   
);
   38     38   
impl AwsAdditionalDetails {
   39     39   
    /// The schema for this shape.
   40     40   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AWSADDITIONALDETAILS_SCHEMA;
   41     41   
}
   42     42   
impl ::aws_smithy_schema::serde::SerializableStruct for AwsAdditionalDetails {
   43     43   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   44     44   
    fn serialize_members(
   45     45   
        &self,
   46     46   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   47     47   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   48     48   
        if let Some(ref val) = self.identity_context {
   49     49   
            ser.write_string(&AWSADDITIONALDETAILS_MEMBER_IDENTITY_CONTEXT, val)?;
   50     50   
        }
   51     51   
        Ok(())
   52     52   
    }
   53     53   
}
   54     54   
impl AwsAdditionalDetails {
   55     55   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   56         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   57         -
        deserializer: &mut D,
          56  +
    pub fn deserialize(
          57  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   58     58   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   59     59   
        #[allow(unused_variables, unused_mut)]
   60     60   
        let mut builder = Self::builder();
   61     61   
        #[allow(
   62     62   
            unused_variables,
   63     63   
            unreachable_code,
   64     64   
            clippy::single_match,
   65     65   
            clippy::match_single_binding,
   66     66   
            clippy::diverging_sub_expression
   67     67   
        )]
   68         -
        deserializer.read_struct(&AWSADDITIONALDETAILS_SCHEMA, (), |_, member, deser| {
          68  +
        deserializer.read_struct(&AWSADDITIONALDETAILS_SCHEMA, &mut |member, deser| {
   69     69   
            match member.member_index() {
   70     70   
                Some(0) => {
   71     71   
                    builder.identity_context = Some(deser.read_string(member)?);
   72     72   
                }
   73     73   
                _ => {}
   74     74   
            }
   75     75   
            Ok(())
   76     76   
        })?;
   77     77   
        Ok(builder.build())
   78     78   
    }
   79     79   
}
          80  +
impl AwsAdditionalDetails {
          81  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          82  +
    pub fn deserialize_with_response(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          84  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          85  +
        _status: u16,
          86  +
        _body: &[u8],
          87  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          88  +
        Self::deserialize(deserializer)
          89  +
    }
          90  +
}
   80     91   
impl AwsAdditionalDetails {
   81     92   
    /// Creates a new builder-style object to manufacture [`AwsAdditionalDetails`](crate::types::AwsAdditionalDetails).
   82     93   
    pub fn builder() -> crate::types::builders::AwsAdditionalDetailsBuilder {
   83     94   
        crate::types::builders::AwsAdditionalDetailsBuilder::default()
   84     95   
    }
   85     96   
}
   86     97   
   87     98   
/// A builder for [`AwsAdditionalDetails`](crate::types::AwsAdditionalDetails).
   88     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   89    100   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_access_denied_exception.rs

@@ -43,43 +175,186 @@
   63     63   
    "error_description",
   64     64   
    2,
   65     65   
);
   66     66   
static ACCESSDENIEDEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.ssooidc#AccessDeniedException$Message",
   69     69   
        "com.amazonaws.ssooidc",
   70     70   
        "AccessDeniedException",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::String,
   73         -
    "message",
          73  +
    "Message",
   74     74   
    3,
   75     75   
);
   76     76   
static ACCESSDENIEDEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   77     77   
    ACCESSDENIEDEXCEPTION_SCHEMA_ID,
   78     78   
    ::aws_smithy_schema::ShapeType::Structure,
   79     79   
    &[
   80     80   
        &ACCESSDENIEDEXCEPTION_MEMBER_ERROR,
   81     81   
        &ACCESSDENIEDEXCEPTION_MEMBER_REASON,
   82     82   
        &ACCESSDENIEDEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   83     83   
        &ACCESSDENIEDEXCEPTION_MEMBER_MESSAGE,
   84     84   
    ],
   85     85   
);
   86     86   
impl AccessDeniedException {
   87     87   
    /// The schema for this shape.
   88     88   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ACCESSDENIEDEXCEPTION_SCHEMA;
   89     89   
}
   90     90   
impl ::aws_smithy_schema::serde::SerializableStruct for AccessDeniedException {
   91     91   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   92     92   
    fn serialize_members(
   93     93   
        &self,
   94     94   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   95     95   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        if let Some(ref val) = self.error {
   97     97   
            ser.write_string(&ACCESSDENIEDEXCEPTION_MEMBER_ERROR, val)?;
   98     98   
        }
   99     99   
        if let Some(ref val) = self.reason {
  100    100   
            ser.write_string(&ACCESSDENIEDEXCEPTION_MEMBER_REASON, val.as_str())?;
  101    101   
        }
  102    102   
        if let Some(ref val) = self.error_description {
  103    103   
            ser.write_string(&ACCESSDENIEDEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
  104    104   
        }
  105    105   
        if let Some(ref val) = self.message {
  106    106   
            ser.write_string(&ACCESSDENIEDEXCEPTION_MEMBER_MESSAGE, val)?;
  107    107   
        }
  108    108   
        Ok(())
  109    109   
    }
  110    110   
}
  111    111   
impl AccessDeniedException {
  112    112   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  113         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  114         -
        deserializer: &mut D,
         113  +
    pub fn deserialize(
         114  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  115    115   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  116    116   
        #[allow(unused_variables, unused_mut)]
  117    117   
        let mut builder = Self::builder();
  118    118   
        #[allow(
  119    119   
            unused_variables,
  120    120   
            unreachable_code,
  121    121   
            clippy::single_match,
  122    122   
            clippy::match_single_binding,
  123    123   
            clippy::diverging_sub_expression
  124    124   
        )]
  125         -
        deserializer.read_struct(&ACCESSDENIEDEXCEPTION_SCHEMA, (), |_, member, deser| {
         125  +
        deserializer.read_struct(&ACCESSDENIEDEXCEPTION_SCHEMA, &mut |member, deser| {
  126    126   
            match member.member_index() {
  127    127   
                Some(0) => {
  128    128   
                    builder.error = Some(deser.read_string(member)?);
  129    129   
                }
  130    130   
                Some(1) => {
  131    131   
                    builder.reason = Some(crate::types::AccessDeniedExceptionReason::from(deser.read_string(member)?.as_str()));
  132    132   
                }
  133    133   
                Some(2) => {
  134    134   
                    builder.error_description = Some(deser.read_string(member)?);
  135    135   
                }
  136    136   
                Some(3) => {
  137    137   
                    builder.message = Some(deser.read_string(member)?);
  138    138   
                }
  139    139   
                _ => {}
  140    140   
            }
  141    141   
            Ok(())
  142    142   
        })?;
  143    143   
        Ok(builder.build())
  144    144   
    }
  145    145   
}
         146  +
impl AccessDeniedException {
         147  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         148  +
    pub fn deserialize_with_response(
         149  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         150  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         151  +
        _status: u16,
         152  +
        _body: &[u8],
         153  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         154  +
        Self::deserialize(deserializer)
         155  +
    }
         156  +
}
  146    157   
impl AccessDeniedException {
  147    158   
    /// Returns the error message.
  148    159   
    pub fn message(&self) -> ::std::option::Option<&str> {
  149    160   
        self.message.as_deref()
  150    161   
    }
  151    162   
}
  152    163   
impl ::std::fmt::Display for AccessDeniedException {
  153    164   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  154    165   
        ::std::write!(f, "AccessDeniedException")?;
  155    166   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_authorization_pending_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static AUTHORIZATIONPENDINGEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#AuthorizationPendingException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "AuthorizationPendingException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static AUTHORIZATIONPENDINGEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    AUTHORIZATIONPENDINGEXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &AUTHORIZATIONPENDINGEXCEPTION_MEMBER_ERROR,
   65     65   
        &AUTHORIZATIONPENDINGEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &AUTHORIZATIONPENDINGEXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl AuthorizationPendingException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AUTHORIZATIONPENDINGEXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for AuthorizationPendingException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&AUTHORIZATIONPENDINGEXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&AUTHORIZATIONPENDINGEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&AUTHORIZATIONPENDINGEXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl AuthorizationPendingException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&AUTHORIZATIONPENDINGEXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&AUTHORIZATIONPENDINGEXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl AuthorizationPendingException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl AuthorizationPendingException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for AuthorizationPendingException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "AuthorizationPendingException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_expired_token_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static EXPIREDTOKENEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#ExpiredTokenException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "ExpiredTokenException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static EXPIREDTOKENEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    EXPIREDTOKENEXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &EXPIREDTOKENEXCEPTION_MEMBER_ERROR,
   65     65   
        &EXPIREDTOKENEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &EXPIREDTOKENEXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl ExpiredTokenException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXPIREDTOKENEXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for ExpiredTokenException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&EXPIREDTOKENEXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&EXPIREDTOKENEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&EXPIREDTOKENEXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl ExpiredTokenException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&EXPIREDTOKENEXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&EXPIREDTOKENEXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl ExpiredTokenException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl ExpiredTokenException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for ExpiredTokenException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "ExpiredTokenException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_internal_server_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static INTERNALSERVEREXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#InternalServerException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "InternalServerException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static INTERNALSERVEREXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    INTERNALSERVEREXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &INTERNALSERVEREXCEPTION_MEMBER_ERROR,
   65     65   
        &INTERNALSERVEREXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &INTERNALSERVEREXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl InternalServerException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INTERNALSERVEREXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for InternalServerException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&INTERNALSERVEREXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&INTERNALSERVEREXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&INTERNALSERVEREXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl InternalServerException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&INTERNALSERVEREXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&INTERNALSERVEREXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl InternalServerException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl InternalServerException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for InternalServerException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "InternalServerException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_invalid_client_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static INVALIDCLIENTEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#InvalidClientException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "InvalidClientException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static INVALIDCLIENTEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    INVALIDCLIENTEXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &INVALIDCLIENTEXCEPTION_MEMBER_ERROR,
   65     65   
        &INVALIDCLIENTEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &INVALIDCLIENTEXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl InvalidClientException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INVALIDCLIENTEXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidClientException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&INVALIDCLIENTEXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&INVALIDCLIENTEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&INVALIDCLIENTEXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl InvalidClientException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&INVALIDCLIENTEXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&INVALIDCLIENTEXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl InvalidClientException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl InvalidClientException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for InvalidClientException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "InvalidClientException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_invalid_client_metadata_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static INVALIDCLIENTMETADATAEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#InvalidClientMetadataException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "InvalidClientMetadataException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static INVALIDCLIENTMETADATAEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    INVALIDCLIENTMETADATAEXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &INVALIDCLIENTMETADATAEXCEPTION_MEMBER_ERROR,
   65     65   
        &INVALIDCLIENTMETADATAEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &INVALIDCLIENTMETADATAEXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl InvalidClientMetadataException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INVALIDCLIENTMETADATAEXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidClientMetadataException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&INVALIDCLIENTMETADATAEXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&INVALIDCLIENTMETADATAEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&INVALIDCLIENTMETADATAEXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl InvalidClientMetadataException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&INVALIDCLIENTMETADATAEXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&INVALIDCLIENTMETADATAEXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl InvalidClientMetadataException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl InvalidClientMetadataException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for InvalidClientMetadataException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "InvalidClientMetadataException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/types/error/_invalid_grant_exception.rs

@@ -27,27 +152,163 @@
   47     47   
    "error_description",
   48     48   
    1,
   49     49   
);
   50     50   
static INVALIDGRANTEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ssooidc#InvalidGrantException$Message",
   53     53   
        "com.amazonaws.ssooidc",
   54     54   
        "InvalidGrantException",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "message",
          57  +
    "Message",
   58     58   
    2,
   59     59   
);
   60     60   
static INVALIDGRANTEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   61     61   
    INVALIDGRANTEXCEPTION_SCHEMA_ID,
   62     62   
    ::aws_smithy_schema::ShapeType::Structure,
   63     63   
    &[
   64     64   
        &INVALIDGRANTEXCEPTION_MEMBER_ERROR,
   65     65   
        &INVALIDGRANTEXCEPTION_MEMBER_ERROR_DESCRIPTION,
   66     66   
        &INVALIDGRANTEXCEPTION_MEMBER_MESSAGE,
   67     67   
    ],
   68     68   
);
   69     69   
impl InvalidGrantException {
   70     70   
    /// The schema for this shape.
   71     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INVALIDGRANTEXCEPTION_SCHEMA;
   72     72   
}
   73     73   
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidGrantException {
   74     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     75   
    fn serialize_members(
   76     76   
        &self,
   77     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        if let Some(ref val) = self.error {
   80     80   
            ser.write_string(&INVALIDGRANTEXCEPTION_MEMBER_ERROR, val)?;
   81     81   
        }
   82     82   
        if let Some(ref val) = self.error_description {
   83     83   
            ser.write_string(&INVALIDGRANTEXCEPTION_MEMBER_ERROR_DESCRIPTION, val)?;
   84     84   
        }
   85     85   
        if let Some(ref val) = self.message {
   86     86   
            ser.write_string(&INVALIDGRANTEXCEPTION_MEMBER_MESSAGE, val)?;
   87     87   
        }
   88     88   
        Ok(())
   89     89   
    }
   90     90   
}
   91     91   
impl InvalidGrantException {
   92     92   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   93         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   94         -
        deserializer: &mut D,
          93  +
    pub fn deserialize(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   95     95   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   96     96   
        #[allow(unused_variables, unused_mut)]
   97     97   
        let mut builder = Self::builder();
   98     98   
        #[allow(
   99     99   
            unused_variables,
  100    100   
            unreachable_code,
  101    101   
            clippy::single_match,
  102    102   
            clippy::match_single_binding,
  103    103   
            clippy::diverging_sub_expression
  104    104   
        )]
  105         -
        deserializer.read_struct(&INVALIDGRANTEXCEPTION_SCHEMA, (), |_, member, deser| {
         105  +
        deserializer.read_struct(&INVALIDGRANTEXCEPTION_SCHEMA, &mut |member, deser| {
  106    106   
            match member.member_index() {
  107    107   
                Some(0) => {
  108    108   
                    builder.error = Some(deser.read_string(member)?);
  109    109   
                }
  110    110   
                Some(1) => {
  111    111   
                    builder.error_description = Some(deser.read_string(member)?);
  112    112   
                }
  113    113   
                Some(2) => {
  114    114   
                    builder.message = Some(deser.read_string(member)?);
  115    115   
                }
  116    116   
                _ => {}
  117    117   
            }
  118    118   
            Ok(())
  119    119   
        })?;
  120    120   
        Ok(builder.build())
  121    121   
    }
  122    122   
}
         123  +
impl InvalidGrantException {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  123    134   
impl InvalidGrantException {
  124    135   
    /// Returns the error message.
  125    136   
    pub fn message(&self) -> ::std::option::Option<&str> {
  126    137   
        self.message.as_deref()
  127    138   
    }
  128    139   
}
  129    140   
impl ::std::fmt::Display for InvalidGrantException {
  130    141   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  131    142   
        ::std::write!(f, "InvalidGrantException")?;
  132    143   
        if let ::std::option::Option::Some(inner_1) = &self.message {