AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/verify_session/_verify_session_input.rs

@@ -1,1 +69,83 @@
    2      2   
#[allow(missing_docs)] // documentation missing in model
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct VerifySessionInput {}
    6      6   
static VERIFYSESSIONINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    7      7   
    "com.amazonaws.codecatalyst.synthetic#VerifySessionInput",
    8      8   
    "com.amazonaws.codecatalyst.synthetic",
    9      9   
    "VerifySessionInput",
   10     10   
);
   11     11   
static VERIFYSESSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema =
   12         -
    ::aws_smithy_schema::Schema::new_struct(VERIFYSESSIONINPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          12  +
    ::aws_smithy_schema::Schema::new_struct(VERIFYSESSIONINPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[])
          13  +
        .with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/session", None));
   13     14   
impl VerifySessionInput {
   14     15   
    /// The schema for this shape.
   15     16   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &VERIFYSESSIONINPUT_SCHEMA;
   16     17   
}
   17     18   
impl ::aws_smithy_schema::serde::SerializableStruct for VerifySessionInput {
   18     19   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   19     20   
    fn serialize_members(
   20     21   
        &self,
   21     22   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   22     23   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   23     24   
        Ok(())
   24     25   
    }
   25     26   
}
   26     27   
impl VerifySessionInput {
   27     28   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   28         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   29         -
        deserializer: &mut D,
          29  +
    pub fn deserialize(
          30  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   30     31   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   31     32   
        #[allow(unused_variables, unused_mut)]
   32     33   
        let mut builder = Self::builder();
   33     34   
        #[allow(
   34     35   
            unused_variables,
   35     36   
            unreachable_code,
   36     37   
            clippy::single_match,
   37     38   
            clippy::match_single_binding,
   38     39   
            clippy::diverging_sub_expression
   39     40   
        )]
   40         -
        deserializer.read_struct(&VERIFYSESSIONINPUT_SCHEMA, (), |_, member, deser| {
          41  +
        deserializer.read_struct(&VERIFYSESSIONINPUT_SCHEMA, &mut |member, deser| {
   41     42   
            match member.member_index() {
   42     43   
                _ => {}
   43     44   
            }
   44     45   
            Ok(())
   45     46   
        })?;
   46     47   
        builder
   47     48   
            .build()
   48     49   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   49     50   
    }
   50     51   
}
          52  +
impl VerifySessionInput {
          53  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          54  +
    pub fn deserialize_with_response(
          55  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          56  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          57  +
        _status: u16,
          58  +
        _body: &[u8],
          59  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          60  +
        Self::builder()
          61  +
            .build()
          62  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          63  +
    }
          64  +
}
   51     65   
impl VerifySessionInput {
   52     66   
    /// Creates a new builder-style object to manufacture [`VerifySessionInput`](crate::operation::verify_session::VerifySessionInput).
   53     67   
    pub fn builder() -> crate::operation::verify_session::builders::VerifySessionInputBuilder {
   54     68   
        crate::operation::verify_session::builders::VerifySessionInputBuilder::default()
   55     69   
    }
   56     70   
}
   57     71   
   58     72   
/// A builder for [`VerifySessionInput`](crate::operation::verify_session::VerifySessionInput).
   59     73   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   60     74   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/verify_session/_verify_session_output.rs

@@ -1,1 +96,140 @@
   21     21   
static VERIFYSESSIONOUTPUT_MEMBER_IDENTITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.codecatalyst.synthetic#VerifySessionOutput$identity",
   24     24   
        "com.amazonaws.codecatalyst.synthetic",
   25     25   
        "VerifySessionOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28     28   
    "identity",
   29     29   
    0,
   30     30   
);
          31  +
static VERIFYSESSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static VERIFYSESSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    VERIFYSESSIONOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&VERIFYSESSIONOUTPUT_MEMBER_IDENTITY],
          41  +
    &[&VERIFYSESSIONOUTPUT_MEMBER_IDENTITY, &VERIFYSESSIONOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl VerifySessionOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &VERIFYSESSIONOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for VerifySessionOutput {
   41     48   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     49   
    fn serialize_members(
   43     50   
        &self,
   44     51   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     52   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     53   
        if let Some(ref val) = self.identity {
   47     54   
            ser.write_string(&VERIFYSESSIONOUTPUT_MEMBER_IDENTITY, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl VerifySessionOutput {
   53     60   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          61  +
    pub fn deserialize(
          62  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     63   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     64   
        #[allow(unused_variables, unused_mut)]
   58     65   
        let mut builder = Self::builder();
   59     66   
        #[allow(
   60     67   
            unused_variables,
   61     68   
            unreachable_code,
   62     69   
            clippy::single_match,
   63     70   
            clippy::match_single_binding,
   64     71   
            clippy::diverging_sub_expression
   65     72   
        )]
   66         -
        deserializer.read_struct(&VERIFYSESSIONOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&VERIFYSESSIONOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.identity = Some(deser.read_string(member)?);
          77  +
                }
          78  +
                Some(1) => {
          79  +
                    builder._request_id = Some(deser.read_string(member)?);
          80  +
                }
          81  +
                _ => {}
          82  +
            }
          83  +
            Ok(())
          84  +
        })?;
          85  +
        Ok(builder.build())
          86  +
    }
          87  +
}
          88  +
