AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_access_tokens/_list_access_tokens_input.rs

@@ -3,3 +130,142 @@
   23     23   
    "com.amazonaws.codecatalyst.synthetic",
   24     24   
    "ListAccessTokensInput",
   25     25   
);
   26     26   
static LISTACCESSTOKENSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.codecatalyst.synthetic#ListAccessTokensInput$maxResults",
   29     29   
        "com.amazonaws.codecatalyst.synthetic",
   30     30   
        "ListAccessTokensInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Integer,
   33         -
    "max_results",
          33  +
    "maxResults",
   34     34   
    0,
   35     35   
);
   36     36   
static LISTACCESSTOKENSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.codecatalyst.synthetic#ListAccessTokensInput$nextToken",
   39     39   
        "com.amazonaws.codecatalyst.synthetic",
   40     40   
        "ListAccessTokensInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "next_token",
          43  +
    "nextToken",
   44     44   
    1,
   45     45   
);
   46     46   
static LISTACCESSTOKENSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    LISTACCESSTOKENSINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[&LISTACCESSTOKENSINPUT_MEMBER_MAX_RESULTS, &LISTACCESSTOKENSINPUT_MEMBER_NEXT_TOKEN],
   50         -
);
          50  +
)
          51  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/v1/accessTokens", None));
   51     52   
impl ListAccessTokensInput {
   52     53   
    /// The schema for this shape.
   53     54   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTACCESSTOKENSINPUT_SCHEMA;
   54     55   
}
   55     56   
impl ::aws_smithy_schema::serde::SerializableStruct for ListAccessTokensInput {
   56     57   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   57     58   
    fn serialize_members(
   58     59   
        &self,
   59     60   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   60     61   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   61     62   
        if let Some(ref val) = self.max_results {
   62     63   
            ser.write_integer(&LISTACCESSTOKENSINPUT_MEMBER_MAX_RESULTS, *val)?;
   63     64   
        }
   64     65   
        if let Some(ref val) = self.next_token {
   65     66   
            ser.write_string(&LISTACCESSTOKENSINPUT_MEMBER_NEXT_TOKEN, val)?;
   66     67   
        }
   67     68   
        Ok(())
   68     69   
    }
   69     70   
}
   70     71   
impl ListAccessTokensInput {
   71     72   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   72         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   73         -
        deserializer: &mut D,
          73  +
    pub fn deserialize(
          74  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   74     75   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   75     76   
        #[allow(unused_variables, unused_mut)]
   76     77   
        let mut builder = Self::builder();
   77     78   
        #[allow(
   78     79   
            unused_variables,
   79     80   
            unreachable_code,
   80     81   
            clippy::single_match,
   81     82   
            clippy::match_single_binding,
   82     83   
            clippy::diverging_sub_expression
   83     84   
        )]
   84         -
        deserializer.read_struct(&LISTACCESSTOKENSINPUT_SCHEMA, (), |_, member, deser| {
          85  +
        deserializer.read_struct(&LISTACCESSTOKENSINPUT_SCHEMA, &mut |member, deser| {
   85     86   
            match member.member_index() {
   86     87   
                Some(0) => {
   87     88   
                    builder.max_results = Some(deser.read_integer(member)?);
   88     89   
                }
   89     90   
                Some(1) => {
   90     91   
                    builder.next_token = Some(deser.read_string(member)?);
   91     92   
                }
   92     93   
                _ => {}
   93     94   
            }
   94     95   
            Ok(())
   95     96   
        })?;
   96     97   
        builder
   97     98   
            .build()
   98     99   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   99    100   
    }
  100    101   
}
         102  +
impl ListAccessTokensInput {
         103  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         104  +
    pub fn deserialize_with_response(
         105  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         106  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         107  +
        _status: u16,
         108  +
        _body: &[u8],
         109  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         110  +
        Self::deserialize(deserializer)
         111  +
    }
         112  +
}
  101    113   
impl ListAccessTokensInput {
  102    114   
    /// Creates a new builder-style object to manufacture [`ListAccessTokensInput`](crate::operation::list_access_tokens::ListAccessTokensInput).
  103    115   
    pub fn builder() -> crate::operation::list_access_tokens::builders::ListAccessTokensInputBuilder {
  104    116   
        crate::operation::list_access_tokens::builders::ListAccessTokensInputBuilder::default()
  105    117   
    }
  106    118   
}
  107    119   
  108    120   
/// A builder for [`ListAccessTokensInput`](crate::operation::list_access_tokens::ListAccessTokensInput).
  109    121   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  110    122   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_access_tokens/_list_access_tokens_output.rs

@@ -15,15 +138,196 @@
   35     35   
    "items",
   36     36   
    0,
   37     37   
);
   38     38   
static LISTACCESSTOKENSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.codecatalyst.synthetic#ListAccessTokensOutput$nextToken",
   41     41   
        "com.amazonaws.codecatalyst.synthetic",
   42     42   
        "ListAccessTokensOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "next_token",
          45  +
    "nextToken",
   46     46   
    1,
   47     47   
);
          48  +
static LISTACCESSTOKENSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          49  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          50  +
    ::aws_smithy_schema::ShapeType::String,
          51  +
    "request_id",
          52  +
    2,
          53  +
)
          54  +
.with_http_header("x-amzn-requestid");
   48     55   
static LISTACCESSTOKENSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     56   
    LISTACCESSTOKENSOUTPUT_SCHEMA_ID,
   50     57   
    ::aws_smithy_schema::ShapeType::Structure,
   51         -
    &[&LISTACCESSTOKENSOUTPUT_MEMBER_ITEMS, &LISTACCESSTOKENSOUTPUT_MEMBER_NEXT_TOKEN],
          58  +
    &[
          59  +
        &LISTACCESSTOKENSOUTPUT_MEMBER_ITEMS,
          60  +
        &LISTACCESSTOKENSOUTPUT_MEMBER_NEXT_TOKEN,
          61  +
        &LISTACCESSTOKENSOUTPUT_MEMBER__REQUEST_ID,
          62  +
    ],
   52     63   
);
   53     64   
impl ListAccessTokensOutput {
   54     65   
    /// The schema for this shape.
   55     66   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTACCESSTOKENSOUTPUT_SCHEMA;
   56     67   
}
   57     68   
impl ::aws_smithy_schema::serde::SerializableStruct for ListAccessTokensOutput {
   58     69   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     70   
    fn serialize_members(
   60     71   
        &self,
   61     72   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     73   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     74   
        {
   64     75   
            let val = &self.items;
   65     76   
   66     77   
            ser.write_list(
   67     78   
                &LISTACCESSTOKENSOUTPUT_MEMBER_ITEMS,
   68     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   69     80   
                    for item in val {
   70     81   
                        ser.write_struct(crate::types::AccessTokenSummary::SCHEMA, item)?;
   71     82   
                    }
   72     83   
                    Ok(())
   73     84   
                },
   74     85   
            )?;
   75     86   
        }
   76     87   
        if let Some(ref val) = self.next_token {
   77     88   
            ser.write_string(&LISTACCESSTOKENSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   78     89   
        }
   79     90   
        Ok(())
   80     91   
    }
   81     92   
}
   82     93   
