AWS SDK

AWS SDK

rev. 1fb202108840af7ccb1069c5b8afebf43a5e5aec

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/tests/request_id.rs

@@ -1,1 +208,208 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_sdk_s3::operation::get_object::GetObjectError;
    7      7   
use aws_sdk_s3::operation::{RequestId, RequestIdExt};
    8      8   
use aws_sdk_s3::{config::Credentials, config::Region, Client, Config};
    9         -
use aws_smithy_runtime::client::http::test_util::capture_request;
           9  +
use aws_smithy_http_client::test_util::capture_request;
   10     10   
use aws_smithy_types::body::SdkBody;
   11     11   
   12     12   
#[tokio::test]
   13     13   
async fn get_request_id_from_modeled_error() {
   14     14   
    let (http_client, request) = capture_request(Some(
   15         -
        http::Response::builder()
          15  +
        http_1x::Response::builder()
   16     16   
            .header("x-amz-request-id", "correct-request-id")
   17     17   
            .header("x-amz-id-2", "correct-extended-request-id")
   18     18   
            .status(404)
   19     19   
            .body(SdkBody::from(
   20     20   
                r#"<?xml version="1.0" encoding="UTF-8"?>
   21     21   
                <Error>
   22     22   
                  <Code>NoSuchKey</Code>
   23     23   
                  <Message>The resource you requested does not exist</Message>
   24     24   
                  <Resource>/mybucket/myfoto.jpg</Resource>
   25     25   
                  <RequestId>incorrect-request-id</RequestId>
   26     26   
                </Error>"#,
   27     27   
            ))
   28     28   
            .unwrap(),
   29     29   
    ));
   30     30   
    let config = Config::builder()
   31     31   
        .http_client(http_client)
   32     32   
        .credentials_provider(Credentials::for_tests())
   33     33   
        .region(Region::new("us-east-1"))
   34     34   
        .build();
   35     35   
    let client = Client::from_conf(config);
   36     36   
    let err = client
   37     37   
        .get_object()
   38     38   
        .key("dontcare")
   39     39   
        .bucket("dontcare")
   40     40   
        .send()
   41     41   
        .await
   42     42   
        .expect_err("status was 404, this is an error")
   43     43   
        .into_service_error();
   44     44   
    request.expect_request();
   45     45   
    assert!(
   46     46   
        matches!(err, GetObjectError::NoSuchKey(_)),
   47     47   
        "expected NoSuchKey, got {err:?}",
   48     48   
    );
   49     49   
    assert_eq!(Some("correct-request-id"), err.request_id());
   50     50   
    assert_eq!(Some("correct-request-id"), err.meta().request_id());
   51     51   
    assert_eq!(
   52     52   
        Some("correct-extended-request-id"),
   53     53   
        err.extended_request_id()
   54     54   
    );
   55     55   
    assert_eq!(
   56     56   
        Some("correct-extended-request-id"),
   57     57   
        err.meta().extended_request_id()
   58     58   
    );
   59     59   
}
   60     60   
   61     61   
#[tokio::test]
   62     62   
#[allow(deprecated)]
   63     63   
async fn get_request_id_from_unmodeled_error() {
   64     64   
    let (http_client, request) = capture_request(Some(
   65         -
        http::Response::builder()
          65  +
        http_1x::Response::builder()
   66     66   
            .header("x-amz-request-id", "correct-request-id")
   67     67   
            .header("x-amz-id-2", "correct-extended-request-id")
   68     68   
            .status(500)
   69     69   
            .body(SdkBody::from(
   70     70   
                r#"<?xml version="1.0" encoding="UTF-8"?>
   71     71   
                <Error>
   72     72   
                  <Code>SomeUnmodeledError</Code>
   73     73   
                  <Message>Something bad happened</Message>
   74     74   
                  <Resource>/mybucket/myfoto.jpg</Resource>
   75     75   
                  <RequestId>incorrect-request-id</RequestId>
   76     76   
                </Error>"#,
   77     77   
            ))
   78     78   
            .unwrap(),
   79     79   
    ));
   80     80   
    let config = Config::builder()
   81     81   
        .http_client(http_client)
   82     82   
        .credentials_provider(Credentials::for_tests())
   83     83   
        .region(Region::new("us-east-1"))
   84     84   
        .build();
   85     85   
    let client = Client::from_conf(config);
   86     86   
    let err = client
   87     87   
        .get_object()
   88     88   
        .bucket("dontcare")
   89     89   
        .key("dontcare")
   90     90   
        .send()
   91     91   
        .await
   92     92   
        .expect_err("status 500")
   93     93   
        .into_service_error();
   94     94   
    request.expect_request();
   95     95   
    assert!(matches!(err, GetObjectError::Unhandled(_)));
   96     96   
    assert_eq!(Some("correct-request-id"), err.request_id());
   97     97   
    assert_eq!(Some("correct-request-id"), err.meta().request_id());
   98     98   
    assert_eq!(
   99     99   
        Some("correct-extended-request-id"),
  100    100   
        err.extended_request_id()
  101    101   
    );
  102    102   
    assert_eq!(
  103    103   
        Some("correct-extended-request-id"),
  104    104   
        err.meta().extended_request_id()
  105    105   
    );
  106    106   
}
  107    107   
  108    108   
#[tokio::test]
  109    109   
async fn get_request_id_from_successful_nonstreaming_response() {
  110    110   
    let (http_client, request) = capture_request(Some(
  111         -
        http::Response::builder()
         111  +
        http_1x::Response::builder()
  112    112   
            .header("x-amz-request-id", "correct-request-id")
  113    113   
            .header("x-amz-id-2", "correct-extended-request-id")
  114    114   
            .status(200)
  115    115   
            .body(SdkBody::from(
  116    116   
                r#"<?xml version="1.0" encoding="UTF-8"?>
  117    117   
                <ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  118    118   
                  <Owner><ID>some-id</ID><DisplayName>some-display-name</DisplayName></Owner>
  119    119   
                  <Buckets></Buckets>
  120    120   
                </ListAllMyBucketsResult>"#,
  121    121   
            ))
  122    122   
            .unwrap(),
  123    123   
    ));
  124    124   
    let config = Config::builder()
  125    125   
        .http_client(http_client)
  126    126   
        .credentials_provider(Credentials::for_tests())
  127    127   
        .region(Region::new("us-east-1"))
  128    128   
        .build();
  129    129   
    let client = Client::from_conf(config);
  130    130   
    let output = client
  131    131   
        .list_buckets()
  132    132   
        .send()
  133    133   
        .await
  134    134   
        .expect("valid successful response");
  135    135   
    request.expect_request();
  136    136   
    assert_eq!(Some("correct-request-id"), output.request_id());
  137    137   
    assert_eq!(
  138    138   
        Some("correct-extended-request-id"),
  139    139   
        output.extended_request_id()
  140    140   
    );
  141    141   
}
  142    142   
  143    143   
#[tokio::test]
  144    144   
async fn get_request_id_from_successful_streaming_response() {
  145    145   
    let (http_client, request) = capture_request(Some(
  146         -
        http::Response::builder()
         146  +
        http_1x::Response::builder()
  147    147   
            .header("x-amz-request-id", "correct-request-id")
  148    148   
            .header("x-amz-id-2", "correct-extended-request-id")
  149    149   
            .status(200)
  150    150   
            .body(SdkBody::from("some streaming file data"))
  151    151   
            .unwrap(),
  152    152   
    ));
  153    153   
    let config = Config::builder()
  154    154   
        .http_client(http_client)
  155    155   
        .credentials_provider(Credentials::for_tests())
  156    156   
        .region(Region::new("us-east-1"))
  157    157   
        .build();
  158    158   
    let client = Client::from_conf(config);
  159    159   
    let output = client
  160    160   
        .get_object()
  161    161   
        .key("dontcare")
  162    162   
        .bucket("dontcare")
  163    163   
        .send()
  164    164   
        .await
  165    165   
        .expect("valid successful response");
  166    166   
    request.expect_request();
  167    167   
    assert_eq!(Some("correct-request-id"), output.request_id());
  168    168   
    assert_eq!(
  169    169   
        Some("correct-extended-request-id"),
  170    170   
        output.extended_request_id()
  171    171   
    );
  172    172   
}
  173    173   
  174    174   
// Verify that the conversion from operation error to the top-level service error maintains the request ID
  175    175   
#[tokio::test]
  176    176   
