AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

@@ -15,15 +182,201 @@
   35     35   
    "com.amazonaws.codecatalyst.synthetic",
   36     36   
    "StartWorkflowRunInput",
   37     37   
);
   38     38   
static STARTWORKFLOWRUNINPUT_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#StartWorkflowRunInput$spaceName",
   41     41   
        "com.amazonaws.codecatalyst.synthetic",
   42     42   
        "StartWorkflowRunInput",
   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 STARTWORKFLOWRUNINPUT_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#StartWorkflowRunInput$projectName",
   52     52   
        "com.amazonaws.codecatalyst.synthetic",
   53     53   
        "StartWorkflowRunInput",
   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 STARTWORKFLOWRUNINPUT_MEMBER_WORKFLOW_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#StartWorkflowRunInput$workflowId",
   63     63   
        "com.amazonaws.codecatalyst.synthetic",
   64     64   
        "StartWorkflowRunInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "workflow_id",
          67  +
    "workflowId",
   68     68   
    2,
   69     69   
)
   70     70   
.with_http_query("workflowId");
   71     71   
static STARTWORKFLOWRUNINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   72     72   
    ::aws_smithy_schema::ShapeId::from_static(
   73     73   
        "com.amazonaws.codecatalyst.synthetic#StartWorkflowRunInput$clientToken",
   74     74   
        "com.amazonaws.codecatalyst.synthetic",
   75     75   
        "StartWorkflowRunInput",
   76     76   
    ),
   77     77   
    ::aws_smithy_schema::ShapeType::String,
   78         -
    "client_token",
          78  +
    "clientToken",
   79     79   
    3,
   80     80   
);
   81     81   
static STARTWORKFLOWRUNINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   82     82   
    STARTWORKFLOWRUNINPUT_SCHEMA_ID,
   83     83   
    ::aws_smithy_schema::ShapeType::Structure,
   84     84   
    &[
   85     85   
        &STARTWORKFLOWRUNINPUT_MEMBER_SPACE_NAME,
   86     86   
        &STARTWORKFLOWRUNINPUT_MEMBER_PROJECT_NAME,
   87     87   
        &STARTWORKFLOWRUNINPUT_MEMBER_WORKFLOW_ID,
   88     88   
        &STARTWORKFLOWRUNINPUT_MEMBER_CLIENT_TOKEN,
   89     89   
    ],
   90         -
);
          90  +
)
          91  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          92  +
    "PUT",
          93  +
    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns",
          94  +
    None,
          95  +
));
   91     96   
impl StartWorkflowRunInput {
   92     97   
    /// The schema for this shape.
   93     98   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTWORKFLOWRUNINPUT_SCHEMA;
   94     99   
}
   95    100   
impl ::aws_smithy_schema::serde::SerializableStruct for StartWorkflowRunInput {
   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(&STARTWORKFLOWRUNINPUT_MEMBER_SPACE_NAME, val)?;
  103    108   
        }
  104    109   
        if let Some(ref val) = self.project_name {
  105    110   
            ser.write_string(&STARTWORKFLOWRUNINPUT_MEMBER_PROJECT_NAME, val)?;
  106    111   
        }
  107    112   
        if let Some(ref val) = self.workflow_id {
  108    113   
            ser.write_string(&STARTWORKFLOWRUNINPUT_MEMBER_WORKFLOW_ID, val)?;
  109    114   
        }
  110    115   
        if let Some(ref val) = self.client_token {
  111    116   
            ser.write_string(&STARTWORKFLOWRUNINPUT_MEMBER_CLIENT_TOKEN, val)?;
  112    117   
        }
  113    118   
        Ok(())
  114    119   
    }
  115    120   
}
  116    121   
