AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

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

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

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

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

@@ -9,9 +159,178 @@
   29     29   
    "com.amazonaws.codecatalyst.synthetic",
   30     30   
    "GetWorkflowInput",
   31     31   
);
   32     32   
static GETWORKFLOWINPUT_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#GetWorkflowInput$spaceName",
   35     35   
        "com.amazonaws.codecatalyst.synthetic",
   36     36   
        "GetWorkflowInput",
   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 GETWORKFLOWINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   44     44   
    ::aws_smithy_schema::ShapeId::from_static(
   45     45   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowInput$id",
   46     46   
        "com.amazonaws.codecatalyst.synthetic",
   47     47   
        "GetWorkflowInput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50     50   
    "id",
   51     51   
    1,
   52     52   
)
   53     53   
.with_http_label();
   54     54   
static GETWORKFLOWINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowInput$projectName",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "GetWorkflowInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "project_name",
          61  +
    "projectName",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_label();
   65     65   
static GETWORKFLOWINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    GETWORKFLOWINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &GETWORKFLOWINPUT_MEMBER_SPACE_NAME,
   70     70   
        &GETWORKFLOWINPUT_MEMBER_ID,
   71     71   
        &GETWORKFLOWINPUT_MEMBER_PROJECT_NAME,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "GET",
          76  +
    "/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}",
          77  +
    None,
          78  +
));
   74     79   
impl GetWorkflowInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETWORKFLOWINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for GetWorkflowInput {
   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(&GETWORKFLOWINPUT_MEMBER_SPACE_NAME, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.id {
   88     93   
            ser.write_string(&GETWORKFLOWINPUT_MEMBER_ID, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.project_name {
   91     96   
            ser.write_string(&GETWORKFLOWINPUT_MEMBER_PROJECT_NAME, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl GetWorkflowInput {
   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(&GETWORKFLOWINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&GETWORKFLOWINPUT_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.id = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.project_name = 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.id = builder.id.or(Some(String::new()));
         132  +
        builder.project_name = builder.project_name.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 GetWorkflowInput {
         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 GetWorkflowInput {
  131    150   
    /// Creates a new builder-style object to manufacture [`GetWorkflowInput`](crate::operation::get_workflow::GetWorkflowInput).
  132    151   
    pub fn builder() -> crate::operation::get_workflow::builders::GetWorkflowInputBuilder {
  133    152   
        crate::operation::get_workflow::builders::GetWorkflowInputBuilder::default()
  134    153   
    }
  135    154   
}
  136    155   
  137    156   
/// A builder for [`GetWorkflowInput`](crate::operation::get_workflow::GetWorkflowInput).
  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/get_workflow/_get_workflow_output.rs

@@ -62,62 +312,395 @@
   82     82   
    "com.amazonaws.codecatalyst.synthetic",
   83     83   
    "GetWorkflowOutput",
   84     84   
);
   85     85   
static GETWORKFLOWOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$spaceName",
   88     88   
        "com.amazonaws.codecatalyst.synthetic",
   89     89   
        "GetWorkflowOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "space_name",
          92  +
    "spaceName",
   93     93   
    0,
   94     94   
);
   95     95   
static GETWORKFLOWOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$projectName",
   98     98   
        "com.amazonaws.codecatalyst.synthetic",
   99     99   
        "GetWorkflowOutput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102         -
    "project_name",
         102  +
    "projectName",
  103    103   
    1,
  104    104   
);
  105    105   
static GETWORKFLOWOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$id",
  108    108   
        "com.amazonaws.codecatalyst.synthetic",
  109    109   
        "GetWorkflowOutput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::String,
  112    112   
    "id",
  113    113   
    2,
  114    114   
);
  115    115   
static GETWORKFLOWOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  116    116   
    ::aws_smithy_schema::ShapeId::from_static(
  117    117   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$name",
  118    118   
        "com.amazonaws.codecatalyst.synthetic",
  119    119   
        "GetWorkflowOutput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::String,
  122    122   
    "name",
  123    123   
    3,
  124    124   
);
  125    125   
static GETWORKFLOWOUTPUT_MEMBER_SOURCE_REPOSITORY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$sourceRepositoryName",
  128    128   
        "com.amazonaws.codecatalyst.synthetic",
  129    129   
        "GetWorkflowOutput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::String,
  132         -
    "source_repository_name",
         132  +
    "sourceRepositoryName",
  133    133   
    4,
  134    134   
);
  135    135   
static GETWORKFLOWOUTPUT_MEMBER_SOURCE_BRANCH_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$sourceBranchName",
  138    138   
        "com.amazonaws.codecatalyst.synthetic",
  139    139   
        "GetWorkflowOutput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::String,
  142         -
    "source_branch_name",
         142  +
    "sourceBranchName",
  143    143   
    5,
  144    144   
);
  145    145   
static GETWORKFLOWOUTPUT_MEMBER_DEFINITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  146    146   
    ::aws_smithy_schema::ShapeId::from_static(
  147    147   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$definition",
  148    148   
        "com.amazonaws.codecatalyst.synthetic",
  149    149   
        "GetWorkflowOutput",
  150    150   
    ),
  151    151   
    ::aws_smithy_schema::ShapeType::Structure,
  152    152   
    "definition",
  153    153   
    6,
  154    154   
);
  155    155   
static GETWORKFLOWOUTPUT_MEMBER_CREATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  156    156   
    ::aws_smithy_schema::ShapeId::from_static(
  157    157   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$createdTime",
  158    158   
        "com.amazonaws.codecatalyst.synthetic",
  159    159   
        "GetWorkflowOutput",
  160    160   
    ),
  161    161   
    ::aws_smithy_schema::ShapeType::Timestamp,
  162         -
    "created_time",
         162  +
    "createdTime",
  163    163   
    7,
  164    164   
)
  165    165   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  166    166   
static GETWORKFLOWOUTPUT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  167    167   
    ::aws_smithy_schema::ShapeId::from_static(
  168    168   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$lastUpdatedTime",
  169    169   
        "com.amazonaws.codecatalyst.synthetic",
  170    170   
        "GetWorkflowOutput",
  171    171   
    ),
  172    172   
    ::aws_smithy_schema::ShapeType::Timestamp,
  173         -
    "last_updated_time",
         173  +
    "lastUpdatedTime",
  174    174   
    8,
  175    175   
)
  176    176   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  177    177   
