AWS SDK

AWS SDK

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/serialization_settings.rs

@@ -1,1 +78,83 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 * SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
#![allow(dead_code)]
    8      8   
    9      9   
use aws_smithy_http::header::set_request_header_if_absent;
   10     10   
use aws_smithy_types::config_bag::{Storable, StoreReplace};
   11         -
use http::header::{HeaderName, CONTENT_LENGTH, CONTENT_TYPE};
          11  +
use http_1x::header::{HeaderName, CONTENT_LENGTH, CONTENT_TYPE};
   12     12   
   13     13   
/// Configuration for how default protocol headers are serialized
   14     14   
#[derive(Clone, Debug, Default)]
   15     15   
pub(crate) struct HeaderSerializationSettings {
   16     16   
    omit_default_content_length: bool,
   17     17   
    omit_default_content_type: bool,
   18     18   
}
   19     19   
   20     20   
impl HeaderSerializationSettings {
   21     21   
    /// Creates new [`HeaderSerializationSettings`]
   22     22   
    pub(crate) fn new() -> Self {
   23     23   
        Default::default()
   24     24   
    }
   25     25   
   26     26   
    /// Omit the default `Content-Length` header during serialization
   27     27   
    pub(crate) fn omit_default_content_length(self) -> Self {
   28     28   
        Self {
   29     29   
            omit_default_content_length: true,
   30     30   
            ..self
   31     31   
        }
   32     32   
    }
   33     33   
   34     34   
    /// Omit the default `Content-Type` header during serialization
   35     35   
    pub(crate) fn omit_default_content_type(self) -> Self {
   36     36   
        Self {
   37     37   
            omit_default_content_type: true,
   38     38   
            ..self
   39     39   
        }
   40     40   
    }
   41     41   
   42     42   
    /// Returns true if the given default header name should be serialized
   43     43   
    fn include_header(&self, header: &HeaderName) -> bool {
   44     44   
        (!self.omit_default_content_length || header != CONTENT_LENGTH) && (!self.omit_default_content_type || header != CONTENT_TYPE)
   45     45   
    }
   46     46   
   47     47   
    /// Sets a default header on the given request builder if it should be serialized
   48         -
    pub(crate) fn set_default_header(&self, mut request: http::request::Builder, header_name: HeaderName, value: &str) -> http::request::Builder {
          48  +
    pub(crate) fn set_default_header(
          49  +
        &self,
          50  +
        mut request: http_1x::request::Builder,
          51  +
        header_name: HeaderName,
          52  +
        value: &str,
          53  +
    ) -> http_1x::request::Builder {
   49     54   
        if self.include_header(&header_name) {
   50     55   
            request = set_request_header_if_absent(request, header_name, value);
   51     56   
        }
   52     57   
        request
   53     58   
    }
   54     59   
}
   55     60   
   56     61   
impl Storable for HeaderSerializationSettings {
   57     62   
    type Storer = StoreReplace<Self>;
   58     63   
}

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml

@@ -1,1 +147,148 @@
   14     14   
protocol = "aws.protocols#restJson1"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.18"
          24  +
version = "1.6.0"
   25     25   
   26     26   
[dependencies.aws-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28         -
version = "1.2.7"
          28  +
version = "1.2.8"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32         -
version = "0.62.6"
          32  +
version = "0.63.0"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36         -
version = "0.61.9"
          36  +
version = "0.62.0"
   37     37   
   38     38   
[dependencies.aws-smithy-observability]
   39     39   
path = "../aws-smithy-observability"
   40         -
version = "0.2.0"
          40  +
version = "0.2.1"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client", "http-auth"]
   45         -
version = "1.9.8"
          45  +
version = "1.10.0"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49         -
features = ["client", "http-02x", "http-auth"]
   50         -
version = "1.10.0"
          49  +
features = ["client", "http-1x", "http-auth"]
          50  +
version = "1.11.0"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54         -
version = "1.3.6"
          54  +
features = ["http-body-1-x"]
          55  +
version = "1.4.0"
   55     56   
   56     57   
[dependencies.aws-types]
   57     58   
path = "../aws-types"
   58     59   
version = "1.3.11"
   59     60   
   60     61   
[dependencies.bytes]
   61     62   
version = "1.4.0"
   62     63   
   63     64   
[dependencies.fastrand]
   64     65   
version = "2.0.0"
   65     66   
   66     67   
[dependencies.http]
   67     68   
version = "0.2.9"
   68     69   
          70  +
[dependencies.http-1x]
          71  +
version = "1"
          72  +
package = "http"
          73  +
   69     74   
[dependencies.regex-lite]
   70     75   
version = "0.1.5"
   71     76   
   72     77   
[dependencies.tracing]
   73     78   
version = "0.1"
   74     79   
[dev-dependencies.aws-config]
   75     80   
path = "../aws-config"
   76     81   
version = "1.8.12"
   77     82   
   78     83   
[dev-dependencies.aws-credential-types]
   79     84   
path = "../aws-credential-types"
   80     85   
features = ["test-util"]
   81     86   
version = "1.2.11"
   82     87   
   83     88   
[dev-dependencies.aws-runtime]
   84     89   
path = "../aws-runtime"
   85     90   
features = ["test-util"]
   86         -
version = "1.5.18"
          91  +
version = "1.6.0"
   87     92   
   88     93   
[dev-dependencies.aws-smithy-async]
   89     94   
path = "../aws-smithy-async"
   90     95   
features = ["test-util"]
   91         -
version = "1.2.7"
          96  +
version = "1.2.8"
   92     97   
   93     98   
[dev-dependencies.aws-smithy-http-client]
   94     99   
path = "../aws-smithy-http-client"
   95    100   
features = ["test-util", "wire-mock"]
   96         -
version = "1.1.5"
         101  +
version = "1.1.6"
   97    102   
   98    103   
[dev-dependencies.aws-smithy-protocol-test]
   99    104   
path = "../aws-smithy-protocol-test"
  100         -
version = "0.63.7"
         105  +
version = "0.63.8"
  101    106   
  102    107   
[dev-dependencies.aws-smithy-runtime]
  103    108   
path = "../aws-smithy-runtime"
  104    109   
features = ["test-util"]
  105         -
version = "1.9.8"
         110  +
version = "1.10.0"
  106    111   
  107    112   
[dev-dependencies.aws-smithy-runtime-api]
  108    113   
path = "../aws-smithy-runtime-api"
  109    114   
features = ["test-util"]
  110         -
version = "1.10.0"
         115  +
version = "1.11.0"
  111    116   
  112    117   
[dev-dependencies.aws-smithy-types]
  113    118   
path = "../aws-smithy-types"
  114         -
features = ["test-util"]
  115         -
version = "1.3.6"
         119  +
features = ["http-body-1-x", "test-util"]
         120  +
version = "1.4.0"
  116    121   
  117    122   
[dev-dependencies.futures-util]
  118    123   
version = "0.3.25"
  119    124   
features = ["alloc"]
  120    125   
default-features = false
  121    126   
  122         -
[dev-dependencies.http-1x]
  123         -
version = "1"
  124         -
package = "http"
  125         -
  126    127   
[dev-dependencies.proptest]
  127    128   
version = "1"
  128    129   
  129    130   
[dev-dependencies.serde_json]
  130    131   
version = "1.0.0"
  131    132   
  132    133   
[dev-dependencies.tokio]
  133    134   
version = "1.23.1"
  134    135   
features = ["macros", "test-util", "rt-multi-thread"]
  135    136   

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

@@ -1,1 +45,45 @@
    5      5   
 */
    6      6   
    7      7   
use aws_smithy_json::deserialize::token::skip_value;
    8      8   
use aws_smithy_json::deserialize::{error::DeserializeError, json_token_iter, Token};
    9      9   
use aws_smithy_runtime_api::http::Headers;
   10     10   
use aws_smithy_types::error::metadata::{Builder as ErrorMetadataBuilder, ErrorMetadata};
   11     11   
use std::borrow::Cow;
   12     12   
   13     13   
// currently only used by AwsJson
   14     14   
#[allow(unused)]
   15         -
pub fn is_error<B>(response: &http::Response<B>) -> bool {
          15  +
pub fn is_error<B>(response: &http_1x::Response<B>) -> bool {
   16     16   
    !response.status().is_success()
   17     17   
}
   18     18   
   19     19   
fn sanitize_error_code(error_code: &str) -> &str {
   20     20   
    // Trim a trailing URL from the error code, which is done by removing the longest suffix
   21     21   
    // beginning with a `:`
   22     22   
    let error_code = match error_code.find(':') {
   23     23   
        Some(idx) => &error_code[..idx],
   24     24   
        None => error_code,
   25     25   
    };
@@ -60,60 +120,120 @@
   80     80   
#[cfg(test)]
   81     81   
mod test {
   82     82   
    use crate::json_errors::{parse_error_body, parse_error_metadata, sanitize_error_code};
   83     83   
    use aws_smithy_runtime_api::client::orchestrator::HttpResponse;
   84     84   
    use aws_smithy_types::{body::SdkBody, error::ErrorMetadata};
   85     85   
    use std::borrow::Cow;
   86     86   
   87     87   
    #[test]
   88     88   
    fn error_metadata() {
   89     89   
        let response = HttpResponse::try_from(
   90         -
            http::Response::builder()
          90  +
            http_1x::Response::builder()
   91     91   
                .body(SdkBody::from(r#"{ "__type": "FooError", "message": "Go to foo" }"#))
   92     92   
                .unwrap(),
   93     93   
        )
   94     94   
        .unwrap();
   95     95   
        assert_eq!(
   96     96   
            parse_error_metadata(response.body().bytes().unwrap(), response.headers())
   97     97   
                .unwrap()
   98     98   
                .build(),
   99     99   
            ErrorMetadata::builder().code("FooError").message("Go to foo").build()
  100    100   
        )
@@ -129,129 +180,180 @@
  149    149   
  150    150   
    #[test]
  151    151   
    fn sanitize_namespace() {
  152    152   
        assert_eq!(sanitize_error_code("aws.protocoltests.restjson#FooError"), "FooError");
  153    153   
    }
  154    154   
  155    155   
    // services like lambda use an alternate `Message` instead of `message`
  156    156   
    #[test]
  157    157   
    fn alternative_error_message_names() {
  158    158   
        let response = HttpResponse::try_from(
  159         -
            http::Response::builder()
         159  +
            http_1x::Response::builder()
  160    160   
                .header("x-amzn-errortype", "ResourceNotFoundException")
  161    161   
                .body(SdkBody::from(
  162    162   
                    r#"{
  163    163   
                    "Type": "User",
  164    164   
                    "Message": "Functions from 'us-west-2' are not reachable from us-east-1"
  165    165   
                }"#,
  166    166   
                ))
  167    167   
                .unwrap(),
  168    168   
        )
  169    169   
        .unwrap();

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

@@ -156,156 +229,229 @@
  176    176   
                _input: &crate::operation::create_access_token::CreateAccessTokenInput,
  177    177   
                output: &mut ::std::string::String,
  178    178   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  179    179   
                use ::std::fmt::Write as _;
  180    180   
                ::std::write!(output, "/v1/accessTokens").expect("formatting should succeed");
  181    181   
                ::std::result::Result::Ok(())
  182    182   
            }
  183    183   
            #[allow(clippy::unnecessary_wraps)]
  184    184   
            fn update_http_builder(
  185    185   
                input: &crate::operation::create_access_token::CreateAccessTokenInput,
  186         -
                builder: ::http::request::Builder,
  187         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         186  +
                builder: ::http_1x::request::Builder,
         187  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  188    188   
                let mut uri = ::std::string::String::new();
  189    189   
                uri_base(input, &mut uri)?;
  190    190   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  191    191   
            }
  192         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  193         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         192  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         193  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  194    194   
            builder
  195    195   
        };
  196    196   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_access_token::ser_create_access_token_input(&input)?);
  197    197   
        if let Some(content_length) = body.content_length() {
  198    198   
            let content_length = content_length.to_string();
  199         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         199  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  200    200   
        }
  201    201   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    202   
    }
  203    203   
}
  204    204   
#[derive(Debug)]
  205    205   
struct CreateAccessTokenEndpointParamsInterceptor;
  206    206   
  207    207   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateAccessTokenEndpointParamsInterceptor {
  208    208   
    fn name(&self) -> &'static str {
  209    209   
        "CreateAccessTokenEndpointParamsInterceptor"

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

@@ -183,183 +258,258 @@
  203    203   
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments",
  204    204   
                    spaceName = space_name,
  205    205   
                    projectName = project_name
  206    206   
                )
  207    207   
                .expect("formatting should succeed");
  208    208   
                ::std::result::Result::Ok(())
  209    209   
            }
  210    210   
            #[allow(clippy::unnecessary_wraps)]
  211    211   
            fn update_http_builder(
  212    212   
                input: &crate::operation::create_dev_environment::CreateDevEnvironmentInput,
  213         -
                builder: ::http::request::Builder,
  214         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         213  +
                builder: ::http_1x::request::Builder,
         214  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  215    215   
                let mut uri = ::std::string::String::new();
  216    216   
                uri_base(input, &mut uri)?;
  217    217   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  218    218   
            }
  219         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  220         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         219  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         220  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  221    221   
            builder
  222    222   
        };
  223    223   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_dev_environment::ser_create_dev_environment_input(
  224    224   
            &input,
  225    225   
        )?);
  226    226   
        if let Some(content_length) = body.content_length() {
  227    227   
            let content_length = content_length.to_string();
  228         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         228  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  229    229   
        }
  230    230   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  231    231   
    }
  232    232   
}
  233    233   