impl StartWorkflowRunInput {
  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(&STARTWORKFLOWRUNINPUT_SCHEMA, (), |_, member, deser| {
         135  +
        deserializer.read_struct(&STARTWORKFLOWRUNINPUT_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.workflow_id = Some(deser.read_string(member)?);
  140    145   
                }
  141    146   
                Some(3) => {
  142    147   
                    builder.client_token = Some(deser.read_string(member)?);
  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.workflow_id = builder.workflow_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 StartWorkflowRunInput {
         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 StartWorkflowRunInput {
  154    173   
    /// Creates a new builder-style object to manufacture [`StartWorkflowRunInput`](crate::operation::start_workflow_run::StartWorkflowRunInput).
  155    174   
    pub fn builder() -> crate::operation::start_workflow_run::builders::StartWorkflowRunInputBuilder {
  156    175   
        crate::operation::start_workflow_run::builders::StartWorkflowRunInputBuilder::default()
  157    176   
    }
  158    177   
}
  159    178   
  160    179   
/// A builder for [`StartWorkflowRunInput`](crate::operation::start_workflow_run::StartWorkflowRunInput).
  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_workflow_run/_start_workflow_run_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/stop_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 `StopDevEnvironment`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StopDevEnvironment;
    6      6   
impl StopDevEnvironment {
    7      7   
    /// Creates a new `StopDevEnvironment`
    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::stop_dev_environment::StopDevEnvironmentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::stop_dev_environment::StopDevEnvironmentOutput::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::stop_dev_environment::StopDevEnvironmentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::stop_dev_environment::StopDevEnvironmentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::stop_dev_environment::StopDevEnvironmentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +266,378 @@
  128    132   
                crate::operation::stop_dev_environment::StopDevEnvironmentError,
  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 StopDevEnvironmentResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StopDevEnvironmentResponseDeserializer {
  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_stop_dev_environment::de_stop_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::stop_dev_environment::StopDevEnvironmentError::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::stop_dev_environment::StopDevEnvironmentError::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::stop_dev_environment::StopDevEnvironmentError::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::stop_dev_environment::StopDevEnvironmentError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => crate::operation::stop_dev_environment::StopDevEnvironmentError::ServiceQuotaExceededException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    tmp
         258  +
                }),
         259  +
                "ThrottlingException" => crate::operation::stop_dev_environment::StopDevEnvironmentError::ThrottlingException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::stop_dev_environment::StopDevEnvironmentError::ValidationException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ValidationException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
         297  +
                    };
         298  +
                    tmp.meta = generic;
         299  +
                    tmp
         300  +
                }),
         301  +
                _ => crate::operation::stop_dev_environment::StopDevEnvironmentError::generic(generic),
         302  +
            };
         303  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         304  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         305  +
            ))
  150    306   
        } else {
  151         -
            crate::protocol_serde::shape_stop_dev_environment::de_stop_dev_environment_http_response(status, headers, body)
  152         -
        };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         307  +
            let protocol = _cfg
         308  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         309  +
                .expect("a SharedClientProtocol is required");
         310  +
            let mut deser = protocol
         311  +
                .deserialize_response(response, StopDevEnvironment::OUTPUT_SCHEMA, _cfg)
         312  +
                .map_err(|e| {
         313  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         314  +
                })?;
         315  +
            let body = response.body().bytes().expect("body loaded");
         316  +
            let output = crate::operation::stop_dev_environment::StopDevEnvironmentOutput::deserialize_with_response(
         317  +
                &mut *deser,
         318  +
                response.headers(),
         319  +
                response.status().into(),
         320  +
                body,
         321  +
            )
         322  +
            .map_err(|e| {
         323  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         324  +
            })?;
         325  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         326  +
        }
  154    327   
    }
  155    328   
}
  156    329   
#[derive(Debug)]
  157    330   
struct StopDevEnvironmentRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StopDevEnvironmentRequestSerializer {
  159    332   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    333   
    fn serialize_input(
  161    334   
        &self,
  162    335   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    336   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    337   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    338   
        let input = input
  166    339   
            .downcast::<crate::operation::stop_dev_environment::StopDevEnvironmentInput>()
  167    340   
            .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::stop_dev_environment::StopDevEnvironmentInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                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         -
                    ));
  200         -
                }
  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         -
                    ));
  211         -
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop",
  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::stop_dev_environment::StopDevEnvironmentInput,
  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))
  230         -
            }
  231         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232         -
            builder
  233         -
        };
  234         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         341  +
        let protocol = _cfg
         342  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
            .expect("a SharedClientProtocol is required");
         344  +
        let mut request = protocol
         345  +
            .serialize_request(&input, StopDevEnvironment::INPUT_SCHEMA, "", _cfg)
         346  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  235    347   
  236         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         348  +
        return ::std::result::Result::Ok(request);
  237    349   
    }
  238    350   
}
  239    351   
