AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/start_dev_environment.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 `StartDevEnvironment`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StartDevEnvironment;
    6      6   
impl StartDevEnvironment {
    7      7   
    /// Creates a new `StartDevEnvironment`
    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::start_dev_environment::StartDevEnvironmentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::start_dev_environment::StartDevEnvironmentOutput::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::start_dev_environment::StartDevEnvironmentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::start_dev_environment::StartDevEnvironmentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::start_dev_environment::StartDevEnvironmentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +272,416 @@
  128    132   
                crate::operation::start_dev_environment::StartDevEnvironmentError,
  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 StartDevEnvironmentResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StartDevEnvironmentResponseDeserializer {
  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_start_dev_environment::de_start_dev_environment_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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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::start_dev_environment::StartDevEnvironmentError::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_start_dev_environment::de_start_dev_environment_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, StartDevEnvironment::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::start_dev_environment::StartDevEnvironmentOutput::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 StartDevEnvironmentRequestSerializer;
  158    333   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StartDevEnvironmentRequestSerializer {
  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::start_dev_environment::StartDevEnvironmentInput>()
  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::start_dev_environment::StartDevEnvironmentInput,
  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         -
                    ));
         343  +
        let protocol = _cfg
         344  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         345  +
            .expect("a SharedClientProtocol is required");
         346  +
        if protocol.supports_http_bindings() {
         347  +
            let mut request = protocol
         348  +
                .serialize_body(&input, StartDevEnvironment::INPUT_SCHEMA, "", _cfg)
         349  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         350  +
            {
         351  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start".to_string();
         352  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         353  +
                if let Some(ref val) = input.space_name {
         354  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  189    355   
                }
  190         -
                let input_2 = &_input.project_name;
  191         -
                let input_2 = input_2
  192         -
                    .as_ref()
  193         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  194         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  195         -
                if project_name.is_empty() {
  196         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  197         -
                        "project_name",
  198         -
                        "cannot be empty or unset",
  199         -
                    ));
         356  +
                if let Some(ref val) = input.project_name {
         357  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  200    358   
                }
  201         -
                let input_3 = &_input.id;
  202         -
                let input_3 = input_3
  203         -
                    .as_ref()
  204         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
  205         -
                let id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  206         -
                if id.is_empty() {
  207         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  208         -
                        "id",
  209         -
                        "cannot be empty or unset",
  210         -
                    ));
         359  +
                if let Some(ref val) = input.id {
         360  +
                    uri = uri.replace("{id}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  211    361   
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start",
  215         -
                    spaceName = space_name,
  216         -
                    projectName = project_name,
  217         -
                    id = id
  218         -
                )
  219         -
                .expect("formatting should succeed");
  220         -
                ::std::result::Result::Ok(())
  221         -
            }
  222         -
            #[allow(clippy::unnecessary_wraps)]
  223         -
            fn update_http_builder(
  224         -
                input: &crate::operation::start_dev_environment::StartDevEnvironmentInput,
  225         -
                builder: ::http_1x::request::Builder,
  226         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227         -
                let mut uri = ::std::string::String::new();
  228         -
                uri_base(input, &mut uri)?;
  229         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
         362  +
                if !query_params.is_empty() {
         363  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         364  +
                    let pairs: Vec<String> = query_params
         365  +
                        .iter()
         366  +
                        .map(|(k, v)| {
         367  +
                            format!(
         368  +
                                "{}={}",
         369  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         370  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         371  +
                            )
         372  +
                        })
         373  +
                        .collect();
         374  +
                    uri.push_str(&pairs.join("&"));
         375  +
                }
         376  +
                request.set_uri(uri.as_str()).expect("valid URI");
  230    377   
            }
  231         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  233         -
            builder
  234         -
        };
  235         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_start_dev_environment::ser_start_dev_environment_input(
  236         -
            &input,
  237         -
        )?);
  238         -
        if let Some(content_length) = body.content_length() {
  239         -
            let content_length = content_length.to_string();
  240         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         378  +
         379  +
            return ::std::result::Result::Ok(request);
         380  +
        } else {
         381  +
            let mut request = protocol
         382  +
                .serialize_request(&input, StartDevEnvironment::INPUT_SCHEMA, "", _cfg)
         383  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         384  +
         385  +
            return ::std::result::Result::Ok(request);
  241    386   
        }
  242         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  243    387   
    }
  244    388   
}
  245    389   
#[derive(Debug)]
  246    390   
struct StartDevEnvironmentEndpointParamsInterceptor;
  247    391   
  248    392   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StartDevEnvironmentEndpointParamsInterceptor {
  249    393   
    fn name(&self) -> &'static str {
  250    394   
        "StartDevEnvironmentEndpointParamsInterceptor"
  251    395   
    }
  252    396   

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

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

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

@@ -19,19 +165,224 @@
   39     39   
    "com.amazonaws.codecatalyst.synthetic",
   40     40   
    "StartDevEnvironmentOutput",
   41     41   
);
   42     42   
static STARTDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentOutput$spaceName",
   45     45   
        "com.amazonaws.codecatalyst.synthetic",
   46     46   
        "StartDevEnvironmentOutput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::String,
   49         -
    "space_name",
          49  +
    "spaceName",
   50     50   
    0,
   51     51   
);
   52     52   
static STARTDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentOutput$projectName",
   55     55   
        "com.amazonaws.codecatalyst.synthetic",
   56     56   
        "StartDevEnvironmentOutput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "project_name",
          59  +
    "projectName",
   60     60   
    1,
   61     61   
);
   62     62   
static STARTDEVENVIRONMENTOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentOutput$id",
   65     65   
        "com.amazonaws.codecatalyst.synthetic",
   66     66   
        "StartDevEnvironmentOutput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69     69   
    "id",
   70     70   
    2,
   71     71   
);
   72     72   
static STARTDEVENVIRONMENTOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentOutput$status",
   75     75   
        "com.amazonaws.codecatalyst.synthetic",
   76     76   
        "StartDevEnvironmentOutput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79     79   
    "status",
   80     80   
    3,
   81     81   
);
          82  +
static STARTDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          83  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          84  +
    ::aws_smithy_schema::ShapeType::String,
          85  +
    "request_id",
          86  +
    4,
          87  +
)
          88  +
.with_http_header("x-amzn-requestid");
   82     89   
static STARTDEVENVIRONMENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   83     90   
    STARTDEVENVIRONMENTOUTPUT_SCHEMA_ID,
   84     91   
    ::aws_smithy_schema::ShapeType::Structure,
   85     92   
    &[
   86     93   
        &STARTDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME,
   87     94   
        &STARTDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME,
   88     95   
        &STARTDEVENVIRONMENTOUTPUT_MEMBER_ID,
   89     96   
        &STARTDEVENVIRONMENTOUTPUT_MEMBER_STATUS,
          97  +
        &STARTDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID,
   90     98   
    ],
   91     99   
);
   92    100   
impl StartDevEnvironmentOutput {
   93    101   
    /// The schema for this shape.
   94    102   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTDEVENVIRONMENTOUTPUT_SCHEMA;
   95    103   
}
   96    104   
impl ::aws_smithy_schema::serde::SerializableStruct for StartDevEnvironmentOutput {
   97    105   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   98    106   
    fn serialize_members(
   99    107   
        &self,
  100    108   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  101    109   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  102    110   
        {
  103    111   
            let val = &self.space_name;
  104    112   
            ser.write_string(&STARTDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME, val)?;
  105    113   
        }
  106    114   
        {
  107    115   
            let val = &self.project_name;
  108    116   
            ser.write_string(&STARTDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME, val)?;
  109    117   
        }
  110    118   
        {
  111    119   
            let val = &self.id;
  112    120   
            ser.write_string(&STARTDEVENVIRONMENTOUTPUT_MEMBER_ID, val)?;
  113    121   
        }
  114    122   
        {
  115    123   
            let val = &self.status;
  116    124   
            ser.write_string(&STARTDEVENVIRONMENTOUTPUT_MEMBER_STATUS, val.as_str())?;
  117    125   
        }
  118    126   
        Ok(())
  119    127   
    }
  120    128   
}
  121    129   
impl StartDevEnvironmentOutput {
  122    130   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  123         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  124         -
        deserializer: &mut D,
         131  +
    pub fn deserialize(
         132  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         133  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         134  +
        #[allow(unused_variables, unused_mut)]
         135  +
        let mut builder = Self::builder();
         136  +
        #[allow(
         137  +
            unused_variables,
         138  +
            unreachable_code,
         139  +
            clippy::single_match,
         140  +
            clippy::match_single_binding,
         141  +
            clippy::diverging_sub_expression
         142  +
        )]
         143  +
        deserializer.read_struct(&STARTDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
         144  +
            match member.member_index() {
         145  +
                Some(0) => {
         146  +
                    builder.space_name = Some(deser.read_string(member)?);
         147  +
                }
         148  +
                Some(1) => {
         149  +
                    builder.project_name = Some(deser.read_string(member)?);
         150  +
                }
         151  +
                Some(2) => {
         152  +
                    builder.id = Some(deser.read_string(member)?);
         153  +
                }
         154  +
                Some(3) => {
         155  +
                    builder.status = Some(crate::types::DevEnvironmentStatus::from(deser.read_string(member)?.as_str()));
         156  +
                }
         157  +
                Some(4) => {
         158  +
                    builder._request_id = Some(deser.read_string(member)?);
         159  +
                }
         160  +
                _ => {}
         161  +
            }
         162  +
            Ok(())
         163  +
        })?;
         164  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         165  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         166  +
        builder.id = builder.id.or(Some(String::new()));
         167  +
        builder
         168  +
            .build()
         169  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         170  +
    }
         171  +
}
         172  +