#[derive(Debug)]
  234    234   
struct CreateDevEnvironmentEndpointParamsInterceptor;
  235    235   
  236    236   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateDevEnvironmentEndpointParamsInterceptor {
  237    237   
    fn name(&self) -> &'static str {
  238    238   
        "CreateDevEnvironmentEndpointParamsInterceptor"

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

@@ -166,166 +239,239 @@
  186    186   
                        "space_name",
  187    187   
                        "cannot be empty or unset",
  188    188   
                    ));
  189    189   
                }
  190    190   
                ::std::write!(output, "/v1/spaces/{spaceName}/projects", spaceName = space_name).expect("formatting should succeed");
  191    191   
                ::std::result::Result::Ok(())
  192    192   
            }
  193    193   
            #[allow(clippy::unnecessary_wraps)]
  194    194   
            fn update_http_builder(
  195    195   
                input: &crate::operation::create_project::CreateProjectInput,
  196         -
                builder: ::http::request::Builder,
  197         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         196  +
                builder: ::http_1x::request::Builder,
         197  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198    198   
                let mut uri = ::std::string::String::new();
  199    199   
                uri_base(input, &mut uri)?;
  200    200   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  201    201   
            }
  202         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  203         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         202  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         203  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  204    204   
            builder
  205    205   
        };
  206    206   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_project::ser_create_project_input(&input)?);
  207    207   
        if let Some(content_length) = body.content_length() {
  208    208   
            let content_length = content_length.to_string();
  209         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         209  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  210    210   
        }
  211    211   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  212    212   
    }
  213    213   
}
  214    214   