impl VerifySessionOutput {
          89  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          90  +
    /// Header-bound members are read directly from headers, avoiding runtime
          91  +
    /// member iteration overhead. Body members are read via the deserializer.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        #[allow(unused_variables, unused_mut)]
          99  +
        let mut builder = Self::builder();
         100  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         101  +
            builder._request_id = Some(val.to_string());
         102  +
        }
         103  +
        #[allow(
         104  +
            unused_variables,
         105  +
            unreachable_code,
         106  +
            clippy::single_match,
         107  +
            clippy::match_single_binding,
         108  +
            clippy::diverging_sub_expression
         109  +
        )]
         110  +
        deserializer.read_struct(&VERIFYSESSIONOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.identity = Some(deser.read_string(member)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde.rs

@@ -1,1 +250,0 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn type_erase_result<O, E>(
    3         -
    result: ::std::result::Result<O, E>,
    4         -
) -> ::std::result::Result<
    5         -
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    6         -
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
    7         -
>
    8         -
where
    9         -
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   10         -
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   11         -
{
   12         -
    result
   13         -
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
   14         -
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
   15         -
        .map_err(::std::convert::Into::into)
   16         -
}
   17         -
   18      2   
pub fn parse_http_error_metadata(
   19      3   
    _response_status: u16,
   20      4   
    response_headers: &::aws_smithy_runtime_api::http::Headers,
   21      5   
    response_body: &[u8],
   22      6   
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
   23      7   
    crate::json_errors::parse_error_metadata(response_body, response_headers)
   24      8   
}
   25         -
   26         -
pub(crate) mod shape_create_access_token;
   27         -
   28         -
pub(crate) mod shape_create_dev_environment;
   29         -
   30         -
pub(crate) mod shape_create_project;
   31         -
   32         -
pub(crate) mod shape_create_source_repository;
   33         -
   34         -
pub(crate) mod shape_create_source_repository_branch;
   35         -
   36         -
pub(crate) mod shape_delete_access_token;
   37         -
   38         -
pub(crate) mod shape_delete_dev_environment;
   39         -
   40         -
pub(crate) mod shape_delete_project;
   41         -
   42         -
pub(crate) mod shape_delete_source_repository;
   43         -
   44         -
pub(crate) mod shape_delete_space;
   45         -
   46         -
pub(crate) mod shape_get_dev_environment;
   47         -
   48         -
pub(crate) mod shape_get_project;
   49         -
   50         -
pub(crate) mod shape_get_source_repository;
   51         -
   52         -
pub(crate) mod shape_get_source_repository_clone_urls;
   53         -
   54         -
pub(crate) mod shape_get_space;
   55         -
   56         -
pub(crate) mod shape_get_subscription;
   57         -
   58         -
pub(crate) mod shape_get_user_details;
   59         -
   60         -
pub(crate) mod shape_get_workflow;
   61         -
   62         -
pub(crate) mod shape_get_workflow_run;
   63         -
   64         -
pub(crate) mod shape_list_access_tokens;
   65         -
   66         -
pub(crate) mod shape_list_dev_environment_sessions;
   67         -
   68         -
pub(crate) mod shape_list_dev_environments;
   69         -
   70         -
pub(crate) mod shape_list_event_logs;
   71         -
   72         -
pub(crate) mod shape_list_projects;
   73         -
   74         -
pub(crate) mod shape_list_source_repositories;
   75         -
   76         -
pub(crate) mod shape_list_source_repository_branches;
   77         -
   78         -
pub(crate) mod shape_list_spaces;
   79         -
   80         -
pub(crate) mod shape_list_workflow_runs;
   81         -
   82         -
pub(crate) mod shape_list_workflows;
   83         -
   84         -
pub(crate) mod shape_start_dev_environment;
   85         -
   86         -
pub(crate) mod shape_start_dev_environment_session;
   87         -
   88         -
pub(crate) mod shape_start_workflow_run;
   89         -
   90         -
pub(crate) mod shape_stop_dev_environment;
   91         -
   92         -
pub(crate) mod shape_stop_dev_environment_session;
   93         -
   94         -
pub(crate) mod shape_update_dev_environment;
   95         -
   96         -
pub(crate) mod shape_update_project;
   97         -
   98         -
pub(crate) mod shape_update_space;
   99         -
  100         -
pub(crate) mod shape_verify_session;
  101         -
  102         -
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
  103         -
    if data.is_empty() {
  104         -
        b"{}"
  105         -
    } else {
  106         -
        data
  107         -
    }
  108         -
}
  109         -
  110         -
pub(crate) mod shape_access_denied_exception;
  111         -
  112         -
pub(crate) mod shape_conflict_exception;
  113         -
  114         -
pub(crate) mod shape_create_access_token_input;
  115         -
  116         -
pub(crate) mod shape_create_dev_environment_input;
  117         -
  118         -
pub(crate) mod shape_create_project_input;
  119         -
  120         -
pub(crate) mod shape_create_source_repository_branch_input;
  121         -
  122         -
pub(crate) mod shape_create_source_repository_input;
  123         -
  124         -
pub(crate) mod shape_list_access_tokens_input;
  125         -
  126         -
pub(crate) mod shape_list_dev_environment_sessions_input;
  127         -
  128         -
pub(crate) mod shape_list_dev_environments_input;
  129         -
  130         -
pub(crate) mod shape_list_event_logs_input;
  131         -
  132         -
pub(crate) mod shape_list_projects_input;
  133         -
  134         -
pub(crate) mod shape_list_source_repositories_input;
  135         -
  136         -
pub(crate) mod shape_list_source_repository_branches_input;
  137         -
  138         -
pub(crate) mod shape_list_spaces_input;
  139         -
  140         -
pub(crate) mod shape_list_workflow_runs_input;
  141         -
  142         -
pub(crate) mod shape_list_workflows_input;
  143         -
  144         -
pub(crate) mod shape_resource_not_found_exception;
  145         -
  146         -
pub(crate) mod shape_service_quota_exceeded_exception;
  147         -
  148         -
pub(crate) mod shape_start_dev_environment_input;
  149         -
  150         -
pub(crate) mod shape_start_dev_environment_session_input;
  151         -
  152         -
pub(crate) mod shape_start_workflow_run_input;
  153         -
  154         -
pub(crate) mod shape_throttling_exception;
  155         -
  156         -
pub(crate) mod shape_update_dev_environment_input;
  157         -
  158         -
pub(crate) mod shape_update_project_input;
  159         -
  160         -
pub(crate) mod shape_update_space_input;
  161         -
  162         -
pub(crate) mod shape_validation_exception;
  163         -
  164         -
pub(crate) mod shape_access_token_summaries;
  165         -
  166         -
pub(crate) mod shape_dev_environment_access_details;
  167         -
  168         -
pub(crate) mod shape_dev_environment_repository_summaries;
  169         -
  170         -
pub(crate) mod shape_dev_environment_session_configuration;
  171         -
  172         -
pub(crate) mod shape_dev_environment_sessions_summary_list;
  173         -
  174         -
pub(crate) mod shape_dev_environment_summary_list;
  175         -
  176         -
pub(crate) mod shape_email_address;
  177         -
  178         -
pub(crate) mod shape_event_log_entries;
  179         -
  180         -
pub(crate) mod shape_filter;
  181         -
  182         -
pub(crate) mod shape_ide_configuration;
  183         -
  184         -
pub(crate) mod shape_ide_configuration_list;
  185         -
  186         -
pub(crate) mod shape_ides;
  187         -
  188         -
pub(crate) mod shape_list_source_repositories_items;
  189         -
  190         -
pub(crate) mod shape_list_source_repository_branches_items;
  191         -
  192         -
pub(crate) mod shape_persistent_storage;
  193         -
  194         -
pub(crate) mod shape_persistent_storage_configuration;
  195         -
  196         -
pub(crate) mod shape_project_list_filter;
  197         -
  198         -
pub(crate) mod shape_project_summaries;
  199         -
  200         -
pub(crate) mod shape_repository_input;
  201         -
  202         -
pub(crate) mod shape_space_summaries;
  203         -
  204         -
pub(crate) mod shape_workflow_definition;
  205         -
  206         -
pub(crate) mod shape_workflow_run_sort_criteria;
  207         -
  208         -
pub(crate) mod shape_workflow_run_status_reasons;
  209         -
  210         -
pub(crate) mod shape_workflow_run_summaries;
  211         -
  212         -
pub(crate) mod shape_workflow_sort_criteria;
  213         -
  214         -
pub(crate) mod shape_workflow_summaries;
  215         -
  216         -
pub(crate) mod shape_access_token_summary;
  217         -
  218         -
pub(crate) mod shape_dev_environment_repository_summary;
  219         -
  220         -
pub(crate) mod shape_dev_environment_session_summary;
  221         -
  222         -
pub(crate) mod shape_dev_environment_summary;
  223         -
  224         -
pub(crate) mod shape_event_log_entry;
  225         -
  226         -
pub(crate) mod shape_execute_command_session_configuration;
  227         -
  228         -
pub(crate) mod shape_ide;
  229         -
  230         -
pub(crate) mod shape_list_source_repositories_item;
  231         -
  232         -
pub(crate) mod shape_list_source_repository_branches_item;
  233         -
  234         -
pub(crate) mod shape_project_summary;
  235         -
  236         -
pub(crate) mod shape_space_summary;
  237         -
  238         -
pub(crate) mod shape_workflow_run_status_reason;
  239         -
  240         -
pub(crate) mod shape_workflow_run_summary;
  241         -
  242         -
pub(crate) mod shape_workflow_summary;
  243         -
  244         -
pub(crate) mod shape_event_payload;
  245         -
  246         -
pub(crate) mod shape_project_information;
  247         -
  248         -
pub(crate) mod shape_user_identity;
  249         -
  250         -
pub(crate) mod shape_workflow_definition_summary;

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_access_denied_exception.rs

@@ -1,0 +35,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_access_denied_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::AccessDeniedExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::AccessDeniedExceptionBuilder, ::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         -
                "message" => {
   14         -
                    builder = builder.set_message(
   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         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   21         -
            },
   22         -
            other => {
   23         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   24         -
                    "expected object key or end object, found: {other:?}"
   25         -
                )))
   26         -
            }
   27         -
        }
   28         -
    }
   29         -
    if tokens.next().is_some() {
   30         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   31         -
            "found more JSON tokens after completing parsing",
   32         -
        ));
   33         -
    }
   34         -
    Ok(builder)
   35         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_access_token_summaries.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_access_token_summaries<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::AccessTokenSummary>>, ::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 = crate::protocol_serde::shape_access_token_summary::de_access_token_summary(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_access_token_summary.rs

@@ -1,0 +55,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_access_token_summary<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AccessTokenSummary>, ::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::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::AccessTokenSummaryBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "id" => {
   19         -
                            builder = builder.set_id(
   20         -
                                ::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         -
                            );
   24         -
                        }
   25         -
                        "name" => {
   26         -
                            builder = builder.set_name(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "expiresTime" => {
   33         -
                            builder = builder.set_expires_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::DateTimeWithOffset,
   36         -
                            )?);
   37         -
                        }
   38         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   39         -
                    },
   40         -
                    other => {
   41         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   42         -
                            "expected object key or end object, found: {other:?}"
   43         -
                        )))
   44         -
                    }
   45         -
                }
   46         -
            }
   47         -
            Ok(Some(crate::serde_util::access_token_summary_correct_errors(builder).build().map_err(
   48         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   49         -
            )?))
   50         -
        }
   51         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   52         -
            "expected start object or null",
   53         -
        )),
   54         -
    }
   55         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_conflict_exception.rs