#[derive(Debug)]
  240    352   
struct StopDevEnvironmentEndpointParamsInterceptor;
  241    353   
  242    354   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StopDevEnvironmentEndpointParamsInterceptor {
  243    355   
    fn name(&self) -> &'static str {
  244    356   
        "StopDevEnvironmentEndpointParamsInterceptor"
  245    357   
    }
  246    358   

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

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

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

@@ -19,19 +165,224 @@
   39     39   
    "com.amazonaws.codecatalyst.synthetic",
   40     40   
    "StopDevEnvironmentOutput",
   41     41   
);
   42     42   
static STOPDEVENVIRONMENTOUTPUT_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#StopDevEnvironmentOutput$spaceName",
   45     45   
        "com.amazonaws.codecatalyst.synthetic",
   46     46   
        "StopDevEnvironmentOutput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::String,
   49         -
    "space_name",
          49  +
    "spaceName",
   50     50   
    0,
   51     51   
);
   52     52   
static STOPDEVENVIRONMENTOUTPUT_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#StopDevEnvironmentOutput$projectName",
   55     55   
        "com.amazonaws.codecatalyst.synthetic",
   56     56   
        "StopDevEnvironmentOutput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "project_name",
          59  +
    "projectName",
   60     60   
    1,
   61     61   
);
   62     62   
static STOPDEVENVIRONMENTOUTPUT_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#StopDevEnvironmentOutput$id",
   65     65   
        "com.amazonaws.codecatalyst.synthetic",
   66     66   
        "StopDevEnvironmentOutput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69     69   
    "id",
   70     70   
    2,
   71     71   
);
   72     72   
static STOPDEVENVIRONMENTOUTPUT_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#StopDevEnvironmentOutput$status",
   75     75   
        "com.amazonaws.codecatalyst.synthetic",
   76     76   
        "StopDevEnvironmentOutput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79     79   
    "status",
   80     80   
    3,
   81     81   
);
          82  +
static STOPDEVENVIRONMENTOUTPUT_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 STOPDEVENVIRONMENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   83     90   
    STOPDEVENVIRONMENTOUTPUT_SCHEMA_ID,
   84     91   
    ::aws_smithy_schema::ShapeType::Structure,
   85     92   
    &[
   86     93   
        &STOPDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME,
   87     94   
        &STOPDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME,
   88     95   
        &STOPDEVENVIRONMENTOUTPUT_MEMBER_ID,
   89     96   
        &STOPDEVENVIRONMENTOUTPUT_MEMBER_STATUS,
          97  +
        &STOPDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID,
   90     98   
    ],
   91     99   
);
   92    100   
impl StopDevEnvironmentOutput {
   93    101   
    /// The schema for this shape.
   94    102   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STOPDEVENVIRONMENTOUTPUT_SCHEMA;
   95    103   
}
   96    104   
impl ::aws_smithy_schema::serde::SerializableStruct for StopDevEnvironmentOutput {
   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(&STOPDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME, val)?;
  105    113   
        }
  106    114   
        {
  107    115   
            let val = &self.project_name;
  108    116   
            ser.write_string(&STOPDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME, val)?;
  109    117   
        }
  110    118   
        {
  111    119   
            let val = &self.id;
  112    120   
            ser.write_string(&STOPDEVENVIRONMENTOUTPUT_MEMBER_ID, val)?;
  113    121   
        }
  114    122   
        {
  115    123   
            let val = &self.status;
  116    124   
            ser.write_string(&STOPDEVENVIRONMENTOUTPUT_MEMBER_STATUS, val.as_str())?;
  117    125   
        }
  118    126   
        Ok(())
  119    127   
    }
  120    128   
}
  121    129   