#[derive(Debug)]
  215    215   
struct CreateProjectEndpointParamsInterceptor;
  216    216   
  217    217   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateProjectEndpointParamsInterceptor {
  218    218   
    fn name(&self) -> &'static str {
  219    219   
        "CreateProjectEndpointParamsInterceptor"

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

@@ -201,201 +276,276 @@
  221    221   
                    spaceName = space_name,
  222    222   
                    projectName = project_name,
  223    223   
                    name = name
  224    224   
                )
  225    225   
                .expect("formatting should succeed");
  226    226   
                ::std::result::Result::Ok(())
  227    227   
            }
  228    228   
            #[allow(clippy::unnecessary_wraps)]
  229    229   
            fn update_http_builder(
  230    230   
                input: &crate::operation::create_source_repository::CreateSourceRepositoryInput,
  231         -
                builder: ::http::request::Builder,
  232         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         231  +
                builder: ::http_1x::request::Builder,
         232  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  233    233   
                let mut uri = ::std::string::String::new();
  234    234   
                uri_base(input, &mut uri)?;
  235    235   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  236    236   
            }
  237         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  238         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         237  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         238  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  239    239   
            builder
  240    240   
        };
  241    241   
        let body = ::aws_smithy_types::body::SdkBody::from(
  242    242   
            crate::protocol_serde::shape_create_source_repository::ser_create_source_repository_input(&input)?,
  243    243   
        );
  244    244   
        if let Some(content_length) = body.content_length() {
  245    245   
            let content_length = content_length.to_string();
  246         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         246  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  247    247   
        }
  248    248   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  249    249   
    }
  250    250   
}
  251    251   