async fn conversion_to_service_error_maintains_request_id() {
  177    177   
    let (http_client, request) = capture_request(Some(
  178         -
        http::Response::builder()
         178  +
        http_1x::Response::builder()
  179    179   
            .header("x-amz-request-id", "correct-request-id")
  180    180   
            .header("x-amz-id-2", "correct-extended-request-id")
  181    181   
            .status(404)
  182    182   
            .body(SdkBody::from(
  183    183   
                r#"<?xml version="1.0" encoding="UTF-8"?>
  184    184   
                <Error>
  185    185   
                  <Code>NoSuchKey</Code>
  186    186   
                  <Message>The resource you requested does not exist</Message>
  187    187   
                  <Resource>/mybucket/myfoto.jpg</Resource>
  188    188   
                  <RequestId>incorrect-request-id</RequestId>

tmp-codegen-diff/aws-sdk/sdk/s3/tests/request_information_headers.rs

@@ -1,1 +48,48 @@
    8      8   
use aws_sdk_s3::config::interceptors::BeforeSerializationInterceptorContextMut;
    9      9   
use aws_sdk_s3::config::interceptors::FinalizerInterceptorContextRef;
   10     10   
use aws_sdk_s3::config::retry::RetryConfig;
   11     11   
use aws_sdk_s3::config::timeout::TimeoutConfig;
   12     12   
use aws_sdk_s3::config::{Credentials, Region};
   13     13   
use aws_sdk_s3::config::{Intercept, SharedAsyncSleep};
   14     14   
use aws_sdk_s3::Client;
   15     15   
use aws_smithy_async::test_util::InstantSleep;
   16     16   
use aws_smithy_async::test_util::ManualTimeSource;
   17     17   
use aws_smithy_async::time::SharedTimeSource;
   18         -
use aws_smithy_runtime::client::http::test_util::dvr::ReplayingClient;
          18  +
use aws_smithy_http_client::test_util::dvr::ReplayingClient;
   19     19   
use aws_smithy_runtime::test_util::capture_test_logs::capture_test_logs;
   20     20   
use aws_smithy_runtime_api::box_error::BoxError;
   21     21   
use aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
   22     22   
use aws_smithy_types::config_bag::{ConfigBag, Layer};
   23     23   
use std::time::{Duration, UNIX_EPOCH};
   24     24   
   25     25   
// # One SDK operation invocation.
   26     26   
// # Client retries 3 times, successful response on 3rd attempt.
   27     27   
// # Fast network, latency + server time is less than one second.
   28     28   
// # No clock skew

tmp-codegen-diff/aws-sdk/sdk/s3/tests/required-query-params.rs

@@ -1,1 +39,39 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_sdk_s3::config::{Credentials, Region};
    7      7   
use aws_sdk_s3::error::DisplayErrorContext;
    8      8   
use aws_sdk_s3::Client;
    9         -
use aws_smithy_runtime::client::http::test_util::capture_request;
           9  +
use aws_smithy_http_client::test_util::capture_request;
   10     10   
use aws_smithy_types::error::operation::BuildError;
   11     11   
   12     12   
#[tokio::test]
   13     13   
async fn test_error_when_required_query_param_is_unset() {
   14     14   
    let (http_client, _request) = capture_request(None);
   15     15   
    let config = aws_sdk_s3::Config::builder()
   16     16   
        .http_client(http_client)
   17     17   
        .credentials_provider(Credentials::for_tests())
   18     18   
        .region(Region::new("us-east-1"))
   19     19   
        .build();

tmp-codegen-diff/aws-sdk/sdk/s3/tests/retry-classifier-customization.rs

@@ -1,1 +98,98 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_sdk_s3::config::interceptors::InterceptorContext;
    7      7   
use aws_sdk_s3::config::retry::{ClassifyRetry, RetryAction, RetryConfig};
    8      8   
use aws_sdk_s3::config::SharedAsyncSleep;
    9      9   
use aws_smithy_async::rt::sleep::TokioSleep;
   10         -
use aws_smithy_runtime::client::http::test_util::{ReplayEvent, StaticReplayClient};
          10  +
use aws_smithy_http_client::test_util::{ReplayEvent, StaticReplayClient};
   11     11   
use aws_smithy_runtime_api::client::retries::classifiers::RetryClassifierPriority;
   12     12   
use aws_smithy_types::body::SdkBody;
   13     13   
use std::sync::{Arc, Mutex};
   14     14   
   15     15   
#[derive(Debug, Clone)]
   16     16   
struct CustomizationTestClassifier {
   17     17   
    counter: Arc<Mutex<u8>>,
   18     18   
}
   19     19   
   20     20   
impl CustomizationTestClassifier {
   21     21   
    pub fn new() -> Self {
   22     22   
        Self {
   23     23   
            counter: Arc::new(Mutex::new(0u8)),
   24     24   
        }
   25     25   
    }
   26     26   
   27     27   
    pub fn counter(&self) -> u8 {
   28     28   
        *self.counter.lock().unwrap()
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
impl ClassifyRetry for CustomizationTestClassifier {
   33     33   
    fn classify_retry(&self, ctx: &InterceptorContext) -> RetryAction {
   34     34   
        *self.counter.lock().unwrap() += 1;
   35     35   
   36     36   
        // Interceptors may call this classifier before a response is received. If a response was received,
   37     37   
        // ensure that it has the expected status code.
   38     38   
        if let Some(res) = ctx.response() {
   39     39   
            assert_eq!(
   40     40   
                500,
   41     41   
                res.status().as_u16(),
   42     42   
                "expected a 500 response from test connection"
   43     43   
            );
   44     44   
        }
   45     45   
   46     46   
        RetryAction::RetryForbidden
   47     47   
    }
   48     48   
   49     49   
    fn name(&self) -> &'static str {
   50     50   
        "Custom Retry Classifier"
   51     51   
    }
   52     52   
}
   53     53   
   54         -
fn req() -> http::Request<SdkBody> {
   55         -
    http::Request::builder()
          54  +
fn req() -> http_1x::Request<SdkBody> {
          55  +
    http_1x::Request::builder()
   56     56   
        .body(SdkBody::from("request body"))
   57     57   
        .unwrap()
   58     58   
}
   59     59   
   60         -
fn ok() -> http::Response<SdkBody> {
   61         -
    http::Response::builder()
          60  +
fn ok() -> http_1x::Response<SdkBody> {
          61  +
    http_1x::Response::builder()
   62     62   
        .status(200)
   63     63   
        .body(SdkBody::from("Hello!"))
   64     64   
        .unwrap()
   65     65   
}
   66     66   
   67         -
fn err() -> http::Response<SdkBody> {
   68         -
    http::Response::builder()
          67  +
fn err() -> http_1x::Response<SdkBody> {
          68  +
    http_1x::Response::builder()
   69     69   
        .status(500)
   70     70   
        .body(SdkBody::from("This was an error"))
   71     71   
        .unwrap()
   72     72   
}
   73     73   
   74     74   
#[tokio::test]
   75     75   
async fn test_retry_classifier_customization_for_service() {
   76     76   
    let http_client = StaticReplayClient::new(vec![
   77     77   
        ReplayEvent::new(req(), err()),
   78     78   
        ReplayEvent::new(req(), ok()),

tmp-codegen-diff/aws-sdk/sdk/s3/tests/select-object-content.rs

@@ -1,1 +45,45 @@
    4      4   
 */
    5      5   
    6      6   
use aws_config::SdkConfig;
    7      7   
use aws_credential_types::provider::SharedCredentialsProvider;
    8      8   
use aws_sdk_s3::config::{Credentials, Region};
    9      9   
use aws_sdk_s3::types::{
   10     10   
    CompressionType, CsvInput, CsvOutput, ExpressionType, FileHeaderInfo, InputSerialization,
   11     11   
    OutputSerialization, SelectObjectContentEventStream,
   12     12   
};
   13     13   
use aws_sdk_s3::Client;
          14  +
use aws_smithy_http_client::test_util::dvr::{Event, ReplayingClient};
   14     15   
use aws_smithy_protocol_test::{assert_ok, validate_body, MediaType};
   15         -
use aws_smithy_runtime::client::http::test_util::dvr::{Event, ReplayingClient};
   16     16   
use std::error::Error;
   17     17   
   18     18   
#[tokio::test]
   19     19   
async fn test_success() {
   20     20   
    let events: Vec<Event> =
   21     21   
        serde_json::from_str(include_str!("select-object-content.json")).unwrap();
   22     22   
    let replayer = ReplayingClient::new(events);
   23     23   
    let sdk_config = SdkConfig::builder()
   24     24   
        .region(Region::from_static("us-east-2"))
   25     25   
        .credentials_provider(SharedCredentialsProvider::new(Credentials::for_tests()))

tmp-codegen-diff/aws-sdk/sdk/s3/tests/service_timeout_overrides.rs

@@ -1,1 +40,40 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_credential_types::provider::SharedCredentialsProvider;
    7      7   
use aws_credential_types::Credentials;
    8      8   
use aws_smithy_async::assert_elapsed;
    9      9   
use aws_smithy_async::rt::sleep::{SharedAsyncSleep, TokioSleep};
   10         -
use aws_smithy_runtime::client::http::test_util::NeverClient;
          10  +
use aws_smithy_http_client::test_util::NeverClient;
   11     11   
use aws_smithy_runtime::test_util::capture_test_logs::capture_test_logs;
   12     12   
use aws_smithy_runtime_api::client::behavior_version::BehaviorVersion;
   13     13   
use aws_smithy_runtime_api::client::result::SdkError;
   14     14   
use aws_smithy_types::retry::RetryConfig;
   15     15   
use aws_smithy_types::timeout::TimeoutConfig;
   16     16   
use aws_types::region::Region;
   17     17   
use aws_types::SdkConfig;
   18     18   
use std::time::Duration;
   19     19   
use tokio::time::Instant;
   20     20   

tmp-codegen-diff/aws-sdk/sdk/s3/tests/signing-it.rs

@@ -1,1 +55,54 @@
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
#![cfg(feature = "test-util")]
    7      7   
    8      8   
use aws_credential_types::provider::SharedCredentialsProvider;
    9      9   
use aws_sdk_s3::config::{Credentials, Region};
   10     10   
use aws_sdk_s3::primitives::ByteStream;
   11     11   
use aws_sdk_s3::{Client, Config};
   12         -
use aws_smithy_runtime::client::http::test_util::capture_request;
   13         -
use aws_smithy_runtime::client::http::test_util::{ReplayEvent, StaticReplayClient};
          12  +
use aws_smithy_http_client::test_util::{capture_request, ReplayEvent, StaticReplayClient};
   14     13   
use aws_smithy_types::body::SdkBody;
   15         -
use http::header::AUTHORIZATION;
          14  +
use http_1x::header::AUTHORIZATION;
   16     15   
   17     16   
#[tokio::test]
   18     17   
async fn test_signer() {
   19     18   
    let http_client = StaticReplayClient::new(vec![ReplayEvent::new(
   20         -
        http::Request::builder()
          19  +
        http_1x::Request::builder()
   21     20   
            .header("authorization", "AWS4-HMAC-SHA256 Credential=ANOTREAL/20090213/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-user-agent, Signature=27e3f59ec3cffaa10e4f1c92112e8fb62d468a04cd32be39e68215f830404dbb")
   22     21   
            .uri("https://test-bucket.s3.us-east-1.amazonaws.com/?list-type=2&prefix=prefix~")
   23     22   
            .body(SdkBody::empty())
   24     23   
            .unwrap(),
   25         -
        http::Response::builder().status(200).body(SdkBody::empty()).unwrap(),
          24  +
        http_1x::Response::builder().status(200).body(SdkBody::empty()).unwrap(),
   26     25   
    )]);
   27     26   
    let config = Config::builder()
   28     27   
        .credentials_provider(SharedCredentialsProvider::new(
   29     28   
            Credentials::for_tests_with_session_token(),
   30     29   
        ))
   31     30   
        .region(Region::new("us-east-1"))
   32     31   
        .http_client(http_client.clone())
   33     32   
        .with_test_defaults()
   34     33   
        .build();
   35     34   
    let client = Client::from_conf(config);

tmp-codegen-diff/aws-sdk/sdk/s3/tests/stalled-stream-protection.rs

@@ -1,1 +139,132 @@
    6      6   
use aws_credential_types::Credentials;
    7      7   
use aws_sdk_s3::{
    8      8   
    config::{Region, StalledStreamProtectionConfig},
    9      9   
    error::BoxError,
   10     10   
};
   11     11   
use aws_sdk_s3::{error::DisplayErrorContext, primitives::ByteStream};
   12     12   
use aws_sdk_s3::{Client, Config};
   13     13   
use aws_smithy_runtime::{assert_str_contains, test_util::capture_test_logs::capture_test_logs};
   14     14   
use aws_smithy_types::body::SdkBody;
   15     15   
use bytes::{Bytes, BytesMut};
   16         -
use http_body::Body;
          16  +
use http_body_1x::Body;
   17     17   
use std::error::Error;
   18     18   
use std::time::Duration;
   19     19   
use std::{future::Future, task::Poll};
   20     20   
use std::{net::SocketAddr, pin::Pin, task::Context};
   21     21   
use tokio::{
   22     22   
    net::{TcpListener, TcpStream},
   23     23   
    time::sleep,
   24     24   
};
   25     25   
use tracing::debug;
   26     26   
   27     27   
enum SlowBodyState {
   28     28   
    Wait(Pin<Box<dyn std::future::Future<Output = ()> + Send + Sync + 'static>>),
   29     29   
    Send,
   30     30   
    Taken,
   31     31   
}
   32     32   
   33     33   
struct SlowBody {
   34     34   
    state: SlowBodyState,
   35     35   
}
   36     36   
   37     37   
impl SlowBody {
   38     38   
    fn new() -> Self {
   39     39   
        Self {
   40     40   
            state: SlowBodyState::Send,
   41     41   
        }
   42     42   
    }
   43     43   
}
   44     44   
   45     45   
impl Body for SlowBody {
   46     46   
    type Data = Bytes;
   47     47   
    type Error = BoxError;
   48     48   
   49         -
    fn poll_data(
          49  +
    fn poll_frame(
   50     50   
        mut self: Pin<&mut Self>,
   51     51   
        cx: &mut Context<'_>,
   52         -
    ) -> Poll<Option<Result<Self::Data, Self::Error>>> {
          52  +
    ) -> Poll<Option<Result<http_body_1x::Frame<Self::Data>, Self::Error>>> {
   53     53   
        loop {
   54     54   
            let mut state = SlowBodyState::Taken;
   55     55   
            std::mem::swap(&mut state, &mut self.state);
   56     56   
            match state {
   57     57   
                SlowBodyState::Wait(mut fut) => match fut.as_mut().poll(cx) {
   58     58   
                    Poll::Ready(_) => self.state = SlowBodyState::Send,
   59     59   
                    Poll::Pending => {
   60     60   
                        self.state = SlowBodyState::Wait(fut);
   61     61   
                        return Poll::Pending;
   62     62   
                    }
   63     63   
                },
   64     64   
                SlowBodyState::Send => {
   65     65   
                    self.state = SlowBodyState::Wait(Box::pin(sleep(Duration::from_micros(100))));
   66         -
                    return Poll::Ready(Some(Ok(Bytes::from_static(
          66  +
                    return Poll::Ready(Some(Ok(http_body_1x::Frame::data(Bytes::from_static(
   67     67   
                        b"data_data_data_data_data_data_data_data_data_data_data_data_\
   68     68   
                          data_data_data_data_data_data_data_data_data_data_data_data_\
   69     69   
                          data_data_data_data_data_data_data_data_data_data_data_data_\
   70     70   
                          data_data_data_data_data_data_data_data_data_data_data_data_",
   71         -
                    ))));
          71  +
                    )))));
   72     72   
                }
   73     73   
                SlowBodyState::Taken => unreachable!(),
   74     74   
            }
   75     75   
        }
   76     76   
    }
   77         -
   78         -
    fn poll_trailers(
   79         -
        self: Pin<&mut Self>,
   80         -
        _cx: &mut Context<'_>,
   81         -
    ) -> Poll<Result<Option<http::HeaderMap>, Self::Error>> {
   82         -
        Poll::Ready(Ok(None))
   83         -
    }
   84     77   
}
   85     78   
   86     79   
#[tokio::test]
   87     80   
async fn test_stalled_stream_protection_defaults_for_upload() {
   88     81   
    let _logs = capture_test_logs();
   89     82   
   90     83   
    // We spawn a faulty server that will stop all request processing after reading half of the request body.
   91     84   
    let (server, server_addr) = start_faulty_upload_server().await;
   92     85   
    let _ = tokio::spawn(server);
   93     86   
   94     87   
    let conf = Config::builder()
   95     88   
        // Stalled stream protection MUST BE enabled by default. Do not configure it explicitly.
   96     89   
        .credentials_provider(Credentials::for_tests())
   97     90   
        .region(Region::new("us-east-1"))
   98     91   
        .endpoint_url(format!("http://{server_addr}"))
   99     92   
        // The Body used here is odd and fails the body.size_hint().exact() check in the streaming branch of
  100     93   
        // the `RequestChecksumInterceptor`
  101     94   
        .request_checksum_calculation(aws_sdk_s3::config::RequestChecksumCalculation::WhenRequired)
  102     95   
        .build();
  103     96   
    let client = Client::from_conf(conf);
  104     97   
  105     98   
    let err = client
  106     99   
        .put_object()
  107    100   
        .bucket("a-test-bucket")
  108    101   
        .key("stalled-stream-test.txt")
  109         -
        .body(ByteStream::new(SdkBody::from_body_0_4(SlowBody::new())))
         102  +
        .body(ByteStream::new(SdkBody::from_body_1_x(SlowBody::new())))
  110    103   
        .send()
  111    104   
        .await
  112    105   
        .expect_err("upload stream stalled out");
  113    106   
  114    107   
    let err_msg = DisplayErrorContext(&err).to_string();
  115    108   
    assert_str_contains!(
  116    109   
        err_msg,
  117    110   
        "minimum throughput was specified at 1 B/s, but throughput of 0 B/s was observed"
  118    111   
    );
  119    112   
}

tmp-codegen-diff/aws-sdk/sdk/s3/tests/status-200-errors.rs

@@ -1,1 +80,80 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_config::retry::{RetryConfigBuilder, RetryMode};
    7      7   
use aws_credential_types::provider::SharedCredentialsProvider;
    8      8   
use aws_credential_types::Credentials;
    9      9   
use aws_sdk_s3::Client;
          10  +
use aws_smithy_http_client::test_util::infallible_client_fn;
   10     11   
use aws_smithy_runtime::assert_str_contains;
   11         -
use aws_smithy_runtime::client::http::test_util::infallible_client_fn;
   12     12   
use aws_smithy_types::body::SdkBody;
   13     13   
use aws_smithy_types::error::metadata::ProvideErrorMetadata;
   14     14   
use aws_types::region::Region;
   15     15   
use aws_types::SdkConfig;
   16     16   
   17     17   
const ERROR_RESPONSE: &str = r#"<?xml version="1.0" encoding="UTF-8"?>
   18     18   
        <Error>
   19     19   
            <Code>SlowDown</Code>
   20     20   
            <Message>Please reduce your request rate.</Message>
   21     21   
            <RequestId>K2H6N7ZGQT6WHCEG</RequestId>
   22     22   
            <HostId>WWoZlnK4pTjKCYn6eNV7GgOurabfqLkjbSyqTvDMGBaI9uwzyNhSaDhOCPs8paFGye7S6b/AB3A=</HostId>
   23     23   
        </Error>
   24     24   
"#;
   25     25   
   26     26   
#[tokio::test]
   27     27   
async fn status_200_errors() {
   28     28   
    let http_client =
   29         -
        infallible_client_fn(|_req| http::Response::new(SdkBody::from(ERROR_RESPONSE)));
          29  +
        infallible_client_fn(|_req| http_1x::Response::new(SdkBody::from(ERROR_RESPONSE)));
   30     30   
    let sdk_config = SdkConfig::builder()
   31     31   
        .credentials_provider(SharedCredentialsProvider::new(Credentials::for_tests()))
   32     32   
        .region(Region::new("us-west-4"))
   33     33   
        .http_client(http_client)
   34     34   
        .build();
   35     35   
    let client = Client::new(&sdk_config);
   36     36   
    let error = client
   37     37   
        .delete_objects()
   38     38   
        .bucket("bucket")
   39     39   
        .send()
   40     40   
        .await
   41     41   
        .expect_err("should fail");
   42     42   
    assert_eq!(error.as_service_error().unwrap().code(), Some("SlowDown"));
   43     43   
    assert_str_contains!(format!("{:?}", error), "Please reduce your request rate");
   44     44   
}
   45     45   
   46     46   
#[tracing_test::traced_test]
   47     47   
#[tokio::test]
   48     48   
async fn retry_200_internal_error() {
   49     49   
    let http_client = infallible_client_fn(|_req| {
   50         -
        http::Response::new(SdkBody::from(
          50  +
        http_1x::Response::new(SdkBody::from(
   51     51   
            r#"<?xml version="1.0" encoding="UTF-8"?>
   52     52   
            <Error>
   53     53   
                <Type>Server</Type>
   54     54   
                <Code>InternalError</Code>
   55     55   
                <Message>>We encountered an internal error. Please try again.</Message>
   56     56   
                <RequestId>DOESNOTMATTER</RequestId>
   57     57   
            </Error>
   58     58   
        "#,
   59     59   
        ))
   60     60   
    });

tmp-codegen-diff/aws-sdk/sdk/s3/tests/streaming-response.rs

@@ -1,1 +57,57 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_config::SdkConfig;
    7      7   
use aws_credential_types::provider::SharedCredentialsProvider;
    8      8   
use aws_sdk_s3::config::{Credentials, Region};
    9      9   
use aws_sdk_s3::error::DisplayErrorContext;
   10     10   
use aws_sdk_s3::Client;
          11  +
use aws_smithy_http_client::test_util::infallible_client_fn;
   11     12   
use aws_smithy_runtime::assert_str_contains;
   12         -
use aws_smithy_runtime::client::http::test_util::infallible_client_fn;
   13     13   
use aws_smithy_types::body::SdkBody;
   14     14   
use bytes::BytesMut;
   15         -
use http::header::CONTENT_LENGTH;
          15  +
use http_1x::header::CONTENT_LENGTH;
   16     16   
use std::future::Future;
   17     17   
use std::net::SocketAddr;
   18     18   
use std::time::Duration;
   19     19   
use tracing::debug;
   20     20   
   21     21   
#[tokio::test]
   22     22   
async fn test_too_short_body_causes_an_error() {
   23     23   
    // this is almost impossible to reproduce with Hyper—you need to do stuff like run each request
   24     24   
    // in its own async runtime. But there's no reason a customer couldn't run their _own_ HttpClient
   25     25   
    // that was more poorly behaved, so we'll do that here.
   26     26   
    let http_client = infallible_client_fn(|_req| {
   27         -
        http::Response::builder()
          27  +
        http_1x::Response::builder()
   28     28   
            .header(CONTENT_LENGTH, 5000)
   29     29   
            .body(SdkBody::from("definitely not 5000 characters"))
   30     30   
            .unwrap()
   31     31   
    });
   32     32   
   33     33   
    let client = aws_sdk_s3::Client::from_conf(
   34     34   
        aws_sdk_s3::Config::builder()
   35     35   
            .with_test_defaults()
   36     36   
            .region(Region::new("us-east-1"))
   37     37   
            .http_client(http_client)

tmp-codegen-diff/aws-sdk/sdk/s3/tests/timeouts.rs

@@ -1,1 +45,45 @@
    5      5   
    6      6   
use aws_sdk_s3::config::{timeout::TimeoutConfig, Region};
    7      7   
use aws_sdk_s3::error::DisplayErrorContext;
    8      8   
use aws_sdk_s3::primitives::ByteStream;
    9      9   
use aws_sdk_s3::types::{
   10     10   
    CompressionType, CsvInput, CsvOutput, ExpressionType, FileHeaderInfo, InputSerialization,
   11     11   
    OutputSerialization,
   12     12   
};
   13     13   
use aws_sdk_s3::{Client, Config};
   14     14   
use aws_smithy_async::assert_elapsed;
   15         -
use aws_smithy_runtime::client::http::test_util::NeverClient;
          15  +
use aws_smithy_http_client::test_util::NeverClient;
   16     16   
use std::future::Future;
   17     17   
use std::net::SocketAddr;
   18     18   
use std::time::Duration;
   19     19   
use tokio::net::TcpListener;
   20     20   
use tokio::time::timeout;
   21     21   
   22     22   
#[tokio::test(start_paused = true)]
   23     23   
async fn test_event_stream_request_times_out_if_server_is_unresponsive() {
   24     24   
    let config = Config::builder()
   25     25   
        .with_test_defaults()
@@ -167,167 +207,207 @@
  187    187   
        Duration::from_millis(1000),
  188    188   
        client.get_object().bucket("test").key("test").send(),
  189    189   
    )
  190    190   
    .await
  191    191   
    {
  192    192   
        match result {
  193    193   
            Ok(_) => panic!("should not have succeeded"),
  194    194   
            Err(err) => {
  195    195   
                let message = format!("{}", DisplayErrorContext(&err));
  196    196   
                let expected =
  197         -
                    "timeout: error trying to connect: HTTP connect timeout occurred after 300ms";
         197  +
                    "timeout: client error (Connect): HTTP connect timeout occurred after 300ms";
  198    198   
                assert!(
  199    199   
                    message.contains(expected),
  200    200   
                    "expected '{message}' to contain '{expected}'"
  201    201   
                );
  202    202   
            }
  203    203   
        }
  204    204   
    } else {
  205    205   
        panic!("the client didn't timeout");
  206    206   
    }
  207    207   
}

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

@@ -1,1 +0,152 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.81.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.1"
          19  +
version = "1.2.2"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23         -
version = "1.5.5"
          23  +
version = "1.5.6"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27         -
version = "1.2.4"
          27  +
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.61.1"
          31  +
version = "0.62.0"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35         -
version = "0.61.2"
          35  +
version = "0.61.3"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40         -
version = "1.7.8"
          40  +
version = "1.8.0"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.7.3"
          45  +
version = "1.7.4"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49         -
version = "1.2.13"
          49  +
version = "1.3.0"
   50     50   
   51     51   
[dependencies.aws-smithy-xml]
   52     52   
path = "../aws-smithy-xml"
   53     53   
version = "0.60.9"
   54     54   
   55     55   
[dependencies.aws-types]
   56     56   
path = "../aws-types"
   57         -
version = "1.3.5"
          57  +
version = "1.3.6"
   58     58   
   59     59   
[dependencies.fastrand]
   60     60   
version = "2.0.0"
   61     61   
   62     62   
[dependencies.http]
   63     63   
version = "0.2.9"
   64     64   
   65     65   
[dependencies.md-5]
   66     66   
version = "0.10.0"
   67     67   
   68     68   
[dependencies.once_cell]
   69     69   
version = "1.16"
   70     70   
   71     71   
[dependencies.regex-lite]
   72     72   
version = "0.1.5"
   73     73   
   74     74   
[dependencies.tracing]
   75     75   
version = "0.1"
   76     76   
   77     77   
[dependencies.url]
   78     78   
version = "2.3.1"
   79     79   
[dev-dependencies.aws-config]
   80     80   
path = "../aws-config"
   81         -
version = "1.5.18"
          81  +
version = "1.6.0"
   82     82   
   83     83   
[dev-dependencies.aws-credential-types]
   84     84   
path = "../aws-credential-types"
   85     85   
features = ["test-util"]
   86         -
version = "1.2.1"
          86  +
version = "1.2.2"
   87     87   
   88     88   
[dev-dependencies.aws-runtime]
   89     89   
path = "../aws-runtime"
   90     90   
features = ["test-util"]
   91         -
version = "1.5.5"
          91  +
version = "1.5.6"
   92     92   
   93     93   
[dev-dependencies.aws-smithy-async]
   94     94   
path = "../aws-smithy-async"
   95     95   
features = ["test-util"]
   96         -
version = "1.2.4"
          96  +
version = "1.2.5"
          97  +
          98  +
[dev-dependencies.aws-smithy-http-client]
          99  +
path = "../aws-smithy-http-client"
         100  +
features = ["test-util", "wire-mock"]
         101  +
version = "1.0.0"
   97    102   
   98    103   
[dev-dependencies.aws-smithy-protocol-test]
   99    104   
path = "../aws-smithy-protocol-test"
  100         -
version = "0.63.0"
         105  +
version = "0.63.1"
  101    106   
  102    107   
[dev-dependencies.aws-smithy-runtime]
  103    108   
path = "../aws-smithy-runtime"
  104         -
features = ["test-util", "wire-mock", "client"]
  105         -
version = "1.7.8"
         109  +
features = ["test-util"]
         110  +
version = "1.8.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.7.3"
         115  +
version = "1.7.4"
  111    116   
  112    117   
[dev-dependencies.aws-smithy-types]
  113    118   
path = "../aws-smithy-types"
  114    119   
features = ["test-util"]
  115         -
version = "1.2.13"
         120  +
version = "1.3.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   
         127  +
[dev-dependencies.http-1x]
         128  +
version = "1"
         129  +
package = "http"
         130  +
  122    131   
[dev-dependencies.proptest]
  123    132   
version = "1"
  124    133   
  125    134   
[dev-dependencies.serde_json]
  126    135   
version = "1.0.0"
  127    136   
  128    137   
[dev-dependencies.tokio]
  129    138   
version = "1.23.1"
  130    139   
features = ["macros", "test-util", "rt-multi-thread"]
  131    140   
  132    141   
[dev-dependencies.tracing-subscriber]
  133    142   
version = "0.3.16"
  134    143   
features = ["env-filter", "json"]
  135    144   
  136    145   
[features]
  137    146   
behavior-version-latest = []
  138    147   
rustls = ["aws-smithy-runtime/tls-rustls"]
         148  +
default-https-client = ["aws-smithy-runtime/default-https-client"]
  139    149   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
  140    150   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
  141    151   
gated-tests = []
  142         -
default = ["rustls", "rt-tokio"]
         152  +
default = ["rustls", "default-https-client", "rt-tokio"]

tmp-codegen-diff/aws-sdk/sdk/s3control/tests/endpoint_tests.rs

@@ -1,1 +2742,2742 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#![cfg(feature = "test-util")]
    3      3   
#[::tokio::test]
    4      4   
async fn operation_input_test_get_access_point_1() {
    5      5   
    /* documentation: Vanilla outposts without ARN region + access point ARN@us-west-2 */
    6      6   
    /* builtIns: {
    7      7   
        "AWS::Region": "us-west-2"
    8      8   
    } */
    9      9   
    /* clientParams: {} */
   10         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
          10  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
   11     11   
    let conf = {
   12     12   
        #[allow(unused_mut)]
   13     13   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
   14     14   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
   15     15   
        builder.build()
   16     16   
    };
   17     17   
    let client = aws_sdk_s3control::Client::from_conf(conf);
   18     18   
    let _result = dbg!(
   19     19   
        client
   20     20   
            .get_access_point()
   21     21   
            .set_name(::std::option::Option::Some(
   22     22   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
   23     23   
            ))
   24     24   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
   25     25   
            .send()
   26     26   
            .await
   27     27   
    );
   28     28   
    let req = rcvr.expect_request();
   29     29   
    let uri = req.uri().to_string();
   30     30   
    assert!(
   31     31   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
   32     32   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
   33     33   
        uri
   34     34   
    );
   35     35   
}
   36     36   
   37     37   
#[::tokio::test]
   38     38   
async fn operation_input_test_delete_access_point_2() {
   39     39   
    /* documentation: Vanilla outposts without ARN region + access point ARN@us-west-2 */
   40     40   
    /* builtIns: {
   41     41   
        "AWS::Region": "us-west-2"
   42     42   
    } */
   43     43   
    /* clientParams: {} */
   44         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
          44  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
   45     45   
    let conf = {
   46     46   
        #[allow(unused_mut)]
   47     47   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
   48     48   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
   49     49   
        builder.build()
   50     50   
    };
   51     51   
    let client = aws_sdk_s3control::Client::from_conf(conf);
   52     52   
    let _result = dbg!(
   53     53   
        client
   54     54   
            .delete_access_point()
   55     55   
            .set_name(::std::option::Option::Some(
   56     56   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
   57     57   
            ))
   58     58   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
   59     59   
            .send()
   60     60   
            .await
   61     61   
    );
   62     62   
    let req = rcvr.expect_request();
   63     63   
    let uri = req.uri().to_string();
   64     64   
    assert!(
   65     65   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
   66     66   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
   67     67   
        uri
   68     68   
    );
   69     69   
}
   70     70   
   71     71   
#[::tokio::test]
   72     72   
async fn operation_input_test_get_access_point_3() {
   73     73   
    /* documentation: Vanilla outposts with ARN region + access point ARN@us-west-2 */
   74     74   
    /* builtIns: {
   75     75   
        "AWS::Region": "us-west-2"
   76     76   
    } */
   77     77   
    /* clientParams: {} */
   78         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
          78  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
   79     79   
    let conf = {
   80     80   
        #[allow(unused_mut)]
   81     81   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
   82     82   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
   83     83   
        builder.build()
   84     84   
    };
   85     85   
    let client = aws_sdk_s3control::Client::from_conf(conf);
   86     86   
    let _result = dbg!(
   87     87   
        client
   88     88   
            .get_access_point()
   89     89   
            .set_name(::std::option::Option::Some(
   90     90   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
   91     91   
            ))
   92     92   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
   93     93   
            .send()
   94     94   
            .await
   95     95   
    );
   96     96   
    let req = rcvr.expect_request();
   97     97   
    let uri = req.uri().to_string();
   98     98   
    assert!(
   99     99   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
  100    100   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
  101    101   
        uri
  102    102   
    );
  103    103   
}
  104    104   
  105    105   
#[::tokio::test]
  106    106   
async fn operation_input_test_delete_access_point_4() {
  107    107   
    /* documentation: Vanilla outposts with ARN region + access point ARN@us-west-2 */
  108    108   
    /* builtIns: {
  109    109   
        "AWS::Region": "us-west-2"
  110    110   
    } */
  111    111   
    /* clientParams: {} */
  112         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         112  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  113    113   
    let conf = {
  114    114   
        #[allow(unused_mut)]
  115    115   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  116    116   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  117    117   
        builder.build()
  118    118   
    };
  119    119   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  120    120   
    let _result = dbg!(
  121    121   
        client
  122    122   
            .delete_access_point()
  123    123   
            .set_name(::std::option::Option::Some(
  124    124   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  125    125   
            ))
  126    126   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  127    127   
            .send()
  128    128   
            .await
  129    129   
    );
  130    130   
    let req = rcvr.expect_request();
  131    131   
    let uri = req.uri().to_string();
  132    132   
    assert!(
  133    133   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
  134    134   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
  135    135   
        uri
  136    136   
    );
  137    137   
}
  138    138   
  139    139   
#[::tokio::test]
  140    140   
async fn operation_input_test_get_access_point_5() {
  141    141   
    /* documentation: accept an access point ARN@us-west-2 */
  142    142   
    /* builtIns: {
  143    143   
        "AWS::Region": "us-west-2"
  144    144   
    } */
  145    145   
    /* clientParams: {} */
  146         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         146  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  147    147   
    let conf = {
  148    148   
        #[allow(unused_mut)]
  149    149   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  150    150   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  151    151   
        builder.build()
  152    152   
    };
  153    153   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  154    154   
    let _result = dbg!(
  155    155   
        client
  156    156   
            .get_access_point()
  157    157   
            .set_name(::std::option::Option::Some(
  158    158   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  159    159   
            ))
  160    160   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  161    161   
            .send()
  162    162   
            .await
  163    163   
    );
  164    164   
    let req = rcvr.expect_request();
  165    165   
    let uri = req.uri().to_string();
  166    166   
    assert!(
  167    167   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
  168    168   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
  169    169   
        uri
  170    170   
    );
  171    171   
}
  172    172   
  173    173   
#[::tokio::test]
  174    174   
async fn operation_input_test_delete_access_point_6() {
  175    175   
    /* documentation: accept an access point ARN@us-west-2 */
  176    176   
    /* builtIns: {
  177    177   
        "AWS::Region": "us-west-2"
  178    178   
    } */
  179    179   
    /* clientParams: {} */
  180         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         180  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  181    181   
    let conf = {
  182    182   
        #[allow(unused_mut)]
  183    183   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  184    184   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  185    185   
        builder.build()
  186    186   
    };
  187    187   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  188    188   
    let _result = dbg!(
  189    189   
        client
  190    190   
            .delete_access_point()
  191    191   
            .set_name(::std::option::Option::Some(
  192    192   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  193    193   
            ))
  194    194   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  195    195   
            .send()
  196    196   
            .await
  197    197   
    );
  198    198   
    let req = rcvr.expect_request();
  199    199   
    let uri = req.uri().to_string();
  200    200   
    assert!(
  201    201   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
  202    202   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
  203    203   
        uri
  204    204   
    );
  205    205   
}
  206    206   
  207    207   
#[::tokio::test]
  208    208   
async fn operation_input_test_get_access_point_7() {
  209    209   
    /* documentation: vanilla outposts china@cn-north-1 */
  210    210   
    /* builtIns: {
  211    211   
        "AWS::Region": "cn-north-1"
  212    212   
    } */
  213    213   
    /* clientParams: {} */
  214         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         214  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  215    215   
    let conf = {
  216    216   
        #[allow(unused_mut)]
  217    217   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  218    218   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  219    219   
        builder.build()
  220    220   
    };
  221    221   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  222    222   
    let _result = dbg!(
  223    223   
        client
  224    224   
            .get_access_point()
  225    225   
            .set_name(::std::option::Option::Some(
  226    226   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  227    227   
            ))
  228    228   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  229    229   
            .send()
  230    230   
            .await
  231    231   
    );
  232    232   
    let req = rcvr.expect_request();
  233    233   
    let uri = req.uri().to_string();
  234    234   
    assert!(
  235    235   
        uri.starts_with("https://s3-outposts.cn-north-1.amazonaws.com.cn"),
  236    236   
        "expected URI to start with `https://s3-outposts.cn-north-1.amazonaws.com.cn` but it was `{}`",
  237    237   
        uri
  238    238   
    );
  239    239   
}
  240    240   
  241    241   
#[::tokio::test]
  242    242   
async fn operation_input_test_delete_access_point_8() {
  243    243   
    /* documentation: vanilla outposts china@cn-north-1 */
  244    244   
    /* builtIns: {
  245    245   
        "AWS::Region": "cn-north-1"
  246    246   
    } */
  247    247   
    /* clientParams: {} */
  248         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         248  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  249    249   
    let conf = {
  250    250   
        #[allow(unused_mut)]
  251    251   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  252    252   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  253    253   
        builder.build()
  254    254   
    };
  255    255   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  256    256   
    let _result = dbg!(
  257    257   
        client
  258    258   
            .delete_access_point()
  259    259   
            .set_name(::std::option::Option::Some(
  260    260   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  261    261   
            ))
  262    262   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  263    263   
            .send()
  264    264   
            .await
  265    265   
    );
  266    266   
    let req = rcvr.expect_request();
  267    267   
    let uri = req.uri().to_string();
  268    268   
    assert!(
  269    269   
        uri.starts_with("https://s3-outposts.cn-north-1.amazonaws.com.cn"),
  270    270   
        "expected URI to start with `https://s3-outposts.cn-north-1.amazonaws.com.cn` but it was `{}`",
  271    271   
        uri
  272    272   
    );
  273    273   
}
  274    274   
  275    275   
#[::tokio::test]
  276    276   
async fn operation_input_test_get_access_point_9() {
  277    277   
    /* documentation: gov region@us-west-2 */
  278    278   
    /* builtIns: {
  279    279   
        "AWS::Region": "us-west-2"
  280    280   
    } */
  281    281   
    /* clientParams: {} */
  282         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         282  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  283    283   
    let conf = {
  284    284   
        #[allow(unused_mut)]
  285    285   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  286    286   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  287    287   
        builder.build()
  288    288   
    };
  289    289   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  290    290   
    let _result = dbg!(
  291    291   
        client
  292    292   
            .get_access_point()
  293    293   
            .set_name(::std::option::Option::Some(
  294    294   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  295    295   
            ))
  296    296   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  297    297   
            .send()
  298    298   
            .await
  299    299   
    );
  300    300   
    let req = rcvr.expect_request();
  301    301   
    let uri = req.uri().to_string();
  302    302   
    assert!(
  303    303   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
  304    304   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
  305    305   
        uri
  306    306   
    );
  307    307   
}
  308    308   
  309    309   
#[::tokio::test]
  310    310   
async fn operation_input_test_delete_access_point_10() {
  311    311   
    /* documentation: gov region@us-west-2 */
  312    312   
    /* builtIns: {
  313    313   
        "AWS::Region": "us-west-2"
  314    314   
    } */
  315    315   
    /* clientParams: {} */
  316         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         316  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  317    317   
    let conf = {
  318    318   
        #[allow(unused_mut)]
  319    319   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  320    320   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  321    321   
        builder.build()
  322    322   
    };
  323    323   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  324    324   
    let _result = dbg!(
  325    325   
        client
  326    326   
            .delete_access_point()
  327    327   
            .set_name(::std::option::Option::Some(
  328    328   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  329    329   
            ))
  330    330   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  331    331   
            .send()
  332    332   
            .await
  333    333   
    );
  334    334   
    let req = rcvr.expect_request();
  335    335   
    let uri = req.uri().to_string();
  336    336   
    assert!(
  337    337   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
  338    338   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
  339    339   
        uri
  340    340   
    );
  341    341   
}
  342    342   
  343    343   
#[::tokio::test]
  344    344   
async fn operation_input_test_get_access_point_11() {
  345    345   
    /* documentation: gov cloud with fips@us-west-2 */
  346    346   
    /* builtIns: {
  347    347   
        "AWS::Region": "us-west-2",
  348    348   
        "AWS::UseFIPS": true
  349    349   
    } */
  350    350   
    /* clientParams: {} */
  351         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         351  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  352    352   
    let conf = {
  353    353   
        #[allow(unused_mut)]
  354    354   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  355    355   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  356    356   
        let builder = builder.use_fips(true);
  357    357   
        builder.build()
  358    358   
    };
  359    359   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  360    360   
    let _result = dbg!(
  361    361   
        client
  362    362   
            .get_access_point()
  363    363   
            .set_name(::std::option::Option::Some(
  364    364   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  365    365   
            ))
  366    366   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  367    367   
            .send()
  368    368   
            .await
  369    369   
    );
  370    370   
    let req = rcvr.expect_request();
  371    371   
    let uri = req.uri().to_string();
  372    372   
    assert!(
  373    373   
        uri.starts_with("https://s3-outposts-fips.us-west-2.amazonaws.com"),
  374    374   
        "expected URI to start with `https://s3-outposts-fips.us-west-2.amazonaws.com` but it was `{}`",
  375    375   
        uri
  376    376   
    );
  377    377   
}
  378    378   
  379    379   
#[::tokio::test]
  380    380   
async fn operation_input_test_delete_access_point_12() {
  381    381   
    /* documentation: gov cloud with fips@us-west-2 */
  382    382   
    /* builtIns: {
  383    383   
        "AWS::Region": "us-west-2",
  384    384   
        "AWS::UseFIPS": true
  385    385   
    } */
  386    386   
    /* clientParams: {} */
  387         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         387  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  388    388   
    let conf = {
  389    389   
        #[allow(unused_mut)]
  390    390   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  391    391   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
  392    392   
        let builder = builder.use_fips(true);
  393    393   
        builder.build()
  394    394   
    };
  395    395   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  396    396   
    let _result = dbg!(
  397    397   
        client
  398    398   
            .delete_access_point()
  399    399   
            .set_name(::std::option::Option::Some(
  400    400   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  401    401   
            ))
  402    402   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  403    403   
            .send()
  404    404   
            .await
  405    405   
    );
  406    406   
    let req = rcvr.expect_request();
  407    407   
    let uri = req.uri().to_string();
  408    408   
    assert!(
  409    409   
        uri.starts_with("https://s3-outposts-fips.us-west-2.amazonaws.com"),
  410    410   
        "expected URI to start with `https://s3-outposts-fips.us-west-2.amazonaws.com` but it was `{}`",
  411    411   
        uri
  412    412   
    );
  413    413   
}
  414    414   
  415    415   
#[::tokio::test]
  416    416   
async fn operation_input_test_get_access_point_13() {
  417    417   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  418    418   
    /* builtIns: {
  419    419   
        "AWS::Region": "us-gov-west-1",
  420    420   
        "AWS::UseFIPS": true
  421    421   
    } */
  422    422   
    /* clientParams: {} */
  423         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         423  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  424    424   
    let conf = {
  425    425   
        #[allow(unused_mut)]
  426    426   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  427    427   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  428    428   
        let builder = builder.use_fips(true);
  429    429   
        builder.build()
  430    430   
    };
  431    431   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  432    432   
    let _result = dbg!(
  433    433   
        client
  434    434   
            .get_access_point()
  435    435   
            .set_name(::std::option::Option::Some(
  436    436   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  437    437   
            ))
  438    438   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  439    439   
            .send()
  440    440   
            .await
  441    441   
    );
  442    442   
    let req = rcvr.expect_request();
  443    443   
    let uri = req.uri().to_string();
  444    444   
    assert!(
  445    445   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  446    446   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  447    447   
        uri
  448    448   
    );
  449    449   
}
  450    450   
  451    451   
#[::tokio::test]
  452    452   
async fn operation_input_test_delete_access_point_14() {
  453    453   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  454    454   
    /* builtIns: {
  455    455   
        "AWS::Region": "us-gov-west-1",
  456    456   
        "AWS::UseFIPS": true
  457    457   
    } */
  458    458   
    /* clientParams: {} */
  459         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         459  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  460    460   
    let conf = {
  461    461   
        #[allow(unused_mut)]
  462    462   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  463    463   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  464    464   
        let builder = builder.use_fips(true);
  465    465   
        builder.build()
  466    466   
    };
  467    467   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  468    468   
    let _result = dbg!(
  469    469   
        client
  470    470   
            .delete_access_point()
  471    471   
            .set_name(::std::option::Option::Some(
  472    472   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  473    473   
            ))
  474    474   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  475    475   
            .send()
  476    476   
            .await
  477    477   
    );
  478    478   
    let req = rcvr.expect_request();
  479    479   
    let uri = req.uri().to_string();
  480    480   
    assert!(
  481    481   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  482    482   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  483    483   
        uri
  484    484   
    );
  485    485   
}
  486    486   
  487    487   
#[::tokio::test]
  488    488   
async fn operation_input_test_get_access_point_15() {
  489    489   
    /* documentation: gov region@cn-north-1 */
  490    490   
    /* builtIns: {
  491    491   
        "AWS::Region": "cn-north-1"
  492    492   
    } */
  493    493   
    /* clientParams: {} */
  494         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         494  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  495    495   
    let conf = {
  496    496   
        #[allow(unused_mut)]
  497    497   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  498    498   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  499    499   
        builder.build()
  500    500   
    };
  501    501   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  502    502   
    let _result = dbg!(
  503    503   
        client
  504    504   
            .get_access_point()
  505    505   
            .set_name(::std::option::Option::Some(
  506    506   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  507    507   
            ))
  508    508   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  509    509   
            .send()
  510    510   
            .await
  511    511   
    );
  512    512   
    let req = rcvr.expect_request();
  513    513   
    let uri = req.uri().to_string();
  514    514   
    assert!(
  515    515   
        uri.starts_with("https://s3-outposts.cn-north-1.amazonaws.com.cn"),
  516    516   
        "expected URI to start with `https://s3-outposts.cn-north-1.amazonaws.com.cn` but it was `{}`",
  517    517   
        uri
  518    518   
    );
  519    519   
}
  520    520   
  521    521   
#[::tokio::test]
  522    522   
async fn operation_input_test_delete_access_point_16() {
  523    523   
    /* documentation: gov region@cn-north-1 */
  524    524   
    /* builtIns: {
  525    525   
        "AWS::Region": "cn-north-1"
  526    526   
    } */
  527    527   
    /* clientParams: {} */
  528         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         528  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  529    529   
    let conf = {
  530    530   
        #[allow(unused_mut)]
  531    531   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  532    532   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  533    533   
        builder.build()
  534    534   
    };
  535    535   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  536    536   
    let _result = dbg!(
  537    537   
        client
  538    538   
            .delete_access_point()
  539    539   
            .set_name(::std::option::Option::Some(
  540    540   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  541    541   
            ))
  542    542   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  543    543   
            .send()
  544    544   
            .await
  545    545   
    );
  546    546   
    let req = rcvr.expect_request();
  547    547   
    let uri = req.uri().to_string();
  548    548   
    assert!(
  549    549   
        uri.starts_with("https://s3-outposts.cn-north-1.amazonaws.com.cn"),
  550    550   
        "expected URI to start with `https://s3-outposts.cn-north-1.amazonaws.com.cn` but it was `{}`",
  551    551   
        uri
  552    552   
    );
  553    553   
}
  554    554   
  555    555   
#[::tokio::test]
  556    556   
async fn operation_input_test_get_access_point_17() {
  557    557   
    /* documentation: gov cloud with fips@cn-north-1 */
  558    558   
    /* builtIns: {
  559    559   
        "AWS::Region": "cn-north-1",
  560    560   
        "AWS::UseFIPS": true
  561    561   
    } */
  562    562   
    /* clientParams: {} */
  563         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         563  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  564    564   
    let conf = {
  565    565   
        #[allow(unused_mut)]
  566    566   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  567    567   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  568    568   
        let builder = builder.use_fips(true);
  569    569   
        builder.build()
  570    570   
    };
  571    571   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  572    572   
    let _result = dbg!(
  573    573   
        client
  574    574   
            .get_access_point()
  575    575   
            .set_name(::std::option::Option::Some(
  576    576   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  577    577   
            ))
  578    578   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  579    579   
            .send()
  580    580   
            .await
  581    581   
    );
  582    582   
    let req = rcvr.expect_request();
  583    583   
    let uri = req.uri().to_string();
  584    584   
    assert!(
  585    585   
        uri.starts_with("https://s3-outposts-fips.cn-north-1.amazonaws.com.cn"),
  586    586   
        "expected URI to start with `https://s3-outposts-fips.cn-north-1.amazonaws.com.cn` but it was `{}`",
  587    587   
        uri
  588    588   
    );
  589    589   
}
  590    590   
  591    591   
#[::tokio::test]
  592    592   
async fn operation_input_test_delete_access_point_18() {
  593    593   
    /* documentation: gov cloud with fips@cn-north-1 */
  594    594   
    /* builtIns: {
  595    595   
        "AWS::Region": "cn-north-1",
  596    596   
        "AWS::UseFIPS": true
  597    597   
    } */
  598    598   
    /* clientParams: {} */
  599         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         599  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  600    600   
    let conf = {
  601    601   
        #[allow(unused_mut)]
  602    602   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  603    603   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
  604    604   
        let builder = builder.use_fips(true);
  605    605   
        builder.build()
  606    606   
    };
  607    607   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  608    608   
    let _result = dbg!(
  609    609   
        client
  610    610   
            .delete_access_point()
  611    611   
            .set_name(::std::option::Option::Some(
  612    612   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  613    613   
            ))
  614    614   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  615    615   
            .send()
  616    616   
            .await
  617    617   
    );
  618    618   
    let req = rcvr.expect_request();
  619    619   
    let uri = req.uri().to_string();
  620    620   
    assert!(
  621    621   
        uri.starts_with("https://s3-outposts-fips.cn-north-1.amazonaws.com.cn"),
  622    622   
        "expected URI to start with `https://s3-outposts-fips.cn-north-1.amazonaws.com.cn` but it was `{}`",
  623    623   
        uri
  624    624   
    );
  625    625   
}
  626    626   
  627    627   
#[::tokio::test]
  628    628   
async fn operation_input_test_get_access_point_19() {
  629    629   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  630    630   
    /* builtIns: {
  631    631   
        "AWS::Region": "us-gov-west-1",
  632    632   
        "AWS::UseFIPS": true
  633    633   
    } */
  634    634   
    /* clientParams: {} */
  635         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         635  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  636    636   
    let conf = {
  637    637   
        #[allow(unused_mut)]
  638    638   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  639    639   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  640    640   
        let builder = builder.use_fips(true);
  641    641   
        builder.build()
  642    642   
    };
  643    643   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  644    644   
    let _result = dbg!(
  645    645   
        client
  646    646   
            .get_access_point()
  647    647   
            .set_name(::std::option::Option::Some(
  648    648   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  649    649   
            ))
  650    650   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  651    651   
            .send()
  652    652   
            .await
  653    653   
    );
  654    654   
    let req = rcvr.expect_request();
  655    655   
    let uri = req.uri().to_string();
  656    656   
    assert!(
  657    657   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  658    658   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  659    659   
        uri
  660    660   
    );
  661    661   
}
  662    662   
  663    663   
#[::tokio::test]
  664    664   
async fn operation_input_test_delete_access_point_20() {
  665    665   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  666    666   
    /* builtIns: {
  667    667   
        "AWS::Region": "us-gov-west-1",
  668    668   
        "AWS::UseFIPS": true
  669    669   
    } */
  670    670   
    /* clientParams: {} */
  671         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         671  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  672    672   
    let conf = {
  673    673   
        #[allow(unused_mut)]
  674    674   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  675    675   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  676    676   
        let builder = builder.use_fips(true);
  677    677   
        builder.build()
  678    678   
    };
  679    679   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  680    680   
    let _result = dbg!(
  681    681   
        client
  682    682   
            .delete_access_point()
  683    683   
            .set_name(::std::option::Option::Some(
  684    684   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  685    685   
            ))
  686    686   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  687    687   
            .send()
  688    688   
            .await
  689    689   
    );
  690    690   
    let req = rcvr.expect_request();
  691    691   
    let uri = req.uri().to_string();
  692    692   
    assert!(
  693    693   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  694    694   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  695    695   
        uri
  696    696   
    );
  697    697   
}
  698    698   
  699    699   
#[::tokio::test]
  700    700   
async fn operation_input_test_get_access_point_21() {
  701    701   
    /* documentation: gov region@af-south-1 */
  702    702   
    /* builtIns: {
  703    703   
        "AWS::Region": "af-south-1"
  704    704   
    } */
  705    705   
    /* clientParams: {} */
  706         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         706  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  707    707   
    let conf = {
  708    708   
        #[allow(unused_mut)]
  709    709   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  710    710   
        let builder = builder.region(::aws_types::region::Region::new("af-south-1"));
  711    711   
        builder.build()
  712    712   
    };
  713    713   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  714    714   
    let _result = dbg!(
  715    715   
        client
  716    716   
            .get_access_point()
  717    717   
            .set_name(::std::option::Option::Some(
  718    718   
                "arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  719    719   
            ))
  720    720   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  721    721   
            .send()
  722    722   
            .await
  723    723   
    );
  724    724   
    let req = rcvr.expect_request();
  725    725   
    let uri = req.uri().to_string();
  726    726   
    assert!(
  727    727   
        uri.starts_with("https://s3-outposts.af-south-1.amazonaws.com"),
  728    728   
        "expected URI to start with `https://s3-outposts.af-south-1.amazonaws.com` but it was `{}`",
  729    729   
        uri
  730    730   
    );
  731    731   
}
  732    732   
  733    733   
#[::tokio::test]
  734    734   
async fn operation_input_test_delete_access_point_22() {
  735    735   
    /* documentation: gov region@af-south-1 */
  736    736   
    /* builtIns: {
  737    737   
        "AWS::Region": "af-south-1"
  738    738   
    } */
  739    739   
    /* clientParams: {} */
  740         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         740  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  741    741   
    let conf = {
  742    742   
        #[allow(unused_mut)]
  743    743   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  744    744   
        let builder = builder.region(::aws_types::region::Region::new("af-south-1"));
  745    745   
        builder.build()
  746    746   
    };
  747    747   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  748    748   
    let _result = dbg!(
  749    749   
        client
  750    750   
            .delete_access_point()
  751    751   
            .set_name(::std::option::Option::Some(
  752    752   
                "arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  753    753   
            ))
  754    754   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  755    755   
            .send()
  756    756   
            .await
  757    757   
    );
  758    758   
    let req = rcvr.expect_request();
  759    759   
    let uri = req.uri().to_string();
  760    760   
    assert!(
  761    761   
        uri.starts_with("https://s3-outposts.af-south-1.amazonaws.com"),
  762    762   
        "expected URI to start with `https://s3-outposts.af-south-1.amazonaws.com` but it was `{}`",
  763    763   
        uri
  764    764   
    );
  765    765   
}
  766    766   
  767    767   
#[::tokio::test]
  768    768   
async fn operation_input_test_get_access_point_23() {
  769    769   
    /* documentation: gov cloud with fips@af-south-1 */
  770    770   
    /* builtIns: {
  771    771   
        "AWS::Region": "af-south-1",
  772    772   
        "AWS::UseFIPS": true
  773    773   
    } */
  774    774   
    /* clientParams: {} */
  775         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         775  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  776    776   
    let conf = {
  777    777   
        #[allow(unused_mut)]
  778    778   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  779    779   
        let builder = builder.region(::aws_types::region::Region::new("af-south-1"));
  780    780   
        let builder = builder.use_fips(true);
  781    781   
        builder.build()
  782    782   
    };
  783    783   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  784    784   
    let _result = dbg!(
  785    785   
        client
  786    786   
            .get_access_point()
  787    787   
            .set_name(::std::option::Option::Some(
  788    788   
                "arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  789    789   
            ))
  790    790   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  791    791   
            .send()
  792    792   
            .await
  793    793   
    );
  794    794   
    let req = rcvr.expect_request();
  795    795   
    let uri = req.uri().to_string();
  796    796   
    assert!(
  797    797   
        uri.starts_with("https://s3-outposts-fips.af-south-1.amazonaws.com"),
  798    798   
        "expected URI to start with `https://s3-outposts-fips.af-south-1.amazonaws.com` but it was `{}`",
  799    799   
        uri
  800    800   
    );
  801    801   
}
  802    802   
  803    803   
#[::tokio::test]
  804    804   
async fn operation_input_test_delete_access_point_24() {
  805    805   
    /* documentation: gov cloud with fips@af-south-1 */
  806    806   
    /* builtIns: {
  807    807   
        "AWS::Region": "af-south-1",
  808    808   
        "AWS::UseFIPS": true
  809    809   
    } */
  810    810   
    /* clientParams: {} */
  811         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         811  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  812    812   
    let conf = {
  813    813   
        #[allow(unused_mut)]
  814    814   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  815    815   
        let builder = builder.region(::aws_types::region::Region::new("af-south-1"));
  816    816   
        let builder = builder.use_fips(true);
  817    817   
        builder.build()
  818    818   
    };
  819    819   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  820    820   
    let _result = dbg!(
  821    821   
        client
  822    822   
            .delete_access_point()
  823    823   
            .set_name(::std::option::Option::Some(
  824    824   
                "arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  825    825   
            ))
  826    826   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  827    827   
            .send()
  828    828   
            .await
  829    829   
    );
  830    830   
    let req = rcvr.expect_request();
  831    831   
    let uri = req.uri().to_string();
  832    832   
    assert!(
  833    833   
        uri.starts_with("https://s3-outposts-fips.af-south-1.amazonaws.com"),
  834    834   
        "expected URI to start with `https://s3-outposts-fips.af-south-1.amazonaws.com` but it was `{}`",
  835    835   
        uri
  836    836   
    );
  837    837   
}
  838    838   
  839    839   
#[::tokio::test]
  840    840   
async fn operation_input_test_get_access_point_25() {
  841    841   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  842    842   
    /* builtIns: {
  843    843   
        "AWS::Region": "us-gov-west-1",
  844    844   
        "AWS::UseFIPS": true
  845    845   
    } */
  846    846   
    /* clientParams: {} */
  847         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         847  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  848    848   
    let conf = {
  849    849   
        #[allow(unused_mut)]
  850    850   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  851    851   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  852    852   
        let builder = builder.use_fips(true);
  853    853   
        builder.build()
  854    854   
    };
  855    855   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  856    856   
    let _result = dbg!(
  857    857   
        client
  858    858   
            .get_access_point()
  859    859   
            .set_name(::std::option::Option::Some(
  860    860   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  861    861   
            ))
  862    862   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  863    863   
            .send()
  864    864   
            .await
  865    865   
    );
  866    866   
    let req = rcvr.expect_request();
  867    867   
    let uri = req.uri().to_string();
  868    868   
    assert!(
  869    869   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  870    870   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  871    871   
        uri
  872    872   
    );
  873    873   
}
  874    874   
  875    875   
#[::tokio::test]
  876    876   
async fn operation_input_test_delete_access_point_26() {
  877    877   
    /* documentation: govcloud with fips + arn region@us-gov-west-1 */
  878    878   
    /* builtIns: {
  879    879   
        "AWS::Region": "us-gov-west-1",
  880    880   
        "AWS::UseFIPS": true
  881    881   
    } */
  882    882   
    /* clientParams: {} */
  883         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         883  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  884    884   
    let conf = {
  885    885   
        #[allow(unused_mut)]
  886    886   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  887    887   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
  888    888   
        let builder = builder.use_fips(true);
  889    889   
        builder.build()
  890    890   
    };
  891    891   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  892    892   
    let _result = dbg!(
  893    893   
        client
  894    894   
            .delete_access_point()
  895    895   
            .set_name(::std::option::Option::Some(
  896    896   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
  897    897   
            ))
  898    898   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
  899    899   
            .send()
  900    900   
            .await
  901    901   
    );
  902    902   
    let req = rcvr.expect_request();
  903    903   
    let uri = req.uri().to_string();
  904    904   
    assert!(
  905    905   
        uri.starts_with("https://s3-outposts-fips.us-gov-east-1.amazonaws.com"),
  906    906   
        "expected URI to start with `https://s3-outposts-fips.us-gov-east-1.amazonaws.com` but it was `{}`",
  907    907   
        uri
  908    908   
    );
  909    909   
}
  910    910   
  911    911   
#[::tokio::test]
  912    912   
async fn operation_input_test_create_bucket_27() {
  913    913   
    /* documentation: CreateBucket + OutpostId = outposts endpoint@us-east-2 */
  914    914   
    /* builtIns: {
  915    915   
        "AWS::Region": "us-east-2"
  916    916   
    } */
  917    917   
    /* clientParams: {} */
  918         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         918  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  919    919   
    let conf = {
  920    920   
        #[allow(unused_mut)]
  921    921   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  922    922   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
  923    923   
        builder.build()
  924    924   
    };
  925    925   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  926    926   
    let _result = dbg!(
  927    927   
        client
  928    928   
            .create_bucket()
  929    929   
            .set_bucket(::std::option::Option::Some("blah".to_owned()))
  930    930   
            .set_outpost_id(::std::option::Option::Some("123".to_owned()))
  931    931   
            .send()
  932    932   
            .await
  933    933   
    );
  934    934   
    let req = rcvr.expect_request();
  935    935   
    let uri = req.uri().to_string();
  936    936   
    assert!(
  937    937   
        uri.starts_with("https://s3-outposts.us-east-2.amazonaws.com"),
  938    938   
        "expected URI to start with `https://s3-outposts.us-east-2.amazonaws.com` but it was `{}`",
  939    939   
        uri
  940    940   
    );
  941    941   
}
  942    942   
  943    943   
#[::tokio::test]
  944    944   
async fn operation_input_test_create_bucket_28() {
  945    945   
    /* documentation: CreateBucket + OutpostId with fips = outposts endpoint@us-east-2 */
  946    946   
    /* builtIns: {
  947    947   
        "AWS::Region": "us-east-2",
  948    948   
        "AWS::UseFIPS": true
  949    949   
    } */
  950    950   
    /* clientParams: {} */
  951         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         951  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  952    952   
    let conf = {
  953    953   
        #[allow(unused_mut)]
  954    954   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  955    955   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
  956    956   
        let builder = builder.use_fips(true);
  957    957   
        builder.build()
  958    958   
    };
  959    959   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  960    960   
    let _result = dbg!(
  961    961   
        client
  962    962   
            .create_bucket()
  963    963   
            .set_bucket(::std::option::Option::Some("blah".to_owned()))
  964    964   
            .set_outpost_id(::std::option::Option::Some("123".to_owned()))
  965    965   
            .send()
  966    966   
            .await
  967    967   
    );
  968    968   
    let req = rcvr.expect_request();
  969    969   
    let uri = req.uri().to_string();
  970    970   
    assert!(
  971    971   
        uri.starts_with("https://s3-outposts-fips.us-east-2.amazonaws.com"),
  972    972   
        "expected URI to start with `https://s3-outposts-fips.us-east-2.amazonaws.com` but it was `{}`",
  973    973   
        uri
  974    974   
    );
  975    975   
}
  976    976   
  977    977   
#[::tokio::test]
  978    978   
async fn operation_input_test_create_bucket_29() {
  979    979   
    /* documentation: CreateBucket without OutpostId = regular endpoint@us-east-2 */
  980    980   
    /* builtIns: {
  981    981   
        "AWS::Region": "us-east-2"
  982    982   
    } */
  983    983   
    /* clientParams: {} */
  984         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         984  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
  985    985   
    let conf = {
  986    986   
        #[allow(unused_mut)]
  987    987   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
  988    988   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
  989    989   
        builder.build()
  990    990   
    };
  991    991   
    let client = aws_sdk_s3control::Client::from_conf(conf);
  992    992   
    let _result = dbg!(
  993    993   
        client
  994    994   
            .create_bucket()
  995    995   
            .set_bucket(::std::option::Option::Some("blah".to_owned()))
  996    996   
            .send()
  997    997   
            .await
  998    998   
    );
  999    999   
    let req = rcvr.expect_request();
 1000   1000   
    let uri = req.uri().to_string();
 1001   1001   
    assert!(
 1002   1002   
        uri.starts_with("https://s3-control.us-east-2.amazonaws.com"),
 1003   1003   
        "expected URI to start with `https://s3-control.us-east-2.amazonaws.com` but it was `{}`",
 1004   1004   
        uri
 1005   1005   
    );
 1006   1006   
}
 1007   1007   
 1008   1008   
#[::tokio::test]
 1009   1009   
async fn operation_input_test_list_regional_buckets_30() {
 1010   1010   
    /* documentation: ListRegionalBuckets + OutpostId = outposts endpoint@us-east-2 */
 1011   1011   
    /* builtIns: {
 1012   1012   
        "AWS::Region": "us-east-2"
 1013   1013   
    } */
 1014   1014   
    /* clientParams: {} */
 1015         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1015  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1016   1016   
    let conf = {
 1017   1017   
        #[allow(unused_mut)]
 1018   1018   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1019   1019   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1020   1020   
        builder.build()
 1021   1021   
    };
 1022   1022   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1023   1023   
    let _result = dbg!(
 1024   1024   
        client
 1025   1025   
            .list_regional_buckets()
 1026   1026   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1027   1027   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 1028   1028   
            .send()
 1029   1029   
            .await
 1030   1030   
    );
 1031   1031   
    let req = rcvr.expect_request();
 1032   1032   
    let uri = req.uri().to_string();
 1033   1033   
    assert!(
 1034   1034   
        uri.starts_with("https://s3-outposts.us-east-2.amazonaws.com"),
 1035   1035   
        "expected URI to start with `https://s3-outposts.us-east-2.amazonaws.com` but it was `{}`",
 1036   1036   
        uri
 1037   1037   
    );
 1038   1038   
}
 1039   1039   
 1040   1040   
#[::tokio::test]
 1041   1041   
async fn operation_input_test_list_regional_buckets_31() {
 1042   1042   
    /* documentation: ListRegionalBuckets without OutpostId = regular endpoint@us-east-2 */
 1043   1043   
    /* builtIns: {
 1044   1044   
        "AWS::Region": "us-east-2"
 1045   1045   
    } */
 1046   1046   
    /* clientParams: {} */
 1047         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1047  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1048   1048   
    let conf = {
 1049   1049   
        #[allow(unused_mut)]
 1050   1050   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1051   1051   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1052   1052   
        builder.build()
 1053   1053   
    };
 1054   1054   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1055   1055   
    let _result = dbg!(
 1056   1056   
        client
 1057   1057   
            .list_regional_buckets()
 1058   1058   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1059   1059   
            .send()
 1060   1060   
            .await
 1061   1061   
    );
 1062   1062   
    let req = rcvr.expect_request();
 1063   1063   
    let uri = req.uri().to_string();
 1064   1064   
    assert!(
 1065   1065   
        uri.starts_with("https://123456789012.s3-control.us-east-2.amazonaws.com"),
 1066   1066   
        "expected URI to start with `https://123456789012.s3-control.us-east-2.amazonaws.com` but it was `{}`",
 1067   1067   
        uri
 1068   1068   
    );
 1069   1069   
}
 1070   1070   
 1071   1071   
#[::tokio::test]
 1072   1072   
async fn operation_input_test_list_regional_buckets_32() {
 1073   1073   
    /* documentation: ListRegionalBucket + OutpostId with fips = outposts endpoint@us-east-2 */
 1074   1074   
    /* builtIns: {
 1075   1075   
        "AWS::Region": "us-east-2",
 1076   1076   
        "AWS::UseFIPS": true
 1077   1077   
    } */
 1078   1078   
    /* clientParams: {} */
 1079         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1079  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1080   1080   
    let conf = {
 1081   1081   
        #[allow(unused_mut)]
 1082   1082   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1083   1083   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1084   1084   
        let builder = builder.use_fips(true);
 1085   1085   
        builder.build()
 1086   1086   
    };
 1087   1087   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1088   1088   
    let _result = dbg!(
 1089   1089   
        client
 1090   1090   
            .list_regional_buckets()
 1091   1091   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1092   1092   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 1093   1093   
            .send()
 1094   1094   
            .await
 1095   1095   
    );
 1096   1096   
    let req = rcvr.expect_request();
 1097   1097   
    let uri = req.uri().to_string();
 1098   1098   
    assert!(
 1099   1099   
        uri.starts_with("https://s3-outposts-fips.us-east-2.amazonaws.com"),
 1100   1100   
        "expected URI to start with `https://s3-outposts-fips.us-east-2.amazonaws.com` but it was `{}`",
 1101   1101   
        uri
 1102   1102   
    );
 1103   1103   
}
 1104   1104   
 1105   1105   
#[::tokio::test]
 1106   1106   
async fn operation_input_test_get_access_point_33() {
 1107   1107   
    /* documentation: Account ID set inline and in ARN but they both match@us-west-2 */
 1108   1108   
    /* builtIns: {
 1109   1109   
        "AWS::Region": "us-west-2",
 1110   1110   
        "AWS::S3Control::UseArnRegion": false
 1111   1111   
    } */
 1112   1112   
    /* clientParams: {} */
 1113         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1113  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1114   1114   
    let conf = {
 1115   1115   
        #[allow(unused_mut)]
 1116   1116   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1117   1117   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1118   1118   
        let builder = builder.use_arn_region(false);
 1119   1119   
        builder.build()
 1120   1120   
    };
 1121   1121   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1122   1122   
    let _result = dbg!(
 1123   1123   
        client
 1124   1124   
            .get_access_point()
 1125   1125   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1126   1126   
            .set_name(::std::option::Option::Some(
 1127   1127   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 1128   1128   
            ))
 1129   1129   
            .send()
 1130   1130   
            .await
 1131   1131   
    );
 1132   1132   
    let req = rcvr.expect_request();
 1133   1133   
    let uri = req.uri().to_string();
 1134   1134   
    assert!(
 1135   1135   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
 1136   1136   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
 1137   1137   
        uri
 1138   1138   
    );
 1139   1139   
}
 1140   1140   
 1141   1141   
#[::tokio::test]
 1142   1142   
async fn operation_input_test_get_access_point_34() {
 1143   1143   
    /* documentation: Account ID set inline and in ARN and they do not match@us-west-2 */
 1144   1144   
    /* builtIns: {
 1145   1145   
        "AWS::Region": "us-west-2",
 1146   1146   
        "AWS::S3Control::UseArnRegion": false
 1147   1147   
    } */
 1148   1148   
    /* clientParams: {} */
 1149         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1149  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1150   1150   
    let conf = {
 1151   1151   
        #[allow(unused_mut)]
 1152   1152   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1153   1153   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1154   1154   
        let builder = builder.use_arn_region(false);
 1155   1155   
        builder.build()
 1156   1156   
    };
 1157   1157   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1158   1158   
    let _result = dbg!(
 1159   1159   
        client
 1160   1160   
            .get_access_point()
 1161   1161   
            .set_account_id(::std::option::Option::Some("999999999999".to_owned()))
 1162   1162   
            .set_name(::std::option::Option::Some(
 1163   1163   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 1164   1164   
            ))
 1165   1165   
            .send()
 1166   1166   
            .await
 1167   1167   
    );
 1168   1168   
    rcvr.expect_no_request();
 1169   1169   
    let error = _result.expect_err("expected error: Invalid ARN: the accountId specified in the ARN (`123456789012`) does not match the parameter (`999999999999`) [Account ID set inline and in ARN and they do not match@us-west-2]");
 1170   1170   
    assert!(
 1171   1171   
                                            format!("{:?}", error).contains("Invalid ARN: the accountId specified in the ARN (`123456789012`) does not match the parameter (`999999999999`)"),
 1172   1172   
                                            "expected error to contain `Invalid ARN: the accountId specified in the ARN (`123456789012`) does not match the parameter (`999999999999`)` but it was {:?}", error
 1173   1173   
                                        );
 1174   1174   
}
 1175   1175   
 1176   1176   
#[::tokio::test]
 1177   1177   
async fn operation_input_test_get_access_point_35() {
 1178   1178   
    /* documentation: get access point prefixed with account id using endpoint url@us-west-2 */
 1179   1179   
    /* builtIns: {
 1180   1180   
        "AWS::Region": "us-west-2",
 1181   1181   
        "SDK::Endpoint": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com"
 1182   1182   
    } */
 1183   1183   
    /* clientParams: {} */
 1184         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1184  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1185   1185   
    let conf = {
 1186   1186   
        #[allow(unused_mut)]
 1187   1187   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1188   1188   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1189   1189   
        let builder = builder.endpoint_url("https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com");
 1190   1190   
        builder.build()
 1191   1191   
    };
 1192   1192   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1193   1193   
    let _result = dbg!(
 1194   1194   
        client
 1195   1195   
            .get_access_point()
 1196   1196   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1197   1197   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 1198   1198   
            .send()
 1199   1199   
            .await
 1200   1200   
    );
 1201   1201   
    let req = rcvr.expect_request();
 1202   1202   
    let uri = req.uri().to_string();
 1203   1203   
    assert!(
 1204   1204   
        uri.starts_with("https://123456789012.control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com"),
 1205   1205   
        "expected URI to start with `https://123456789012.control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com` but it was `{}`",
 1206   1206   
        uri
 1207   1207   
    );
 1208   1208   
}
 1209   1209   
 1210   1210   
#[::tokio::test]
 1211   1211   
async fn operation_input_test_get_access_point_36() {
 1212   1212   
    /* documentation: endpoint url with s3-outposts@us-west-2 */
 1213   1213   
    /* builtIns: {
 1214   1214   
        "AWS::Region": "us-west-2",
 1215   1215   
        "SDK::Endpoint": "https://beta.example.com"
 1216   1216   
    } */
 1217   1217   
    /* clientParams: {} */
 1218         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1218  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1219   1219   
    let conf = {
 1220   1220   
        #[allow(unused_mut)]
 1221   1221   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1222   1222   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1223   1223   
        let builder = builder.endpoint_url("https://beta.example.com");
 1224   1224   
        builder.build()
 1225   1225   
    };
 1226   1226   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1227   1227   
    let _result = dbg!(
 1228   1228   
        client
 1229   1229   
            .get_access_point()
 1230   1230   
            .set_name(::std::option::Option::Some(
 1231   1231   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 1232   1232   
            ))
 1233   1233   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1234   1234   
            .send()
 1235   1235   
            .await
 1236   1236   
    );
 1237   1237   
    let req = rcvr.expect_request();
 1238   1238   
    let uri = req.uri().to_string();
 1239   1239   
    assert!(
 1240   1240   
        uri.starts_with("https://beta.example.com"),
 1241   1241   
        "expected URI to start with `https://beta.example.com` but it was `{}`",
 1242   1242   
        uri
 1243   1243   
    );
 1244   1244   
}
 1245   1245   
 1246   1246   
#[::tokio::test]
 1247   1247   
async fn operation_input_test_get_bucket_37() {
 1248   1248   
    /* documentation: get bucket with endpoint_url@us-west-2 */
 1249   1249   
    /* builtIns: {
 1250   1250   
        "AWS::Region": "us-west-2",
 1251   1251   
        "SDK::Endpoint": "https://beta.example.com"
 1252   1252   
    } */
 1253   1253   
    /* clientParams: {} */
 1254         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1254  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1255   1255   
    let conf = {
 1256   1256   
        #[allow(unused_mut)]
 1257   1257   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1258   1258   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1259   1259   
        let builder = builder.endpoint_url("https://beta.example.com");
 1260   1260   
        builder.build()
 1261   1261   
    };
 1262   1262   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1263   1263   
    let _result = dbg!(
 1264   1264   
        client
 1265   1265   
            .get_bucket()
 1266   1266   
            .set_bucket(::std::option::Option::Some(
 1267   1267   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1268   1268   
            ))
 1269   1269   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1270   1270   
            .send()
 1271   1271   
            .await
 1272   1272   
    );
 1273   1273   
    let req = rcvr.expect_request();
 1274   1274   
    let uri = req.uri().to_string();
 1275   1275   
    assert!(
 1276   1276   
        uri.starts_with("https://beta.example.com"),
 1277   1277   
        "expected URI to start with `https://beta.example.com` but it was `{}`",
 1278   1278   
        uri
 1279   1279   
    );
 1280   1280   
}
 1281   1281   
 1282   1282   
#[::tokio::test]
 1283   1283   
async fn operation_input_test_list_regional_buckets_38() {
 1284   1284   
    /* documentation: ListRegionalBucket + OutpostId endpoint url@us-east-2 */
 1285   1285   
    /* builtIns: {
 1286   1286   
        "AWS::Region": "us-east-2",
 1287   1287   
        "SDK::Endpoint": "https://beta.example.com"
 1288   1288   
    } */
 1289   1289   
    /* clientParams: {} */
 1290         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1290  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1291   1291   
    let conf = {
 1292   1292   
        #[allow(unused_mut)]
 1293   1293   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1294   1294   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1295   1295   
        let builder = builder.endpoint_url("https://beta.example.com");
 1296   1296   
        builder.build()
 1297   1297   
    };
 1298   1298   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1299   1299   
    let _result = dbg!(
 1300   1300   
        client
 1301   1301   
            .list_regional_buckets()
 1302   1302   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1303   1303   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 1304   1304   
            .send()
 1305   1305   
            .await
 1306   1306   
    );
 1307   1307   
    let req = rcvr.expect_request();
 1308   1308   
    let uri = req.uri().to_string();
 1309   1309   
    assert!(
 1310   1310   
        uri.starts_with("https://beta.example.com"),
 1311   1311   
        "expected URI to start with `https://beta.example.com` but it was `{}`",
 1312   1312   
        uri
 1313   1313   
    );
 1314   1314   
}
 1315   1315   
 1316   1316   
#[::tokio::test]
 1317   1317   
async fn operation_input_test_list_regional_buckets_39() {
 1318   1318   
    /* documentation: ListRegionalBucket + OutpostId + fips + endpoint url@us-east-2 */
 1319   1319   
    /* builtIns: {
 1320   1320   
        "AWS::Region": "us-east-2",
 1321   1321   
        "AWS::UseFIPS": true,
 1322   1322   
        "SDK::Endpoint": "https://beta.example.com"
 1323   1323   
    } */
 1324   1324   
    /* clientParams: {} */
 1325         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1325  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1326   1326   
    let conf = {
 1327   1327   
        #[allow(unused_mut)]
 1328   1328   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1329   1329   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1330   1330   
        let builder = builder.use_fips(true);
 1331   1331   
        let builder = builder.endpoint_url("https://beta.example.com");
 1332   1332   
        builder.build()
 1333   1333   
    };
 1334   1334   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1335   1335   
    let _result = dbg!(
 1336   1336   
        client
 1337   1337   
            .list_regional_buckets()
 1338   1338   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1339   1339   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 1340   1340   
            .send()
 1341   1341   
            .await
 1342   1342   
    );
 1343   1343   
    let req = rcvr.expect_request();
 1344   1344   
    let uri = req.uri().to_string();
 1345   1345   
    assert!(
 1346   1346   
        uri.starts_with("https://beta.example.com"),
 1347   1347   
        "expected URI to start with `https://beta.example.com` but it was `{}`",
 1348   1348   
        uri
 1349   1349   
    );
 1350   1350   
}
 1351   1351   
 1352   1352   
#[::tokio::test]
 1353   1353   
async fn operation_input_test_create_bucket_40() {
 1354   1354   
    /* documentation: CreateBucket + OutpostId endpoint url@us-east-2 */
 1355   1355   
    /* builtIns: {
 1356   1356   
        "AWS::Region": "us-east-2",
 1357   1357   
        "AWS::UseFIPS": true,
 1358   1358   
        "SDK::Endpoint": "https://beta.example.com"
 1359   1359   
    } */
 1360   1360   
    /* clientParams: {} */
 1361         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1361  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1362   1362   
    let conf = {
 1363   1363   
        #[allow(unused_mut)]
 1364   1364   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1365   1365   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1366   1366   
        let builder = builder.use_fips(true);
 1367   1367   
        let builder = builder.endpoint_url("https://beta.example.com");
 1368   1368   
        builder.build()
 1369   1369   
    };
 1370   1370   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1371   1371   
    let _result = dbg!(
 1372   1372   
        client
 1373   1373   
            .create_bucket()
 1374   1374   
            .set_bucket(::std::option::Option::Some("blah".to_owned()))
 1375   1375   
            .set_outpost_id(::std::option::Option::Some("123".to_owned()))
 1376   1376   
            .send()
 1377   1377   
            .await
 1378   1378   
    );
 1379   1379   
    let req = rcvr.expect_request();
 1380   1380   
    let uri = req.uri().to_string();
 1381   1381   
    assert!(
 1382   1382   
        uri.starts_with("https://beta.example.com"),
 1383   1383   
        "expected URI to start with `https://beta.example.com` but it was `{}`",
 1384   1384   
        uri
 1385   1385   
    );
 1386   1386   
}
 1387   1387   
 1388   1388   
#[::tokio::test]
 1389   1389   
async fn operation_input_test_create_access_point_41() {
 1390   1390   
    /* documentation: vanilla bucket arn requires account id@us-west-2 */
 1391   1391   
    /* builtIns: {
 1392   1392   
        "AWS::Region": "us-west-2"
 1393   1393   
    } */
 1394   1394   
    /* clientParams: {} */
 1395         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1395  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1396   1396   
    let conf = {
 1397   1397   
        #[allow(unused_mut)]
 1398   1398   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1399   1399   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1400   1400   
        builder.build()
 1401   1401   
    };
 1402   1402   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1403   1403   
    let _result = dbg!(
 1404   1404   
        client
 1405   1405   
            .create_access_point()
 1406   1406   
            .set_bucket(::std::option::Option::Some(
 1407   1407   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1408   1408   
            ))
 1409   1409   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 1410   1410   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1411   1411   
            .send()
 1412   1412   
            .await
 1413   1413   
    );
 1414   1414   
    let req = rcvr.expect_request();
 1415   1415   
    let uri = req.uri().to_string();
 1416   1416   
    assert!(
 1417   1417   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
 1418   1418   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
 1419   1419   
        uri
 1420   1420   
    );
 1421   1421   
}
 1422   1422   
 1423   1423   
#[::tokio::test]
 1424   1424   
async fn operation_input_test_get_bucket_42() {
 1425   1425   
    /* documentation: bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2 */
 1426   1426   
    /* builtIns: {
 1427   1427   
        "AWS::Region": "us-west-2"
 1428   1428   
    } */
 1429   1429   
    /* clientParams: {} */
 1430         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1430  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1431   1431   
    let conf = {
 1432   1432   
        #[allow(unused_mut)]
 1433   1433   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1434   1434   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1435   1435   
        builder.build()
 1436   1436   
    };
 1437   1437   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1438   1438   
    let _result = dbg!(
 1439   1439   
        client
 1440   1440   
            .get_bucket()
 1441   1441   
            .set_bucket(::std::option::Option::Some(
 1442   1442   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1443   1443   
            ))
 1444   1444   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1445   1445   
            .send()
 1446   1446   
            .await
 1447   1447   
    );
 1448   1448   
    let req = rcvr.expect_request();
 1449   1449   
    let uri = req.uri().to_string();
 1450   1450   
    assert!(
 1451   1451   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 1452   1452   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 1453   1453   
        uri
 1454   1454   
    );
 1455   1455   
}
 1456   1456   
 1457   1457   
#[::tokio::test]
 1458   1458   
async fn operation_input_test_get_bucket_43() {
 1459   1459   
    /* documentation: bucket ARN in gov partition (non-fips)@us-gov-east-1 */
 1460   1460   
    /* builtIns: {
 1461   1461   
        "AWS::Region": "us-gov-east-1"
 1462   1462   
    } */
 1463   1463   
    /* clientParams: {} */
 1464         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1464  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1465   1465   
    let conf = {
 1466   1466   
        #[allow(unused_mut)]
 1467   1467   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1468   1468   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
 1469   1469   
        builder.build()
 1470   1470   
    };
 1471   1471   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1472   1472   
    let _result = dbg!(
 1473   1473   
        client
 1474   1474   
            .get_bucket()
 1475   1475   
            .set_bucket(::std::option::Option::Some(
 1476   1476   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1477   1477   
            ))
 1478   1478   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1479   1479   
            .send()
 1480   1480   
            .await
 1481   1481   
    );
 1482   1482   
    let req = rcvr.expect_request();
 1483   1483   
    let uri = req.uri().to_string();
 1484   1484   
    assert!(
 1485   1485   
        uri.starts_with("https://s3-outposts.us-gov-east-1.amazonaws.com"),
 1486   1486   
        "expected URI to start with `https://s3-outposts.us-gov-east-1.amazonaws.com` but it was `{}`",
 1487   1487   
        uri
 1488   1488   
    );
 1489   1489   
}
 1490   1490   
 1491   1491   
#[::tokio::test]
 1492   1492   
async fn operation_input_test_get_bucket_44() {
 1493   1493   
    /* documentation: bucket ARN in gov partition with FIPS@us-gov-west-1 */
 1494   1494   
    /* builtIns: {
 1495   1495   
        "AWS::Region": "us-gov-west-1",
 1496   1496   
        "AWS::UseFIPS": true
 1497   1497   
    } */
 1498   1498   
    /* clientParams: {} */
 1499         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1499  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1500   1500   
    let conf = {
 1501   1501   
        #[allow(unused_mut)]
 1502   1502   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1503   1503   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
 1504   1504   
        let builder = builder.use_fips(true);
 1505   1505   
        builder.build()
 1506   1506   
    };
 1507   1507   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1508   1508   
    let _result = dbg!(
 1509   1509   
        client
 1510   1510   
            .get_bucket()
 1511   1511   
            .set_bucket(::std::option::Option::Some(
 1512   1512   
                "arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1513   1513   
            ))
 1514   1514   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1515   1515   
            .send()
 1516   1516   
            .await
 1517   1517   
    );
 1518   1518   
    let req = rcvr.expect_request();
 1519   1519   
    let uri = req.uri().to_string();
 1520   1520   
    assert!(
 1521   1521   
        uri.starts_with("https://s3-outposts-fips.us-gov-west-1.amazonaws.com"),
 1522   1522   
        "expected URI to start with `https://s3-outposts-fips.us-gov-west-1.amazonaws.com` but it was `{}`",
 1523   1523   
        uri
 1524   1524   
    );
 1525   1525   
}
 1526   1526   
 1527   1527   
#[::tokio::test]
 1528   1528   
async fn operation_input_test_get_bucket_45() {
 1529   1529   
    /* documentation: bucket ARN in aws partition with FIPS@us-east-2 */
 1530   1530   
    /* builtIns: {
 1531   1531   
        "AWS::Region": "us-east-2",
 1532   1532   
        "AWS::UseFIPS": true
 1533   1533   
    } */
 1534   1534   
    /* clientParams: {} */
 1535         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1535  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1536   1536   
    let conf = {
 1537   1537   
        #[allow(unused_mut)]
 1538   1538   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1539   1539   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1540   1540   
        let builder = builder.use_fips(true);
 1541   1541   
        builder.build()
 1542   1542   
    };
 1543   1543   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1544   1544   
    let _result = dbg!(
 1545   1545   
        client
 1546   1546   
            .get_bucket()
 1547   1547   
            .set_bucket(::std::option::Option::Some(
 1548   1548   
                "arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1549   1549   
            ))
 1550   1550   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1551   1551   
            .send()
 1552   1552   
            .await
 1553   1553   
    );
 1554   1554   
    let req = rcvr.expect_request();
 1555   1555   
    let uri = req.uri().to_string();
 1556   1556   
    assert!(
 1557   1557   
        uri.starts_with("https://s3-outposts-fips.us-east-2.amazonaws.com"),
 1558   1558   
        "expected URI to start with `https://s3-outposts-fips.us-east-2.amazonaws.com` but it was `{}`",
 1559   1559   
        uri
 1560   1560   
    );
 1561   1561   
}
 1562   1562   
 1563   1563   
#[::tokio::test]
 1564   1564   
async fn operation_input_test_create_access_point_46() {
 1565   1565   
    /* documentation: vanilla bucket arn requires account id@cn-north-1 */
 1566   1566   
    /* builtIns: {
 1567   1567   
        "AWS::Region": "cn-north-1"
 1568   1568   
    } */
 1569   1569   
    /* clientParams: {} */
 1570         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1570  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1571   1571   
    let conf = {
 1572   1572   
        #[allow(unused_mut)]
 1573   1573   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1574   1574   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
 1575   1575   
        builder.build()
 1576   1576   
    };
 1577   1577   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1578   1578   
    let _result = dbg!(
 1579   1579   
        client
 1580   1580   
            .create_access_point()
 1581   1581   
            .set_bucket(::std::option::Option::Some(
 1582   1582   
                "arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1583   1583   
            ))
 1584   1584   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 1585   1585   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1586   1586   
            .send()
 1587   1587   
            .await
 1588   1588   
    );
 1589   1589   
    let req = rcvr.expect_request();
 1590   1590   
    let uri = req.uri().to_string();
 1591   1591   
    assert!(
 1592   1592   
        uri.starts_with("https://s3-outposts.cn-north-1.amazonaws.com.cn"),
 1593   1593   
        "expected URI to start with `https://s3-outposts.cn-north-1.amazonaws.com.cn` but it was `{}`",
 1594   1594   
        uri
 1595   1595   
    );
 1596   1596   
}
 1597   1597   
 1598   1598   
#[::tokio::test]
 1599   1599   
async fn operation_input_test_get_bucket_47() {
 1600   1600   
    /* documentation: bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2 */
 1601   1601   
    /* builtIns: {
 1602   1602   
        "AWS::Region": "us-west-2"
 1603   1603   
    } */
 1604   1604   
    /* clientParams: {} */
 1605         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1605  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1606   1606   
    let conf = {
 1607   1607   
        #[allow(unused_mut)]
 1608   1608   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1609   1609   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1610   1610   
        builder.build()
 1611   1611   
    };
 1612   1612   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1613   1613   
    let _result = dbg!(
 1614   1614   
        client
 1615   1615   
            .get_bucket()
 1616   1616   
            .set_bucket(::std::option::Option::Some(
 1617   1617   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1618   1618   
            ))
 1619   1619   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1620   1620   
            .send()
 1621   1621   
            .await
 1622   1622   
    );
 1623   1623   
    let req = rcvr.expect_request();
 1624   1624   
    let uri = req.uri().to_string();
 1625   1625   
    assert!(
 1626   1626   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 1627   1627   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 1628   1628   
        uri
 1629   1629   
    );
 1630   1630   
}
 1631   1631   
 1632   1632   
#[::tokio::test]
 1633   1633   
async fn operation_input_test_get_bucket_48() {
 1634   1634   
    /* documentation: bucket ARN in gov partition (non-fips)@us-gov-east-1 */
 1635   1635   
    /* builtIns: {
 1636   1636   
        "AWS::Region": "us-gov-east-1"
 1637   1637   
    } */
 1638   1638   
    /* clientParams: {} */
 1639         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1639  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1640   1640   
    let conf = {
 1641   1641   
        #[allow(unused_mut)]
 1642   1642   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1643   1643   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
 1644   1644   
        builder.build()
 1645   1645   
    };
 1646   1646   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1647   1647   
    let _result = dbg!(
 1648   1648   
        client
 1649   1649   
            .get_bucket()
 1650   1650   
            .set_bucket(::std::option::Option::Some(
 1651   1651   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1652   1652   
            ))
 1653   1653   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1654   1654   
            .send()
 1655   1655   
            .await
 1656   1656   
    );
 1657   1657   
    let req = rcvr.expect_request();
 1658   1658   
    let uri = req.uri().to_string();
 1659   1659   
    assert!(
 1660   1660   
        uri.starts_with("https://s3-outposts.us-gov-east-1.amazonaws.com"),
 1661   1661   
        "expected URI to start with `https://s3-outposts.us-gov-east-1.amazonaws.com` but it was `{}`",
 1662   1662   
        uri
 1663   1663   
    );
 1664   1664   
}
 1665   1665   
 1666   1666   
#[::tokio::test]
 1667   1667   
async fn operation_input_test_get_bucket_49() {
 1668   1668   
    /* documentation: bucket ARN in gov partition with FIPS@us-gov-west-1 */
 1669   1669   
    /* builtIns: {
 1670   1670   
        "AWS::Region": "us-gov-west-1",
 1671   1671   
        "AWS::UseFIPS": true
 1672   1672   
    } */
 1673   1673   
    /* clientParams: {} */
 1674         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1674  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1675   1675   
    let conf = {
 1676   1676   
        #[allow(unused_mut)]
 1677   1677   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1678   1678   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
 1679   1679   
        let builder = builder.use_fips(true);
 1680   1680   
        builder.build()
 1681   1681   
    };
 1682   1682   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1683   1683   
    let _result = dbg!(
 1684   1684   
        client
 1685   1685   
            .get_bucket()
 1686   1686   
            .set_bucket(::std::option::Option::Some(
 1687   1687   
                "arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1688   1688   
            ))
 1689   1689   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1690   1690   
            .send()
 1691   1691   
            .await
 1692   1692   
    );
 1693   1693   
    let req = rcvr.expect_request();
 1694   1694   
    let uri = req.uri().to_string();
 1695   1695   
    assert!(
 1696   1696   
        uri.starts_with("https://s3-outposts-fips.us-gov-west-1.amazonaws.com"),
 1697   1697   
        "expected URI to start with `https://s3-outposts-fips.us-gov-west-1.amazonaws.com` but it was `{}`",
 1698   1698   
        uri
 1699   1699   
    );
 1700   1700   
}
 1701   1701   
 1702   1702   
#[::tokio::test]
 1703   1703   
async fn operation_input_test_get_bucket_50() {
 1704   1704   
    /* documentation: bucket ARN in aws partition with FIPS@us-east-2 */
 1705   1705   
    /* builtIns: {
 1706   1706   
        "AWS::Region": "us-east-2",
 1707   1707   
        "AWS::UseFIPS": true
 1708   1708   
    } */
 1709   1709   
    /* clientParams: {} */
 1710         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1710  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1711   1711   
    let conf = {
 1712   1712   
        #[allow(unused_mut)]
 1713   1713   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1714   1714   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1715   1715   
        let builder = builder.use_fips(true);
 1716   1716   
        builder.build()
 1717   1717   
    };
 1718   1718   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1719   1719   
    let _result = dbg!(
 1720   1720   
        client
 1721   1721   
            .get_bucket()
 1722   1722   
            .set_bucket(::std::option::Option::Some(
 1723   1723   
                "arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1724   1724   
            ))
 1725   1725   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1726   1726   
            .send()
 1727   1727   
            .await
 1728   1728   
    );
 1729   1729   
    let req = rcvr.expect_request();
 1730   1730   
    let uri = req.uri().to_string();
 1731   1731   
    assert!(
 1732   1732   
        uri.starts_with("https://s3-outposts-fips.us-east-2.amazonaws.com"),
 1733   1733   
        "expected URI to start with `https://s3-outposts-fips.us-east-2.amazonaws.com` but it was `{}`",
 1734   1734   
        uri
 1735   1735   
    );
 1736   1736   
}
 1737   1737   
 1738   1738   
#[::tokio::test]
 1739   1739   
async fn operation_input_test_create_access_point_51() {
 1740   1740   
    /* documentation: vanilla bucket arn requires account id@af-south-1 */
 1741   1741   
    /* builtIns: {
 1742   1742   
        "AWS::Region": "af-south-1"
 1743   1743   
    } */
 1744   1744   
    /* clientParams: {} */
 1745         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1745  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1746   1746   
    let conf = {
 1747   1747   
        #[allow(unused_mut)]
 1748   1748   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1749   1749   
        let builder = builder.region(::aws_types::region::Region::new("af-south-1"));
 1750   1750   
        builder.build()
 1751   1751   
    };
 1752   1752   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1753   1753   
    let _result = dbg!(
 1754   1754   
        client
 1755   1755   
            .create_access_point()
 1756   1756   
            .set_bucket(::std::option::Option::Some(
 1757   1757   
                "arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1758   1758   
            ))
 1759   1759   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 1760   1760   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1761   1761   
            .send()
 1762   1762   
            .await
 1763   1763   
    );
 1764   1764   
    let req = rcvr.expect_request();
 1765   1765   
    let uri = req.uri().to_string();
 1766   1766   
    assert!(
 1767   1767   
        uri.starts_with("https://s3-outposts.af-south-1.amazonaws.com"),
 1768   1768   
        "expected URI to start with `https://s3-outposts.af-south-1.amazonaws.com` but it was `{}`",
 1769   1769   
        uri
 1770   1770   
    );
 1771   1771   
}
 1772   1772   
 1773   1773   
#[::tokio::test]
 1774   1774   
async fn operation_input_test_get_bucket_52() {
 1775   1775   
    /* documentation: bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2 */
 1776   1776   
    /* builtIns: {
 1777   1777   
        "AWS::Region": "us-west-2"
 1778   1778   
    } */
 1779   1779   
    /* clientParams: {} */
 1780         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1780  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1781   1781   
    let conf = {
 1782   1782   
        #[allow(unused_mut)]
 1783   1783   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1784   1784   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 1785   1785   
        builder.build()
 1786   1786   
    };
 1787   1787   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1788   1788   
    let _result = dbg!(
 1789   1789   
        client
 1790   1790   
            .get_bucket()
 1791   1791   
            .set_bucket(::std::option::Option::Some(
 1792   1792   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1793   1793   
            ))
 1794   1794   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1795   1795   
            .send()
 1796   1796   
            .await
 1797   1797   
    );
 1798   1798   
    let req = rcvr.expect_request();
 1799   1799   
    let uri = req.uri().to_string();
 1800   1800   
    assert!(
 1801   1801   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 1802   1802   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 1803   1803   
        uri
 1804   1804   
    );
 1805   1805   
}
 1806   1806   
 1807   1807   
#[::tokio::test]
 1808   1808   
async fn operation_input_test_get_bucket_53() {
 1809   1809   
    /* documentation: bucket ARN in gov partition (non-fips)@us-gov-east-1 */
 1810   1810   
    /* builtIns: {
 1811   1811   
        "AWS::Region": "us-gov-east-1"
 1812   1812   
    } */
 1813   1813   
    /* clientParams: {} */
 1814         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1814  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1815   1815   
    let conf = {
 1816   1816   
        #[allow(unused_mut)]
 1817   1817   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1818   1818   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
 1819   1819   
        builder.build()
 1820   1820   
    };
 1821   1821   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1822   1822   
    let _result = dbg!(
 1823   1823   
        client
 1824   1824   
            .get_bucket()
 1825   1825   
            .set_bucket(::std::option::Option::Some(
 1826   1826   
                "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1827   1827   
            ))
 1828   1828   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1829   1829   
            .send()
 1830   1830   
            .await
 1831   1831   
    );
 1832   1832   
    let req = rcvr.expect_request();
 1833   1833   
    let uri = req.uri().to_string();
 1834   1834   
    assert!(
 1835   1835   
        uri.starts_with("https://s3-outposts.us-gov-east-1.amazonaws.com"),
 1836   1836   
        "expected URI to start with `https://s3-outposts.us-gov-east-1.amazonaws.com` but it was `{}`",
 1837   1837   
        uri
 1838   1838   
    );
 1839   1839   
}
 1840   1840   
 1841   1841   
#[::tokio::test]
 1842   1842   
async fn operation_input_test_get_bucket_54() {
 1843   1843   
    /* documentation: bucket ARN in gov partition with FIPS@us-gov-west-1 */
 1844   1844   
    /* builtIns: {
 1845   1845   
        "AWS::Region": "us-gov-west-1",
 1846   1846   
        "AWS::UseFIPS": true
 1847   1847   
    } */
 1848   1848   
    /* clientParams: {} */
 1849         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1849  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1850   1850   
    let conf = {
 1851   1851   
        #[allow(unused_mut)]
 1852   1852   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1853   1853   
        let builder = builder.region(::aws_types::region::Region::new("us-gov-west-1"));
 1854   1854   
        let builder = builder.use_fips(true);
 1855   1855   
        builder.build()
 1856   1856   
    };
 1857   1857   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1858   1858   
    let _result = dbg!(
 1859   1859   
        client
 1860   1860   
            .get_bucket()
 1861   1861   
            .set_bucket(::std::option::Option::Some(
 1862   1862   
                "arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1863   1863   
            ))
 1864   1864   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1865   1865   
            .send()
 1866   1866   
            .await
 1867   1867   
    );
 1868   1868   
    let req = rcvr.expect_request();
 1869   1869   
    let uri = req.uri().to_string();
 1870   1870   
    assert!(
 1871   1871   
        uri.starts_with("https://s3-outposts-fips.us-gov-west-1.amazonaws.com"),
 1872   1872   
        "expected URI to start with `https://s3-outposts-fips.us-gov-west-1.amazonaws.com` but it was `{}`",
 1873   1873   
        uri
 1874   1874   
    );
 1875   1875   
}
 1876   1876   
 1877   1877   
#[::tokio::test]
 1878   1878   
async fn operation_input_test_get_bucket_55() {
 1879   1879   
    /* documentation: bucket ARN in aws partition with FIPS@us-east-2 */
 1880   1880   
    /* builtIns: {
 1881   1881   
        "AWS::Region": "us-east-2",
 1882   1882   
        "AWS::UseFIPS": true
 1883   1883   
    } */
 1884   1884   
    /* clientParams: {} */
 1885         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1885  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1886   1886   
    let conf = {
 1887   1887   
        #[allow(unused_mut)]
 1888   1888   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1889   1889   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 1890   1890   
        let builder = builder.use_fips(true);
 1891   1891   
        builder.build()
 1892   1892   
    };
 1893   1893   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1894   1894   
    let _result = dbg!(
 1895   1895   
        client
 1896   1896   
            .get_bucket()
 1897   1897   
            .set_bucket(::std::option::Option::Some(
 1898   1898   
                "arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 1899   1899   
            ))
 1900   1900   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1901   1901   
            .send()
 1902   1902   
            .await
 1903   1903   
    );
 1904   1904   
    let req = rcvr.expect_request();
 1905   1905   
    let uri = req.uri().to_string();
 1906   1906   
    assert!(
 1907   1907   
        uri.starts_with("https://s3-outposts-fips.us-east-2.amazonaws.com"),
 1908   1908   
        "expected URI to start with `https://s3-outposts-fips.us-east-2.amazonaws.com` but it was `{}`",
 1909   1909   
        uri
 1910   1910   
    );
 1911   1911   
}
 1912   1912   
 1913   1913   
#[::tokio::test]
 1914   1914   
async fn operation_input_test_list_regional_buckets_56() {
 1915   1915   
    /* documentation: custom account id prefix @us-east-1 */
 1916   1916   
    /* builtIns: {
 1917   1917   
        "AWS::Region": "us-east-1"
 1918   1918   
    } */
 1919   1919   
    /* clientParams: {} */
 1920         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1920  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1921   1921   
    let conf = {
 1922   1922   
        #[allow(unused_mut)]
 1923   1923   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1924   1924   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 1925   1925   
        builder.build()
 1926   1926   
    };
 1927   1927   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1928   1928   
    let _result = dbg!(
 1929   1929   
        client
 1930   1930   
            .list_regional_buckets()
 1931   1931   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1932   1932   
            .send()
 1933   1933   
            .await
 1934   1934   
    );
 1935   1935   
    let req = rcvr.expect_request();
 1936   1936   
    let uri = req.uri().to_string();
 1937   1937   
    assert!(
 1938   1938   
        uri.starts_with("https://123456789012.s3-control.us-east-1.amazonaws.com"),
 1939   1939   
        "expected URI to start with `https://123456789012.s3-control.us-east-1.amazonaws.com` but it was `{}`",
 1940   1940   
        uri
 1941   1941   
    );
 1942   1942   
}
 1943   1943   
 1944   1944   
#[::tokio::test]
 1945   1945   
async fn operation_input_test_list_regional_buckets_57() {
 1946   1946   
    /* documentation: invalid account id prefix @us-east-1 */
 1947   1947   
    /* builtIns: {
 1948   1948   
        "AWS::Region": "us-east-1"
 1949   1949   
    } */
 1950   1950   
    /* clientParams: {} */
 1951         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1951  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1952   1952   
    let conf = {
 1953   1953   
        #[allow(unused_mut)]
 1954   1954   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1955   1955   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 1956   1956   
        builder.build()
 1957   1957   
    };
 1958   1958   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1959   1959   
    let _result = dbg!(
 1960   1960   
        client
 1961   1961   
            .list_regional_buckets()
 1962   1962   
            .set_account_id(::std::option::Option::Some("/?invalid&not-host*label".to_owned()))
 1963   1963   
            .send()
 1964   1964   
            .await
 1965   1965   
    );
 1966   1966   
    rcvr.expect_no_request();
 1967   1967   
    let error = _result.expect_err("expected error: AccountId must only contain a-z, A-Z, 0-9 and `-`. [invalid account id prefix @us-east-1]");
 1968   1968   
    assert!(
 1969   1969   
        format!("{:?}", error).contains("AccountId must only contain a-z, A-Z, 0-9 and `-`."),
 1970   1970   
        "expected error to contain `AccountId must only contain a-z, A-Z, 0-9 and `-`.` but it was {:?}",
 1971   1971   
        error
 1972   1972   
    );
 1973   1973   
}
 1974   1974   
 1975   1975   
#[::tokio::test]
 1976   1976   
async fn operation_input_test_list_regional_buckets_58() {
 1977   1977   
    /* documentation: custom account id prefix with fips@us-east-1 */
 1978   1978   
    /* builtIns: {
 1979   1979   
        "AWS::Region": "us-east-1",
 1980   1980   
        "AWS::UseFIPS": true
 1981   1981   
    } */
 1982   1982   
    /* clientParams: {} */
 1983         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        1983  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 1984   1984   
    let conf = {
 1985   1985   
        #[allow(unused_mut)]
 1986   1986   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 1987   1987   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 1988   1988   
        let builder = builder.use_fips(true);
 1989   1989   
        builder.build()
 1990   1990   
    };
 1991   1991   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 1992   1992   
    let _result = dbg!(
 1993   1993   
        client
 1994   1994   
            .list_regional_buckets()
 1995   1995   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 1996   1996   
            .send()
 1997   1997   
            .await
 1998   1998   
    );
 1999   1999   
    let req = rcvr.expect_request();
 2000   2000   
    let uri = req.uri().to_string();
 2001   2001   
    assert!(
 2002   2002   
        uri.starts_with("https://123456789012.s3-control-fips.us-east-1.amazonaws.com"),
 2003   2003   
        "expected URI to start with `https://123456789012.s3-control-fips.us-east-1.amazonaws.com` but it was `{}`",
 2004   2004   
        uri
 2005   2005   
    );
 2006   2006   
}
 2007   2007   
 2008   2008   
#[::tokio::test]
 2009   2009   
async fn operation_input_test_list_regional_buckets_59() {
 2010   2010   
    /* documentation: custom account id prefix with dualstack,fips@us-east-1 */
 2011   2011   
    /* builtIns: {
 2012   2012   
        "AWS::Region": "us-east-1",
 2013   2013   
        "AWS::UseFIPS": true,
 2014   2014   
        "AWS::UseDualStack": true
 2015   2015   
    } */
 2016   2016   
    /* clientParams: {} */
 2017         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2017  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2018   2018   
    let conf = {
 2019   2019   
        #[allow(unused_mut)]
 2020   2020   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2021   2021   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 2022   2022   
        let builder = builder.use_fips(true);
 2023   2023   
        let builder = builder.use_dual_stack(true);
 2024   2024   
        builder.build()
 2025   2025   
    };
 2026   2026   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2027   2027   
    let _result = dbg!(
 2028   2028   
        client
 2029   2029   
            .list_regional_buckets()
 2030   2030   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2031   2031   
            .send()
 2032   2032   
            .await
 2033   2033   
    );
 2034   2034   
    let req = rcvr.expect_request();
 2035   2035   
    let uri = req.uri().to_string();
 2036   2036   
    assert!(
 2037   2037   
        uri.starts_with("https://123456789012.s3-control-fips.dualstack.us-east-1.amazonaws.com"),
 2038   2038   
        "expected URI to start with `https://123456789012.s3-control-fips.dualstack.us-east-1.amazonaws.com` but it was `{}`",
 2039   2039   
        uri
 2040   2040   
    );
 2041   2041   
}
 2042   2042   
 2043   2043   
#[::tokio::test]
 2044   2044   
async fn operation_input_test_list_regional_buckets_60() {
 2045   2045   
    /* documentation: custom account id with custom endpoint */
 2046   2046   
    /* builtIns: {
 2047   2047   
        "AWS::Region": "us-east-1",
 2048   2048   
        "SDK::Endpoint": "https://example.com"
 2049   2049   
    } */
 2050   2050   
    /* clientParams: {} */
 2051         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2051  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2052   2052   
    let conf = {
 2053   2053   
        #[allow(unused_mut)]
 2054   2054   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2055   2055   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 2056   2056   
        let builder = builder.endpoint_url("https://example.com");
 2057   2057   
        builder.build()
 2058   2058   
    };
 2059   2059   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2060   2060   
    let _result = dbg!(
 2061   2061   
        client
 2062   2062   
            .list_regional_buckets()
 2063   2063   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2064   2064   
            .send()
 2065   2065   
            .await
 2066   2066   
    );
 2067   2067   
    let req = rcvr.expect_request();
 2068   2068   
    let uri = req.uri().to_string();
 2069   2069   
    assert!(
 2070   2070   
        uri.starts_with("https://123456789012.example.com"),
 2071   2071   
        "expected URI to start with `https://123456789012.example.com` but it was `{}`",
 2072   2072   
        uri
 2073   2073   
    );
 2074   2074   
}
 2075   2075   
 2076   2076   
#[::tokio::test]
 2077   2077   
async fn operation_input_test_list_regional_buckets_61() {
 2078   2078   
    /* documentation: RequiresAccountId with invalid AccountId and custom endpoint */
 2079   2079   
    /* builtIns: {
 2080   2080   
        "AWS::Region": "us-east-1",
 2081   2081   
        "SDK::Endpoint": "https://beta.example.com"
 2082   2082   
    } */
 2083   2083   
    /* clientParams: {} */
 2084         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2084  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2085   2085   
    let conf = {
 2086   2086   
        #[allow(unused_mut)]
 2087   2087   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2088   2088   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 2089   2089   
        let builder = builder.endpoint_url("https://beta.example.com");
 2090   2090   
        builder.build()
 2091   2091   
    };
 2092   2092   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2093   2093   
    let _result = dbg!(
 2094   2094   
        client
 2095   2095   
            .list_regional_buckets()
 2096   2096   
            .set_account_id(::std::option::Option::Some("/?invalid&not-host*label".to_owned()))
 2097   2097   
            .send()
 2098   2098   
            .await
 2099   2099   
    );
 2100   2100   
    rcvr.expect_no_request();
 2101   2101   
    let error = _result.expect_err(
 2102   2102   
        "expected error: AccountId must only contain a-z, A-Z, 0-9 and `-`. [RequiresAccountId with invalid AccountId and custom endpoint]",
 2103   2103   
    );
 2104   2104   
    assert!(
 2105   2105   
        format!("{:?}", error).contains("AccountId must only contain a-z, A-Z, 0-9 and `-`."),
 2106   2106   
        "expected error to contain `AccountId must only contain a-z, A-Z, 0-9 and `-`.` but it was {:?}",
 2107   2107   
        error
 2108   2108   
    );
 2109   2109   
}
 2110   2110   
 2111   2111   
#[::tokio::test]
 2112   2112   
async fn operation_input_test_list_regional_buckets_62() {
 2113   2113   
    /* documentation: account id with custom endpoint, fips */
 2114   2114   
    /* builtIns: {
 2115   2115   
        "AWS::Region": "us-east-1",
 2116   2116   
        "AWS::UseFIPS": true,
 2117   2117   
        "SDK::Endpoint": "https://example.com"
 2118   2118   
    } */
 2119   2119   
    /* clientParams: {} */
 2120         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2120  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2121   2121   
    let conf = {
 2122   2122   
        #[allow(unused_mut)]
 2123   2123   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2124   2124   
        let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
 2125   2125   
        let builder = builder.use_fips(true);
 2126   2126   
        let builder = builder.endpoint_url("https://example.com");
 2127   2127   
        builder.build()
 2128   2128   
    };
 2129   2129   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2130   2130   
    let _result = dbg!(
 2131   2131   
        client
 2132   2132   
            .list_regional_buckets()
 2133   2133   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2134   2134   
            .send()
 2135   2135   
            .await
 2136   2136   
    );
 2137   2137   
    let req = rcvr.expect_request();
 2138   2138   
    let uri = req.uri().to_string();
 2139   2139   
    assert!(
 2140   2140   
        uri.starts_with("https://123456789012.example.com"),
 2141   2141   
        "expected URI to start with `https://123456789012.example.com` but it was `{}`",
 2142   2142   
        uri
 2143   2143   
    );
 2144   2144   
}
 2145   2145   
 2146   2146   
#[::tokio::test]
 2147   2147   
async fn operation_input_test_list_regional_buckets_63() {
 2148   2148   
    /* documentation: ListRegionalBuckets + OutpostId with invalid accountId set. */
 2149   2149   
    /* builtIns: {
 2150   2150   
        "AWS::Region": "us-east-2"
 2151   2151   
    } */
 2152   2152   
    /* clientParams: {} */
 2153         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2153  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2154   2154   
    let conf = {
 2155   2155   
        #[allow(unused_mut)]
 2156   2156   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2157   2157   
        let builder = builder.region(::aws_types::region::Region::new("us-east-2"));
 2158   2158   
        builder.build()
 2159   2159   
    };
 2160   2160   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2161   2161   
    let _result = dbg!(
 2162   2162   
        client
 2163   2163   
            .list_regional_buckets()
 2164   2164   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 2165   2165   
            .set_account_id(::std::option::Option::Some("/?invalid&not-host*label".to_owned()))
 2166   2166   
            .send()
 2167   2167   
            .await
 2168   2168   
    );
 2169   2169   
    rcvr.expect_no_request();
 2170   2170   
    let error = _result.expect_err(
 2171   2171   
        "expected error: AccountId must only contain a-z, A-Z, 0-9 and `-`. [ListRegionalBuckets + OutpostId with invalid accountId set.]",
 2172   2172   
    );
 2173   2173   
    assert!(
 2174   2174   
        format!("{:?}", error).contains("AccountId must only contain a-z, A-Z, 0-9 and `-`."),
 2175   2175   
        "expected error to contain `AccountId must only contain a-z, A-Z, 0-9 and `-`.` but it was {:?}",
 2176   2176   
        error
 2177   2177   
    );
 2178   2178   
}
 2179   2179   
 2180   2180   
#[::tokio::test]
 2181   2181   
async fn operation_input_test_get_access_point_64() {
 2182   2182   
    /* documentation: endpoint url with accesspoint (non-arn) */
 2183   2183   
    /* builtIns: {
 2184   2184   
        "AWS::Region": "us-west-2",
 2185   2185   
        "SDK::Endpoint": "https://beta.example.com"
 2186   2186   
    } */
 2187   2187   
    /* clientParams: {} */
 2188         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2188  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2189   2189   
    let conf = {
 2190   2190   
        #[allow(unused_mut)]
 2191   2191   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2192   2192   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2193   2193   
        let builder = builder.endpoint_url("https://beta.example.com");
 2194   2194   
        builder.build()
 2195   2195   
    };
 2196   2196   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2197   2197   
    let _result = dbg!(
 2198   2198   
        client
 2199   2199   
            .get_access_point()
 2200   2200   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 2201   2201   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2202   2202   
            .send()
 2203   2203   
            .await
 2204   2204   
    );
 2205   2205   
    let req = rcvr.expect_request();
 2206   2206   
    let uri = req.uri().to_string();
 2207   2207   
    assert!(
 2208   2208   
        uri.starts_with("https://123456789012.beta.example.com"),
 2209   2209   
        "expected URI to start with `https://123456789012.beta.example.com` but it was `{}`",
 2210   2210   
        uri
 2211   2211   
    );
 2212   2212   
}
 2213   2213   
 2214   2214   
#[::tokio::test]
 2215   2215   
async fn operation_input_test_get_access_point_65() {
 2216   2216   
    /* documentation: DualStack + Custom endpoint is not supported(non-arn) */
 2217   2217   
    /* builtIns: {
 2218   2218   
        "AWS::Region": "us-west-2",
 2219   2219   
        "AWS::UseDualStack": true,
 2220   2220   
        "SDK::Endpoint": "https://beta.example.com"
 2221   2221   
    } */
 2222   2222   
    /* clientParams: {} */
 2223         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2223  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2224   2224   
    let conf = {
 2225   2225   
        #[allow(unused_mut)]
 2226   2226   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2227   2227   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2228   2228   
        let builder = builder.use_dual_stack(true);
 2229   2229   
        let builder = builder.endpoint_url("https://beta.example.com");
 2230   2230   
        builder.build()
 2231   2231   
    };
 2232   2232   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2233   2233   
    let _result = dbg!(
 2234   2234   
        client
 2235   2235   
            .get_access_point()
 2236   2236   
            .set_name(::std::option::Option::Some("apname".to_owned()))
 2237   2237   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2238   2238   
            .send()
 2239   2239   
            .await
 2240   2240   
    );
 2241   2241   
    rcvr.expect_no_request();
 2242   2242   
    let error = _result.expect_err("expected error: Invalid Configuration: DualStack and custom endpoint are not supported [DualStack + Custom endpoint is not supported(non-arn)]");
 2243   2243   
    assert!(
 2244   2244   
        format!("{:?}", error).contains("Invalid Configuration: DualStack and custom endpoint are not supported"),
 2245   2245   
        "expected error to contain `Invalid Configuration: DualStack and custom endpoint are not supported` but it was {:?}",
 2246   2246   
        error
 2247   2247   
    );
 2248   2248   
}
 2249   2249   
 2250   2250   
#[::tokio::test]
 2251   2251   
async fn operation_input_test_get_bucket_66() {
 2252   2252   
    /* documentation: get bucket with endpoint_url and dualstack is not supported@us-west-2 */
 2253   2253   
    /* builtIns: {
 2254   2254   
        "AWS::Region": "us-west-2",
 2255   2255   
        "AWS::UseDualStack": true,
 2256   2256   
        "SDK::Endpoint": "https://beta.example.com"
 2257   2257   
    } */
 2258   2258   
    /* clientParams: {} */
 2259         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2259  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2260   2260   
    let conf = {
 2261   2261   
        #[allow(unused_mut)]
 2262   2262   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2263   2263   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2264   2264   
        let builder = builder.use_dual_stack(true);
 2265   2265   
        let builder = builder.endpoint_url("https://beta.example.com");
 2266   2266   
        builder.build()
 2267   2267   
    };
 2268   2268   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2269   2269   
    let _result = dbg!(
 2270   2270   
        client
 2271   2271   
            .get_bucket()
 2272   2272   
            .set_bucket(::std::option::Option::Some(
 2273   2273   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 2274   2274   
            ))
 2275   2275   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2276   2276   
            .send()
 2277   2277   
            .await
 2278   2278   
    );
 2279   2279   
    rcvr.expect_no_request();
 2280   2280   
    let error = _result.expect_err("expected error: Invalid configuration: Outpost buckets do not support dual-stack [get bucket with endpoint_url and dualstack is not supported@us-west-2]");
 2281   2281   
    assert!(
 2282   2282   
        format!("{:?}", error).contains("Invalid configuration: Outpost buckets do not support dual-stack"),
 2283   2283   
        "expected error to contain `Invalid configuration: Outpost buckets do not support dual-stack` but it was {:?}",
 2284   2284   
        error
 2285   2285   
    );
 2286   2286   
}
 2287   2287   
 2288   2288   
#[::tokio::test]
 2289   2289   
async fn operation_input_test_list_regional_buckets_67() {
 2290   2290   
    /* documentation: ListRegionalBuckets + OutpostId with fips in CN. */
 2291   2291   
    /* builtIns: {
 2292   2292   
        "AWS::Region": "cn-north-1",
 2293   2293   
        "AWS::UseFIPS": true
 2294   2294   
    } */
 2295   2295   
    /* clientParams: {} */
 2296         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2296  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2297   2297   
    let conf = {
 2298   2298   
        #[allow(unused_mut)]
 2299   2299   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2300   2300   
        let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
 2301   2301   
        let builder = builder.use_fips(true);
 2302   2302   
        builder.build()
 2303   2303   
    };
 2304   2304   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2305   2305   
    let _result = dbg!(
 2306   2306   
        client
 2307   2307   
            .list_regional_buckets()
 2308   2308   
            .set_outpost_id(::std::option::Option::Some("op-123".to_owned()))
 2309   2309   
            .set_account_id(::std::option::Option::Some("0123456789012".to_owned()))
 2310   2310   
            .send()
 2311   2311   
            .await
 2312   2312   
    );
 2313   2313   
    rcvr.expect_no_request();
 2314   2314   
    let error = _result.expect_err("expected error: Partition does not support FIPS [ListRegionalBuckets + OutpostId with fips in CN.]");
 2315   2315   
    assert!(
 2316   2316   
        format!("{:?}", error).contains("Partition does not support FIPS"),
 2317   2317   
        "expected error to contain `Partition does not support FIPS` but it was {:?}",
 2318   2318   
        error
 2319   2319   
    );
 2320   2320   
}
 2321   2321   
 2322   2322   
#[::tokio::test]
 2323   2323   
async fn operation_input_test_list_regional_buckets_68() {
 2324   2324   
    /* documentation: ListRegionalBuckets + invalid OutpostId. */
 2325   2325   
    /* builtIns: {
 2326   2326   
        "AWS::Region": "us-west-1"
 2327   2327   
    } */
 2328   2328   
    /* clientParams: {} */
 2329         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2329  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2330   2330   
    let conf = {
 2331   2331   
        #[allow(unused_mut)]
 2332   2332   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2333   2333   
        let builder = builder.region(::aws_types::region::Region::new("us-west-1"));
 2334   2334   
        builder.build()
 2335   2335   
    };
 2336   2336   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2337   2337   
    let _result = dbg!(
 2338   2338   
        client
 2339   2339   
            .list_regional_buckets()
 2340   2340   
            .set_outpost_id(::std::option::Option::Some("?outpost/invalid+".to_owned()))
 2341   2341   
            .set_account_id(::std::option::Option::Some("0123456789012".to_owned()))
 2342   2342   
            .send()
 2343   2343   
            .await
 2344   2344   
    );
 2345   2345   
    rcvr.expect_no_request();
 2346   2346   
    let error = _result.expect_err("expected error: OutpostId must only contain a-z, A-Z, 0-9 and `-`. [ListRegionalBuckets + invalid OutpostId.]");
 2347   2347   
    assert!(
 2348   2348   
        format!("{:?}", error).contains("OutpostId must only contain a-z, A-Z, 0-9 and `-`."),
 2349   2349   
        "expected error to contain `OutpostId must only contain a-z, A-Z, 0-9 and `-`.` but it was {:?}",
 2350   2350   
        error
 2351   2351   
    );
 2352   2352   
}
 2353   2353   
 2354   2354   
#[::tokio::test]
 2355   2355   
async fn operation_input_test_get_access_point_69() {
 2356   2356   
    /* documentation: Outpost Accesspoint ARN with arn region and client region mismatch with UseArnRegion=false */
 2357   2357   
    /* builtIns: {
 2358   2358   
        "AWS::Region": "us-west-2",
 2359   2359   
        "AWS::S3Control::UseArnRegion": false
 2360   2360   
    } */
 2361   2361   
    /* clientParams: {} */
 2362         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2362  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2363   2363   
    let conf = {
 2364   2364   
        #[allow(unused_mut)]
 2365   2365   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2366   2366   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2367   2367   
        let builder = builder.use_arn_region(false);
 2368   2368   
        builder.build()
 2369   2369   
    };
 2370   2370   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2371   2371   
    let _result = dbg!(
 2372   2372   
        client
 2373   2373   
            .get_access_point()
 2374   2374   
            .set_name(::std::option::Option::Some(
 2375   2375   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2376   2376   
            ))
 2377   2377   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2378   2378   
            .send()
 2379   2379   
            .await
 2380   2380   
    );
 2381   2381   
    rcvr.expect_no_request();
 2382   2382   
    let error = _result.expect_err("expected error: Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false` [Outpost Accesspoint ARN with arn region and client region mismatch with UseArnRegion=false]");
 2383   2383   
    assert!(
 2384   2384   
                                            format!("{:?}", error).contains("Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`"),
 2385   2385   
                                            "expected error to contain `Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`` but it was {:?}", error
 2386   2386   
                                        );
 2387   2387   
}
 2388   2388   
 2389   2389   
#[::tokio::test]
 2390   2390   
async fn operation_input_test_delete_access_point_70() {
 2391   2391   
    /* documentation: Outpost Accesspoint ARN with arn region and client region mismatch with UseArnRegion=false */
 2392   2392   
    /* builtIns: {
 2393   2393   
        "AWS::Region": "us-west-2",
 2394   2394   
        "AWS::S3Control::UseArnRegion": false
 2395   2395   
    } */
 2396   2396   
    /* clientParams: {} */
 2397         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2397  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2398   2398   
    let conf = {
 2399   2399   
        #[allow(unused_mut)]
 2400   2400   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2401   2401   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2402   2402   
        let builder = builder.use_arn_region(false);
 2403   2403   
        builder.build()
 2404   2404   
    };
 2405   2405   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2406   2406   
    let _result = dbg!(
 2407   2407   
        client
 2408   2408   
            .delete_access_point()
 2409   2409   
            .set_name(::std::option::Option::Some(
 2410   2410   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2411   2411   
            ))
 2412   2412   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2413   2413   
            .send()
 2414   2414   
            .await
 2415   2415   
    );
 2416   2416   
    rcvr.expect_no_request();
 2417   2417   
    let error = _result.expect_err("expected error: Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false` [Outpost Accesspoint ARN with arn region and client region mismatch with UseArnRegion=false]");
 2418   2418   
    assert!(
 2419   2419   
                                            format!("{:?}", error).contains("Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`"),
 2420   2420   
                                            "expected error to contain `Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`` but it was {:?}", error
 2421   2421   
                                        );
 2422   2422   
}
 2423   2423   
 2424   2424   
#[::tokio::test]
 2425   2425   
async fn operation_input_test_get_bucket_71() {
 2426   2426   
    /* documentation: Outpost Bucket ARN with arn region and client region mismatch with UseArnRegion=false */
 2427   2427   
    /* builtIns: {
 2428   2428   
        "AWS::Region": "us-west-2",
 2429   2429   
        "SDK::Endpoint": "https://beta.example.com",
 2430   2430   
        "AWS::S3Control::UseArnRegion": false
 2431   2431   
    } */
 2432   2432   
    /* clientParams: {} */
 2433         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2433  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2434   2434   
    let conf = {
 2435   2435   
        #[allow(unused_mut)]
 2436   2436   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2437   2437   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2438   2438   
        let builder = builder.endpoint_url("https://beta.example.com");
 2439   2439   
        let builder = builder.use_arn_region(false);
 2440   2440   
        builder.build()
 2441   2441   
    };
 2442   2442   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2443   2443   
    let _result = dbg!(
 2444   2444   
        client
 2445   2445   
            .get_bucket()
 2446   2446   
            .set_bucket(::std::option::Option::Some(
 2447   2447   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 2448   2448   
            ))
 2449   2449   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2450   2450   
            .send()
 2451   2451   
            .await
 2452   2452   
    );
 2453   2453   
    rcvr.expect_no_request();
 2454   2454   
    let error = _result.expect_err("expected error: Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false` [Outpost Bucket ARN with arn region and client region mismatch with UseArnRegion=false]");
 2455   2455   
    assert!(
 2456   2456   
                                            format!("{:?}", error).contains("Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`"),
 2457   2457   
                                            "expected error to contain `Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`` but it was {:?}", error
 2458   2458   
                                        );
 2459   2459   
}
 2460   2460   
 2461   2461   
#[::tokio::test]
 2462   2462   
async fn operation_input_test_get_access_point_72() {
 2463   2463   
    /* documentation: Accesspoint ARN with region mismatch and UseArnRegion unset */
 2464   2464   
    /* builtIns: {
 2465   2465   
        "AWS::Region": "us-west-2"
 2466   2466   
    } */
 2467   2467   
    /* clientParams: {} */
 2468         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2468  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2469   2469   
    let conf = {
 2470   2470   
        #[allow(unused_mut)]
 2471   2471   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2472   2472   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2473   2473   
        builder.build()
 2474   2474   
    };
 2475   2475   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2476   2476   
    let _result = dbg!(
 2477   2477   
        client
 2478   2478   
            .get_access_point()
 2479   2479   
            .set_name(::std::option::Option::Some(
 2480   2480   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2481   2481   
            ))
 2482   2482   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2483   2483   
            .send()
 2484   2484   
            .await
 2485   2485   
    );
 2486   2486   
    let req = rcvr.expect_request();
 2487   2487   
    let uri = req.uri().to_string();
 2488   2488   
    assert!(
 2489   2489   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 2490   2490   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 2491   2491   
        uri
 2492   2492   
    );
 2493   2493   
}
 2494   2494   
 2495   2495   
#[::tokio::test]
 2496   2496   
async fn operation_input_test_delete_access_point_73() {
 2497   2497   
    /* documentation: Accesspoint ARN with region mismatch and UseArnRegion unset */
 2498   2498   
    /* builtIns: {
 2499   2499   
        "AWS::Region": "us-west-2"
 2500   2500   
    } */
 2501   2501   
    /* clientParams: {} */
 2502         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2502  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2503   2503   
    let conf = {
 2504   2504   
        #[allow(unused_mut)]
 2505   2505   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2506   2506   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2507   2507   
        builder.build()
 2508   2508   
    };
 2509   2509   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2510   2510   
    let _result = dbg!(
 2511   2511   
        client
 2512   2512   
            .delete_access_point()
 2513   2513   
            .set_name(::std::option::Option::Some(
 2514   2514   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2515   2515   
            ))
 2516   2516   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2517   2517   
            .send()
 2518   2518   
            .await
 2519   2519   
    );
 2520   2520   
    let req = rcvr.expect_request();
 2521   2521   
    let uri = req.uri().to_string();
 2522   2522   
    assert!(
 2523   2523   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 2524   2524   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 2525   2525   
        uri
 2526   2526   
    );
 2527   2527   
}
 2528   2528   
 2529   2529   
#[::tokio::test]
 2530   2530   
async fn operation_input_test_get_bucket_74() {
 2531   2531   
    /* documentation: Bucket ARN with region mismatch and UseArnRegion unset */
 2532   2532   
    /* builtIns: {
 2533   2533   
        "AWS::Region": "us-west-2"
 2534   2534   
    } */
 2535   2535   
    /* clientParams: {} */
 2536         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2536  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2537   2537   
    let conf = {
 2538   2538   
        #[allow(unused_mut)]
 2539   2539   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2540   2540   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2541   2541   
        builder.build()
 2542   2542   
    };
 2543   2543   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2544   2544   
    let _result = dbg!(
 2545   2545   
        client
 2546   2546   
            .get_bucket()
 2547   2547   
            .set_bucket(::std::option::Option::Some(
 2548   2548   
                "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 2549   2549   
            ))
 2550   2550   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2551   2551   
            .send()
 2552   2552   
            .await
 2553   2553   
    );
 2554   2554   
    let req = rcvr.expect_request();
 2555   2555   
    let uri = req.uri().to_string();
 2556   2556   
    assert!(
 2557   2557   
        uri.starts_with("https://s3-outposts.us-east-1.amazonaws.com"),
 2558   2558   
        "expected URI to start with `https://s3-outposts.us-east-1.amazonaws.com` but it was `{}`",
 2559   2559   
        uri
 2560   2560   
    );
 2561   2561   
}
 2562   2562   
 2563   2563   
#[::tokio::test]
 2564   2564   
async fn operation_input_test_get_bucket_75() {
 2565   2565   
    /* documentation: Outpost Bucket ARN with partition mismatch with UseArnRegion=true */
 2566   2566   
    /* builtIns: {
 2567   2567   
        "AWS::Region": "us-west-2",
 2568   2568   
        "AWS::S3Control::UseArnRegion": true
 2569   2569   
    } */
 2570   2570   
    /* clientParams: {} */
 2571         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2571  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2572   2572   
    let conf = {
 2573   2573   
        #[allow(unused_mut)]
 2574   2574   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2575   2575   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2576   2576   
        let builder = builder.use_arn_region(true);
 2577   2577   
        builder.build()
 2578   2578   
    };
 2579   2579   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2580   2580   
    let _result = dbg!(
 2581   2581   
        client
 2582   2582   
            .get_bucket()
 2583   2583   
            .set_bucket(::std::option::Option::Some(
 2584   2584   
                "arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 2585   2585   
            ))
 2586   2586   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2587   2587   
            .send()
 2588   2588   
            .await
 2589   2589   
    );
 2590   2590   
    rcvr.expect_no_request();
 2591   2591   
    let error = _result.expect_err("expected error: Client was configured for partition `aws` but ARN has `aws-cn` [Outpost Bucket ARN with partition mismatch with UseArnRegion=true]");
 2592   2592   
    assert!(
 2593   2593   
        format!("{:?}", error).contains("Client was configured for partition `aws` but ARN has `aws-cn`"),
 2594   2594   
        "expected error to contain `Client was configured for partition `aws` but ARN has `aws-cn`` but it was {:?}",
 2595   2595   
        error
 2596   2596   
    );
 2597   2597   
}
 2598   2598   
 2599   2599   
#[::tokio::test]
 2600   2600   
async fn operation_input_test_get_access_point_76() {
 2601   2601   
    /* documentation: Accesspoint ARN with partition mismatch and UseArnRegion=true */
 2602   2602   
    /* builtIns: {
 2603   2603   
        "AWS::Region": "us-west-2",
 2604   2604   
        "AWS::S3Control::UseArnRegion": true
 2605   2605   
    } */
 2606   2606   
    /* clientParams: {} */
 2607         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2607  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2608   2608   
    let conf = {
 2609   2609   
        #[allow(unused_mut)]
 2610   2610   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2611   2611   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2612   2612   
        let builder = builder.use_arn_region(true);
 2613   2613   
        builder.build()
 2614   2614   
    };
 2615   2615   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2616   2616   
    let _result = dbg!(
 2617   2617   
        client
 2618   2618   
            .get_access_point()
 2619   2619   
            .set_name(::std::option::Option::Some(
 2620   2620   
                "arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2621   2621   
            ))
 2622   2622   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2623   2623   
            .send()
 2624   2624   
            .await
 2625   2625   
    );
 2626   2626   
    rcvr.expect_no_request();
 2627   2627   
    let error = _result.expect_err("expected error: Client was configured for partition `aws` but ARN has `aws-cn` [Accesspoint ARN with partition mismatch and UseArnRegion=true]");
 2628   2628   
    assert!(
 2629   2629   
        format!("{:?}", error).contains("Client was configured for partition `aws` but ARN has `aws-cn`"),
 2630   2630   
        "expected error to contain `Client was configured for partition `aws` but ARN has `aws-cn`` but it was {:?}",
 2631   2631   
        error
 2632   2632   
    );
 2633   2633   
}
 2634   2634   
 2635   2635   
#[::tokio::test]
 2636   2636   
async fn operation_input_test_delete_access_point_77() {
 2637   2637   
    /* documentation: Accesspoint ARN with partition mismatch and UseArnRegion=true */
 2638   2638   
    /* builtIns: {
 2639   2639   
        "AWS::Region": "us-west-2",
 2640   2640   
        "AWS::S3Control::UseArnRegion": true
 2641   2641   
    } */
 2642   2642   
    /* clientParams: {} */
 2643         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2643  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2644   2644   
    let conf = {
 2645   2645   
        #[allow(unused_mut)]
 2646   2646   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2647   2647   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2648   2648   
        let builder = builder.use_arn_region(true);
 2649   2649   
        builder.build()
 2650   2650   
    };
 2651   2651   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2652   2652   
    let _result = dbg!(
 2653   2653   
        client
 2654   2654   
            .delete_access_point()
 2655   2655   
            .set_name(::std::option::Option::Some(
 2656   2656   
                "arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_owned()
 2657   2657   
            ))
 2658   2658   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2659   2659   
            .send()
 2660   2660   
            .await
 2661   2661   
    );
 2662   2662   
    rcvr.expect_no_request();
 2663   2663   
    let error = _result.expect_err("expected error: Client was configured for partition `aws` but ARN has `aws-cn` [Accesspoint ARN with partition mismatch and UseArnRegion=true]");
 2664   2664   
    assert!(
 2665   2665   
        format!("{:?}", error).contains("Client was configured for partition `aws` but ARN has `aws-cn`"),
 2666   2666   
        "expected error to contain `Client was configured for partition `aws` but ARN has `aws-cn`` but it was {:?}",
 2667   2667   
        error
 2668   2668   
    );
 2669   2669   
}
 2670   2670   
 2671   2671   
#[::tokio::test]
 2672   2672   
async fn operation_input_test_get_bucket_versioning_78() {
 2673   2673   
    /* documentation: outpost bucket arn@us-west-2 */
 2674   2674   
    /* builtIns: {
 2675   2675   
        "AWS::Region": "us-west-2"
 2676   2676   
    } */
 2677   2677   
    /* clientParams: {} */
 2678         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2678  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2679   2679   
    let conf = {
 2680   2680   
        #[allow(unused_mut)]
 2681   2681   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2682   2682   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2683   2683   
        builder.build()
 2684   2684   
    };
 2685   2685   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2686   2686   
    let _result = dbg!(
 2687   2687   
        client
 2688   2688   
            .get_bucket_versioning()
 2689   2689   
            .set_bucket(::std::option::Option::Some(
 2690   2690   
                "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_owned()
 2691   2691   
            ))
 2692   2692   
            .set_account_id(::std::option::Option::Some("123456789012".to_owned()))
 2693   2693   
            .send()
 2694   2694   
            .await
 2695   2695   
    );
 2696   2696   
    let req = rcvr.expect_request();
 2697   2697   
    let uri = req.uri().to_string();
 2698   2698   
    assert!(
 2699   2699   
        uri.starts_with("https://s3-outposts.us-west-2.amazonaws.com"),
 2700   2700   
        "expected URI to start with `https://s3-outposts.us-west-2.amazonaws.com` but it was `{}`",
 2701   2701   
        uri
 2702   2702   
    );
 2703   2703   
}
 2704   2704   
 2705   2705   
#[::tokio::test]
 2706   2706   
async fn operation_input_test_put_bucket_versioning_79() {
 2707   2707   
    /* documentation: outpost bucket arn@us-west-2 */
 2708   2708   
    /* builtIns: {
 2709   2709   
        "AWS::Region": "us-west-2"
 2710   2710   
    } */
 2711   2711   
    /* clientParams: {} */
 2712         -
    let (http_client, rcvr) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
        2712  +
    let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
 2713   2713   
    let conf = {
 2714   2714   
        #[allow(unused_mut)]
 2715   2715   
        let mut builder = aws_sdk_s3control::Config::builder().with_test_defaults().http_client(http_client);
 2716   2716   
        let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
 2717   2717   
        builder.build()
 2718   2718   
    };
 2719   2719   
    let client = aws_sdk_s3control::Client::from_conf(conf);
 2720   2720   
    let _result = dbg!(
 2721   2721   
        client
 2722   2722   
            .put_bucket_versioning()

tmp-codegen-diff/aws-sdk/sdk/s3control/tests/signing-it.rs

@@ -1,1 +44,44 @@
    1      1   
/*
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_credential_types::provider::SharedCredentialsProvider;
    7      7   
use aws_sdk_s3control::config::{Credentials, Region};
    8      8   
use aws_sdk_s3control::{Client, Config};
    9         -
use aws_smithy_runtime::client::http::test_util::{ReplayEvent, StaticReplayClient};
           9  +
use aws_smithy_http_client::test_util::{ReplayEvent, StaticReplayClient};
   10     10   
use aws_smithy_types::body::SdkBody;
   11         -
use http::header::AUTHORIZATION;
          11  +
use http_1x::header::AUTHORIZATION;
   12     12   
   13     13   
#[tokio::test]
   14     14   
async fn test_signer() {
   15     15   
    let http_client = StaticReplayClient::new(vec![ReplayEvent::new(
   16         -
        http::Request::builder()
          16  +
        http_1x::Request::builder()
   17     17   
        .header("authorization",
   18     18   
                    "AWS4-HMAC-SHA256 Credential=ANOTREAL/20090213/us-east-1/s3/aws4_request, \
   19     19   
                    SignedHeaders=host;x-amz-account-id;x-amz-content-sha256;x-amz-date;x-amz-user-agent, \
   20     20   
                    Signature=0102a74cb220f8445c4efada17660572ff813e07b524032ec831e8c2514be903")
   21     21   
            .uri("https://test-bucket.s3-control.us-east-1.amazonaws.com/v20180820/accesspoint")
   22     22   
            .body(SdkBody::empty())
   23     23   
            .unwrap(),
   24         -
        http::Response::builder().status(200).body(SdkBody::empty()).unwrap(),
          24  +
        http_1x::Response::builder().status(200).body(SdkBody::empty()).unwrap(),
   25     25   
    )]);
   26     26   
    let config = Config::builder()
   27     27   
        .credentials_provider(SharedCredentialsProvider::new(
   28     28   
            Credentials::for_tests_with_session_token(),
   29     29   
        ))
   30     30   
        .http_client(http_client.clone())
   31     31   
        .region(Region::new("us-east-1"))
   32     32   
        .with_test_defaults()
   33     33   
        .build();
   34     34   
    let client = Client::from_conf(config);

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

@@ -1,1 +0,85 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.81.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.1"
          19  +
version = "1.2.2"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23         -
version = "1.5.5"
          23  +
version = "1.5.6"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27         -
version = "1.2.4"
          27  +
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.61.1"
          31  +
version = "0.62.0"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35         -
version = "0.61.2"
          35  +
version = "0.61.3"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40         -
version = "1.7.8"
          40  +
version = "1.8.0"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.7.3"
          45  +
version = "1.7.4"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49         -
version = "1.2.13"
          49  +
version = "1.3.0"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53         -
version = "1.3.5"
          53  +
version = "1.3.6"
   54     54   
   55     55   
[dependencies.bytes]
   56     56   
version = "1.4.0"
   57     57   
   58     58   
[dependencies.http]
   59     59   
version = "0.2.9"
   60     60   
   61     61   
[dependencies.once_cell]
   62     62   
version = "1.16"
   63     63   
   64     64   
[dependencies.regex-lite]
   65     65   
version = "0.1.5"
   66     66   
   67     67   
[dependencies.tracing]
   68     68   
version = "0.1"
   69     69   
[dev-dependencies.aws-credential-types]
   70     70   
path = "../aws-credential-types"
   71     71   
features = ["test-util"]
   72         -
version = "1.2.1"
          72  +
version = "1.2.2"
   73     73   
   74     74   
[dev-dependencies.tokio]
   75     75   
version = "1.23.1"
   76     76   
features = ["macros", "test-util", "rt-multi-thread"]
   77     77   
   78     78   
[features]
   79     79   
behavior-version-latest = []
   80     80   
rustls = ["aws-smithy-runtime/tls-rustls"]
          81  +
default-https-client = ["aws-smithy-runtime/default-https-client"]
   81     82   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
   82     83   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
   83     84   
gated-tests = []
   84         -
default = ["rustls", "rt-tokio"]
          85  +
default = ["rustls", "default-https-client", "rt-tokio"]

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

@@ -1,1 +0,85 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.81.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.1"
          19  +
version = "1.2.2"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23         -
version = "1.5.5"
          23  +
version = "1.5.6"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27         -
version = "1.2.4"
          27  +
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.61.1"
          31  +
version = "0.62.0"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35         -
version = "0.61.2"
          35  +
version = "0.61.3"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40         -
version = "1.7.8"
          40  +
version = "1.8.0"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.7.3"
          45  +
version = "1.7.4"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49         -
version = "1.2.13"
          49  +
version = "1.3.0"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53         -
version = "1.3.5"
          53  +
version = "1.3.6"
   54     54   
   55     55   
[dependencies.bytes]
   56     56   
version = "1.4.0"
   57     57   
   58     58   
[dependencies.http]
   59     59   
version = "0.2.9"
   60     60   
   61     61   
[dependencies.once_cell]
   62     62   
version = "1.16"
   63     63   
   64     64   
[dependencies.regex-lite]
   65     65   
version = "0.1.5"
   66     66   
   67     67   
[dependencies.tracing]
   68     68   
version = "0.1"
   69     69   
[dev-dependencies.aws-credential-types]
   70     70   
path = "../aws-credential-types"
   71     71   
features = ["test-util"]
   72         -
version = "1.2.1"
          72  +
version = "1.2.2"
   73     73   
   74     74   
[dev-dependencies.tokio]
   75     75   
version = "1.23.1"
   76     76   
features = ["macros", "test-util", "rt-multi-thread"]
   77     77   
   78     78   
[features]
   79     79   
behavior-version-latest = []
   80     80   
rustls = ["aws-smithy-runtime/tls-rustls"]
          81  +
default-https-client = ["aws-smithy-runtime/default-https-client"]
   81     82   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
   82     83   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
   83     84   
gated-tests = []
   84         -
default = ["rustls", "rt-tokio"]
          85  +
default = ["rustls", "default-https-client", "rt-tokio"]