impl StopDevEnvironmentOutput {
  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(&STOPDEVENVIRONMENTOUTPUT_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 StopDevEnvironmentOutput {
         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(&STOPDEVENVIRONMENTOUTPUT_SCHEMA, (), |_, member, deser| {
         194  +
        deserializer.read_struct(&STOPDEVENVIRONMENTOUTPUT_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/stop_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 `StopDevEnvironmentSession`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StopDevEnvironmentSession;
    6      6   
impl StopDevEnvironmentSession {
    7      7   
    /// Creates a new `StopDevEnvironmentSession`
    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::stop_dev_environment_session::StopDevEnvironmentSessionInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionOutput::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::stop_dev_environment_session::StopDevEnvironmentSessionInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -114,120 +284,390 @@
  134    140   
                crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError,
  135    141   
            >::new());
  136    142   
  137    143   
        ::std::borrow::Cow::Owned(rcb)
  138    144   
    }
  139    145   
}
  140    146   
  141    147   
#[derive(Debug)]
  142    148   
struct StopDevEnvironmentSessionResponseDeserializer;
  143    149   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StopDevEnvironmentSessionResponseDeserializer {
  144         -
    fn deserialize_nonstreaming(
         150  +
    fn deserialize_nonstreaming_with_config(
  145    151   
        &self,
  146    152   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         153  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  147    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  148    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  149         -
        let headers = response.headers();
  150         -
        let body = response.body().bytes().expect("body loaded");
  151    156   
        #[allow(unused_mut)]
  152    157   
        let mut force_error = false;
  153    158   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  154         -
        let parse_result = if !success && status != 200 || force_error {
  155         -
            crate::protocol_serde::shape_stop_dev_environment_session::de_stop_dev_environment_session_http_error(status, headers, body)
         159  +
        if !success && status != 200 || force_error {
         160  +
            let headers = response.headers();
         161  +
            let body = response.body().bytes().expect("body loaded");
         162  +
            #[allow(unused_mut)]
         163  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         164  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         165  +
            })?;
         166  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         167  +
            let generic = generic_builder.build();
         168  +
            let error_code = match generic.code() {
         169  +
                ::std::option::Option::Some(code) => code,
         170  +
                ::std::option::Option::None => {
         171  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         172  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         173  +
                            crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::unhandled(generic),
         174  +
                        ),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "AccessDeniedException" => crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::AccessDeniedException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         188  +
                                &mut *deser,
         189  +
                                response.headers(),
         190  +
                                response.status().into(),
         191  +
                                body,
         192  +
                            )
         193  +
                        }) {
         194  +
                        ::std::result::Result::Ok(val) => val,
         195  +
                        ::std::result::Result::Err(e) => {
         196  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         197  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         198  +
                            ))
         199  +
                        }
         200  +
                    };
         201  +
                    tmp.meta = generic;
         202  +
                    tmp
         203  +
                }),
         204  +
                "ConflictException" => crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ConflictException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::ConflictException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    tmp
         224  +
                }),
         225  +
                "ResourceNotFoundException" => {
         226  +
                    crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ResourceNotFoundException({
         227  +
                        let mut tmp = match protocol
         228  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         229  +
                            .and_then(|mut deser| {
         230  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         231  +
                                    &mut *deser,
         232  +
                                    response.headers(),
         233  +
                                    response.status().into(),
         234  +
                                    body,
         235  +
                                )
         236  +
                            }) {
         237  +
                            ::std::result::Result::Ok(val) => val,
         238  +
                            ::std::result::Result::Err(e) => {
         239  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         240  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         241  +
                                ))
         242  +
                            }
         243  +
                        };
         244  +
                        tmp.meta = generic;
         245  +
                        tmp
         246  +
                    })
         247  +
                }
         248  +
                "ServiceQuotaExceededException" => {
         249  +
                    crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ServiceQuotaExceededException({
         250  +
                        let mut tmp = match protocol
         251  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         252  +
                            .and_then(|mut deser| {
         253  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         254  +
                                    &mut *deser,
         255  +
                                    response.headers(),
         256  +
                                    response.status().into(),
         257  +
                                    body,
         258  +
                                )
         259  +
                            }) {
         260  +
                            ::std::result::Result::Ok(val) => val,
         261  +
                            ::std::result::Result::Err(e) => {
         262  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         263  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         264  +
                                ))
         265  +
                            }
         266  +
                        };
         267  +
                        tmp.meta = generic;
         268  +
                        tmp
         269  +
                    })
         270  +
                }
         271  +
                "ThrottlingException" => crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ThrottlingException({
         272  +
                    let mut tmp = match protocol
         273  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         274  +
                        .and_then(|mut deser| {
         275  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         276  +
                                &mut *deser,
         277  +
                                response.headers(),
         278  +
                                response.status().into(),
         279  +
                                body,
         280  +
                            )
         281  +
                        }) {
         282  +
                        ::std::result::Result::Ok(val) => val,
         283  +
                        ::std::result::Result::Err(e) => {
         284  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         285  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         286  +
                            ))
         287  +
                        }
         288  +
                    };
         289  +
                    tmp.meta = generic;
         290  +
                    tmp
         291  +
                }),
         292  +
                "ValidationException" => crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ValidationException({
         293  +
                    let mut tmp = match protocol
         294  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         295  +
                        .and_then(|mut deser| {
         296  +
                            crate::types::error::ValidationException::deserialize_with_response(
         297  +
                                &mut *deser,
         298  +
                                response.headers(),
         299  +
                                response.status().into(),
         300  +
                                body,
         301  +
                            )
         302  +
                        }) {
         303  +
                        ::std::result::Result::Ok(val) => val,
         304  +
                        ::std::result::Result::Err(e) => {
         305  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         306  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         307  +
                            ))
         308  +
                        }
         309  +
                    };
         310  +
                    tmp.meta = generic;
         311  +
                    tmp
         312  +
                }),
         313  +
                _ => crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::generic(generic),
         314  +
            };
         315  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         316  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         317  +
            ))
  156    318   
        } else {
  157         -
            crate::protocol_serde::shape_stop_dev_environment_session::de_stop_dev_environment_session_http_response(status, headers, body)
  158         -
        };
  159         -
        crate::protocol_serde::type_erase_result(parse_result)
         319  +
            let protocol = _cfg
         320  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         321  +
                .expect("a SharedClientProtocol is required");
         322  +
            let mut deser = protocol
         323  +
                .deserialize_response(response, StopDevEnvironmentSession::OUTPUT_SCHEMA, _cfg)
         324  +
                .map_err(|e| {
         325  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
                })?;
         327  +
            let body = response.body().bytes().expect("body loaded");
         328  +
            let output = crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionOutput::deserialize_with_response(
         329  +
                &mut *deser,
         330  +
                response.headers(),
         331  +
                response.status().into(),
         332  +
                body,
         333  +
            )
         334  +
            .map_err(|e| {
         335  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         336  +
            })?;
         337  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         338  +
        }
  160    339   
    }
  161    340   
}
  162    341   