#[derive(Debug)]
  252    252   
struct CreateSourceRepositoryEndpointParamsInterceptor;
  253    253   
  254    254   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateSourceRepositoryEndpointParamsInterceptor {
  255    255   
    fn name(&self) -> &'static str {
  256    256   
        "CreateSourceRepositoryEndpointParamsInterceptor"

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

@@ -213,213 +288,288 @@
  233    233   
                    projectName = project_name,
  234    234   
                    sourceRepositoryName = source_repository_name,
  235    235   
                    name = name
  236    236   
                )
  237    237   
                .expect("formatting should succeed");
  238    238   
                ::std::result::Result::Ok(())
  239    239   
            }
  240    240   
            #[allow(clippy::unnecessary_wraps)]
  241    241   
            fn update_http_builder(
  242    242   
                input: &crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchInput,
  243         -
                builder: ::http::request::Builder,
  244         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         243  +
                builder: ::http_1x::request::Builder,
         244  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  245    245   
                let mut uri = ::std::string::String::new();
  246    246   
                uri_base(input, &mut uri)?;
  247    247   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  248    248   
            }
  249         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  250         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         249  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         250  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  251    251   
            builder
  252    252   
        };
  253    253   
        let body = ::aws_smithy_types::body::SdkBody::from(
  254    254   
            crate::protocol_serde::shape_create_source_repository_branch::ser_create_source_repository_branch_input(&input)?,
  255    255   
        );
  256    256   
        if let Some(content_length) = body.content_length() {
  257    257   
            let content_length = content_length.to_string();
  258         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         258  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  259    259   
        }
  260    260   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  261    261   
    }
  262    262   
}
  263    263   