impl ListAccessTokensOutput {
   83     94   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   84         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   85         -
        deserializer: &mut D,
          95  +
    pub fn deserialize(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   86     97   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   87     98   
        #[allow(unused_variables, unused_mut)]
   88     99   
        let mut builder = Self::builder();
   89    100   
        #[allow(
   90    101   
            unused_variables,
   91    102   
            unreachable_code,
   92    103   
            clippy::single_match,
   93    104   
            clippy::match_single_binding,
   94    105   
            clippy::diverging_sub_expression
   95    106   
        )]
   96         -
        deserializer.read_struct(&LISTACCESSTOKENSOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTACCESSTOKENSOUTPUT_SCHEMA, &mut |member, deser| {
         108  +
            match member.member_index() {
         109  +
                Some(0) => {
         110  +
                    builder.items = Some({
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::AccessTokenSummary::deserialize(deser)?);
         114  +
                            Ok(())
         115  +
                        })?;
         116  +
                        container
         117  +
                    });
         118  +
                }
         119  +
                Some(1) => {
         120  +
                    builder.next_token = Some(deser.read_string(member)?);
         121  +
                }
         122  +
                Some(2) => {
         123  +
                    builder._request_id = Some(deser.read_string(member)?);
         124  +
                }
         125  +
                _ => {}
         126  +
            }
         127  +
            Ok(())
         128  +
        })?;
         129  +
        builder.items = builder.items.or(Some(Vec::new()));
         130  +
        builder
         131  +
            .build()
         132  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         133  +
    }
         134  +
}
         135  +