@@ -1,0 +35,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_conflict_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ConflictExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::ConflictExceptionBuilder, ::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         -
                "message" => {
   14         -
                    builder = builder.set_message(
   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         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   21         -
            },
   22         -
            other => {
   23         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   24         -
                    "expected object key or end object, found: {other:?}"
   25         -
                )))
   26         -
            }
   27         -
        }
   28         -
    }
   29         -
    if tokens.next().is_some() {
   30         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   31         -
            "found more JSON tokens after completing parsing",
   32         -
        ));
   33         -
    }
   34         -
    Ok(builder)
   35         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_create_access_token.rs

@@ -1,0 +197,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_create_access_token_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::create_access_token::CreateAccessTokenOutput, crate::operation::create_access_token::CreateAccessTokenError>
    8         -
{
    9         -
    #[allow(unused_mut)]
   10         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   11         -
        .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   12         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   13         -
    let generic = generic_builder.build();
   14         -
    let error_code = match generic.code() {
   15         -
        Some(code) => code,
   16         -
        None => return Err(crate::operation::create_access_token::CreateAccessTokenError::unhandled(generic)),
   17         -
    };
   18         -
   19         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   20         -
    Err(match error_code {
   21         -
        "AccessDeniedException" => crate::operation::create_access_token::CreateAccessTokenError::AccessDeniedException({
   22         -
            #[allow(unused_mut)]
   23         -
            let mut tmp = {
   24         -
                #[allow(unused_mut)]
   25         -
                let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default();
   26         -
                output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output)
   27         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   28         -
                let output = output.meta(generic);
   29         -
                crate::serde_util::access_denied_exception_correct_errors(output)
   30         -
                    .build()
   31         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
   32         -
            };
   33         -
            tmp
   34         -
        }),
   35         -
        "ConflictException" => crate::operation::create_access_token::CreateAccessTokenError::ConflictException({
   36         -
            #[allow(unused_mut)]
   37         -
            let mut tmp = {
   38         -
                #[allow(unused_mut)]
   39         -
                let mut output = crate::types::error::builders::ConflictExceptionBuilder::default();
   40         -
                output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output)
   41         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   42         -
                let output = output.meta(generic);
   43         -
                crate::serde_util::conflict_exception_correct_errors(output)
   44         -
                    .build()
   45         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
   46         -
            };
   47         -
            tmp
   48         -
        }),
   49         -
        "ResourceNotFoundException" => crate::operation::create_access_token::CreateAccessTokenError::ResourceNotFoundException({
   50         -
            #[allow(unused_mut)]
   51         -
            let mut tmp = {
   52         -
                #[allow(unused_mut)]
   53         -
                let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
   54         -
                output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
   55         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   56         -
                let output = output.meta(generic);
   57         -
                crate::serde_util::resource_not_found_exception_correct_errors(output)
   58         -
                    .build()
   59         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
   60         -
            };
   61         -
            tmp
   62         -
        }),
   63         -
        "ServiceQuotaExceededException" => crate::operation::create_access_token::CreateAccessTokenError::ServiceQuotaExceededException({
   64         -
            #[allow(unused_mut)]
   65         -
            let mut tmp = {
   66         -
                #[allow(unused_mut)]
   67         -
                let mut output = crate::types::error::builders::ServiceQuotaExceededExceptionBuilder::default();
   68         -
                output = crate::protocol_serde::shape_service_quota_exceeded_exception::de_service_quota_exceeded_exception_json_err(
   69         -
                    _response_body,
   70         -
                    output,
   71         -
                )
   72         -
                .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   73         -
                let output = output.meta(generic);
   74         -
                crate::serde_util::service_quota_exceeded_exception_correct_errors(output)
   75         -
                    .build()
   76         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
   77         -
            };
   78         -
            tmp
   79         -
        }),
   80         -
        "ThrottlingException" => crate::operation::create_access_token::CreateAccessTokenError::ThrottlingException({
   81         -
            #[allow(unused_mut)]
   82         -
            let mut tmp = {
   83         -
                #[allow(unused_mut)]
   84         -
                let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default();
   85         -
                output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output)
   86         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
   87         -
                let output = output.meta(generic);
   88         -
                crate::serde_util::throttling_exception_correct_errors(output)
   89         -
                    .build()
   90         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
   91         -
            };
   92         -
            tmp
   93         -
        }),
   94         -
        "ValidationException" => crate::operation::create_access_token::CreateAccessTokenError::ValidationException({
   95         -
            #[allow(unused_mut)]
   96         -
            let mut tmp = {
   97         -
                #[allow(unused_mut)]
   98         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
   99         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
  100         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
  101         -
                let output = output.meta(generic);
  102         -
                crate::serde_util::validation_exception_correct_errors(output)
  103         -
                    .build()
  104         -
                    .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
  105         -
            };
  106         -
            tmp
  107         -
        }),
  108         -
        _ => crate::operation::create_access_token::CreateAccessTokenError::generic(generic),
  109         -
    })
  110         -
}
  111         -
  112         -