#[derive(Debug)]
  264    264   
struct CreateSourceRepositoryBranchEndpointParamsInterceptor;
  265    265   
  266    266   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateSourceRepositoryBranchEndpointParamsInterceptor {
  267    267   
    fn name(&self) -> &'static str {
  268    268   
        "CreateSourceRepositoryBranchEndpointParamsInterceptor"

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

@@ -166,166 +232,232 @@
  186    186   
                        "id",
  187    187   
                        "cannot be empty or unset",
  188    188   
                    ));
  189    189   
                }
  190    190   
                ::std::write!(output, "/v1/accessTokens/{id}", id = id).expect("formatting should succeed");
  191    191   
                ::std::result::Result::Ok(())
  192    192   
            }
  193    193   
            #[allow(clippy::unnecessary_wraps)]
  194    194   
            fn update_http_builder(
  195    195   
                input: &crate::operation::delete_access_token::DeleteAccessTokenInput,
  196         -
                builder: ::http::request::Builder,
  197         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         196  +
                builder: ::http_1x::request::Builder,
         197  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198    198   
                let mut uri = ::std::string::String::new();
  199    199   
                uri_base(input, &mut uri)?;
  200    200   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  201    201   
            }
  202         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         202  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  203    203   
            builder
  204    204   
        };
  205    205   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  206    206   
  207    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  208    208   
    }
  209    209   
}
  210    210   