impl StartDevEnvironmentOutput {
         173  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         174  +
    /// Header-bound members are read directly from headers, avoiding runtime
         175  +
    /// member iteration overhead. Body members are read via the deserializer.
         176  +
    pub fn deserialize_with_response(
         177  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         178  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         179  +
        _status: u16,
         180  +
        _body: &[u8],
  125    181   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  126    182   
        #[allow(unused_variables, unused_mut)]
  127    183   
        let mut builder = Self::builder();
         184  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         185  +
            builder._request_id = Some(val.to_string());
         186  +
        }
  128    187   
        #[allow(
  129    188   
            unused_variables,
  130    189   
            unreachable_code,
  131    190   
            clippy::single_match,
  132    191   
            clippy::match_single_binding,
  133    192   
            clippy::diverging_sub_expression
  134    193   
        )]
  135         -
        deserializer.read_struct(&STARTDEVENVIRONMENTOUTPUT_SCHEMA, (), |_, member, deser| {
         194  +
        deserializer.read_struct(&STARTDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
  136    195   
            match member.member_index() {
  137    196   
                Some(0) => {
  138    197   
                    builder.space_name = Some(deser.read_string(member)?);
  139    198   
                }
  140    199   
                Some(1) => {
  141    200   
                    builder.project_name = Some(deser.read_string(member)?);
  142    201   
                }
  143    202   
                Some(2) => {
  144    203   
                    builder.id = Some(deser.read_string(member)?);
  145    204   
                }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/start_dev_environment_session.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 `StartDevEnvironmentSession`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StartDevEnvironmentSession;
    6      6   
impl StartDevEnvironmentSession {
    7      7   
    /// Creates a new `StartDevEnvironmentSession`
    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::start_dev_environment_session::StartDevEnvironmentSessionInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::start_dev_environment_session::StartDevEnvironmentSessionOutput::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::start_dev_environment_session::StartDevEnvironmentSessionInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::start_dev_environment_session::StartDevEnvironmentSessionOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -115,121 +279,427 @@
  135    141   
                crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError,
  136    142   
            >::new());
  137    143   
  138    144   
        ::std::borrow::Cow::Owned(rcb)
  139    145   
    }
  140    146   
}
  141    147   
  142    148   
#[derive(Debug)]
  143    149   
struct StartDevEnvironmentSessionResponseDeserializer;
  144    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StartDevEnvironmentSessionResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         151  +
    fn deserialize_nonstreaming_with_config(
  146    152   
        &self,
  147    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         154  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    155   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    156   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_start_dev_environment_session::de_start_dev_environment_session_http_error(status, headers, body)
         160  +
        if !success && status != 200 || force_error {
         161  +
            let headers = response.headers();
         162  +
            let body = response.body().bytes().expect("body loaded");
         163  +
            #[allow(unused_mut)]
         164  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         165  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         166  +
            })?;
         167  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         168  +
            let generic = generic_builder.build();
         169  +
            let error_code = match generic.code() {
         170  +
                ::std::option::Option::Some(code) => code,
         171  +
                ::std::option::Option::None => {
         172  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         173  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         174  +
                            crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::unhandled(generic),
         175  +
                        ),
         176  +
                    ))
         177  +
                }
         178  +
            };
         179  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         180  +
            let protocol = _cfg
         181  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         182  +
                .expect("a SharedClientProtocol is required");
         183  +
            let err = match error_code {
         184  +
                "AccessDeniedException" => crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::AccessDeniedException({
         185  +
                    let mut tmp = match protocol
         186  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         187  +
                        .and_then(|mut deser| {
         188  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         189  +
                                &mut *deser,
         190  +
                                response.headers(),
         191  +
                                response.status().into(),
         192  +
                                body,
         193  +
                            )
         194  +
                        }) {
         195  +
                        ::std::result::Result::Ok(val) => val,
         196  +
                        ::std::result::Result::Err(e) => {
         197  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         198  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         199  +
                            ))
         200  +
                        }
         201  +
                    };
         202  +
                    tmp.meta = generic;
         203  +
                    tmp
         204  +
                }),
         205  +
                "ConflictException" => crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ConflictException({
         206  +
                    let mut tmp = match protocol
         207  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         208  +
                        .and_then(|mut deser| {
         209  +
                            crate::types::error::ConflictException::deserialize_with_response(
         210  +
                                &mut *deser,
         211  +
                                response.headers(),
         212  +
                                response.status().into(),
         213  +
                                body,
         214  +
                            )
         215  +
                        }) {
         216  +
                        ::std::result::Result::Ok(val) => val,
         217  +
                        ::std::result::Result::Err(e) => {
         218  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         219  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         220  +
                            ))
         221  +
                        }
         222  +
                    };
         223  +
                    tmp.meta = generic;
         224  +
                    tmp
         225  +
                }),
         226  +
                "ResourceNotFoundException" => {
         227  +
                    crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ResourceNotFoundException({
         228  +
                        let mut tmp = match protocol
         229  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         230  +
                            .and_then(|mut deser| {
         231  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         232  +
                                    &mut *deser,
         233  +
                                    response.headers(),
         234  +
                                    response.status().into(),
         235  +
                                    body,
         236  +
                                )
         237  +
                            }) {
         238  +
                            ::std::result::Result::Ok(val) => val,
         239  +
                            ::std::result::Result::Err(e) => {
         240  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         241  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         242  +
                                ))
         243  +
                            }
         244  +
                        };
         245  +
                        tmp.meta = generic;
         246  +
                        tmp
         247  +
                    })
         248  +
                }
         249  +
                "ServiceQuotaExceededException" => {
         250  +
                    crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ServiceQuotaExceededException({
         251  +
                        let mut tmp = match protocol
         252  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         253  +
                            .and_then(|mut deser| {
         254  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         255  +
                                    &mut *deser,
         256  +
                                    response.headers(),
         257  +
                                    response.status().into(),
         258  +
                                    body,
         259  +
                                )
         260  +
                            }) {
         261  +
                            ::std::result::Result::Ok(val) => val,
         262  +
                            ::std::result::Result::Err(e) => {
         263  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         264  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         265  +
                                ))
         266  +
                            }
         267  +
                        };
         268  +
                        tmp.meta = generic;
         269  +
                        tmp
         270  +
                    })
         271  +
                }
         272  +
                "ThrottlingException" => crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ThrottlingException({
         273  +
                    let mut tmp = match protocol
         274  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         275  +
                        .and_then(|mut deser| {
         276  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         277  +
                                &mut *deser,
         278  +
                                response.headers(),
         279  +
                                response.status().into(),
         280  +
                                body,
         281  +
                            )
         282  +
                        }) {
         283  +
                        ::std::result::Result::Ok(val) => val,
         284  +
                        ::std::result::Result::Err(e) => {
         285  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         286  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         287  +
                            ))
         288  +
                        }
         289  +
                    };
         290  +
                    tmp.meta = generic;
         291  +
                    tmp
         292  +
                }),
         293  +
                "ValidationException" => crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ValidationException({
         294  +
                    let mut tmp = match protocol
         295  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         296  +
                        .and_then(|mut deser| {
         297  +
                            crate::types::error::ValidationException::deserialize_with_response(
         298  +
                                &mut *deser,
         299  +
                                response.headers(),
         300  +
                                response.status().into(),
         301  +
                                body,
         302  +
                            )
         303  +
                        }) {
         304  +
                        ::std::result::Result::Ok(val) => val,
         305  +
                        ::std::result::Result::Err(e) => {
         306  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         307  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         308  +
                            ))
         309  +
                        }
         310  +
                    };
         311  +
                    tmp.meta = generic;
         312  +
                    tmp
         313  +
                }),
         314  +
                _ => crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::generic(generic),
         315  +
            };
         316  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         317  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         318  +
            ))
  157    319   
        } else {
  158         -
            crate::protocol_serde::shape_start_dev_environment_session::de_start_dev_environment_session_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         320  +
            let protocol = _cfg
         321  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         322  +
                .expect("a SharedClientProtocol is required");
         323  +
            let mut deser = protocol
         324  +
                .deserialize_response(response, StartDevEnvironmentSession::OUTPUT_SCHEMA, _cfg)
         325  +
                .map_err(|e| {
         326  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         327  +
                })?;
         328  +
            let body = response.body().bytes().expect("body loaded");
         329  +
            let output = crate::operation::start_dev_environment_session::StartDevEnvironmentSessionOutput::deserialize_with_response(
         330  +
                &mut *deser,
         331  +
                response.headers(),
         332  +
                response.status().into(),
         333  +
                body,
         334  +
            )
         335  +
            .map_err(|e| {
         336  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         337  +
            })?;
         338  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         339  +
        }
  161    340   
    }
  162    341   
}
  163    342   