static GETWORKFLOWOUTPUT_MEMBER_RUN_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  178    178   
    ::aws_smithy_schema::ShapeId::from_static(
  179    179   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$runMode",
  180    180   
        "com.amazonaws.codecatalyst.synthetic",
  181    181   
        "GetWorkflowOutput",
  182    182   
    ),
  183    183   
    ::aws_smithy_schema::ShapeType::String,
  184         -
    "run_mode",
         184  +
    "runMode",
  185    185   
    9,
  186    186   
);
  187    187   
static GETWORKFLOWOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  188    188   
    ::aws_smithy_schema::ShapeId::from_static(
  189    189   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowOutput$status",
  190    190   
        "com.amazonaws.codecatalyst.synthetic",
  191    191   
        "GetWorkflowOutput",
  192    192   
    ),
  193    193   
    ::aws_smithy_schema::ShapeType::String,
  194    194   
    "status",
  195    195   
    10,
  196    196   
);
         197  +
static GETWORKFLOWOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         198  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         199  +
    ::aws_smithy_schema::ShapeType::String,
         200  +
    "request_id",
         201  +
    11,
         202  +
)
         203  +
.with_http_header("x-amzn-requestid");
  197    204   
static GETWORKFLOWOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  198    205   
    GETWORKFLOWOUTPUT_SCHEMA_ID,
  199    206   
    ::aws_smithy_schema::ShapeType::Structure,
  200    207   
    &[
  201    208   
        &GETWORKFLOWOUTPUT_MEMBER_SPACE_NAME,
  202    209   
        &GETWORKFLOWOUTPUT_MEMBER_PROJECT_NAME,
  203    210   
        &GETWORKFLOWOUTPUT_MEMBER_ID,
  204    211   
        &GETWORKFLOWOUTPUT_MEMBER_NAME,
  205    212   
        &GETWORKFLOWOUTPUT_MEMBER_SOURCE_REPOSITORY_NAME,
  206    213   
        &GETWORKFLOWOUTPUT_MEMBER_SOURCE_BRANCH_NAME,
  207    214   
        &GETWORKFLOWOUTPUT_MEMBER_DEFINITION,
  208    215   
        &GETWORKFLOWOUTPUT_MEMBER_CREATED_TIME,
  209    216   
        &GETWORKFLOWOUTPUT_MEMBER_LAST_UPDATED_TIME,
  210    217   
        &GETWORKFLOWOUTPUT_MEMBER_RUN_MODE,
  211    218   
        &GETWORKFLOWOUTPUT_MEMBER_STATUS,
         219  +
        &GETWORKFLOWOUTPUT_MEMBER__REQUEST_ID,
  212    220   
    ],
  213    221   
);
  214    222   
impl GetWorkflowOutput {
  215    223   
    /// The schema for this shape.
  216    224   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETWORKFLOWOUTPUT_SCHEMA;
  217    225   
}
  218    226   