#[allow(clippy::unnecessary_wraps)]
  113         -
pub fn de_create_access_token_http_response(
  114         -
    _response_status: u16,
  115         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  116         -
    _response_body: &[u8],
  117         -
) -> std::result::Result<crate::operation::create_access_token::CreateAccessTokenOutput, crate::operation::create_access_token::CreateAccessTokenError>
  118         -
{
  119         -
    Ok({
  120         -
        #[allow(unused_mut)]
  121         -
        let mut output = crate::operation::create_access_token::builders::CreateAccessTokenOutputBuilder::default();
  122         -
        output = crate::protocol_serde::shape_create_access_token::de_create_access_token(_response_body, output)
  123         -
            .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?;
  124         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  125         -
        crate::serde_util::create_access_token_output_output_correct_errors(output)
  126         -
            .build()
  127         -
            .map_err(crate::operation::create_access_token::CreateAccessTokenError::unhandled)?
  128         -
    })
  129         -
}
  130         -
  131         -
pub fn ser_create_access_token_input(
  132         -
    input: &crate::operation::create_access_token::CreateAccessTokenInput,
  133         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  134         -
    let mut out = String::new();
  135         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  136         -
    crate::protocol_serde::shape_create_access_token_input::ser_create_access_token_input_input(&mut object, input)?;
  137         -
    object.finish();
  138         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  139         -
}
  140         -
  141         -
