6028 6028 | let error = _result.expect_err("expected error: Unrecognized S3Express bucket name format. [bad AP format error no session auth]");
|
6029 6029 | assert!(
|
6030 6030 | format!("{:?}", error).contains("Unrecognized S3Express bucket name format."),
|
6031 6031 | "expected error to contain `Unrecognized S3Express bucket name format.` but it was {:?}",
|
6032 6032 | error
|
6033 6033 | );
|
6034 6034 | }
|
6035 6035 |
|
6036 6036 | #[::tokio::test]
|
6037 6037 | async fn operation_input_test_get_object_178() {
|
6038 - | /* documentation: dual-stack error */
|
6038 + | /* documentation: accelerate error */
|
6039 6039 | /* builtIns: {
|
6040 6040 | "AWS::Region": "us-east-1",
|
6041 - | "AWS::UseDualStack": true
|
6041 + | "AWS::S3::Accelerate": true
|
6042 6042 | } */
|
6043 6043 | /* clientParams: {} */
|
6044 6044 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6045 6045 | let conf = {
|
6046 6046 | #[allow(unused_mut)]
|
6047 6047 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6048 6048 | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6049 - | let builder = builder.use_dual_stack(true);
|
6049 + | let builder = builder.accelerate(true);
|
6050 6050 | builder.build()
|
6051 6051 | };
|
6052 6052 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6053 6053 | let _result = dbg!(
|
6054 6054 | client
|
6055 6055 | .get_object()
|
6056 6056 | .set_bucket(::std::option::Option::Some("mybucket--test-ab1--x-s3".to_owned()))
|
6057 6057 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6058 6058 | .send()
|
6059 6059 | .await
|
6060 6060 | );
|
6061 6061 | rcvr.expect_no_request();
|
6062 - | let error = _result.expect_err("expected error: S3Express does not support Dual-stack. [dual-stack error]");
|
6062 + | let error = _result.expect_err("expected error: S3Express does not support S3 Accelerate. [accelerate error]");
|
6063 6063 | assert!(
|
6064 - | format!("{:?}", error).contains("S3Express does not support Dual-stack."),
|
6065 - | "expected error to contain `S3Express does not support Dual-stack.` but it was {:?}",
|
6064 + | format!("{:?}", error).contains("S3Express does not support S3 Accelerate."),
|
6065 + | "expected error to contain `S3Express does not support S3 Accelerate.` but it was {:?}",
|
6066 6066 | error
|
6067 6067 | );
|
6068 6068 | }
|
6069 6069 |
|
6070 6070 | #[::tokio::test]
|
6071 6071 | async fn operation_input_test_get_object_179() {
|
6072 - | /* documentation: dual-stack error with AP */
|
6072 + | /* documentation: accelerate error with AP */
|
6073 6073 | /* builtIns: {
|
6074 6074 | "AWS::Region": "us-east-1",
|
6075 - | "AWS::UseDualStack": true
|
6075 + | "AWS::S3::Accelerate": true
|
6076 6076 | } */
|
6077 6077 | /* clientParams: {} */
|
6078 6078 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6079 6079 | let conf = {
|
6080 6080 | #[allow(unused_mut)]
|
6081 6081 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6082 6082 | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6083 - | let builder = builder.use_dual_stack(true);
|
6083 + | let builder = builder.accelerate(true);
|
6084 6084 | builder.build()
|
6085 6085 | };
|
6086 6086 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6087 6087 | let _result = dbg!(
|
6088 6088 | client
|
6089 6089 | .get_object()
|
6090 6090 | .set_bucket(::std::option::Option::Some("myaccesspoint--test-ab1--xa-s3".to_owned()))
|
6091 6091 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6092 6092 | .send()
|
6093 6093 | .await
|
6094 6094 | );
|
6095 6095 | rcvr.expect_no_request();
|
6096 - | let error = _result.expect_err("expected error: S3Express does not support Dual-stack. [dual-stack error with AP]");
|
6096 + | let error = _result.expect_err("expected error: S3Express does not support S3 Accelerate. [accelerate error with AP]");
|
6097 6097 | assert!(
|
6098 - | format!("{:?}", error).contains("S3Express does not support Dual-stack."),
|
6099 - | "expected error to contain `S3Express does not support Dual-stack.` but it was {:?}",
|
6098 + | format!("{:?}", error).contains("S3Express does not support S3 Accelerate."),
|
6099 + | "expected error to contain `S3Express does not support S3 Accelerate.` but it was {:?}",
|
6100 6100 | error
|
6101 6101 | );
|
6102 6102 | }
|
6103 6103 |
|
6104 6104 | #[::tokio::test]
|
6105 6105 | async fn operation_input_test_get_object_180() {
|
6106 - | /* documentation: accelerate error */
|
6106 + | /* documentation: Data plane bucket format error */
|
6107 6107 | /* builtIns: {
|
6108 - | "AWS::Region": "us-east-1",
|
6109 - | "AWS::S3::Accelerate": true
|
6108 + | "AWS::Region": "us-east-1"
|
6110 6109 | } */
|
6111 6110 | /* clientParams: {} */
|
6112 6111 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6113 6112 | let conf = {
|
6114 6113 | #[allow(unused_mut)]
|
6115 6114 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6116 6115 | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6117 - | let builder = builder.accelerate(true);
|
6118 6116 | builder.build()
|
6119 6117 | };
|
6120 6118 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6121 6119 | let _result = dbg!(
|
6122 6120 | client
|
6123 6121 | .get_object()
|
6124 - | .set_bucket(::std::option::Option::Some("mybucket--test-ab1--x-s3".to_owned()))
|
6122 + | .set_bucket(::std::option::Option::Some("my.bucket--test-ab1--x-s3".to_owned()))
|
6125 6123 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6126 6124 | .send()
|
6127 6125 | .await
|
6128 6126 | );
|
6129 6127 | rcvr.expect_no_request();
|
6130 - | let error = _result.expect_err("expected error: S3Express does not support S3 Accelerate. [accelerate error]");
|
6128 + | let error = _result.expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [Data plane bucket format error]");
|
6131 6129 | assert!(
|
6132 - | format!("{:?}", error).contains("S3Express does not support S3 Accelerate."),
|
6133 - | "expected error to contain `S3Express does not support S3 Accelerate.` but it was {:?}",
|
6130 + | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6131 + | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6134 6132 | error
|
6135 6133 | );
|
6136 6134 | }
|
6137 6135 |
|
6138 6136 | #[::tokio::test]
|
6139 6137 | async fn operation_input_test_get_object_181() {
|
6140 - | /* documentation: accelerate error with AP */
|
6138 + | /* documentation: Data plane AP format error */
|
6141 6139 | /* builtIns: {
|
6142 - | "AWS::Region": "us-east-1",
|
6143 - | "AWS::S3::Accelerate": true
|
6140 + | "AWS::Region": "us-east-1"
|
6144 6141 | } */
|
6145 6142 | /* clientParams: {} */
|
6146 6143 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6147 6144 | let conf = {
|
6148 6145 | #[allow(unused_mut)]
|
6149 6146 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6150 6147 | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6151 - | let builder = builder.accelerate(true);
|
6152 6148 | builder.build()
|
6153 6149 | };
|
6154 6150 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6155 6151 | let _result = dbg!(
|
6156 6152 | client
|
6157 6153 | .get_object()
|
6158 - | .set_bucket(::std::option::Option::Some("myaccesspoint--test-ab1--xa-s3".to_owned()))
|
6154 + | .set_bucket(::std::option::Option::Some("my.myaccesspoint--test-ab1--xa-s3".to_owned()))
|
6159 6155 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6160 6156 | .send()
|
6161 6157 | .await
|
6162 6158 | );
|
6163 6159 | rcvr.expect_no_request();
|
6164 - | let error = _result.expect_err("expected error: S3Express does not support S3 Accelerate. [accelerate error with AP]");
|
6160 + | let error = _result.expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [Data plane AP format error]");
|
6165 6161 | assert!(
|
6166 - | format!("{:?}", error).contains("S3Express does not support S3 Accelerate."),
|
6167 - | "expected error to contain `S3Express does not support S3 Accelerate.` but it was {:?}",
|
6162 + | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6163 + | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6168 6164 | error
|
6169 6165 | );
|
6170 6166 | }
|
6171 6167 |
|
6172 6168 | #[::tokio::test]
|
6173 6169 | async fn operation_input_test_get_object_182() {
|
6174 - | /* documentation: Data plane bucket format error */
|
6170 + | /* documentation: host override data plane bucket error session auth */
|
6175 6171 | /* builtIns: {
|
6176 - | "AWS::Region": "us-east-1"
|
6172 + | "AWS::Region": "us-west-2",
|
6173 + | "SDK::Endpoint": "https://custom.com"
|
6177 6174 | } */
|
6178 6175 | /* clientParams: {} */
|
6179 6176 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6180 6177 | let conf = {
|
6181 6178 | #[allow(unused_mut)]
|
6182 6179 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6183 - | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6180 + | let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
|
6181 + | let builder = builder.endpoint_url("https://custom.com");
|
6184 6182 | builder.build()
|
6185 6183 | };
|
6186 6184 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6187 6185 | let _result = dbg!(
|
6188 6186 | client
|
6189 6187 | .get_object()
|
6190 - | .set_bucket(::std::option::Option::Some("my.bucket--test-ab1--x-s3".to_owned()))
|
6188 + | .set_bucket(::std::option::Option::Some("my.bucket--usw2-az1--x-s3".to_owned()))
|
6191 6189 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6192 6190 | .send()
|
6193 6191 | .await
|
6194 6192 | );
|
6195 6193 | rcvr.expect_no_request();
|
6196 - | let error = _result.expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [Data plane bucket format error]");
|
6194 + | let error = _result.expect_err(
|
6195 + | "expected error: S3Express bucket name is not a valid virtual hostable name. [host override data plane bucket error session auth]",
|
6196 + | );
|
6197 6197 | assert!(
|
6198 6198 | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6199 6199 | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6200 6200 | error
|
6201 6201 | );
|
6202 6202 | }
|
6203 6203 |
|
6204 6204 | #[::tokio::test]
|
6205 6205 | async fn operation_input_test_get_object_183() {
|
6206 - | /* documentation: Data plane AP format error */
|
6206 + | /* documentation: host override data plane AP error session auth */
|
6207 6207 | /* builtIns: {
|
6208 - | "AWS::Region": "us-east-1"
|
6208 + | "AWS::Region": "us-west-2",
|
6209 + | "SDK::Endpoint": "https://custom.com"
|
6209 6210 | } */
|
6210 6211 | /* clientParams: {} */
|
6211 6212 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6212 6213 | let conf = {
|
6213 6214 | #[allow(unused_mut)]
|
6214 6215 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6215 - | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6216 + | let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
|
6217 + | let builder = builder.endpoint_url("https://custom.com");
|
6216 6218 | builder.build()
|
6217 6219 | };
|
6218 6220 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6219 6221 | let _result = dbg!(
|
6220 6222 | client
|
6221 6223 | .get_object()
|
6222 - | .set_bucket(::std::option::Option::Some("my.myaccesspoint--test-ab1--xa-s3".to_owned()))
|
6224 + | .set_bucket(::std::option::Option::Some("my.myaccesspoint--usw2-az1--xa-s3".to_owned()))
|
6223 6225 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6224 6226 | .send()
|
6225 6227 | .await
|
6226 6228 | );
|
6227 6229 | rcvr.expect_no_request();
|
6228 - | let error = _result.expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [Data plane AP format error]");
|
6230 + | let error = _result
|
6231 + | .expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [host override data plane AP error session auth]");
|
6229 6232 | assert!(
|
6230 6233 | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6231 6234 | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6232 6235 | error
|
6233 6236 | );
|
6234 6237 | }
|
6235 6238 |
|
6236 6239 | #[::tokio::test]
|
6237 - | async fn operation_input_test_get_object_184() {
|
6238 - | /* documentation: host override data plane bucket error session auth */
|
6240 + | async fn operation_input_test_list_directory_buckets_184() {
|
6241 + | /* documentation: Control plane without bucket and dualstack */
|
6242 + | /* builtIns: {
|
6243 + | "AWS::Region": "us-east-1",
|
6244 + | "AWS::UseDualStack": true
|
6245 + | } */
|
6246 + | /* clientParams: {} */
|
6247 + | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6248 + | let conf = {
|
6249 + | #[allow(unused_mut)]
|
6250 + | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6251 + | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6252 + | let builder = builder.use_dual_stack(true);
|
6253 + | builder.build()
|
6254 + | };
|
6255 + | let client = aws_sdk_s3::Client::from_conf(conf);
|
6256 + | let _result = dbg!(client.list_directory_buckets().send().await);
|
6257 + | let req = rcvr.expect_request();
|
6258 + | let uri = req.uri().to_string();
|
6259 + | assert!(
|
6260 + | uri.starts_with("https://s3express-control.dualstack.us-east-1.amazonaws.com"),
|
6261 + | "expected URI to start with `https://s3express-control.dualstack.us-east-1.amazonaws.com` but it was `{}`",
|
6262 + | uri
|
6263 + | );
|
6264 + | }
|
6265 + |
|
6266 + | #[::tokio::test]
|
6267 + | async fn operation_input_test_list_directory_buckets_185() {
|
6268 + | /* documentation: Control plane without bucket, fips and dualstack */
|
6269 + | /* builtIns: {
|
6270 + | "AWS::Region": "us-east-1",
|
6271 + | "AWS::UseFIPS": true,
|
6272 + | "AWS::UseDualStack": true
|
6273 + | } */
|
6274 + | /* clientParams: {} */
|
6275 + | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6276 + | let conf = {
|
6277 + | #[allow(unused_mut)]
|
6278 + | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6279 + | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6280 + | let builder = builder.use_fips(true);
|
6281 + | let builder = builder.use_dual_stack(true);
|
6282 + | builder.build()
|
6283 + | };
|
6284 + | let client = aws_sdk_s3::Client::from_conf(conf);
|
6285 + | let _result = dbg!(client.list_directory_buckets().send().await);
|
6286 + | let req = rcvr.expect_request();
|
6287 + | let uri = req.uri().to_string();
|
6288 + | assert!(
|
6289 + | uri.starts_with("https://s3express-control-fips.dualstack.us-east-1.amazonaws.com"),
|
6290 + | "expected URI to start with `https://s3express-control-fips.dualstack.us-east-1.amazonaws.com` but it was `{}`",
|
6291 + | uri
|
6292 + | );
|
6293 + | }
|
6294 + |
|
6295 + | #[::tokio::test]
|
6296 + | async fn operation_input_test_get_object_186() {
|
6297 + | /* documentation: Data Plane with short AZ and dualstack */
|
6239 6298 | /* builtIns: {
|
6240 6299 | "AWS::Region": "us-west-2",
|
6241 - | "SDK::Endpoint": "https://custom.com"
|
6300 + | "AWS::UseDualStack": true
|
6242 6301 | } */
|
6243 6302 | /* clientParams: {} */
|
6244 6303 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6245 6304 | let conf = {
|
6246 6305 | #[allow(unused_mut)]
|
6247 6306 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6248 6307 | let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
|
6249 - | let builder = builder.endpoint_url("https://custom.com");
|
6308 + | let builder = builder.use_dual_stack(true);
|
6250 6309 | builder.build()
|
6251 6310 | };
|
6252 6311 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6253 6312 | let _result = dbg!(
|
6254 6313 | client
|
6255 6314 | .get_object()
|
6256 - | .set_bucket(::std::option::Option::Some("my.bucket--usw2-az1--x-s3".to_owned()))
|
6315 + | .set_bucket(::std::option::Option::Some("mybucket--usw2-az1--x-s3".to_owned()))
|
6257 6316 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6258 6317 | .send()
|
6259 6318 | .await
|
6260 6319 | );
|
6261 - | rcvr.expect_no_request();
|
6262 - | let error = _result.expect_err(
|
6263 - | "expected error: S3Express bucket name is not a valid virtual hostable name. [host override data plane bucket error session auth]",
|
6264 - | );
|
6320 + | let req = rcvr.expect_request();
|
6321 + | let uri = req.uri().to_string();
|
6265 6322 | assert!(
|
6266 - | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6267 - | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6268 - | error
|
6323 + | uri.starts_with("https://mybucket--usw2-az1--x-s3.s3express-usw2-az1.dualstack.us-west-2.amazonaws.com"),
|
6324 + | "expected URI to start with `https://mybucket--usw2-az1--x-s3.s3express-usw2-az1.dualstack.us-west-2.amazonaws.com` but it was `{}`",
|
6325 + | uri
|
6269 6326 | );
|
6270 6327 | }
|
6271 6328 |
|
6272 6329 | #[::tokio::test]
|
6273 - | async fn operation_input_test_get_object_185() {
|
6274 - | /* documentation: host override data plane AP error session auth */
|
6330 + | async fn operation_input_test_get_object_187() {
|
6331 + | /* documentation: Data Plane with short AZ and FIPS with dualstack */
|
6275 6332 | /* builtIns: {
|
6276 6333 | "AWS::Region": "us-west-2",
|
6277 - | "SDK::Endpoint": "https://custom.com"
|
6334 + | "AWS::UseFIPS": true,
|
6335 + | "AWS::UseDualStack": true
|
6278 6336 | } */
|
6279 6337 | /* clientParams: {} */
|
6280 6338 | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6281 6339 | let conf = {
|
6282 6340 | #[allow(unused_mut)]
|
6283 6341 | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6284 6342 | let builder = builder.region(::aws_types::region::Region::new("us-west-2"));
|
6285 - | let builder = builder.endpoint_url("https://custom.com");
|
6343 + | let builder = builder.use_fips(true);
|
6344 + | let builder = builder.use_dual_stack(true);
|
6286 6345 | builder.build()
|
6287 6346 | };
|
6288 6347 | let client = aws_sdk_s3::Client::from_conf(conf);
|
6289 6348 | let _result = dbg!(
|
6290 6349 | client
|
6291 6350 | .get_object()
|
6292 - | .set_bucket(::std::option::Option::Some("my.myaccesspoint--usw2-az1--xa-s3".to_owned()))
|
6351 + | .set_bucket(::std::option::Option::Some("mybucket--usw2-az1--x-s3".to_owned()))
|
6293 6352 | .set_key(::std::option::Option::Some("key".to_owned()))
|
6294 6353 | .send()
|
6295 6354 | .await
|
6296 6355 | );
|
6297 - | rcvr.expect_no_request();
|
6298 - | let error = _result
|
6299 - | .expect_err("expected error: S3Express bucket name is not a valid virtual hostable name. [host override data plane AP error session auth]");
|
6356 + | let req = rcvr.expect_request();
|
6357 + | let uri = req.uri().to_string();
|
6300 6358 | assert!(
|
6301 - | format!("{:?}", error).contains("S3Express bucket name is not a valid virtual hostable name."),
|
6302 - | "expected error to contain `S3Express bucket name is not a valid virtual hostable name.` but it was {:?}",
|
6303 - | error
|
6359 + | uri.starts_with("https://mybucket--usw2-az1--x-s3.s3express-fips-usw2-az1.dualstack.us-west-2.amazonaws.com"),
|
6360 + | "expected URI to start with `https://mybucket--usw2-az1--x-s3.s3express-fips-usw2-az1.dualstack.us-west-2.amazonaws.com` but it was `{}`",
|
6361 + | uri
|
6362 + | );
|
6363 + | }
|
6364 + |
|
6365 + | #[::tokio::test]
|
6366 + | async fn operation_input_test_create_bucket_188() {
|
6367 + | /* documentation: Control plane and FIPS with dualstack */
|
6368 + | /* builtIns: {
|
6369 + | "AWS::Region": "us-east-1",
|
6370 + | "AWS::UseFIPS": true,
|
6371 + | "AWS::UseDualStack": true
|
6372 + | } */
|
6373 + | /* clientParams: {} */
|
6374 + | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6375 + | let conf = {
|
6376 + | #[allow(unused_mut)]
|
6377 + | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6378 + | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6379 + | let builder = builder.use_fips(true);
|
6380 + | let builder = builder.use_dual_stack(true);
|
6381 + | builder.build()
|
6382 + | };
|
6383 + | let client = aws_sdk_s3::Client::from_conf(conf);
|
6384 + | let _result = dbg!(
|
6385 + | client
|
6386 + | .create_bucket()
|
6387 + | .set_bucket(::std::option::Option::Some("mybucket--test-ab1--x-s3".to_owned()))
|
6388 + | .send()
|
6389 + | .await
|
6390 + | );
|
6391 + | let req = rcvr.expect_request();
|
6392 + | let uri = req.uri().to_string();
|
6393 + | assert!(
|
6394 + | uri.starts_with("https://s3express-control-fips.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3"),
|
6395 + | "expected URI to start with `https://s3express-control-fips.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3` but it was `{}`",
|
6396 + | uri
|
6397 + | );
|
6398 + | }
|
6399 + |
|
6400 + | #[::tokio::test]
|
6401 + | async fn operation_input_test_create_bucket_189() {
|
6402 + | /* documentation: Control plane with dualstack and bucket */
|
6403 + | /* builtIns: {
|
6404 + | "AWS::Region": "us-east-1",
|
6405 + | "AWS::UseDualStack": true
|
6406 + | } */
|
6407 + | /* clientParams: {} */
|
6408 + | let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
|
6409 + | let conf = {
|
6410 + | #[allow(unused_mut)]
|
6411 + | let mut builder = aws_sdk_s3::Config::builder().with_test_defaults().http_client(http_client);
|
6412 + | let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
|
6413 + | let builder = builder.use_dual_stack(true);
|
6414 + | builder.build()
|
6415 + | };
|
6416 + | let client = aws_sdk_s3::Client::from_conf(conf);
|
6417 + | let _result = dbg!(
|
6418 + | client
|
6419 + | .create_bucket()
|
6420 + | .set_bucket(::std::option::Option::Some("mybucket--test-ab1--x-s3".to_owned()))
|
6421 + | .send()
|
6422 + | .await
|
6423 + | );
|
6424 + | let req = rcvr.expect_request();
|
6425 + | let uri = req.uri().to_string();
|
6426 + | assert!(
|
6427 + | uri.starts_with("https://s3express-control.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3"),
|
6428 + | "expected URI to start with `https://s3express-control.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3` but it was `{}`",
|
6429 + | uri
|
6304 6430 | );
|
6305 6431 | }
|