#[derive(Debug)]
  164    343   
struct StartDevEnvironmentSessionRequestSerializer;
  165    344   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StartDevEnvironmentSessionRequestSerializer {
  166    345   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    346   
    fn serialize_input(
  168    347   
        &self,
  169    348   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    349   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    350   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    351   
        let input = input
  173    352   
            .downcast::<crate::operation::start_dev_environment_session::StartDevEnvironmentSessionInput>()
  174    353   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::start_dev_environment_session::StartDevEnvironmentSessionInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                let input_1 = &_input.space_name;
  187         -
                let input_1 = input_1
  188         -
                    .as_ref()
  189         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  190         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  191         -
                if space_name.is_empty() {
  192         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  193         -
                        "space_name",
  194         -
                        "cannot be empty or unset",
  195         -
                    ));
         354  +
        let protocol = _cfg
         355  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         356  +
            .expect("a SharedClientProtocol is required");
         357  +
        if protocol.supports_http_bindings() {
         358  +
            let mut request = protocol
         359  +
                .serialize_body(&input, StartDevEnvironmentSession::INPUT_SCHEMA, "", _cfg)
         360  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         361  +
            {
         362  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session".to_string();
         363  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         364  +
                if let Some(ref val) = input.space_name {
         365  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  196    366   
                }
  197         -
                let input_2 = &_input.project_name;
  198         -
                let input_2 = input_2
  199         -
                    .as_ref()
  200         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  201         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  202         -
                if project_name.is_empty() {
  203         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  204         -
                        "project_name",
  205         -
                        "cannot be empty or unset",
  206         -
                    ));
         367  +
                if let Some(ref val) = input.project_name {
         368  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  207    369   
                }
  208         -
                let input_3 = &_input.id;
  209         -
                let input_3 = input_3
  210         -
                    .as_ref()
  211         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
  212         -
                let id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  213         -
                if id.is_empty() {
  214         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  215         -
                        "id",
  216         -
                        "cannot be empty or unset",
  217         -
                    ));
         370  +
                if let Some(ref val) = input.id {
         371  +
                    uri = uri.replace("{id}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  218    372   
                }
  219         -
                ::std::write!(
  220         -
                    output,
  221         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session",
  222         -
                    spaceName = space_name,
  223         -
                    projectName = project_name,
  224         -
                    id = id
  225         -
                )
  226         -
                .expect("formatting should succeed");
  227         -
                ::std::result::Result::Ok(())
  228         -
            }
  229         -
            #[allow(clippy::unnecessary_wraps)]
  230         -
            fn update_http_builder(
  231         -
                input: &crate::operation::start_dev_environment_session::StartDevEnvironmentSessionInput,
  232         -
                builder: ::http_1x::request::Builder,
  233         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  234         -
                let mut uri = ::std::string::String::new();
  235         -
                uri_base(input, &mut uri)?;
  236         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
         373  +
                if !query_params.is_empty() {
         374  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         375  +
                    let pairs: Vec<String> = query_params
         376  +
                        .iter()
         377  +
                        .map(|(k, v)| {
         378  +
                            format!(
         379  +
                                "{}={}",
         380  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         381  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         382  +
                            )
         383  +
                        })
         384  +
                        .collect();
         385  +
                    uri.push_str(&pairs.join("&"));
         386  +
                }
         387  +
                request.set_uri(uri.as_str()).expect("valid URI");
  237    388   
            }
  238         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  239         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  240         -
            builder
  241         -
        };
  242         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  243         -
            crate::protocol_serde::shape_start_dev_environment_session::ser_start_dev_environment_session_input(&input)?,
  244         -
        );
  245         -
        if let Some(content_length) = body.content_length() {
  246         -
            let content_length = content_length.to_string();
  247         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         389  +
         390  +
            return ::std::result::Result::Ok(request);
         391  +
        } else {
         392  +
            let mut request = protocol
         393  +
                .serialize_request(&input, StartDevEnvironmentSession::INPUT_SCHEMA, "", _cfg)
         394  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         395  +
         396  +
            return ::std::result::Result::Ok(request);
  248    397   
        }
  249         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  250    398   
    }
  251    399   
}
  252    400   