impl ListAccessTokensOutput {
         136  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         137  +
    /// Header-bound members are read directly from headers, avoiding runtime
         138  +
    /// member iteration overhead. Body members are read via the deserializer.
         139  +
    pub fn deserialize_with_response(
         140  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         141  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         142  +
        _status: u16,
         143  +
        _body: &[u8],
         144  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         145  +
        #[allow(unused_variables, unused_mut)]
         146  +
        let mut builder = Self::builder();
         147  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         148  +
            builder._request_id = Some(val.to_string());
         149  +
        }
         150  +
        #[allow(
         151  +
            unused_variables,
         152  +
            unreachable_code,
         153  +
            clippy::single_match,
         154  +
            clippy::match_single_binding,
         155  +
            clippy::diverging_sub_expression
         156  +
        )]
         157  +
        deserializer.read_struct(&LISTACCESSTOKENSOUTPUT_SCHEMA, &mut |member, deser| {
   97    158   
            match member.member_index() {
   98    159   
                Some(0) => {
   99    160   
                    builder.items = Some({
  100         -
                        let container = if let Some(cap) = deser.container_size() {
  101         -
                            Vec::with_capacity(cap)
  102         -
                        } else {
  103         -
                            Vec::new()
  104         -
                        };
  105         -
                        deser.read_list(member, container, |mut list, deser| {
  106         -
                            list.push(crate::types::AccessTokenSummary::deserialize(deser)?);
  107         -
                            Ok(list)
  108         -
                        })?
         161  +
                        let mut container = Vec::new();
         162  +
                        deser.read_list(member, &mut |deser| {
         163  +
                            container.push(crate::types::AccessTokenSummary::deserialize(deser)?);
         164  +
                            Ok(())
         165  +
                        })?;
         166  +
                        container
  109    167   
                    });
  110    168   
                }
  111    169   
                Some(1) => {
  112    170   
                    builder.next_token = Some(deser.read_string(member)?);
  113    171   
                }
  114    172   
                _ => {}
  115    173   
            }
  116    174   
            Ok(())
  117    175   
        })?;
  118    176   
        builder

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

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListDevEnvironmentSessions`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListDevEnvironmentSessions;
    6      6   
impl ListDevEnvironmentSessions {
    7      7   
    /// Creates a new `ListDevEnvironmentSessions`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -114,120 +278,390 @@
  134    140   
                crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError,
  135    141   
            >::new());
  136    142   
  137    143   
        ::std::borrow::Cow::Owned(rcb)
  138    144   
    }
  139    145   
}
  140    146   
  141    147   
#[derive(Debug)]
  142    148   
struct ListDevEnvironmentSessionsResponseDeserializer;
  143    149   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListDevEnvironmentSessionsResponseDeserializer {
  144         -
    fn deserialize_nonstreaming(
         150  +
    fn deserialize_nonstreaming_with_config(
  145    151   
        &self,
  146    152   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         153  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  147    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  148    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  149         -
        let headers = response.headers();
  150         -
        let body = response.body().bytes().expect("body loaded");
  151    156   
        #[allow(unused_mut)]
  152    157   
        let mut force_error = false;
  153    158   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  154         -
        let parse_result = if !success && status != 200 || force_error {
  155         -
            crate::protocol_serde::shape_list_dev_environment_sessions::de_list_dev_environment_sessions_http_error(status, headers, body)
         159  +
        if !success && status != 200 || force_error {
         160  +
            let headers = response.headers();
         161  +
            let body = response.body().bytes().expect("body loaded");
         162  +
            #[allow(unused_mut)]
         163  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         164  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         165  +
            })?;
         166  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         167  +
            let generic = generic_builder.build();
         168  +
            let error_code = match generic.code() {
         169  +
                ::std::option::Option::Some(code) => code,
         170  +
                ::std::option::Option::None => {
         171  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         172  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         173  +
                            crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::unhandled(generic),
         174  +
                        ),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "AccessDeniedException" => crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::AccessDeniedException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         188  +
                                &mut *deser,
         189  +
                                response.headers(),
         190  +
                                response.status().into(),
         191  +
                                body,
         192  +
                            )
         193  +
                        }) {
         194  +
                        ::std::result::Result::Ok(val) => val,
         195  +
                        ::std::result::Result::Err(e) => {
         196  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         197  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         198  +
                            ))
         199  +
                        }
         200  +
                    };
         201  +
                    tmp.meta = generic;
         202  +
                    tmp
         203  +
                }),
         204  +
                "ConflictException" => crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ConflictException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::ConflictException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    tmp
         224  +
                }),
         225  +
                "ResourceNotFoundException" => {
         226  +
                    crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ResourceNotFoundException({
         227  +
                        let mut tmp = match protocol
         228  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         229  +
                            .and_then(|mut deser| {
         230  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         231  +
                                    &mut *deser,
         232  +
                                    response.headers(),
         233  +
                                    response.status().into(),
         234  +
                                    body,
         235  +
                                )
         236  +
                            }) {
         237  +
                            ::std::result::Result::Ok(val) => val,
         238  +
                            ::std::result::Result::Err(e) => {
         239  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         240  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         241  +
                                ))
         242  +
                            }
         243  +
                        };
         244  +
                        tmp.meta = generic;
         245  +
                        tmp
         246  +
                    })
         247  +
                }
         248  +
                "ServiceQuotaExceededException" => {
         249  +
                    crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ServiceQuotaExceededException({
         250  +
                        let mut tmp = match protocol
         251  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         252  +
                            .and_then(|mut deser| {
         253  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         254  +
                                    &mut *deser,
         255  +
                                    response.headers(),
         256  +
                                    response.status().into(),
         257  +
                                    body,
         258  +
                                )
         259  +
                            }) {
         260  +
                            ::std::result::Result::Ok(val) => val,
         261  +
                            ::std::result::Result::Err(e) => {
         262  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         263  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         264  +
                                ))
         265  +
                            }
         266  +
                        };
         267  +
                        tmp.meta = generic;
         268  +
                        tmp
         269  +
                    })
         270  +
                }
         271  +
                "ThrottlingException" => crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ThrottlingException({
         272  +
                    let mut tmp = match protocol
         273  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         274  +
                        .and_then(|mut deser| {
         275  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         276  +
                                &mut *deser,
         277  +
                                response.headers(),
         278  +
                                response.status().into(),
         279  +
                                body,
         280  +
                            )
         281  +
                        }) {
         282  +
                        ::std::result::Result::Ok(val) => val,
         283  +
                        ::std::result::Result::Err(e) => {
         284  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         285  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         286  +
                            ))
         287  +
                        }
         288  +
                    };
         289  +
                    tmp.meta = generic;
         290  +
                    tmp
         291  +
                }),
         292  +
                "ValidationException" => crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ValidationException({
         293  +
                    let mut tmp = match protocol
         294  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         295  +
                        .and_then(|mut deser| {
         296  +
                            crate::types::error::ValidationException::deserialize_with_response(
         297  +
                                &mut *deser,
         298  +
                                response.headers(),
         299  +
                                response.status().into(),
         300  +
                                body,
         301  +
                            )
         302  +
                        }) {
         303  +
                        ::std::result::Result::Ok(val) => val,
         304  +
                        ::std::result::Result::Err(e) => {
         305  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         306  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         307  +
                            ))
         308  +
                        }
         309  +
                    };
         310  +
                    tmp.meta = generic;
         311  +
                    tmp
         312  +
                }),
         313  +
                _ => crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::generic(generic),
         314  +
            };
         315  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         316  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         317  +
            ))
  156    318   
        } else {
  157         -
            crate::protocol_serde::shape_list_dev_environment_sessions::de_list_dev_environment_sessions_http_response(status, headers, body)
  158         -
        };
  159         -
        crate::protocol_serde::type_erase_result(parse_result)
         319  +
            let protocol = _cfg
         320  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         321  +
                .expect("a SharedClientProtocol is required");
         322  +
            let mut deser = protocol
         323  +
                .deserialize_response(response, ListDevEnvironmentSessions::OUTPUT_SCHEMA, _cfg)
         324  +
                .map_err(|e| {
         325  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
                })?;
         327  +
            let body = response.body().bytes().expect("body loaded");
         328  +
            let output = crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsOutput::deserialize_with_response(
         329  +
                &mut *deser,
         330  +
                response.headers(),
         331  +
                response.status().into(),
         332  +
                body,
         333  +
            )
         334  +
            .map_err(|e| {
         335  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         336  +
            })?;
         337  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         338  +
        }
  160    339   
    }
  161    340   
}
  162    341   
#[derive(Debug)]
  163    342   
struct ListDevEnvironmentSessionsRequestSerializer;
  164    343   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListDevEnvironmentSessionsRequestSerializer {
  165    344   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  166    345   
    fn serialize_input(
  167    346   
        &self,
  168    347   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  169    348   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  170    349   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  171    350   
        let input = input
  172    351   
            .downcast::<crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput>()
  173    352   
            .expect("correct type");
  174         -
        let _header_serialization_settings = _cfg
  175         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  176         -
            .cloned()
  177         -
            .unwrap_or_default();
  178         -
        let mut request_builder = {
  179         -
            #[allow(clippy::uninlined_format_args)]
  180         -
            fn uri_base(
  181         -
                _input: &crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput,
  182         -
                output: &mut ::std::string::String,
  183         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  184         -
                use ::std::fmt::Write as _;
  185         -
                let input_1 = &_input.space_name;
  186         -
                let input_1 = input_1
  187         -
                    .as_ref()
  188         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  189         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  190         -
                if space_name.is_empty() {
  191         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  192         -
                        "space_name",
  193         -
                        "cannot be empty or unset",
  194         -
                    ));
  195         -
                }
  196         -
                let input_2 = &_input.project_name;
  197         -
                let input_2 = input_2
  198         -
                    .as_ref()
  199         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  200         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  201         -
                if project_name.is_empty() {
  202         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  203         -
                        "project_name",
  204         -
                        "cannot be empty or unset",
  205         -
                    ));
  206         -
                }
  207         -
                let input_3 = &_input.dev_environment_id;
  208         -
                let input_3 = input_3.as_ref().ok_or_else(|| {
  209         -
                    ::aws_smithy_types::error::operation::BuildError::missing_field("dev_environment_id", "cannot be empty or unset")
  210         -
                })?;
  211         -
                let dev_environment_id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  212         -
                if dev_environment_id.is_empty() {
  213         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  214         -
                        "dev_environment_id",
  215         -
                        "cannot be empty or unset",
  216         -
                    ));
  217         -
                }
  218         -
                ::std::write!(
  219         -
                    output,
  220         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions",
  221         -
                    spaceName = space_name,
  222         -
                    projectName = project_name,
  223         -
                    devEnvironmentId = dev_environment_id
  224         -
                )
  225         -
                .expect("formatting should succeed");
  226         -
                ::std::result::Result::Ok(())
  227         -
            }
  228         -
            #[allow(clippy::unnecessary_wraps)]
  229         -
            fn update_http_builder(
  230         -
                input: &crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput,
  231         -
                builder: ::http_1x::request::Builder,
  232         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  233         -
                let mut uri = ::std::string::String::new();
  234         -
                uri_base(input, &mut uri)?;
  235         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  236         -
            }
  237         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  238         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  239         -
            builder
  240         -
        };
  241         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  242         -
            crate::protocol_serde::shape_list_dev_environment_sessions::ser_list_dev_environment_sessions_input(&input)?,
  243         -
        );
  244         -
        if let Some(content_length) = body.content_length() {
  245         -
            let content_length = content_length.to_string();
  246         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  247         -
        }
  248         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         353  +
        let protocol = _cfg
         354  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         355  +
            .expect("a SharedClientProtocol is required");
         356  +
        let mut request = protocol
         357  +
            .serialize_request(&input, ListDevEnvironmentSessions::INPUT_SCHEMA, "", _cfg)
         358  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         359  +
         360  +
        return ::std::result::Result::Ok(request);
  249    361   
    }
  250    362   
}
  251    363   
#[derive(Debug)]
  252    364   
struct ListDevEnvironmentSessionsEndpointParamsInterceptor;
  253    365   
  254    366   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListDevEnvironmentSessionsEndpointParamsInterceptor {
  255    367   
    fn name(&self) -> &'static str {
  256    368   
        "ListDevEnvironmentSessionsEndpointParamsInterceptor"
  257    369   
    }
  258    370   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_dev_environment_sessions/_list_dev_environment_sessions_input.rs

@@ -21,21 +205,224 @@
   41     41   
    "com.amazonaws.codecatalyst.synthetic",
   42     42   
    "ListDevEnvironmentSessionsInput",
   43     43   
);
   44     44   
static LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsInput$spaceName",
   47     47   
        "com.amazonaws.codecatalyst.synthetic",
   48     48   
        "ListDevEnvironmentSessionsInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "space_name",
          51  +
    "spaceName",
   52     52   
    0,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsInput$projectName",
   58     58   
        "com.amazonaws.codecatalyst.synthetic",
   59     59   
        "ListDevEnvironmentSessionsInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "project_name",
          62  +
    "projectName",
   63     63   
    1,
   64     64   
)
   65     65   
.with_http_label();
   66     66   
static LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_DEV_ENVIRONMENT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsInput$devEnvironmentId",
   69     69   
        "com.amazonaws.codecatalyst.synthetic",
   70     70   
        "ListDevEnvironmentSessionsInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::String,
   73         -
    "dev_environment_id",
          73  +
    "devEnvironmentId",
   74     74   
    2,
   75     75   
)
   76     76   
.with_http_label();
   77     77   
static LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsInput$nextToken",
   80     80   
        "com.amazonaws.codecatalyst.synthetic",
   81     81   
        "ListDevEnvironmentSessionsInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::String,
   84         -
    "next_token",
          84  +
    "nextToken",
   85     85   
    3,
   86     86   
);
   87     87   
static LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsInput$maxResults",
   90     90   
        "com.amazonaws.codecatalyst.synthetic",
   91     91   
        "ListDevEnvironmentSessionsInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::Integer,
   94         -
    "max_results",
          94  +
    "maxResults",
   95     95   
    4,
   96     96   
);
   97     97   
static LISTDEVENVIRONMENTSESSIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   98     98   
    LISTDEVENVIRONMENTSESSIONSINPUT_SCHEMA_ID,
   99     99   
    ::aws_smithy_schema::ShapeType::Structure,
  100    100   
    &[
  101    101   
        &LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_SPACE_NAME,
  102    102   
        &LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_PROJECT_NAME,
  103    103   
        &LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_DEV_ENVIRONMENT_ID,
  104    104   
        &LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_NEXT_TOKEN,
  105    105   
        &LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_MAX_RESULTS,
  106    106   
    ],
  107         -
);
         107  +
)
         108  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         109  +
    "POST",
         110  +
    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions",
         111  +
    None,
         112  +
));
  108    113   
impl ListDevEnvironmentSessionsInput {
  109    114   
    /// The schema for this shape.
  110    115   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTDEVENVIRONMENTSESSIONSINPUT_SCHEMA;
  111    116   
}
  112    117   
impl ::aws_smithy_schema::serde::SerializableStruct for ListDevEnvironmentSessionsInput {
  113    118   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  114    119   
    fn serialize_members(
  115    120   
        &self,
  116    121   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  117    122   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  118    123   
        if let Some(ref val) = self.space_name {
  119    124   
            ser.write_string(&LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_SPACE_NAME, val)?;
  120    125   
        }
  121    126   
        if let Some(ref val) = self.project_name {
  122    127   
            ser.write_string(&LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_PROJECT_NAME, val)?;
  123    128   
        }
  124    129   
        if let Some(ref val) = self.dev_environment_id {
  125    130   
            ser.write_string(&LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_DEV_ENVIRONMENT_ID, val)?;
  126    131   
        }
  127    132   
        if let Some(ref val) = self.next_token {
  128    133   
            ser.write_string(&LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_NEXT_TOKEN, val)?;
  129    134   
        }
  130    135   
        if let Some(ref val) = self.max_results {
  131    136   
            ser.write_integer(&LISTDEVENVIRONMENTSESSIONSINPUT_MEMBER_MAX_RESULTS, *val)?;
  132    137   
        }
  133    138   
        Ok(())
  134    139   
    }
  135    140   
}
  136    141   
impl ListDevEnvironmentSessionsInput {
  137    142   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  138         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  139         -
        deserializer: &mut D,
         143  +
    pub fn deserialize(
         144  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  140    145   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  141    146   
        #[allow(unused_variables, unused_mut)]
  142    147   
        let mut builder = Self::builder();
  143    148   
        #[allow(
  144    149   
            unused_variables,
  145    150   
            unreachable_code,
  146    151   
            clippy::single_match,
  147    152   
            clippy::match_single_binding,
  148    153   
            clippy::diverging_sub_expression
  149    154   
        )]
  150         -
        deserializer.read_struct(&LISTDEVENVIRONMENTSESSIONSINPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSESSIONSINPUT_SCHEMA, &mut |member, deser| {
  151    156   
            match member.member_index() {
  152    157   
                Some(0) => {
  153    158   
                    builder.space_name = Some(deser.read_string(member)?);
  154    159   
                }
  155    160   
                Some(1) => {
  156    161   
                    builder.project_name = Some(deser.read_string(member)?);
  157    162   
                }
  158    163   
                Some(2) => {
  159    164   
                    builder.dev_environment_id = Some(deser.read_string(member)?);
  160    165   
                }
  161    166   
                Some(3) => {
  162    167   
                    builder.next_token = Some(deser.read_string(member)?);
  163    168   
                }
  164    169   
                Some(4) => {
  165    170   
                    builder.max_results = Some(deser.read_integer(member)?);
  166    171   
                }
  167    172   
                _ => {}
  168    173   
            }
  169    174   
            Ok(())
  170    175   
        })?;
         176  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         177  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         178  +
        builder.dev_environment_id = builder.dev_environment_id.or(Some(String::new()));
  171    179   
        builder
  172    180   
            .build()
  173    181   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  174    182   
    }
  175    183   
}
         184  +
impl ListDevEnvironmentSessionsInput {
         185  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         186  +
    pub fn deserialize_with_response(
         187  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         188  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         189  +
        _status: u16,
         190  +
        _body: &[u8],
         191  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         192  +
        Self::deserialize(deserializer)
         193  +
    }
         194  +
}
  176    195   
impl ListDevEnvironmentSessionsInput {
  177    196   
    /// Creates a new builder-style object to manufacture [`ListDevEnvironmentSessionsInput`](crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput).
  178    197   
    pub fn builder() -> crate::operation::list_dev_environment_sessions::builders::ListDevEnvironmentSessionsInputBuilder {
  179    198   
        crate::operation::list_dev_environment_sessions::builders::ListDevEnvironmentSessionsInputBuilder::default()
  180    199   
    }
  181    200   
}
  182    201   
  183    202   
/// A builder for [`ListDevEnvironmentSessionsInput`](crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsInput).
  184    203   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  185    204   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_dev_environment_sessions/_list_dev_environment_sessions_output.rs

@@ -15,15 +141,196 @@
   35     35   
    "items",
   36     36   
    0,
   37     37   
);
   38     38   
static LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentSessionsOutput$nextToken",
   41     41   
        "com.amazonaws.codecatalyst.synthetic",
   42     42   
        "ListDevEnvironmentSessionsOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "next_token",
          45  +
    "nextToken",
   46     46   
    1,
   47     47   
);
          48  +
static LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          49  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          50  +
    ::aws_smithy_schema::ShapeType::String,
          51  +
    "request_id",
          52  +
    2,
          53  +
)
          54  +
.with_http_header("x-amzn-requestid");
   48     55   
static LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     56   
    LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA_ID,
   50     57   
    ::aws_smithy_schema::ShapeType::Structure,
   51     58   
    &[
   52     59   
        &LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER_ITEMS,
   53     60   
        &LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER_NEXT_TOKEN,
          61  +
        &LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER__REQUEST_ID,
   54     62   
    ],
   55     63   
);
   56     64   
impl ListDevEnvironmentSessionsOutput {
   57     65   
    /// The schema for this shape.
   58     66   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA;
   59     67   
}
   60     68   
impl ::aws_smithy_schema::serde::SerializableStruct for ListDevEnvironmentSessionsOutput {
   61     69   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     70   
    fn serialize_members(
   63     71   
        &self,
   64     72   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     73   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     74   
        {
   67     75   
            let val = &self.items;
   68     76   
   69     77   
            ser.write_list(
   70     78   
                &LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER_ITEMS,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::DevEnvironmentSessionSummary::SCHEMA, item)?;
   74     82   
                    }
   75     83   
                    Ok(())
   76     84   
                },
   77     85   
            )?;
   78     86   
        }
   79     87   
        if let Some(ref val) = self.next_token {
   80     88   
            ser.write_string(&LISTDEVENVIRONMENTSESSIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl ListDevEnvironmentSessionsOutput {
   86     94   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   87         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   88         -
        deserializer: &mut D,
          95  +
    pub fn deserialize(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   89     97   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   90     98   
        #[allow(unused_variables, unused_mut)]
   91     99   
        let mut builder = Self::builder();
   92    100   
        #[allow(
   93    101   
            unused_variables,
   94    102   
            unreachable_code,
   95    103   
            clippy::single_match,
   96    104   
            clippy::match_single_binding,
   97    105   
            clippy::diverging_sub_expression
   98    106   
        )]
   99         -
        deserializer.read_struct(&LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA, &mut |member, deser| {
         108  +
            match member.member_index() {
         109  +
                Some(0) => {
         110  +
                    builder.items = Some({
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::DevEnvironmentSessionSummary::deserialize(deser)?);
         114  +
                            Ok(())
         115  +
                        })?;
         116  +
                        container
         117  +
                    });
         118  +
                }
         119  +
                Some(1) => {
         120  +
                    builder.next_token = Some(deser.read_string(member)?);
         121  +
                }
         122  +
                Some(2) => {
         123  +
                    builder._request_id = Some(deser.read_string(member)?);
         124  +
                }
         125  +
                _ => {}
         126  +
            }
         127  +
            Ok(())
         128  +
        })?;
         129  +
        builder.items = builder.items.or(Some(Vec::new()));
         130  +
        builder
         131  +
            .build()
         132  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         133  +
    }
         134  +
}
         135  +
impl ListDevEnvironmentSessionsOutput {
         136  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         137  +
    /// Header-bound members are read directly from headers, avoiding runtime
         138  +
    /// member iteration overhead. Body members are read via the deserializer.
         139  +
    pub fn deserialize_with_response(
         140  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         141  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         142  +
        _status: u16,
         143  +
        _body: &[u8],
         144  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         145  +
        #[allow(unused_variables, unused_mut)]
         146  +
        let mut builder = Self::builder();
         147  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         148  +
            builder._request_id = Some(val.to_string());
         149  +
        }
         150  +
        #[allow(
         151  +
            unused_variables,
         152  +
            unreachable_code,
         153  +
            clippy::single_match,
         154  +
            clippy::match_single_binding,
         155  +
            clippy::diverging_sub_expression
         156  +
        )]
         157  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSESSIONSOUTPUT_SCHEMA, &mut |member, deser| {
  100    158   
            match member.member_index() {
  101    159   
                Some(0) => {
  102    160   
                    builder.items = Some({
  103         -
                        let container = if let Some(cap) = deser.container_size() {
  104         -
                            Vec::with_capacity(cap)
  105         -
                        } else {
  106         -
                            Vec::new()
  107         -
                        };
  108         -
                        deser.read_list(member, container, |mut list, deser| {
  109         -
                            list.push(crate::types::DevEnvironmentSessionSummary::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         161  +
                        let mut container = Vec::new();
         162  +
                        deser.read_list(member, &mut |deser| {
         163  +
                            container.push(crate::types::DevEnvironmentSessionSummary::deserialize(deser)?);
         164  +
                            Ok(())
         165  +
                        })?;
         166  +
                        container
  112    167   
                    });
  113    168   
                }
  114    169   
                Some(1) => {
  115    170   
                    builder.next_token = Some(deser.read_string(member)?);
  116    171   
                }
  117    172   
                _ => {}
  118    173   
            }
  119    174   
            Ok(())
  120    175   
        })?;
  121    176   
        builder

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListDevEnvironments`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListDevEnvironments;
    6      6   