#[derive(Debug)]
  211    211   
struct DeleteAccessTokenEndpointParamsInterceptor;
  212    212   

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

@@ -195,195 +261,261 @@
  215    215   
                    spaceName = space_name,
  216    216   
                    projectName = project_name,
  217    217   
                    id = id
  218    218   
                )
  219    219   
                .expect("formatting should succeed");
  220    220   
                ::std::result::Result::Ok(())
  221    221   
            }
  222    222   
            #[allow(clippy::unnecessary_wraps)]
  223    223   
            fn update_http_builder(
  224    224   
                input: &crate::operation::delete_dev_environment::DeleteDevEnvironmentInput,
  225         -
                builder: ::http::request::Builder,
  226         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         225  +
                builder: ::http_1x::request::Builder,
         226  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227    227   
                let mut uri = ::std::string::String::new();
  228    228   
                uri_base(input, &mut uri)?;
  229    229   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  230    230   
            }
  231         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         231  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232    232   
            builder
  233    233   
        };
  234    234   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  235    235   
  236    236   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  237    237   
    }
  238    238   
}
  239    239   
#[derive(Debug)]
  240    240   
struct DeleteDevEnvironmentEndpointParamsInterceptor;
  241    241   

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

@@ -178,178 +244,244 @@
  198    198   
                        "cannot be empty or unset",
  199    199   
                    ));
  200    200   
                }
  201    201   
                ::std::write!(output, "/v1/spaces/{spaceName}/projects/{name}", spaceName = space_name, name = name)
  202    202   
                    .expect("formatting should succeed");
  203    203   
                ::std::result::Result::Ok(())
  204    204   
            }
  205    205   
            #[allow(clippy::unnecessary_wraps)]
  206    206   
            fn update_http_builder(
  207    207   
                input: &crate::operation::delete_project::DeleteProjectInput,
  208         -
                builder: ::http::request::Builder,
  209         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         208  +
                builder: ::http_1x::request::Builder,
         209  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  210    210   
                let mut uri = ::std::string::String::new();
  211    211   
                uri_base(input, &mut uri)?;
  212    212   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  213    213   
            }
  214         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         214  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  215    215   
            builder
  216    216   
        };
  217    217   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  218    218   
  219    219   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  220    220   
    }
  221    221   
}
  222    222   
#[derive(Debug)]
  223    223   
struct DeleteProjectEndpointParamsInterceptor;
  224    224   

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

@@ -201,201 +267,267 @@
  221    221   
                    spaceName = space_name,
  222    222   
                    projectName = project_name,
  223    223   
                    name = name
  224    224   
                )
  225    225   
                .expect("formatting should succeed");
  226    226   
                ::std::result::Result::Ok(())
  227    227   
            }
  228    228   
            #[allow(clippy::unnecessary_wraps)]
  229    229   
            fn update_http_builder(
  230    230   
                input: &crate::operation::delete_source_repository::DeleteSourceRepositoryInput,
  231         -
                builder: ::http::request::Builder,
  232         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         231  +
                builder: ::http_1x::request::Builder,
         232  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  233    233   
                let mut uri = ::std::string::String::new();
  234    234   
                uri_base(input, &mut uri)?;
  235    235   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  236    236   
            }
  237         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         237  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  238    238   
            builder
  239    239   
        };
  240    240   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  241    241   
  242    242   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  243    243   
    }
  244    244   
}
  245    245   
#[derive(Debug)]
  246    246   
struct DeleteSourceRepositoryEndpointParamsInterceptor;
  247    247   

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