#[derive(Debug)]
  253    401   
struct StartDevEnvironmentSessionEndpointParamsInterceptor;
  254    402   
  255    403   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StartDevEnvironmentSessionEndpointParamsInterceptor {
  256    404   
    fn name(&self) -> &'static str {
  257    405   
        "StartDevEnvironmentSessionEndpointParamsInterceptor"
  258    406   
    }
  259    407   

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

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

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

@@ -37,37 +196,258 @@
   57     57   
    "com.amazonaws.codecatalyst.synthetic",
   58     58   
    "StartDevEnvironmentSessionOutput",
   59     59   
);
   60     60   
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ACCESS_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentSessionOutput$accessDetails",
   63     63   
        "com.amazonaws.codecatalyst.synthetic",
   64     64   
        "StartDevEnvironmentSessionOutput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::Structure,
   67         -
    "access_details",
          67  +
    "accessDetails",
   68     68   
    0,
   69     69   
);
   70     70   
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentSessionOutput$sessionId",
   73     73   
        "com.amazonaws.codecatalyst.synthetic",
   74     74   
        "StartDevEnvironmentSessionOutput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::String,
   77         -
    "session_id",
          77  +
    "sessionId",
   78     78   
    1,
   79     79   
);
   80     80   
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentSessionOutput$spaceName",
   83     83   
        "com.amazonaws.codecatalyst.synthetic",
   84     84   
        "StartDevEnvironmentSessionOutput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "space_name",
          87  +
    "spaceName",
   88     88   
    2,
   89     89   
);
   90     90   
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentSessionOutput$projectName",
   93     93   
        "com.amazonaws.codecatalyst.synthetic",
   94     94   
        "StartDevEnvironmentSessionOutput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "project_name",
          97  +
    "projectName",
   98     98   
    3,
   99     99   
);
  100    100   
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.codecatalyst.synthetic#StartDevEnvironmentSessionOutput$id",
  103    103   
        "com.amazonaws.codecatalyst.synthetic",
  104    104   
        "StartDevEnvironmentSessionOutput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107    107   
    "id",
  108    108   
    4,
  109    109   
);
         110  +
static STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         111  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         112  +
    ::aws_smithy_schema::ShapeType::String,
         113  +
    "request_id",
         114  +
    5,
         115  +
)
         116  +
.with_http_header("x-amzn-requestid");
  110    117   
static STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  111    118   
    STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA_ID,
  112    119   
    ::aws_smithy_schema::ShapeType::Structure,
  113    120   
    &[
  114    121   
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ACCESS_DETAILS,
  115    122   
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SESSION_ID,
  116    123   
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SPACE_NAME,
  117    124   
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_PROJECT_NAME,
  118    125   
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ID,
         126  +
        &STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER__REQUEST_ID,
  119    127   
    ],
  120    128   
);
  121    129   
impl StartDevEnvironmentSessionOutput {
  122    130   
    /// The schema for this shape.
  123    131   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA;
  124    132   
}
  125    133   