impl ListDevEnvironments {
    7      7   
    /// Creates a new `ListDevEnvironments`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_dev_environments::ListDevEnvironmentsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_dev_environments::ListDevEnvironmentsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_dev_environments::ListDevEnvironmentsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_dev_environments::ListDevEnvironmentsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_dev_environments::ListDevEnvironmentsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +243,380 @@
  128    132   
                crate::operation::list_dev_environments::ListDevEnvironmentsError,
  129    133   
            >::new());
  130    134   
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct ListDevEnvironmentsResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListDevEnvironmentsResponseDeserializer {
  138         -
    fn deserialize_nonstreaming(
         142  +
    fn deserialize_nonstreaming_with_config(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  143         -
        let headers = response.headers();
  144         -
        let body = response.body().bytes().expect("body loaded");
  145    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  148         -
        let parse_result = if !success && status != 200 || force_error {
  149         -
            crate::protocol_serde::shape_list_dev_environments::de_list_dev_environments_http_error(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         165  +
                            crate::operation::list_dev_environments::ListDevEnvironmentsError::unhandled(generic),
         166  +
                        ),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::list_dev_environments::ListDevEnvironmentsError::AccessDeniedException({
         176  +
                    let mut tmp = match protocol
         177  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         178  +
                        .and_then(|mut deser| {
         179  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         180  +
                                &mut *deser,
         181  +
                                response.headers(),
         182  +
                                response.status().into(),
         183  +
                                body,
         184  +
                            )
         185  +
                        }) {
         186  +
                        ::std::result::Result::Ok(val) => val,
         187  +
                        ::std::result::Result::Err(e) => {
         188  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         189  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         190  +
                            ))
         191  +
                        }
         192  +
                    };
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::list_dev_environments::ListDevEnvironmentsError::ConflictException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::ConflictException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    tmp
         216  +
                }),
         217  +
                "ResourceNotFoundException" => crate::operation::list_dev_environments::ListDevEnvironmentsError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => {
         239  +
                    crate::operation::list_dev_environments::ListDevEnvironmentsError::ServiceQuotaExceededException({
         240  +
                        let mut tmp = match protocol
         241  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         242  +
                            .and_then(|mut deser| {
         243  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         244  +
                                    &mut *deser,
         245  +
                                    response.headers(),
         246  +
                                    response.status().into(),
         247  +
                                    body,
         248  +
                                )
         249  +
                            }) {
         250  +
                            ::std::result::Result::Ok(val) => val,
         251  +
                            ::std::result::Result::Err(e) => {
         252  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                                ))
         255  +
                            }
         256  +
                        };
         257  +
                        tmp.meta = generic;
         258  +
                        tmp
         259  +
                    })
         260  +
                }
         261  +
                "ThrottlingException" => crate::operation::list_dev_environments::ListDevEnvironmentsError::ThrottlingException({
         262  +
                    let mut tmp = match protocol
         263  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         264  +
                        .and_then(|mut deser| {
         265  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         266  +
                                &mut *deser,
         267  +
                                response.headers(),
         268  +
                                response.status().into(),
         269  +
                                body,
         270  +
                            )
         271  +
                        }) {
         272  +
                        ::std::result::Result::Ok(val) => val,
         273  +
                        ::std::result::Result::Err(e) => {
         274  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         275  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         276  +
                            ))
         277  +
                        }
         278  +
                    };
         279  +
                    tmp.meta = generic;
         280  +
                    tmp
         281  +
                }),
         282  +
                "ValidationException" => crate::operation::list_dev_environments::ListDevEnvironmentsError::ValidationException({
         283  +
                    let mut tmp = match protocol
         284  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         285  +
                        .and_then(|mut deser| {
         286  +
                            crate::types::error::ValidationException::deserialize_with_response(
         287  +
                                &mut *deser,
         288  +
                                response.headers(),
         289  +
                                response.status().into(),
         290  +
                                body,
         291  +
                            )
         292  +
                        }) {
         293  +
                        ::std::result::Result::Ok(val) => val,
         294  +
                        ::std::result::Result::Err(e) => {
         295  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         296  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         297  +
                            ))
         298  +
                        }
         299  +
                    };
         300  +
                    tmp.meta = generic;
         301  +
                    tmp
         302  +
                }),
         303  +
                _ => crate::operation::list_dev_environments::ListDevEnvironmentsError::generic(generic),
         304  +
            };
         305  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         306  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         307  +
            ))
  150    308   
        } else {
  151         -
            crate::protocol_serde::shape_list_dev_environments::de_list_dev_environments_http_response(status, headers, body)
  152         -
        };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         309  +
            let protocol = _cfg
         310  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         311  +
                .expect("a SharedClientProtocol is required");
         312  +
            let mut deser = protocol
         313  +
                .deserialize_response(response, ListDevEnvironments::OUTPUT_SCHEMA, _cfg)
         314  +
                .map_err(|e| {
         315  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         316  +
                })?;
         317  +
            let body = response.body().bytes().expect("body loaded");
         318  +
            let output = crate::operation::list_dev_environments::ListDevEnvironmentsOutput::deserialize_with_response(
         319  +
                &mut *deser,
         320  +
                response.headers(),
         321  +
                response.status().into(),
         322  +
                body,
         323  +
            )
         324  +
            .map_err(|e| {
         325  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
            })?;
         327  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         328  +
        }
  154    329   
    }
  155    330   
}
  156    331   