pub(crate) fn de_create_access_token(
  142         -
    _value: &[u8],
  143         -
    mut builder: crate::operation::create_access_token::builders::CreateAccessTokenOutputBuilder,
  144         -
) -> ::std::result::Result<
  145         -
    crate::operation::create_access_token::builders::CreateAccessTokenOutputBuilder,
  146         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  147         -
> {
  148         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  149         -
    let tokens = &mut tokens_owned;
  150         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  151         -
    loop {
  152         -
        match tokens.next().transpose()? {
  153         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  154         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  155         -
                "accessTokenId" => {
  156         -
                    builder = builder.set_access_token_id(
  157         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  158         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  159         -
                            .transpose()?,
  160         -
                    );
  161         -
                }
  162         -
                "expiresTime" => {
  163         -
                    builder = builder.set_expires_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
  164         -
                        tokens.next(),
  165         -
                        ::aws_smithy_types::date_time::Format::DateTimeWithOffset,
  166         -
                    )?);
  167         -
                }
  168         -
                "name" => {
  169         -
                    builder = builder.set_name(
  170         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  171         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  172         -
                            .transpose()?,
  173         -
                    );
  174         -
                }
  175         -
                "secret" => {
  176         -
                    builder = builder.set_secret(
  177         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  178         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  179         -
                            .transpose()?,
  180         -
                    );
  181         -
                }
  182         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  183         -
            },
  184         -
            other => {
  185         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  186         -
                    "expected object key or end object, found: {other:?}"
  187         -
                )))
  188         -
            }
  189         -
        }
  190         -
    }
  191         -
    if tokens.next().is_some() {
  192         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  193         -
            "found more JSON tokens after completing parsing",
  194         -
        ));
  195         -
    }
  196         -
    Ok(builder)
  197         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_create_access_token_input.rs

@@ -1,0 +15,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_create_access_token_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::create_access_token::CreateAccessTokenInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.expires_time {
    7         -
        object
    8         -
            .key("expiresTime")
    9         -
            .date_time(var_1, ::aws_smithy_types::date_time::Format::DateTime)?;
   10         -
    }
   11         -
    if let Some(var_2) = &input.name {
   12         -
        object.key("name").string(var_2.as_str());
   13         -
    }
   14         -
    Ok(())
   15         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_create_dev_environment.rs