impl ::aws_smithy_schema::serde::SerializableStruct for StartDevEnvironmentSessionOutput {
  126    134   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  127    135   
    fn serialize_members(
  128    136   
        &self,
  129    137   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  130    138   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  131    139   
        if let Some(ref val) = self.access_details {
  132    140   
            ser.write_struct(&STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ACCESS_DETAILS, val)?;
  133    141   
        }
  134    142   
        if let Some(ref val) = self.session_id {
  135    143   
            ser.write_string(&STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SESSION_ID, val)?;
  136    144   
        }
  137    145   
        {
  138    146   
            let val = &self.space_name;
  139    147   
            ser.write_string(&STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_SPACE_NAME, val)?;
  140    148   
        }
  141    149   
        {
  142    150   
            let val = &self.project_name;
  143    151   
            ser.write_string(&STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_PROJECT_NAME, val)?;
  144    152   
        }
  145    153   
        {
  146    154   
            let val = &self.id;
  147    155   
            ser.write_string(&STARTDEVENVIRONMENTSESSIONOUTPUT_MEMBER_ID, val)?;
  148    156   
        }
  149    157   
        Ok(())
  150    158   
    }
  151    159   
}
  152    160   
impl StartDevEnvironmentSessionOutput {
  153    161   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  154         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  155         -
        deserializer: &mut D,
         162  +
    pub fn deserialize(
         163  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  156    164   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  157    165   
        #[allow(unused_variables, unused_mut)]
  158    166   
        let mut builder = Self::builder();
  159    167   
        #[allow(
  160    168   
            unused_variables,
  161    169   
            unreachable_code,
  162    170   
            clippy::single_match,
  163    171   
            clippy::match_single_binding,
  164    172   
            clippy::diverging_sub_expression
  165    173   
        )]
  166         -
        deserializer.read_struct(&STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA, (), |_, member, deser| {
         174  +
        deserializer.read_struct(&STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA, &mut |member, deser| {
         175  +
            match member.member_index() {
         176  +
                Some(0) => {
         177  +
                    builder.access_details = Some(crate::types::DevEnvironmentAccessDetails::deserialize(deser)?);
         178  +
                }
         179  +
                Some(1) => {
         180  +
                    builder.session_id = Some(deser.read_string(member)?);
         181  +
                }
         182  +
                Some(2) => {
         183  +
                    builder.space_name = Some(deser.read_string(member)?);
         184  +
                }
         185  +
                Some(3) => {
         186  +
                    builder.project_name = Some(deser.read_string(member)?);
         187  +
                }
         188  +
                Some(4) => {
         189  +
                    builder.id = Some(deser.read_string(member)?);
         190  +
                }
         191  +
                Some(5) => {
         192  +
                    builder._request_id = Some(deser.read_string(member)?);
         193  +
                }
         194  +
                _ => {}
         195  +
            }
         196  +
            Ok(())
         197  +
        })?;
         198  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         199  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         200  +
        builder.id = builder.id.or(Some(String::new()));
         201  +
        builder
         202  +
            .build()
         203  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         204  +
    }
         205  +
}
         206  +