#[derive(Debug)]
  163    342   
struct StopDevEnvironmentSessionRequestSerializer;
  164    343   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StopDevEnvironmentSessionRequestSerializer {
  165    344   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  166    345   
    fn serialize_input(
  167    346   
        &self,
  168    347   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  169    348   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  170    349   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  171    350   
        let input = input
  172    351   
            .downcast::<crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionInput>()
  173    352   
            .expect("correct type");
  174         -
        let _header_serialization_settings = _cfg
  175         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  176         -
            .cloned()
  177         -
            .unwrap_or_default();
  178         -
        let mut request_builder = {
  179         -
            #[allow(clippy::uninlined_format_args)]
  180         -
            fn uri_base(
  181         -
                _input: &crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionInput,
  182         -
                output: &mut ::std::string::String,
  183         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  184         -
                use ::std::fmt::Write as _;
  185         -
                let input_1 = &_input.space_name;
  186         -
                let input_1 = input_1
  187         -
                    .as_ref()
  188         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  189         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  190         -
                if space_name.is_empty() {
  191         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  192         -
                        "space_name",
  193         -
                        "cannot be empty or unset",
  194         -
                    ));
  195         -
                }
  196         -
                let input_2 = &_input.project_name;
  197         -
                let input_2 = input_2
  198         -
                    .as_ref()
  199         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  200         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  201         -
                if project_name.is_empty() {
  202         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  203         -
                        "project_name",
  204         -
                        "cannot be empty or unset",
  205         -
                    ));
  206         -
                }
  207         -
                let input_3 = &_input.id;
  208         -
                let input_3 = input_3
  209         -
                    .as_ref()
  210         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
  211         -
                let id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  212         -
                if id.is_empty() {
  213         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  214         -
                        "id",
  215         -
                        "cannot be empty or unset",
  216         -
                    ));
  217         -
                }
  218         -
                let input_4 = &_input.session_id;
  219         -
                let input_4 = input_4
  220         -
                    .as_ref()
  221         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("session_id", "cannot be empty or unset"))?;
  222         -
                let session_id = ::aws_smithy_http::label::fmt_string(input_4, ::aws_smithy_http::label::EncodingStrategy::Default);
  223         -
                if session_id.is_empty() {
  224         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  225         -
                        "session_id",
  226         -
                        "cannot be empty or unset",
  227         -
                    ));
  228         -
                }
  229         -
                ::std::write!(
  230         -
                    output,
  231         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}",
  232         -
                    spaceName = space_name,
  233         -
                    projectName = project_name,
  234         -
                    id = id,
  235         -
                    sessionId = session_id
  236         -
                )
  237         -
                .expect("formatting should succeed");
  238         -
                ::std::result::Result::Ok(())
  239         -
            }
  240         -
            #[allow(clippy::unnecessary_wraps)]
  241         -
            fn update_http_builder(
  242         -
                input: &crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionInput,
  243         -
                builder: ::http_1x::request::Builder,
  244         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  245         -
                let mut uri = ::std::string::String::new();
  246         -
                uri_base(input, &mut uri)?;
  247         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  248         -
            }
  249         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  250         -
            builder
  251         -
        };
  252         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         353  +
        let protocol = _cfg
         354  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         355  +
            .expect("a SharedClientProtocol is required");
         356  +
        let mut request = protocol
         357  +
            .serialize_request(&input, StopDevEnvironmentSession::INPUT_SCHEMA, "", _cfg)
         358  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  253    359   
  254         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         360  +
        return ::std::result::Result::Ok(request);
  255    361   
    }
  256    362   
}
  257    363   