#[derive(Debug)]
  157    332   
struct ListDevEnvironmentsRequestSerializer;
  158    333   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListDevEnvironmentsRequestSerializer {
  159    334   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    335   
    fn serialize_input(
  161    336   
        &self,
  162    337   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    338   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    339   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    340   
        let input = input
  166    341   
            .downcast::<crate::operation::list_dev_environments::ListDevEnvironmentsInput>()
  167    342   
            .expect("correct type");
  168         -
        let _header_serialization_settings = _cfg
  169         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  170         -
            .cloned()
  171         -
            .unwrap_or_default();
  172         -
        let mut request_builder = {
  173         -
            #[allow(clippy::uninlined_format_args)]
  174         -
            fn uri_base(
  175         -
                _input: &crate::operation::list_dev_environments::ListDevEnvironmentsInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                ::std::write!(output, "/v1/spaces/{spaceName}/devEnvironments", spaceName = space_name).expect("formatting should succeed");
  191         -
                ::std::result::Result::Ok(())
  192         -
            }
  193         -
            #[allow(clippy::unnecessary_wraps)]
  194         -
            fn update_http_builder(
  195         -
                input: &crate::operation::list_dev_environments::ListDevEnvironmentsInput,
  196         -
                builder: ::http_1x::request::Builder,
  197         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198         -
                let mut uri = ::std::string::String::new();
  199         -
                uri_base(input, &mut uri)?;
  200         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  201         -
            }
  202         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  203         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  204         -
            builder
  205         -
        };
  206         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_dev_environments::ser_list_dev_environments_input(
  207         -
            &input,
  208         -
        )?);
  209         -
        if let Some(content_length) = body.content_length() {
  210         -
            let content_length = content_length.to_string();
  211         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  212         -
        }
  213         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         343  +
        let protocol = _cfg
         344  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         345  +
            .expect("a SharedClientProtocol is required");
         346  +
        let mut request = protocol
         347  +
            .serialize_request(&input, ListDevEnvironments::INPUT_SCHEMA, "", _cfg)
         348  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         349  +
         350  +
        return ::std::result::Result::Ok(request);
  214    351   
    }
  215    352   
}
  216    353   