impl StartDevEnvironmentSessionOutput {
         207  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         208  +
    /// Header-bound members are read directly from headers, avoiding runtime
         209  +
    /// member iteration overhead. Body members are read via the deserializer.
         210  +
    pub fn deserialize_with_response(
         211  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         212  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         213  +
        _status: u16,
         214  +
        _body: &[u8],
         215  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         216  +
        #[allow(unused_variables, unused_mut)]
         217  +
        let mut builder = Self::builder();
         218  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         219  +
            builder._request_id = Some(val.to_string());
         220  +
        }
         221  +
        #[allow(
         222  +
            unused_variables,
         223  +
            unreachable_code,
         224  +
            clippy::single_match,
         225  +
            clippy::match_single_binding,
         226  +
            clippy::diverging_sub_expression
         227  +
        )]
         228  +
        deserializer.read_struct(&STARTDEVENVIRONMENTSESSIONOUTPUT_SCHEMA, &mut |member, deser| {
  167    229   
            match member.member_index() {
  168    230   
                Some(0) => {
  169    231   
                    builder.access_details = Some(crate::types::DevEnvironmentAccessDetails::deserialize(deser)?);
  170    232   
                }
  171    233   
                Some(1) => {
  172    234   
                    builder.session_id = Some(deser.read_string(member)?);
  173    235   
                }
  174    236   
                Some(2) => {
  175    237   
                    builder.space_name = Some(deser.read_string(member)?);
  176    238   
                }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/start_workflow_run.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 `StartWorkflowRun`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StartWorkflowRun;
    6      6   
impl StartWorkflowRun {
    7      7   
    /// Creates a new `StartWorkflowRun`
    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::start_workflow_run::StartWorkflowRunInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::start_workflow_run::StartWorkflowRunOutput::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::start_workflow_run::StartWorkflowRunInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::start_workflow_run::StartWorkflowRunOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::start_workflow_run::StartWorkflowRunError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +284,421 @@
  135    139   
                crate::operation::start_workflow_run::StartWorkflowRunError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct StartWorkflowRunResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StartWorkflowRunResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_start_workflow_run::de_start_workflow_run_http_error(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::start_workflow_run::StartWorkflowRunError::unhandled(
         172  +
                            generic,
         173  +
                        )),
         174  +
                    ))
         175  +
                }
         176  +
            };
         177  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         178  +
            let protocol = _cfg
         179  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         180  +
                .expect("a SharedClientProtocol is required");
         181  +
            let err = match error_code {
         182  +
                "AccessDeniedException" => crate::operation::start_workflow_run::StartWorkflowRunError::AccessDeniedException({
         183  +
                    let mut tmp = match protocol
         184  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         185  +
                        .and_then(|mut deser| {
         186  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         187  +
                                &mut *deser,
         188  +
                                response.headers(),
         189  +
                                response.status().into(),
         190  +
                                body,
         191  +
                            )
         192  +
                        }) {
         193  +
                        ::std::result::Result::Ok(val) => val,
         194  +
                        ::std::result::Result::Err(e) => {
         195  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         196  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         197  +
                            ))
         198  +
                        }
         199  +
                    };
         200  +
                    tmp.meta = generic;
         201  +
                    tmp
         202  +
                }),
         203  +
                "ConflictException" => crate::operation::start_workflow_run::StartWorkflowRunError::ConflictException({
         204  +
                    let mut tmp = match protocol
         205  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         206  +
                        .and_then(|mut deser| {
         207  +
                            crate::types::error::ConflictException::deserialize_with_response(
         208  +
                                &mut *deser,
         209  +
                                response.headers(),
         210  +
                                response.status().into(),
         211  +
                                body,
         212  +
                            )
         213  +
                        }) {
         214  +
                        ::std::result::Result::Ok(val) => val,
         215  +
                        ::std::result::Result::Err(e) => {
         216  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         217  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         218  +
                            ))
         219  +
                        }
         220  +
                    };
         221  +
                    tmp.meta = generic;
         222  +
                    tmp
         223  +
                }),
         224  +
                "ResourceNotFoundException" => crate::operation::start_workflow_run::StartWorkflowRunError::ResourceNotFoundException({
         225  +
                    let mut tmp = match protocol
         226  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         227  +
                        .and_then(|mut deser| {
         228  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         229  +
                                &mut *deser,
         230  +
                                response.headers(),
         231  +
                                response.status().into(),
         232  +
                                body,
         233  +
                            )
         234  +
                        }) {
         235  +
                        ::std::result::Result::Ok(val) => val,
         236  +
                        ::std::result::Result::Err(e) => {
         237  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         238  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         239  +
                            ))
         240  +
                        }
         241  +
                    };
         242  +
                    tmp.meta = generic;
         243  +
                    tmp
         244  +
                }),
         245  +
                "ServiceQuotaExceededException" => crate::operation::start_workflow_run::StartWorkflowRunError::ServiceQuotaExceededException({
         246  +
                    let mut tmp = match protocol
         247  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         248  +
                        .and_then(|mut deser| {
         249  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         250  +
                                &mut *deser,
         251  +
                                response.headers(),
         252  +
                                response.status().into(),
         253  +
                                body,
         254  +
                            )
         255  +
                        }) {
         256  +
                        ::std::result::Result::Ok(val) => val,
         257  +
                        ::std::result::Result::Err(e) => {
         258  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         259  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         260  +
                            ))
         261  +
                        }
         262  +
                    };
         263  +
                    tmp.meta = generic;
         264  +
                    tmp
         265  +
                }),
         266  +
                "ThrottlingException" => crate::operation::start_workflow_run::StartWorkflowRunError::ThrottlingException({
         267  +
                    let mut tmp = match protocol
         268  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         269  +
                        .and_then(|mut deser| {
         270  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         271  +
                                &mut *deser,
         272  +
                                response.headers(),
         273  +
                                response.status().into(),
         274  +
                                body,
         275  +
                            )
         276  +
                        }) {
         277  +
                        ::std::result::Result::Ok(val) => val,
         278  +
                        ::std::result::Result::Err(e) => {
         279  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         280  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         281  +
                            ))
         282  +
                        }
         283  +
                    };
         284  +
                    tmp.meta = generic;
         285  +
                    tmp
         286  +
                }),
         287  +
                "ValidationException" => crate::operation::start_workflow_run::StartWorkflowRunError::ValidationException({
         288  +
                    let mut tmp = match protocol
         289  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         290  +
                        .and_then(|mut deser| {
         291  +
                            crate::types::error::ValidationException::deserialize_with_response(
         292  +
                                &mut *deser,
         293  +
                                response.headers(),
         294  +
                                response.status().into(),
         295  +
                                body,
         296  +
                            )
         297  +
                        }) {
         298  +
                        ::std::result::Result::Ok(val) => val,
         299  +
                        ::std::result::Result::Err(e) => {
         300  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         301  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         302  +
                            ))
         303  +
                        }
         304  +
                    };
         305  +
                    tmp.meta = generic;
         306  +
                    tmp
         307  +
                }),
         308  +
                _ => crate::operation::start_workflow_run::StartWorkflowRunError::generic(generic),
         309  +
            };
         310  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         311  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         312  +
            ))
  157    313   
        } else {
  158         -
            crate::protocol_serde::shape_start_workflow_run::de_start_workflow_run_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         314  +
            let protocol = _cfg
         315  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         316  +
                .expect("a SharedClientProtocol is required");
         317  +
            let mut deser = protocol
         318  +
                .deserialize_response(response, StartWorkflowRun::OUTPUT_SCHEMA, _cfg)
         319  +
                .map_err(|e| {
         320  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         321  +
                })?;
         322  +
            let body = response.body().bytes().expect("body loaded");
         323  +
            let output = crate::operation::start_workflow_run::StartWorkflowRunOutput::deserialize_with_response(
         324  +
                &mut *deser,
         325  +
                response.headers(),
         326  +
                response.status().into(),
         327  +
                body,
         328  +
            )
         329  +
            .map_err(|e| {
         330  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         331  +
            })?;
         332  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         333  +
        }
  161    334   
    }
  162    335   
}
  163    336   