impl ::aws_smithy_schema::serde::SerializableStruct for GetWorkflowOutput {
  219    227   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  220    228   
    fn serialize_members(
  221    229   
        &self,
  222    230   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  223    231   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  224    232   
        {
  225    233   
            let val = &self.space_name;
  226    234   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_SPACE_NAME, val)?;
  227    235   
        }
  228    236   
        {
  229    237   
            let val = &self.project_name;
  230    238   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_PROJECT_NAME, val)?;
  231    239   
        }
  232    240   
        {
  233    241   
            let val = &self.id;
  234    242   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_ID, val)?;
  235    243   
        }
  236    244   
        {
  237    245   
            let val = &self.name;
  238    246   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_NAME, val)?;
  239    247   
        }
  240    248   
        if let Some(ref val) = self.source_repository_name {
  241    249   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_SOURCE_REPOSITORY_NAME, val)?;
  242    250   
        }
  243    251   
        if let Some(ref val) = self.source_branch_name {
  244    252   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_SOURCE_BRANCH_NAME, val)?;
  245    253   
        }
  246    254   
        if let Some(ref val) = self.definition {
  247    255   
            ser.write_struct(&GETWORKFLOWOUTPUT_MEMBER_DEFINITION, val)?;
  248    256   
        }
  249    257   
        {
  250    258   
            let val = &self.created_time;
  251    259   
            ser.write_timestamp(&GETWORKFLOWOUTPUT_MEMBER_CREATED_TIME, val)?;
  252    260   
        }
  253    261   
        {
  254    262   
            let val = &self.last_updated_time;
  255    263   
            ser.write_timestamp(&GETWORKFLOWOUTPUT_MEMBER_LAST_UPDATED_TIME, val)?;
  256    264   
        }
  257    265   
        {
  258    266   
            let val = &self.run_mode;
  259    267   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_RUN_MODE, val.as_str())?;
  260    268   
        }
  261    269   
        {
  262    270   
            let val = &self.status;
  263    271   
            ser.write_string(&GETWORKFLOWOUTPUT_MEMBER_STATUS, val.as_str())?;
  264    272   
        }
  265    273   
        Ok(())
  266    274   
    }
  267    275   
}
  268    276   
impl GetWorkflowOutput {
  269    277   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  270         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  271         -
        deserializer: &mut D,
         278  +
    pub fn deserialize(
         279  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         280  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         281  +
        #[allow(unused_variables, unused_mut)]
         282  +
        let mut builder = Self::builder();
         283  +
        #[allow(
         284  +
            unused_variables,
         285  +
            unreachable_code,
         286  +
            clippy::single_match,
         287  +
            clippy::match_single_binding,
         288  +
            clippy::diverging_sub_expression
         289  +
        )]
         290  +
        deserializer.read_struct(&GETWORKFLOWOUTPUT_SCHEMA, &mut |member, deser| {
         291  +
            match member.member_index() {
         292  +
                Some(0) => {
         293  +
                    builder.space_name = Some(deser.read_string(member)?);
         294  +
                }
         295  +
                Some(1) => {
         296  +
                    builder.project_name = Some(deser.read_string(member)?);
         297  +
                }
         298  +
                Some(2) => {
         299  +
                    builder.id = Some(deser.read_string(member)?);
         300  +
                }
         301  +
                Some(3) => {
         302  +
                    builder.name = Some(deser.read_string(member)?);
         303  +
                }
         304  +
                Some(4) => {
         305  +
                    builder.source_repository_name = Some(deser.read_string(member)?);
         306  +
                }
         307  +
                Some(5) => {
         308  +
                    builder.source_branch_name = Some(deser.read_string(member)?);
         309  +
                }
         310  +
                Some(6) => {
         311  +
                    builder.definition = Some(crate::types::WorkflowDefinition::deserialize(deser)?);
         312  +
                }
         313  +
                Some(7) => {
         314  +
                    builder.created_time = Some(deser.read_timestamp(member)?);
         315  +
                }
         316  +
                Some(8) => {
         317  +
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
         318  +
                }
         319  +
                Some(9) => {
         320  +
                    builder.run_mode = Some(crate::types::WorkflowRunMode::from(deser.read_string(member)?.as_str()));
         321  +
                }
         322  +
                Some(10) => {
         323  +
                    builder.status = Some(crate::types::WorkflowStatus::from(deser.read_string(member)?.as_str()));
         324  +
                }
         325  +
                Some(11) => {
         326  +
                    builder._request_id = Some(deser.read_string(member)?);
         327  +
                }
         328  +
                _ => {}
         329  +
            }
         330  +
            Ok(())
         331  +
        })?;
         332  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         333  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         334  +
        builder.id = builder.id.or(Some(String::new()));
         335  +
        builder.name = builder.name.or(Some(String::new()));
         336  +
        builder.created_time = builder.created_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         337  +
        builder.last_updated_time = builder.last_updated_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         338  +
        builder
         339  +
            .build()
         340  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         341  +
    }
         342  +
}
         343  +