#[derive(Debug)]
  217    354   
struct ListDevEnvironmentsEndpointParamsInterceptor;
  218    355   
  219    356   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListDevEnvironmentsEndpointParamsInterceptor {
  220    357   
    fn name(&self) -> &'static str {
  221    358   
        "ListDevEnvironmentsEndpointParamsInterceptor"
  222    359   
    }
  223    360   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_dev_environments/_list_dev_environments_input.rs

@@ -23,23 +223,237 @@
   43     43   
    "com.amazonaws.codecatalyst.synthetic",
   44     44   
    "ListDevEnvironmentsInput",
   45     45   
);
   46     46   
static LISTDEVENVIRONMENTSINPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsInput$spaceName",
   49     49   
        "com.amazonaws.codecatalyst.synthetic",
   50     50   
        "ListDevEnvironmentsInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "space_name",
          53  +
    "spaceName",
   54     54   
    0,
   55     55   
)
   56     56   
.with_http_label();
   57     57   
static LISTDEVENVIRONMENTSINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsInput$projectName",
   60     60   
        "com.amazonaws.codecatalyst.synthetic",
   61     61   
        "ListDevEnvironmentsInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "project_name",
          64  +
    "projectName",
   65     65   
    1,
   66     66   
);
   67     67   
static LISTDEVENVIRONMENTSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsInput$filters",
   70     70   
        "com.amazonaws.codecatalyst.synthetic",
   71     71   
        "ListDevEnvironmentsInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::List,
   74     74   
    "filters",
   75     75   
    2,
   76     76   
);
   77     77   
static LISTDEVENVIRONMENTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsInput$nextToken",
   80     80   
        "com.amazonaws.codecatalyst.synthetic",
   81     81   
        "ListDevEnvironmentsInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::String,
   84         -
    "next_token",
          84  +
    "nextToken",
   85     85   
    3,
   86     86   
);
   87     87   
static LISTDEVENVIRONMENTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsInput$maxResults",
   90     90   
        "com.amazonaws.codecatalyst.synthetic",
   91     91   
        "ListDevEnvironmentsInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::Integer,
   94         -
    "max_results",
          94  +
    "maxResults",
   95     95   
    4,
   96     96   
);
   97     97   
static LISTDEVENVIRONMENTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   98     98   
    LISTDEVENVIRONMENTSINPUT_SCHEMA_ID,
   99     99   
    ::aws_smithy_schema::ShapeType::Structure,
  100    100   
    &[
  101    101   
        &LISTDEVENVIRONMENTSINPUT_MEMBER_SPACE_NAME,
  102    102   
        &LISTDEVENVIRONMENTSINPUT_MEMBER_PROJECT_NAME,
  103    103   
        &LISTDEVENVIRONMENTSINPUT_MEMBER_FILTERS,
  104    104   
        &LISTDEVENVIRONMENTSINPUT_MEMBER_NEXT_TOKEN,
  105    105   
        &LISTDEVENVIRONMENTSINPUT_MEMBER_MAX_RESULTS,
  106    106   
    ],
  107         -
);
         107  +
)
         108  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         109  +
    "POST",
         110  +
    "/v1/spaces/{spaceName}/devEnvironments",
         111  +
    None,
         112  +
));
  108    113   
impl ListDevEnvironmentsInput {
  109    114   
    /// The schema for this shape.
  110    115   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTDEVENVIRONMENTSINPUT_SCHEMA;
  111    116   
}
  112    117   
impl ::aws_smithy_schema::serde::SerializableStruct for ListDevEnvironmentsInput {
  113    118   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  114    119   
    fn serialize_members(
  115    120   
        &self,
  116    121   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  117    122   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  118    123   
        if let Some(ref val) = self.space_name {
  119    124   
            ser.write_string(&LISTDEVENVIRONMENTSINPUT_MEMBER_SPACE_NAME, val)?;
  120    125   
        }
  121    126   
        if let Some(ref val) = self.project_name {
  122    127   
            ser.write_string(&LISTDEVENVIRONMENTSINPUT_MEMBER_PROJECT_NAME, val)?;
  123    128   
        }
  124    129   
        if let Some(ref val) = self.filters {
  125    130   
            ser.write_list(
  126    131   
                &LISTDEVENVIRONMENTSINPUT_MEMBER_FILTERS,
  127    132   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  128    133   
                    for item in val {
  129    134   
                        ser.write_struct(crate::types::Filter::SCHEMA, item)?;
  130    135   
                    }
  131    136   
                    Ok(())
  132    137   
                },
  133    138   
            )?;
  134    139   
        }
  135    140   
        if let Some(ref val) = self.next_token {
  136    141   
            ser.write_string(&LISTDEVENVIRONMENTSINPUT_MEMBER_NEXT_TOKEN, val)?;
  137    142   
        }
  138    143   
        if let Some(ref val) = self.max_results {
  139    144   
            ser.write_integer(&LISTDEVENVIRONMENTSINPUT_MEMBER_MAX_RESULTS, *val)?;
  140    145   
        }
  141    146   
        Ok(())
  142    147   
    }
  143    148   
}
  144    149   