@@ -1,0 +202,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_create_dev_environment_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::create_dev_environment::CreateDevEnvironmentOutput,
    9         -
    crate::operation::create_dev_environment::CreateDevEnvironmentError,
   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::create_dev_environment::CreateDevEnvironmentError::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 => return Err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "AccessDeniedException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::AccessDeniedException({
   24         -
            #[allow(unused_mut)]
   25         -
            let mut tmp = {
   26         -
                #[allow(unused_mut)]
   27         -
                let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default();
   28         -
                output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output)
   29         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
   30         -
                let output = output.meta(generic);
   31         -
                crate::serde_util::access_denied_exception_correct_errors(output)
   32         -
                    .build()
   33         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
   34         -
            };
   35         -
            tmp
   36         -
        }),
   37         -
        "ConflictException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::ConflictException({
   38         -
            #[allow(unused_mut)]
   39         -
            let mut tmp = {
   40         -
                #[allow(unused_mut)]
   41         -
                let mut output = crate::types::error::builders::ConflictExceptionBuilder::default();
   42         -
                output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output)
   43         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
   44         -
                let output = output.meta(generic);
   45         -
                crate::serde_util::conflict_exception_correct_errors(output)
   46         -
                    .build()
   47         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
   48         -
            };
   49         -
            tmp
   50         -
        }),
   51         -
        "ResourceNotFoundException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::ResourceNotFoundException({
   52         -
            #[allow(unused_mut)]
   53         -
            let mut tmp = {
   54         -
                #[allow(unused_mut)]
   55         -
                let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
   56         -
                output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
   57         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
   58         -
                let output = output.meta(generic);
   59         -
                crate::serde_util::resource_not_found_exception_correct_errors(output)
   60         -
                    .build()
   61         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
   62         -
            };
   63         -
            tmp
   64         -
        }),
   65         -
        "ServiceQuotaExceededException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::ServiceQuotaExceededException({
   66         -
            #[allow(unused_mut)]
   67         -
            let mut tmp = {
   68         -
                #[allow(unused_mut)]
   69         -
                let mut output = crate::types::error::builders::ServiceQuotaExceededExceptionBuilder::default();
   70         -
                output = crate::protocol_serde::shape_service_quota_exceeded_exception::de_service_quota_exceeded_exception_json_err(
   71         -
                    _response_body,
   72         -
                    output,
   73         -
                )
   74         -
                .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
   75         -
                let output = output.meta(generic);
   76         -
                crate::serde_util::service_quota_exceeded_exception_correct_errors(output)
   77         -
                    .build()
   78         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
   79         -
            };
   80         -
            tmp
   81         -
        }),
   82         -
        "ThrottlingException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::ThrottlingException({
   83         -
            #[allow(unused_mut)]
   84         -
            let mut tmp = {
   85         -
                #[allow(unused_mut)]
   86         -
                let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default();
   87         -
                output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output)
   88         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
   89         -
                let output = output.meta(generic);
   90         -
                crate::serde_util::throttling_exception_correct_errors(output)
   91         -
                    .build()
   92         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
   93         -
            };
   94         -
            tmp
   95         -
        }),
   96         -
        "ValidationException" => crate::operation::create_dev_environment::CreateDevEnvironmentError::ValidationException({
   97         -
            #[allow(unused_mut)]
   98         -
            let mut tmp = {
   99         -
                #[allow(unused_mut)]
  100         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
  101         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
  102         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
  103         -
                let output = output.meta(generic);
  104         -
                crate::serde_util::validation_exception_correct_errors(output)
  105         -
                    .build()
  106         -
                    .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
  107         -
            };
  108         -
            tmp
  109         -
        }),
  110         -
        _ => crate::operation::create_dev_environment::CreateDevEnvironmentError::generic(generic),
  111         -
    })
  112         -
}
  113         -
  114         -
#[allow(clippy::unnecessary_wraps)]
  115         -
pub fn de_create_dev_environment_http_response(
  116         -
    _response_status: u16,
  117         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  118         -
    _response_body: &[u8],
  119         -
) -> std::result::Result<
  120         -
    crate::operation::create_dev_environment::CreateDevEnvironmentOutput,
  121         -
    crate::operation::create_dev_environment::CreateDevEnvironmentError,
  122         -
> {
  123         -
    Ok({
  124         -
        #[allow(unused_mut)]
  125         -
        let mut output = crate::operation::create_dev_environment::builders::CreateDevEnvironmentOutputBuilder::default();
  126         -
        output = crate::protocol_serde::shape_create_dev_environment::de_create_dev_environment(_response_body, output)
  127         -
            .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?;
  128         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  129         -
        crate::serde_util::create_dev_environment_output_output_correct_errors(output)
  130         -
            .build()
  131         -
            .map_err(crate::operation::create_dev_environment::CreateDevEnvironmentError::unhandled)?
  132         -
    })
  133         -
}
  134         -
  135         -
pub fn ser_create_dev_environment_input(
  136         -
    input: &crate::operation::create_dev_environment::CreateDevEnvironmentInput,
  137         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  138         -
    let mut out = String::new();
  139         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  140         -
    crate::protocol_serde::shape_create_dev_environment_input::ser_create_dev_environment_input_input(&mut object, input)?;
  141         -
    object.finish();
  142         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  143         -
}
  144         -
  145         -
pub(crate) fn de_create_dev_environment(
  146         -
    _value: &[u8],
  147         -
    mut builder: crate::operation::create_dev_environment::builders::CreateDevEnvironmentOutputBuilder,
  148         -
) -> ::std::result::Result<
  149         -
    crate::operation::create_dev_environment::builders::CreateDevEnvironmentOutputBuilder,
  150         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  151         -