#[derive(Debug)]
  164    337   
struct StartWorkflowRunRequestSerializer;
  165    338   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StartWorkflowRunRequestSerializer {
  166    339   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    340   
    fn serialize_input(
  168    341   
        &self,
  169    342   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    343   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    344   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    345   
        let input = input
  173    346   
            .downcast::<crate::operation::start_workflow_run::StartWorkflowRunInput>()
  174    347   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::start_workflow_run::StartWorkflowRunInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                let input_1 = &_input.space_name;
  187         -
                let input_1 = input_1
  188         -
                    .as_ref()
  189         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  190         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  191         -
                if space_name.is_empty() {
  192         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  193         -
                        "space_name",
  194         -
                        "cannot be empty or unset",
  195         -
                    ));
         348  +
        let protocol = _cfg
         349  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         350  +
            .expect("a SharedClientProtocol is required");
         351  +
        if protocol.supports_http_bindings() {
         352  +
            let mut request = protocol
         353  +
                .serialize_body(&input, StartWorkflowRun::INPUT_SCHEMA, "", _cfg)
         354  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         355  +
            {
         356  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns".to_string();
         357  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         358  +
                if let Some(ref val) = input.space_name {
         359  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  196    360   
                }
  197         -
                let input_2 = &_input.project_name;
  198         -
                let input_2 = input_2
  199         -
                    .as_ref()
  200         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  201         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  202         -
                if project_name.is_empty() {
  203         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  204         -
                        "project_name",
  205         -
                        "cannot be empty or unset",
  206         -
                    ));
         361  +
                if let Some(ref val) = input.project_name {
         362  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  207    363   
                }
  208         -
                ::std::write!(
  209         -
                    output,
  210         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns",
  211         -
                    spaceName = space_name,
  212         -
                    projectName = project_name
  213         -
                )
  214         -
                .expect("formatting should succeed");
  215         -
                ::std::result::Result::Ok(())
  216         -
            }
  217         -
            fn uri_query(
  218         -
                _input: &crate::operation::start_workflow_run::StartWorkflowRunInput,
  219         -
                mut output: &mut ::std::string::String,
  220         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  221         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  222         -
                let inner_3 = &_input.workflow_id;
  223         -
                let inner_3 = inner_3
  224         -
                    .as_ref()
  225         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("workflow_id", "cannot be empty or unset"))?;
  226         -
                if inner_3.is_empty() {
  227         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  228         -
                        "workflow_id",
  229         -
                        "cannot be empty or unset",
  230         -
                    ));
         364  +
                if let Some(ref val) = input.workflow_id {
         365  +
                    query_params.push(("workflowId".to_string(), val.to_string()));
  231    366   
                }
  232         -
                query.push_kv("workflowId", &::aws_smithy_http::query::fmt_string(inner_3));
  233         -
                ::std::result::Result::Ok(())
  234         -
            }
  235         -
            #[allow(clippy::unnecessary_wraps)]
  236         -
            fn update_http_builder(
  237         -
                input: &crate::operation::start_workflow_run::StartWorkflowRunInput,
  238         -
                builder: ::http_1x::request::Builder,
  239         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  240         -
                let mut uri = ::std::string::String::new();
  241         -
                uri_base(input, &mut uri)?;
  242         -
                uri_query(input, &mut uri)?;
  243         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
         367  +
                if !query_params.is_empty() {
         368  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         369  +
                    let pairs: Vec<String> = query_params
         370  +
                        .iter()
         371  +
                        .map(|(k, v)| {
         372  +
                            format!(
         373  +
                                "{}={}",
         374  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         375  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         376  +
                            )
         377  +
                        })
         378  +
                        .collect();
         379  +
                    uri.push_str(&pairs.join("&"));
         380  +
                }
         381  +
                request.set_uri(uri.as_str()).expect("valid URI");
  244    382   
            }
  245         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  246         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  247         -
            builder
  248         -
        };
  249         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_start_workflow_run::ser_start_workflow_run_input(&input)?);
  250         -
        if let Some(content_length) = body.content_length() {
  251         -
            let content_length = content_length.to_string();
  252         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         383  +
         384  +
            return ::std::result::Result::Ok(request);
         385  +
        } else {
         386  +
            let mut request = protocol
         387  +
                .serialize_request(&input, StartWorkflowRun::INPUT_SCHEMA, "", _cfg)
         388  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         389  +
         390  +
            return ::std::result::Result::Ok(request);
  253    391   
        }
  254         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  255    392   
    }
  256    393   
}
  257    394   
#[derive(Debug)]
  258    395   
struct StartWorkflowRunEndpointParamsInterceptor;
  259    396   
  260    397   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StartWorkflowRunEndpointParamsInterceptor {
  261    398   
    fn name(&self) -> &'static str {
  262    399   
        "StartWorkflowRunEndpointParamsInterceptor"
  263    400   
    }
  264    401