impl ListDevEnvironmentsInput {
  145    150   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  146         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  147         -
        deserializer: &mut D,
         151  +
    pub fn deserialize(
         152  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  148    153   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  149    154   
        #[allow(unused_variables, unused_mut)]
  150    155   
        let mut builder = Self::builder();
  151    156   
        #[allow(
  152    157   
            unused_variables,
  153    158   
            unreachable_code,
  154    159   
            clippy::single_match,
  155    160   
            clippy::match_single_binding,
  156    161   
            clippy::diverging_sub_expression
  157    162   
        )]
  158         -
        deserializer.read_struct(&LISTDEVENVIRONMENTSINPUT_SCHEMA, (), |_, member, deser| {
         163  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSINPUT_SCHEMA, &mut |member, deser| {
  159    164   
            match member.member_index() {
  160    165   
                Some(0) => {
  161    166   
                    builder.space_name = Some(deser.read_string(member)?);
  162    167   
                }
  163    168   
                Some(1) => {
  164    169   
                    builder.project_name = Some(deser.read_string(member)?);
  165    170   
                }
  166    171   
                Some(2) => {
  167    172   
                    builder.filters = Some({
  168         -
                        let container = if let Some(cap) = deser.container_size() {
  169         -
                            Vec::with_capacity(cap)
  170         -
                        } else {
  171         -
                            Vec::new()
  172         -
                        };
  173         -
                        deser.read_list(member, container, |mut list, deser| {
  174         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  175         -
                            Ok(list)
  176         -
                        })?
         173  +
                        let mut container = Vec::new();
         174  +
                        deser.read_list(member, &mut |deser| {
         175  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         176  +
                            Ok(())
         177  +
                        })?;
         178  +
                        container
  177    179   
                    });
  178    180   
                }
  179    181   
                Some(3) => {
  180    182   
                    builder.next_token = Some(deser.read_string(member)?);
  181    183   
                }
  182    184   
                Some(4) => {
  183    185   
                    builder.max_results = Some(deser.read_integer(member)?);
  184    186   
                }
  185    187   
                _ => {}
  186    188   
            }
  187    189   
            Ok(())
  188    190   
        })?;
         191  +
        builder.space_name = builder.space_name.or(Some(String::new()));
  189    192   
        builder
  190    193   
            .build()
  191    194   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  192    195   
    }
  193    196   
}
         197  +
impl ListDevEnvironmentsInput {
         198  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         199  +
    pub fn deserialize_with_response(
         200  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         201  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         202  +
        _status: u16,
         203  +
        _body: &[u8],
         204  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         205  +
        Self::deserialize(deserializer)
         206  +
    }
         207  +
}
  194    208   
impl ListDevEnvironmentsInput {
  195    209   
    /// Creates a new builder-style object to manufacture [`ListDevEnvironmentsInput`](crate::operation::list_dev_environments::ListDevEnvironmentsInput).
  196    210   
    pub fn builder() -> crate::operation::list_dev_environments::builders::ListDevEnvironmentsInputBuilder {
  197    211   
        crate::operation::list_dev_environments::builders::ListDevEnvironmentsInputBuilder::default()
  198    212   
    }
  199    213   
}
  200    214   
  201    215   
/// A builder for [`ListDevEnvironmentsInput`](crate::operation::list_dev_environments::ListDevEnvironmentsInput).
  202    216   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  203    217   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_dev_environments/_list_dev_environments_output.rs

@@ -15,15 +138,196 @@
   35     35   
    "items",
   36     36   
    0,
   37     37   
);
   38     38   
static LISTDEVENVIRONMENTSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.codecatalyst.synthetic#ListDevEnvironmentsOutput$nextToken",
   41     41   
        "com.amazonaws.codecatalyst.synthetic",
   42     42   
        "ListDevEnvironmentsOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "next_token",
          45  +
    "nextToken",
   46     46   
    1,
   47     47   
);
          48  +
static LISTDEVENVIRONMENTSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          49  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          50  +
    ::aws_smithy_schema::ShapeType::String,
          51  +
    "request_id",
          52  +
    2,
          53  +
)
          54  +
.with_http_header("x-amzn-requestid");
   48     55   
static LISTDEVENVIRONMENTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     56   
    LISTDEVENVIRONMENTSOUTPUT_SCHEMA_ID,
   50     57   
    ::aws_smithy_schema::ShapeType::Structure,
   51         -
    &[&LISTDEVENVIRONMENTSOUTPUT_MEMBER_ITEMS, &LISTDEVENVIRONMENTSOUTPUT_MEMBER_NEXT_TOKEN],
          58  +
    &[
          59  +
        &LISTDEVENVIRONMENTSOUTPUT_MEMBER_ITEMS,
          60  +
        &LISTDEVENVIRONMENTSOUTPUT_MEMBER_NEXT_TOKEN,
          61  +
        &LISTDEVENVIRONMENTSOUTPUT_MEMBER__REQUEST_ID,
          62  +
    ],
   52     63   
);
   53     64   
impl ListDevEnvironmentsOutput {
   54     65   
    /// The schema for this shape.
   55     66   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTDEVENVIRONMENTSOUTPUT_SCHEMA;
   56     67   
}
   57     68   
impl ::aws_smithy_schema::serde::SerializableStruct for ListDevEnvironmentsOutput {
   58     69   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     70   
    fn serialize_members(
   60     71   
        &self,
   61     72   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     73   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     74   
        {
   64     75   
            let val = &self.items;
   65     76   
   66     77   
            ser.write_list(
   67     78   
                &LISTDEVENVIRONMENTSOUTPUT_MEMBER_ITEMS,
   68     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   69     80   
                    for item in val {
   70     81   
                        ser.write_struct(crate::types::DevEnvironmentSummary::SCHEMA, item)?;
   71     82   
                    }
   72     83   
                    Ok(())
   73     84   
                },
   74     85   
            )?;
   75     86   
        }
   76     87   
        if let Some(ref val) = self.next_token {
   77     88   
            ser.write_string(&LISTDEVENVIRONMENTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   78     89   
        }
   79     90   
        Ok(())
   80     91   
    }
   81     92   
}
   82     93   
impl ListDevEnvironmentsOutput {
   83     94   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   84         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   85         -
        deserializer: &mut D,
          95  +
    pub fn deserialize(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   86     97   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   87     98   
        #[allow(unused_variables, unused_mut)]
   88     99   
        let mut builder = Self::builder();
   89    100   
        #[allow(
   90    101   
            unused_variables,
   91    102   
            unreachable_code,
   92    103   
            clippy::single_match,
   93    104   
            clippy::match_single_binding,
   94    105   
            clippy::diverging_sub_expression
   95    106   
        )]
   96         -
        deserializer.read_struct(&LISTDEVENVIRONMENTSOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSOUTPUT_SCHEMA, &mut |member, deser| {
         108  +
            match member.member_index() {
         109  +
                Some(0) => {
         110  +
                    builder.items = Some({
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::DevEnvironmentSummary::deserialize(deser)?);
         114  +
                            Ok(())
         115  +
                        })?;
         116  +
                        container
         117  +
                    });
         118  +
                }
         119  +
                Some(1) => {
         120  +
                    builder.next_token = Some(deser.read_string(member)?);
         121  +
                }
         122  +
                Some(2) => {
         123  +
                    builder._request_id = Some(deser.read_string(member)?);
         124  +
                }
         125  +
                _ => {}
         126  +
            }
         127  +
            Ok(())
         128  +
        })?;
         129  +
        builder.items = builder.items.or(Some(Vec::new()));
         130  +
        builder
         131  +
            .build()
         132  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         133  +
    }
         134  +
}
         135  +