> {
  152         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  153         -
    let tokens = &mut tokens_owned;
  154         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  155         -
    loop {
  156         -
        match tokens.next().transpose()? {
  157         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  158         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  159         -
                "id" => {
  160         -
                    builder = builder.set_id(
  161         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  162         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  163         -
                            .transpose()?,
  164         -
                    );
  165         -
                }
  166         -
                "projectName" => {
  167         -
                    builder = builder.set_project_name(
  168         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  169         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  170         -
                            .transpose()?,
  171         -
                    );
  172         -
                }
  173         -
                "spaceName" => {
  174         -
                    builder = builder.set_space_name(
  175         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  176         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  177         -
                            .transpose()?,
  178         -
                    );
  179         -
                }
  180         -
                "vpcConnectionName" => {
  181         -
                    builder = builder.set_vpc_connection_name(
  182         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  183         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  184         -
                            .transpose()?,
  185         -
                    );
  186         -
                }
  187         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  188         -
            },
  189         -
            other => {
  190         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  191         -
                    "expected object key or end object, found: {other:?}"
  192         -
                )))
  193         -
            }
  194         -
        }
  195         -
    }
  196         -
    if tokens.next().is_some() {
  197         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  198         -
            "found more JSON tokens after completing parsing",
  199         -
        ));
  200         -
    }
  201         -
    Ok(builder)
  202         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_create_dev_environment_input.rs

@@ -1,0 +55,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_create_dev_environment_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::create_dev_environment::CreateDevEnvironmentInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.alias {
    7         -
        object.key("alias").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.client_token {
   10         -
        object.key("clientToken").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.ides {
   13         -
        let mut array_4 = object.key("ides").start_array();
   14         -
        for item_5 in var_3 {
   15         -
            {
   16         -
                #[allow(unused_mut)]
   17         -
                let mut object_6 = array_4.value().start_object();
   18         -
                crate::protocol_serde::shape_ide_configuration::ser_ide_configuration(&mut object_6, item_5)?;
   19         -
                object_6.finish();
   20         -
            }
   21         -
        }
   22         -
        array_4.finish();
   23         -
    }
   24         -
    if let Some(var_7) = &input.inactivity_timeout_minutes {
   25         -
        object.key("inactivityTimeoutMinutes").number(
   26         -
            #[allow(clippy::useless_conversion)]
   27         -
            ::aws_smithy_types::Number::NegInt((*var_7).into()),
   28         -
        );
   29         -
    }
   30         -
    if let Some(var_8) = &input.instance_type {
   31         -
        object.key("instanceType").string(var_8.as_str());
   32         -
    }
   33         -
    if let Some(var_9) = &input.persistent_storage {
   34         -
        #[allow(unused_mut)]
   35         -
        let mut object_10 = object.key("persistentStorage").start_object();
   36         -
        crate::protocol_serde::shape_persistent_storage_configuration::ser_persistent_storage_configuration(&mut object_10, var_9)?;
   37         -
        object_10.finish();
   38         -
    }
   39         -
    if let Some(var_11) = &input.repositories {
   40         -
        let mut array_12 = object.key("repositories").start_array();
   41         -
        for item_13 in var_11 {
   42         -
            {
   43         -
                #[allow(unused_mut)]
   44         -
                let mut object_14 = array_12.value().start_object();
   45         -
                crate::protocol_serde::shape_repository_input::ser_repository_input(&mut object_14, item_13)?;
   46         -
                object_14.finish();
   47         -
            }
   48         -
        }
   49         -
        array_12.finish();
   50         -
    }
   51         -
    if let Some(var_15) = &input.vpc_connection_name {
   52         -
        object.key("vpcConnectionName").string(var_15.as_str());
   53         -
    }
   54         -
    Ok(())
   55         -
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/protocol_serde/shape_create_project.rs

@@ -1,0 +196,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_create_project_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::create_project::CreateProjectOutput, crate::operation::create_project::CreateProjectError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::create_project::CreateProjectError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "AccessDeniedException" => crate::operation::create_project::CreateProjectError::AccessDeniedException({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default();
   25         -
                output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output)
   26         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   27         -
                let output = output.meta(generic);
   28         -
                crate::serde_util::access_denied_exception_correct_errors(output)
   29         -
                    .build()
   30         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
   31         -
            };
   32         -
            tmp
   33         -
        }),
   34         -
        "ConflictException" => crate::operation::create_project::CreateProjectError::ConflictException({
   35         -
            #[allow(unused_mut)]
   36         -
            let mut tmp = {
   37         -
                #[allow(unused_mut)]
   38         -
                let mut output = crate::types::error::builders::ConflictExceptionBuilder::default();
   39         -
                output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output)
   40         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   41         -
                let output = output.meta(generic);
   42         -
                crate::serde_util::conflict_exception_correct_errors(output)
   43         -
                    .build()
   44         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
   45         -
            };
   46         -
            tmp
   47         -
        }),
   48         -
        "ResourceNotFoundException" => crate::operation::create_project::CreateProjectError::ResourceNotFoundException({
   49         -
            #[allow(unused_mut)]
   50         -
            let mut tmp = {
   51         -
                #[allow(unused_mut)]
   52         -
                let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
   53         -
                output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
   54         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   55         -
                let output = output.meta(generic);
   56         -
                crate::serde_util::resource_not_found_exception_correct_errors(output)
   57         -
                    .build()
   58         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
   59         -
            };
   60         -
            tmp
   61         -
        }),
   62         -
        "ServiceQuotaExceededException" => crate::operation::create_project::CreateProjectError::ServiceQuotaExceededException({
   63         -
            #[allow(unused_mut)]
   64         -
            let mut tmp = {
   65         -
                #[allow(unused_mut)]
   66         -
                let mut output = crate::types::error::builders::ServiceQuotaExceededExceptionBuilder::default();
   67         -
                output = crate::protocol_serde::shape_service_quota_exceeded_exception::de_service_quota_exceeded_exception_json_err(
   68         -
                    _response_body,
   69         -
                    output,
   70         -
                )
   71         -
                .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   72         -
                let output = output.meta(generic);
   73         -
                crate::serde_util::service_quota_exceeded_exception_correct_errors(output)
   74         -
                    .build()
   75         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
   76         -
            };
   77         -
            tmp
   78         -
        }),
   79         -
        "ThrottlingException" => crate::operation::create_project::CreateProjectError::ThrottlingException({
   80         -
            #[allow(unused_mut)]
   81         -
            let mut tmp = {
   82         -
                #[allow(unused_mut)]
   83         -
                let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default();
   84         -
                output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output)
   85         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
   86         -
                let output = output.meta(generic);
   87         -
                crate::serde_util::throttling_exception_correct_errors(output)
   88         -
                    .build()
   89         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
   90         -
            };
   91         -
            tmp
   92         -
        }),
   93         -
        "ValidationException" => crate::operation::create_project::CreateProjectError::ValidationException({
   94         -
            #[allow(unused_mut)]
   95         -
            let mut tmp = {
   96         -
                #[allow(unused_mut)]
   97         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
   98         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
   99         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
  100         -
                let output = output.meta(generic);
  101         -
                crate::serde_util::validation_exception_correct_errors(output)
  102         -
                    .build()
  103         -
                    .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
  104         -
            };
  105         -
            tmp
  106         -
        }),
  107         -
        _ => crate::operation::create_project::CreateProjectError::generic(generic),
  108         -
    })
  109         -
}
  110         -
  111         -