@@ -166,166 +232,232 @@
  186    186   
                        "name",
  187    187   
                        "cannot be empty or unset",
  188    188   
                    ));
  189    189   
                }
  190    190   
                ::std::write!(output, "/v1/spaces/{name}", name = name).expect("formatting should succeed");
  191    191   
                ::std::result::Result::Ok(())
  192    192   
            }
  193    193   
            #[allow(clippy::unnecessary_wraps)]
  194    194   
            fn update_http_builder(
  195    195   
                input: &crate::operation::delete_space::DeleteSpaceInput,
  196         -
                builder: ::http::request::Builder,
  197         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         196  +
                builder: ::http_1x::request::Builder,
         197  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198    198   
                let mut uri = ::std::string::String::new();
  199    199   
                uri_base(input, &mut uri)?;
  200    200   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  201    201   
            }
  202         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         202  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  203    203   
            builder
  204    204   
        };
  205    205   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  206    206   
  207    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  208    208   
    }
  209    209   
}
  210    210   
#[derive(Debug)]
  211    211   
struct DeleteSpaceEndpointParamsInterceptor;
  212    212   

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

@@ -195,195 +261,261 @@
  215    215   
                    spaceName = space_name,
  216    216   
                    projectName = project_name,
  217    217   
                    id = id
  218    218   
                )
  219    219   
                .expect("formatting should succeed");
  220    220   
                ::std::result::Result::Ok(())
  221    221   
            }
  222    222   
            #[allow(clippy::unnecessary_wraps)]
  223    223   
            fn update_http_builder(
  224    224   
                input: &crate::operation::get_dev_environment::GetDevEnvironmentInput,
  225         -
                builder: ::http::request::Builder,
  226         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         225  +
                builder: ::http_1x::request::Builder,
         226  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227    227   
                let mut uri = ::std::string::String::new();
  228    228   
                uri_base(input, &mut uri)?;
  229    229   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  230    230   
            }
  231         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         231  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232    232   
            builder
  233    233   
        };
  234    234   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  235    235   
  236    236   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  237    237   
    }
  238    238   
}
  239    239   
#[derive(Debug)]
  240    240   
struct GetDevEnvironmentEndpointParamsInterceptor;
  241    241   

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

@@ -176,176 +242,242 @@
  196    196   
                        "cannot be empty or unset",
  197    197   
                    ));
  198    198   
                }
  199    199   
                ::std::write!(output, "/v1/spaces/{spaceName}/projects/{name}", spaceName = space_name, name = name)
  200    200   
                    .expect("formatting should succeed");
  201    201   
                ::std::result::Result::Ok(())
  202    202   
            }
  203    203   
            #[allow(clippy::unnecessary_wraps)]
  204    204   
            fn update_http_builder(
  205    205   
                input: &crate::operation::get_project::GetProjectInput,
  206         -
                builder: ::http::request::Builder,
  207         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         206  +
                builder: ::http_1x::request::Builder,
         207  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208    208   
                let mut uri = ::std::string::String::new();
  209    209   
                uri_base(input, &mut uri)?;
  210    210   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  211    211   
            }
  212         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         212  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  213    213   
            builder
  214    214   
        };
  215    215   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  216    216   
  217    217   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  218    218   
    }
  219    219   
}
  220    220   
#[derive(Debug)]
  221    221   
struct GetProjectEndpointParamsInterceptor;
  222    222   

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

@@ -195,195 +261,261 @@
  215    215   
                    spaceName = space_name,
  216    216   
                    projectName = project_name,
  217    217   
                    name = name
  218    218   
                )
  219    219   
                .expect("formatting should succeed");
  220    220   
                ::std::result::Result::Ok(())
  221    221   
            }
  222    222   
            #[allow(clippy::unnecessary_wraps)]
  223    223   
            fn update_http_builder(
  224    224   
                input: &crate::operation::get_source_repository::GetSourceRepositoryInput,
  225         -
                builder: ::http::request::Builder,
  226         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         225  +
                builder: ::http_1x::request::Builder,
         226  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227    227   
                let mut uri = ::std::string::String::new();
  228    228   
                uri_base(input, &mut uri)?;
  229    229   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  230    230   
            }
  231         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         231  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232    232   
            builder
  233    233   
        };
  234    234   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  235    235   
  236    236   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  237    237   
    }
  238    238   
}
  239    239   
#[derive(Debug)]
  240    240   
struct GetSourceRepositoryEndpointParamsInterceptor;
  241    241