impl ListDevEnvironmentsOutput {
         136  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         137  +
    /// Header-bound members are read directly from headers, avoiding runtime
         138  +
    /// member iteration overhead. Body members are read via the deserializer.
         139  +
    pub fn deserialize_with_response(
         140  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         141  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         142  +
        _status: u16,
         143  +
        _body: &[u8],
         144  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         145  +
        #[allow(unused_variables, unused_mut)]
         146  +
        let mut builder = Self::builder();
         147  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         148  +
            builder._request_id = Some(val.to_string());
         149  +
        }
         150  +
        #[allow(
         151  +
            unused_variables,
         152  +
            unreachable_code,
         153  +
            clippy::single_match,
         154  +
            clippy::match_single_binding,
         155  +
            clippy::diverging_sub_expression
         156  +
        )]
         157  +
        deserializer.read_struct(&LISTDEVENVIRONMENTSOUTPUT_SCHEMA, &mut |member, deser| {
   97    158   
            match member.member_index() {
   98    159   
                Some(0) => {
   99    160   
                    builder.items = Some({
  100         -
                        let container = if let Some(cap) = deser.container_size() {
  101         -
                            Vec::with_capacity(cap)
  102         -
                        } else {
  103         -
                            Vec::new()
  104         -
                        };
  105         -
                        deser.read_list(member, container, |mut list, deser| {
  106         -
                            list.push(crate::types::DevEnvironmentSummary::deserialize(deser)?);
  107         -
                            Ok(list)
  108         -
                        })?
         161  +
                        let mut container = Vec::new();
         162  +
                        deser.read_list(member, &mut |deser| {
         163  +
                            container.push(crate::types::DevEnvironmentSummary::deserialize(deser)?);
         164  +
                            Ok(())
         165  +
                        })?;
         166  +
                        container
  109    167   
                    });
  110    168   
                }
  111    169   
                Some(1) => {
  112    170   
                    builder.next_token = Some(deser.read_string(member)?);
  113    171   
                }
  114    172   
                _ => {}
  115    173   
            }
  116    174   
            Ok(())
  117    175   
        })?;
  118    176   
        builder

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListEventLogs`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListEventLogs;
    6      6   
impl ListEventLogs {
    7      7   
    /// Creates a new `ListEventLogs`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_event_logs::ListEventLogsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_event_logs::ListEventLogsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_event_logs::ListEventLogsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_event_logs::ListEventLogsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_event_logs::ListEventLogsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +241,376 @@
  128    132   
                crate::operation::list_event_logs::ListEventLogsError,
  129    133   
            >::new());
  130    134   
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct ListEventLogsResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListEventLogsResponseDeserializer {
  138         -
    fn deserialize_nonstreaming(
         142  +
    fn deserialize_nonstreaming_with_config(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  143         -
        let headers = response.headers();
  144         -
        let body = response.body().bytes().expect("body loaded");
  145    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  148         -
        let parse_result = if !success && status != 200 || force_error {
  149         -
            crate::protocol_serde::shape_list_event_logs::de_list_event_logs_http_error(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_event_logs::ListEventLogsError::unhandled(
         165  +
                            generic,
         166  +
                        )),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::list_event_logs::ListEventLogsError::AccessDeniedException({
         176  +
                    let mut tmp = match protocol
         177  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         178  +
                        .and_then(|mut deser| {
         179  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         180  +
                                &mut *deser,
         181  +
                                response.headers(),
         182  +
                                response.status().into(),
         183  +
                                body,
         184  +
                            )
         185  +
                        }) {
         186  +
                        ::std::result::Result::Ok(val) => val,
         187  +
                        ::std::result::Result::Err(e) => {
         188  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         189  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         190  +
                            ))
         191  +
                        }
         192  +
                    };
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::list_event_logs::ListEventLogsError::ConflictException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::ConflictException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    tmp
         216  +
                }),
         217  +
                "ResourceNotFoundException" => crate::operation::list_event_logs::ListEventLogsError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => crate::operation::list_event_logs::ListEventLogsError::ServiceQuotaExceededException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    tmp
         258  +
                }),
         259  +
                "ThrottlingException" => crate::operation::list_event_logs::ListEventLogsError::ThrottlingException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::list_event_logs::ListEventLogsError::ValidationException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ValidationException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
         297  +
                    };
         298  +
                    tmp.meta = generic;
         299  +
                    tmp
         300  +
                }),
         301  +
                _ => crate::operation::list_event_logs::ListEventLogsError::generic(generic),
         302  +
            };
         303  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         304  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         305  +
            ))
  150    306   
        } else {
  151         -
            crate::protocol_serde::shape_list_event_logs::de_list_event_logs_http_response(status, headers, body)
  152         -
        };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         307  +
            let protocol = _cfg
         308  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         309  +
                .expect("a SharedClientProtocol is required");
         310  +
            let mut deser = protocol.deserialize_response(response, ListEventLogs::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         311  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         312  +
            })?;
         313  +
            let body = response.body().bytes().expect("body loaded");
         314  +
            let output = crate::operation::list_event_logs::ListEventLogsOutput::deserialize_with_response(
         315  +
                &mut *deser,
         316  +
                response.headers(),
         317  +
                response.status().into(),
         318  +
                body,
         319  +
            )
         320  +
            .map_err(|e| {
         321  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         322  +
            })?;
         323  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         324  +
        }
  154    325   
    }
  155    326   
}
  156    327   
#[derive(Debug)]
  157    328   
struct ListEventLogsRequestSerializer;
  158    329   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListEventLogsRequestSerializer {
  159    330   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    331   
    fn serialize_input(
  161    332   
        &self,
  162    333   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    334   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    335   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    336   
        let input = input
  166    337   
            .downcast::<crate::operation::list_event_logs::ListEventLogsInput>()
  167    338   
            .expect("correct type");
  168         -
        let _header_serialization_settings = _cfg
  169         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  170         -
            .cloned()
  171         -
            .unwrap_or_default();
  172         -
        let mut request_builder = {
  173         -
            #[allow(clippy::uninlined_format_args)]
  174         -
            fn uri_base(
  175         -
                _input: &crate::operation::list_event_logs::ListEventLogsInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                ::std::write!(output, "/v1/spaces/{spaceName}/eventLogs", spaceName = space_name).expect("formatting should succeed");
  191         -
                ::std::result::Result::Ok(())
  192         -
            }
  193         -
            #[allow(clippy::unnecessary_wraps)]
  194         -
            fn update_http_builder(
  195         -
                input: &crate::operation::list_event_logs::ListEventLogsInput,
  196         -
                builder: ::http_1x::request::Builder,
  197         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198         -
                let mut uri = ::std::string::String::new();
  199         -
                uri_base(input, &mut uri)?;
  200         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  201         -
            }
  202         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  203         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  204         -
            builder
  205         -
        };
  206         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_event_logs::ser_list_event_logs_input(&input)?);
  207         -
        if let Some(content_length) = body.content_length() {
  208         -
            let content_length = content_length.to_string();
  209         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  210         -
        }
  211         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         339  +
        let protocol = _cfg
         340  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         341  +
            .expect("a SharedClientProtocol is required");
         342  +
        let mut request = protocol
         343  +
            .serialize_request(&input, ListEventLogs::INPUT_SCHEMA, "", _cfg)
         344  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         345  +
         346  +
        return ::std::result::Result::Ok(request);
  212    347   
    }
  213    348   
}
  214    349   
#[derive(Debug)]
  215    350   
struct ListEventLogsEndpointParamsInterceptor;
  216    351   
  217    352   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListEventLogsEndpointParamsInterceptor {
  218    353   
    fn name(&self) -> &'static str {
  219    354   
        "ListEventLogsEndpointParamsInterceptor"
  220    355   
    }
  221    356