#[allow(clippy::unnecessary_wraps)]
  112         -
pub fn de_create_project_http_response(
  113         -
    _response_status: u16,
  114         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  115         -
    _response_body: &[u8],
  116         -
) -> std::result::Result<crate::operation::create_project::CreateProjectOutput, crate::operation::create_project::CreateProjectError> {
  117         -
    Ok({
  118         -
        #[allow(unused_mut)]
  119         -
        let mut output = crate::operation::create_project::builders::CreateProjectOutputBuilder::default();
  120         -
        output = crate::protocol_serde::shape_create_project::de_create_project(_response_body, output)
  121         -
            .map_err(crate::operation::create_project::CreateProjectError::unhandled)?;
  122         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  123         -
        crate::serde_util::create_project_output_output_correct_errors(output)
  124         -
            .build()
  125         -
            .map_err(crate::operation::create_project::CreateProjectError::unhandled)?
  126         -
    })
  127         -
}
  128         -
  129         -
pub fn ser_create_project_input(
  130         -
    input: &crate::operation::create_project::CreateProjectInput,
  131         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  132         -
    let mut out = String::new();
  133         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  134         -
    crate::protocol_serde::shape_create_project_input::ser_create_project_input_input(&mut object, input)?;
  135         -
    object.finish();
  136         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  137         -
}
  138         -
  139         -
pub(crate) fn de_create_project(
  140         -
    _value: &[u8],
  141         -
    mut builder: crate::operation::create_project::builders::CreateProjectOutputBuilder,
  142         -
) -> ::std::result::Result<
  143         -
    crate::operation::create_project::builders::CreateProjectOutputBuilder,
  144         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  145         -
> {
  146         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  147         -
    let tokens = &mut tokens_owned;
  148         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  149         -
    loop {
  150         -
        match tokens.next().transpose()? {
  151         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  152         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  153         -
                "description" => {
  154         -
                    builder = builder.set_description(
  155         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  156         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  157         -
                            .transpose()?,
  158         -
                    );
  159         -
                }
  160         -
                "displayName" => {
  161         -
                    builder = builder.set_display_name(
  162         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  163         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  164         -
                            .transpose()?,
  165         -
                    );
  166         -
                }
  167         -
                "name" => {
  168         -
                    builder = builder.set_name(
  169         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  170         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  171         -
                            .transpose()?,
  172         -
                    );
  173         -
                }
  174         -
                "spaceName" => {
  175         -
                    builder = builder.set_space_name(
  176         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  177         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  178         -
                            .transpose()?,
  179         -
                    );
  180         -
                }
  181         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  182         -
            },
  183         -
            other => {
  184         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  185         -
                    "expected object key or end object, found: {other:?}"
  186         -
                )))
  187         -
            }
  188         -
        }
  189         -
    }
  190         -
    if tokens.next().is_some() {
  191         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  192         -
            "found more JSON tokens after completing parsing",
  193         -
        ));
  194         -
    }
  195         -
    Ok(builder)
  196         -
}