#[derive(Debug)]
  258    364   
struct StopDevEnvironmentSessionEndpointParamsInterceptor;
  259    365   
  260    366   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StopDevEnvironmentSessionEndpointParamsInterceptor {
  261    367   
    fn name(&self) -> &'static str {
  262    368   
        "StopDevEnvironmentSessionEndpointParamsInterceptor"
  263    369   
    }
  264    370   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/update_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 `UpdateDevEnvironment`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateDevEnvironment;
    6      6   
impl UpdateDevEnvironment {
    7      7   
    /// Creates a new `UpdateDevEnvironment`
    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::update_dev_environment::UpdateDevEnvironmentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_dev_environment::UpdateDevEnvironmentOutput::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::update_dev_environment::UpdateDevEnvironmentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_dev_environment::UpdateDevEnvironmentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_dev_environment::UpdateDevEnvironmentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +272,380 @@
  128    132   
                crate::operation::update_dev_environment::UpdateDevEnvironmentError,
  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 UpdateDevEnvironmentResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateDevEnvironmentResponseDeserializer {
  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_update_dev_environment::de_update_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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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::update_dev_environment::UpdateDevEnvironmentError::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_update_dev_environment::de_update_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, UpdateDevEnvironment::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::update_dev_environment::UpdateDevEnvironmentOutput::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 UpdateDevEnvironmentRequestSerializer;
  158    333   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateDevEnvironmentRequestSerializer {
  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::update_dev_environment::UpdateDevEnvironmentInput>()
  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::update_dev_environment::UpdateDevEnvironmentInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                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         -
                    ));
  200         -
                }
  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         -
                    ));
  211         -
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}",
  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::update_dev_environment::UpdateDevEnvironmentInput,
  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("PATCH").uri(uri))
  230         -
            }
  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_update_dev_environment::ser_update_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);
  241         -
        }
  242         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         343  +
        let protocol = _cfg
         344  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         345  +
            .expect("a SharedClientProtocol is required");
         346  +
        let mut request = protocol
         347  +
            .serialize_request(&input, UpdateDevEnvironment::INPUT_SCHEMA, "", _cfg)
         348  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         349  +
         350  +
        return ::std::result::Result::Ok(request);
  243    351   
    }
  244    352   
}
  245    353   
#[derive(Debug)]
  246    354   
struct UpdateDevEnvironmentEndpointParamsInterceptor;
  247    355   
  248    356   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateDevEnvironmentEndpointParamsInterceptor {
  249    357   
    fn name(&self) -> &'static str {
  250    358   
        "UpdateDevEnvironmentEndpointParamsInterceptor"
  251    359   
    }
  252    360