impl GetWorkflowOutput {
         344  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         345  +
    /// Header-bound members are read directly from headers, avoiding runtime
         346  +
    /// member iteration overhead. Body members are read via the deserializer.
         347  +
    pub fn deserialize_with_response(
         348  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         349  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         350  +
        _status: u16,
         351  +
        _body: &[u8],
  272    352   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  273    353   
        #[allow(unused_variables, unused_mut)]
  274    354   
        let mut builder = Self::builder();
         355  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         356  +
            builder._request_id = Some(val.to_string());
         357  +
        }
  275    358   
        #[allow(
  276    359   
            unused_variables,
  277    360   
            unreachable_code,
  278    361   
            clippy::single_match,
  279    362   
            clippy::match_single_binding,
  280    363   
            clippy::diverging_sub_expression
  281    364   
        )]
  282         -
        deserializer.read_struct(&GETWORKFLOWOUTPUT_SCHEMA, (), |_, member, deser| {
         365  +
        deserializer.read_struct(&GETWORKFLOWOUTPUT_SCHEMA, &mut |member, deser| {
  283    366   
            match member.member_index() {
  284    367   
                Some(0) => {
  285    368   
                    builder.space_name = Some(deser.read_string(member)?);
  286    369   
                }
  287    370   
                Some(1) => {
  288    371   
                    builder.project_name = Some(deser.read_string(member)?);
  289    372   
                }
  290    373   
                Some(2) => {
  291    374   
                    builder.id = Some(deser.read_string(member)?);
  292    375   
                }

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetWorkflowRun`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetWorkflowRun;
    6      6   
impl GetWorkflowRun {
    7      7   
    /// Creates a new `GetWorkflowRun`
    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::get_workflow_run::GetWorkflowRunInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_workflow_run::GetWorkflowRunOutput::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::get_workflow_run::GetWorkflowRunInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_workflow_run::GetWorkflowRunOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_workflow_run::GetWorkflowRunError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -111,115 +266,414 @@
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct GetWorkflowRunResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetWorkflowRunResponseDeserializer {
  138    142   
    fn deserialize_nonstreaming(
  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_get_workflow_run::de_get_workflow_run_http_error(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::get_workflow_run::GetWorkflowRunError::unhandled(
         165  +
                            generic,
         166  +
                        )),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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::get_workflow_run::GetWorkflowRunError::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_get_workflow_run::de_get_workflow_run_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, GetWorkflowRun::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::get_workflow_run::GetWorkflowRunOutput::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 GetWorkflowRunRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetWorkflowRunRequestSerializer {
  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::get_workflow_run::GetWorkflowRunInput>()
  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::get_workflow_run::GetWorkflowRunInput,
  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         -
                    ));
         341  +
        let protocol = _cfg
         342  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
            .expect("a SharedClientProtocol is required");
         344  +
        if protocol.supports_http_bindings() {
         345  +
            let mut request = protocol
         346  +
                .serialize_body(&input, GetWorkflowRun::INPUT_SCHEMA, "", _cfg)
         347  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         348  +
            {
         349  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}".to_string();
         350  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         351  +
                if let Some(ref val) = input.space_name {
         352  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  189    353   
                }
  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         -
                    ));
         354  +
                if let Some(ref val) = input.id {
         355  +
                    uri = uri.replace("{id}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  200    356   
                }
  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         -
                    ));
         357  +
                if let Some(ref val) = input.project_name {
         358  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  211    359   
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{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::get_workflow_run::GetWorkflowRunInput,
  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("GET").uri(uri))
         360  +
                if !query_params.is_empty() {
         361  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         362  +
                    let pairs: Vec<String> = query_params
         363  +
                        .iter()
         364  +
                        .map(|(k, v)| {
         365  +
                            format!(
         366  +
                                "{}={}",
         367  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         368  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         369  +
                            )
         370  +
                        })
         371  +
                        .collect();
         372  +
                    uri.push_str(&pairs.join("&"));
         373  +
                }
         374  +
                request.set_uri(uri.as_str()).expect("valid URI");
  230    375   
            }
  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("");
  235    376   
  236         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         377  +
            return ::std::result::Result::Ok(request);
         378  +
        } else {
         379  +
            let mut request = protocol
         380  +
                .serialize_request(&input, GetWorkflowRun::INPUT_SCHEMA, "", _cfg)
         381  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         382  +
         383  +
            return ::std::result::Result::Ok(request);
         384  +
        }
  237    385   
    }
  238    386   
}
  239    387   
#[derive(Debug)]
  240    388   
struct GetWorkflowRunEndpointParamsInterceptor;
  241    389   
  242    390   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetWorkflowRunEndpointParamsInterceptor {
  243    391   
    fn name(&self) -> &'static str {
  244    392   
        "GetWorkflowRunEndpointParamsInterceptor"
  245    393   
    }
  246    394   

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

@@ -9,9 +159,178 @@
   29     29   
    "com.amazonaws.codecatalyst.synthetic",
   30     30   
    "GetWorkflowRunInput",
   31     31   
);
   32     32   
static GETWORKFLOWRUNINPUT_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#GetWorkflowRunInput$spaceName",
   35     35   
        "com.amazonaws.codecatalyst.synthetic",
   36     36   
        "GetWorkflowRunInput",
   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 GETWORKFLOWRUNINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   44     44   
    ::aws_smithy_schema::ShapeId::from_static(
   45     45   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunInput$id",
   46     46   
        "com.amazonaws.codecatalyst.synthetic",
   47     47   
        "GetWorkflowRunInput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50     50   
    "id",
   51     51   
    1,
   52     52   
)
   53     53   
.with_http_label();
   54     54   
static GETWORKFLOWRUNINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunInput$projectName",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "GetWorkflowRunInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "project_name",
          61  +
    "projectName",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_label();
   65     65   
static GETWORKFLOWRUNINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    GETWORKFLOWRUNINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &GETWORKFLOWRUNINPUT_MEMBER_SPACE_NAME,
   70     70   
        &GETWORKFLOWRUNINPUT_MEMBER_ID,
   71     71   
        &GETWORKFLOWRUNINPUT_MEMBER_PROJECT_NAME,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "GET",
          76  +
    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}",
          77  +
    None,
          78  +
));
   74     79   
impl GetWorkflowRunInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETWORKFLOWRUNINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for GetWorkflowRunInput {
   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(&GETWORKFLOWRUNINPUT_MEMBER_SPACE_NAME, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.id {
   88     93   
            ser.write_string(&GETWORKFLOWRUNINPUT_MEMBER_ID, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.project_name {
   91     96   
            ser.write_string(&GETWORKFLOWRUNINPUT_MEMBER_PROJECT_NAME, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl GetWorkflowRunInput {
   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(&GETWORKFLOWRUNINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&GETWORKFLOWRUNINPUT_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.id = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.project_name = 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.id = builder.id.or(Some(String::new()));
         132  +
        builder.project_name = builder.project_name.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 GetWorkflowRunInput {
         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 GetWorkflowRunInput {
  131    150   
    /// Creates a new builder-style object to manufacture [`GetWorkflowRunInput`](crate::operation::get_workflow_run::GetWorkflowRunInput).
  132    151   
    pub fn builder() -> crate::operation::get_workflow_run::builders::GetWorkflowRunInputBuilder {
  133    152   
        crate::operation::get_workflow_run::builders::GetWorkflowRunInputBuilder::default()
  134    153   
    }
  135    154   
}
  136    155   
  137    156   
/// A builder for [`GetWorkflowRunInput`](crate::operation::get_workflow_run::GetWorkflowRunInput).
  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/get_workflow_run/_get_workflow_run_output.rs

@@ -52,52 +309,390 @@
   72     72   
    "com.amazonaws.codecatalyst.synthetic",
   73     73   
    "GetWorkflowRunOutput",
   74     74   
);
   75     75   
static GETWORKFLOWRUNOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$spaceName",
   78     78   
        "com.amazonaws.codecatalyst.synthetic",
   79     79   
        "GetWorkflowRunOutput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::String,
   82         -
    "space_name",
          82  +
    "spaceName",
   83     83   
    0,
   84     84   
);
   85     85   
static GETWORKFLOWRUNOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$projectName",
   88     88   
        "com.amazonaws.codecatalyst.synthetic",
   89     89   
        "GetWorkflowRunOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "project_name",
          92  +
    "projectName",
   93     93   
    1,
   94     94   
);
   95     95   
static GETWORKFLOWRUNOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$id",
   98     98   
        "com.amazonaws.codecatalyst.synthetic",
   99     99   
        "GetWorkflowRunOutput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102    102   
    "id",
  103    103   
    2,
  104    104   
);
  105    105   
static GETWORKFLOWRUNOUTPUT_MEMBER_WORKFLOW_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$workflowId",
  108    108   
        "com.amazonaws.codecatalyst.synthetic",
  109    109   
        "GetWorkflowRunOutput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::String,
  112         -
    "workflow_id",
         112  +
    "workflowId",
  113    113   
    3,
  114    114   
);
  115    115   
static GETWORKFLOWRUNOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  116    116   
    ::aws_smithy_schema::ShapeId::from_static(
  117    117   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$status",
  118    118   
        "com.amazonaws.codecatalyst.synthetic",
  119    119   
        "GetWorkflowRunOutput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::String,
  122    122   
    "status",
  123    123   
    4,
  124    124   
);
  125    125   
static GETWORKFLOWRUNOUTPUT_MEMBER_STATUS_REASONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$statusReasons",
  128    128   
        "com.amazonaws.codecatalyst.synthetic",
  129    129   
        "GetWorkflowRunOutput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::List,
  132         -
    "status_reasons",
         132  +
    "statusReasons",
  133    133   
    5,
  134    134   
);
  135    135   
static GETWORKFLOWRUNOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$startTime",
  138    138   
        "com.amazonaws.codecatalyst.synthetic",
  139    139   
        "GetWorkflowRunOutput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::Timestamp,
  142         -
    "start_time",
         142  +
    "startTime",
  143    143   
    6,
  144    144   
)
  145    145   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  146    146   
static GETWORKFLOWRUNOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$endTime",
  149    149   
        "com.amazonaws.codecatalyst.synthetic",
  150    150   
        "GetWorkflowRunOutput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::Timestamp,
  153         -
    "end_time",
         153  +
    "endTime",
  154    154   
    7,
  155    155   
)
  156    156   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  157    157   
static GETWORKFLOWRUNOUTPUT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  158    158   
    ::aws_smithy_schema::ShapeId::from_static(
  159    159   
        "com.amazonaws.codecatalyst.synthetic#GetWorkflowRunOutput$lastUpdatedTime",
  160    160   
        "com.amazonaws.codecatalyst.synthetic",
  161    161   
        "GetWorkflowRunOutput",
  162    162   
    ),
  163    163   
    ::aws_smithy_schema::ShapeType::Timestamp,
  164         -
    "last_updated_time",
         164  +
    "lastUpdatedTime",
  165    165   
    8,
  166    166   
)
  167    167   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
         168  +
static GETWORKFLOWRUNOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         169  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         170  +
    ::aws_smithy_schema::ShapeType::String,
         171  +
    "request_id",
         172  +
    9,
         173  +
)
         174  +
.with_http_header("x-amzn-requestid");
  168    175   
static GETWORKFLOWRUNOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  169    176   
    GETWORKFLOWRUNOUTPUT_SCHEMA_ID,
  170    177   
    ::aws_smithy_schema::ShapeType::Structure,
  171    178   
    &[
  172    179   
        &GETWORKFLOWRUNOUTPUT_MEMBER_SPACE_NAME,
  173    180   
        &GETWORKFLOWRUNOUTPUT_MEMBER_PROJECT_NAME,
  174    181   
        &GETWORKFLOWRUNOUTPUT_MEMBER_ID,
  175    182   
        &GETWORKFLOWRUNOUTPUT_MEMBER_WORKFLOW_ID,
  176    183   
        &GETWORKFLOWRUNOUTPUT_MEMBER_STATUS,
  177    184   
        &GETWORKFLOWRUNOUTPUT_MEMBER_STATUS_REASONS,
  178    185   
        &GETWORKFLOWRUNOUTPUT_MEMBER_START_TIME,
  179    186   
        &GETWORKFLOWRUNOUTPUT_MEMBER_END_TIME,
  180    187   
        &GETWORKFLOWRUNOUTPUT_MEMBER_LAST_UPDATED_TIME,
         188  +
        &GETWORKFLOWRUNOUTPUT_MEMBER__REQUEST_ID,
  181    189   
    ],
  182    190   
);
  183    191   
impl GetWorkflowRunOutput {
  184    192   
    /// The schema for this shape.
  185    193   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETWORKFLOWRUNOUTPUT_SCHEMA;
  186    194   
}
  187    195   
impl ::aws_smithy_schema::serde::SerializableStruct for GetWorkflowRunOutput {
  188    196   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  189    197   
    fn serialize_members(
  190    198   
        &self,
  191    199   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  192    200   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  193    201   
        {
  194    202   
            let val = &self.space_name;
  195    203   
            ser.write_string(&GETWORKFLOWRUNOUTPUT_MEMBER_SPACE_NAME, val)?;
  196    204   
        }
  197    205   
        {
  198    206   
            let val = &self.project_name;
  199    207   
            ser.write_string(&GETWORKFLOWRUNOUTPUT_MEMBER_PROJECT_NAME, val)?;
  200    208   
        }
  201    209   
        {
  202    210   
            let val = &self.id;
  203    211   
            ser.write_string(&GETWORKFLOWRUNOUTPUT_MEMBER_ID, val)?;
  204    212   
        }
  205    213   
        {
  206    214   
            let val = &self.workflow_id;
  207    215   
            ser.write_string(&GETWORKFLOWRUNOUTPUT_MEMBER_WORKFLOW_ID, val)?;
  208    216   
        }
  209    217   
        {
  210    218   
            let val = &self.status;
  211    219   
            ser.write_string(&GETWORKFLOWRUNOUTPUT_MEMBER_STATUS, val.as_str())?;
  212    220   
        }
  213    221   
        if let Some(ref val) = self.status_reasons {
  214    222   
            ser.write_list(
  215    223   
                &GETWORKFLOWRUNOUTPUT_MEMBER_STATUS_REASONS,
  216    224   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  217    225   
                    for item in val {
  218    226   
                        ser.write_struct(crate::types::WorkflowRunStatusReason::SCHEMA, item)?;
  219    227   
                    }
  220    228   
                    Ok(())
  221    229   
                },
  222    230   
            )?;
  223    231   
        }
  224    232   
        {
  225    233   
            let val = &self.start_time;
  226    234   
            ser.write_timestamp(&GETWORKFLOWRUNOUTPUT_MEMBER_START_TIME, val)?;
  227    235   
        }
  228    236   
        if let Some(ref val) = self.end_time {
  229    237   
            ser.write_timestamp(&GETWORKFLOWRUNOUTPUT_MEMBER_END_TIME, val)?;
  230    238   
        }
  231    239   
        {
  232    240   
            let val = &self.last_updated_time;
  233    241   
            ser.write_timestamp(&GETWORKFLOWRUNOUTPUT_MEMBER_LAST_UPDATED_TIME, val)?;
  234    242   
        }
  235    243   
        Ok(())
  236    244   
    }
  237    245   
}
  238    246   
impl GetWorkflowRunOutput {
  239    247   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  240         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  241         -
        deserializer: &mut D,
         248  +
    pub fn deserialize(
         249  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  242    250   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  243    251   
        #[allow(unused_variables, unused_mut)]
  244    252   
        let mut builder = Self::builder();
  245    253   
        #[allow(
  246    254   
            unused_variables,
  247    255   
            unreachable_code,
  248    256   
            clippy::single_match,
  249    257   
            clippy::match_single_binding,
  250    258   
            clippy::diverging_sub_expression
  251    259   
        )]
  252         -
        deserializer.read_struct(&GETWORKFLOWRUNOUTPUT_SCHEMA, (), |_, member, deser| {
         260  +
        deserializer.read_struct(&GETWORKFLOWRUNOUTPUT_SCHEMA, &mut |member, deser| {
         261  +
            match member.member_index() {
         262  +
                Some(0) => {
         263  +
                    builder.space_name = Some(deser.read_string(member)?);
         264  +
                }
         265  +
                Some(1) => {
         266  +
                    builder.project_name = Some(deser.read_string(member)?);
         267  +
                }
         268  +
                Some(2) => {
         269  +
                    builder.id = Some(deser.read_string(member)?);
         270  +
                }
         271  +
                Some(3) => {
         272  +
                    builder.workflow_id = Some(deser.read_string(member)?);
         273  +
                }
         274  +
                Some(4) => {
         275  +
                    builder.status = Some(crate::types::WorkflowRunStatus::from(deser.read_string(member)?.as_str()));
         276  +
                }
         277  +
                Some(5) => {
         278  +
                    builder.status_reasons = Some({
         279  +
                        let mut container = Vec::new();
         280  +
                        deser.read_list(member, &mut |deser| {
         281  +
                            container.push(crate::types::WorkflowRunStatusReason::deserialize(deser)?);
         282  +
                            Ok(())
         283  +
                        })?;
         284  +
                        container
         285  +
                    });
         286  +
                }
         287  +
                Some(6) => {
         288  +
                    builder.start_time = Some(deser.read_timestamp(member)?);
         289  +
                }
         290  +
                Some(7) => {
         291  +
                    builder.end_time = Some(deser.read_timestamp(member)?);
         292  +
                }
         293  +
                Some(8) => {
         294  +
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
         295  +
                }
         296  +
                Some(9) => {
         297  +
                    builder._request_id = Some(deser.read_string(member)?);
         298  +
                }
         299  +
                _ => {}
         300  +
            }
         301  +
            Ok(())
         302  +
        })?;
         303  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         304  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         305  +
        builder.id = builder.id.or(Some(String::new()));
         306  +
        builder.workflow_id = builder.workflow_id.or(Some(String::new()));
         307  +
        builder.start_time = builder.start_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         308  +
        builder.last_updated_time = builder.last_updated_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         309  +
        builder
         310  +
            .build()
         311  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         312  +
    }
         313  +
}
         314  +
impl GetWorkflowRunOutput {
         315  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         316  +
    /// Header-bound members are read directly from headers, avoiding runtime
         317  +
    /// member iteration overhead. Body members are read via the deserializer.
         318  +
    pub fn deserialize_with_response(
         319  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         320  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         321  +
        _status: u16,
         322  +
        _body: &[u8],
         323  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         324  +
        #[allow(unused_variables, unused_mut)]
         325  +
        let mut builder = Self::builder();
         326  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         327  +
            builder._request_id = Some(val.to_string());
         328  +
        }
         329  +
        #[allow(
         330  +
            unused_variables,
         331  +
            unreachable_code,
         332  +
            clippy::single_match,
         333  +
            clippy::match_single_binding,
         334  +
            clippy::diverging_sub_expression
         335  +
        )]
         336  +
        deserializer.read_struct(&GETWORKFLOWRUNOUTPUT_SCHEMA, &mut |member, deser| {
  253    337   
            match member.member_index() {
  254    338   
                Some(0) => {
  255    339   
                    builder.space_name = Some(deser.read_string(member)?);
  256    340   
                }
  257    341   
                Some(1) => {
  258    342   
                    builder.project_name = Some(deser.read_string(member)?);
  259    343   
                }
  260    344   
                Some(2) => {
  261    345   
                    builder.id = Some(deser.read_string(member)?);
  262    346   
                }
  263    347   
                Some(3) => {
  264    348   
                    builder.workflow_id = Some(deser.read_string(member)?);
  265    349   
                }
  266    350   
                Some(4) => {
  267    351   
                    builder.status = Some(crate::types::WorkflowRunStatus::from(deser.read_string(member)?.as_str()));
  268    352   
                }
  269    353   
                Some(5) => {
  270    354   
                    builder.status_reasons = Some({
  271         -
                        let container = if let Some(cap) = deser.container_size() {
  272         -
                            Vec::with_capacity(cap)
  273         -
                        } else {
  274         -
                            Vec::new()
  275         -
                        };
  276         -
                        deser.read_list(member, container, |mut list, deser| {
  277         -
                            list.push(crate::types::WorkflowRunStatusReason::deserialize(deser)?);
  278         -
                            Ok(list)
  279         -
                        })?
         355  +
                        let mut container = Vec::new();
         356  +
                        deser.read_list(member, &mut |deser| {
         357  +
                            container.push(crate::types::WorkflowRunStatusReason::deserialize(deser)?);
         358  +
                            Ok(())
         359  +
                        })?;
         360  +
                        container
  280    361   
                    });
  281    362   
                }
  282    363   
                Some(6) => {
  283    364   
                    builder.start_time = Some(deser.read_timestamp(member)?);
  284    365   
                }
  285    366   
                Some(7) => {
  286    367   
                    builder.end_time = Some(deser.read_timestamp(member)?);
  287    368   
                }
  288    369   
                Some(8) => {
  289    370   
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_access_tokens.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 `ListAccessTokens`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListAccessTokens;
    6      6   
impl ListAccessTokens {
    7      7   
    /// Creates a new `ListAccessTokens`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_access_tokens::ListAccessTokensInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_access_tokens::ListAccessTokensOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_access_tokens::ListAccessTokensInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_access_tokens::ListAccessTokensOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_access_tokens::ListAccessTokensError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -111,115 +230,378 @@
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct ListAccessTokensResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListAccessTokensResponseDeserializer {
  138    142   
    fn deserialize_nonstreaming(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  143         -
        let headers = response.headers();
  144         -
        let body = response.body().bytes().expect("body loaded");
  145    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  148         -
        let parse_result = if !success && status != 200 || force_error {
  149         -
            crate::protocol_serde::shape_list_access_tokens::de_list_access_tokens_http_error(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_access_tokens::ListAccessTokensError::unhandled(
         165  +
                            generic,
         166  +
                        )),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::list_access_tokens::ListAccessTokensError::AccessDeniedException({
         176  +
                    let mut tmp = match protocol
         177  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         178  +
                        .and_then(|mut deser| {
         179  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         180  +
                                &mut *deser,
         181  +
                                response.headers(),
         182  +
                                response.status().into(),
         183  +
                                body,
         184  +
                            )
         185  +
                        }) {
         186  +
                        ::std::result::Result::Ok(val) => val,
         187  +
                        ::std::result::Result::Err(e) => {
         188  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         189  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         190  +
                            ))
         191  +
                        }
         192  +
                    };
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::list_access_tokens::ListAccessTokensError::ConflictException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::ConflictException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    tmp
         216  +
                }),
         217  +
                "ResourceNotFoundException" => crate::operation::list_access_tokens::ListAccessTokensError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => crate::operation::list_access_tokens::ListAccessTokensError::ServiceQuotaExceededException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    tmp
         258  +
                }),
         259  +
                "ThrottlingException" => crate::operation::list_access_tokens::ListAccessTokensError::ThrottlingException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::list_access_tokens::ListAccessTokensError::ValidationException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ValidationException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
         297  +
                    };
         298  +
                    tmp.meta = generic;
         299  +
                    tmp
         300  +
                }),
         301  +
                _ => crate::operation::list_access_tokens::ListAccessTokensError::generic(generic),
         302  +
            };
         303  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         304  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         305  +
            ))
  150    306   
        } else {
  151         -
            crate::protocol_serde::shape_list_access_tokens::de_list_access_tokens_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, ListAccessTokens::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::list_access_tokens::ListAccessTokensOutput::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 ListAccessTokensRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListAccessTokensRequestSerializer {
  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::list_access_tokens::ListAccessTokensInput>()
  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::list_access_tokens::ListAccessTokensInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                ::std::write!(output, "/v1/accessTokens").expect("formatting should succeed");
  180         -
                ::std::result::Result::Ok(())
  181         -
            }
  182         -
            #[allow(clippy::unnecessary_wraps)]
  183         -
            fn update_http_builder(
  184         -
                input: &crate::operation::list_access_tokens::ListAccessTokensInput,
  185         -
                builder: ::http_1x::request::Builder,
  186         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187         -
                let mut uri = ::std::string::String::new();
  188         -
                uri_base(input, &mut uri)?;
  189         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190         -
            }
  191         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  192         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  193         -
            builder
  194         -
        };
  195         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_access_tokens::ser_list_access_tokens_input(&input)?);
  196         -
        if let Some(content_length) = body.content_length() {
  197         -
            let content_length = content_length.to_string();
  198         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  199         -
        }
  200         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         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, ListAccessTokens::INPUT_SCHEMA, "", _cfg)
         346  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         347  +
         348  +
        return ::std::result::Result::Ok(request);
  201    349   
    }
  202    350   
}
  203    351   
#[derive(Debug)]
  204    352   
struct ListAccessTokensEndpointParamsInterceptor;
  205    353   
  206    354   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListAccessTokensEndpointParamsInterceptor {
  207    355   
    fn name(&self) -> &'static str {
  208    356   
        "ListAccessTokensEndpointParamsInterceptor"
  209    357   
    }
  210    358