43 43 | .expect("invalid params");
|
44 44 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
45 45 | let endpoint = resolver.resolve_endpoint(¶ms);
|
46 46 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.amazonaws.com");
|
47 47 | assert_eq!(
|
48 48 | endpoint,
|
49 49 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
50 50 | .url("https://s3-outposts.us-west-2.amazonaws.com")
|
51 51 | .header("x-amz-account-id", "123456789012")
|
52 52 | .header("x-amz-outpost-id", "op-01234567890123456")
|
53 - | .property(
|
54 - | "authSchemes",
|
55 - | vec![{
|
56 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
57 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
58 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
59 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
60 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
61 - | out
|
62 - | }
|
63 - | .into()]
|
53 + | .auth_scheme(
|
54 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
55 + | .put("disableDoubleEncoding", true)
|
56 + | .put("signingName", "s3-outposts".to_string())
|
57 + | .put("signingRegion", "us-west-2".to_string())
|
64 58 | )
|
65 59 | .build()
|
66 60 | );
|
67 61 | }
|
68 62 |
|
69 63 | /// Vanilla outposts with ARN region + access point ARN@us-west-2
|
70 64 | #[test]
|
71 65 | fn test_2() {
|
72 66 | let params = crate::config::endpoint::Params::builder()
|
73 67 | .access_point_name("arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
74 68 | .account_id("123456789012".to_string())
|
75 69 | .region("us-west-2".to_string())
|
76 70 | .requires_account_id(true)
|
77 71 | .use_dual_stack(false)
|
78 72 | .use_fips(false)
|
79 73 | .build()
|
80 74 | .expect("invalid params");
|
81 75 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
82 76 | let endpoint = resolver.resolve_endpoint(¶ms);
|
83 77 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-1.amazonaws.com");
|
84 78 | assert_eq!(
|
85 79 | endpoint,
|
86 80 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
87 81 | .url("https://s3-outposts.us-east-1.amazonaws.com")
|
88 82 | .header("x-amz-account-id", "123456789012")
|
89 83 | .header("x-amz-outpost-id", "op-01234567890123456")
|
90 - | .property(
|
91 - | "authSchemes",
|
92 - | vec![{
|
93 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
94 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
95 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
96 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
97 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
98 - | out
|
99 - | }
|
100 - | .into()]
|
84 + | .auth_scheme(
|
85 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
86 + | .put("disableDoubleEncoding", true)
|
87 + | .put("signingName", "s3-outposts".to_string())
|
88 + | .put("signingRegion", "us-east-1".to_string())
|
101 89 | )
|
102 90 | .build()
|
103 91 | );
|
104 92 | }
|
105 93 |
|
106 94 | /// accept an access point ARN@us-west-2
|
107 95 | #[test]
|
108 96 | fn test_3() {
|
109 97 | let params = crate::config::endpoint::Params::builder()
|
110 98 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
111 99 | .account_id("123456789012".to_string())
|
112 100 | .region("us-west-2".to_string())
|
113 101 | .requires_account_id(true)
|
114 102 | .use_dual_stack(false)
|
115 103 | .use_fips(false)
|
116 104 | .build()
|
117 105 | .expect("invalid params");
|
118 106 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
119 107 | let endpoint = resolver.resolve_endpoint(¶ms);
|
120 108 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.amazonaws.com");
|
121 109 | assert_eq!(
|
122 110 | endpoint,
|
123 111 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
124 112 | .url("https://s3-outposts.us-west-2.amazonaws.com")
|
125 113 | .header("x-amz-account-id", "123456789012")
|
126 114 | .header("x-amz-outpost-id", "op-01234567890123456")
|
127 - | .property(
|
128 - | "authSchemes",
|
129 - | vec![{
|
130 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
131 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
132 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
133 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
134 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
135 - | out
|
136 - | }
|
137 - | .into()]
|
115 + | .auth_scheme(
|
116 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
117 + | .put("disableDoubleEncoding", true)
|
118 + | .put("signingName", "s3-outposts".to_string())
|
119 + | .put("signingRegion", "us-west-2".to_string())
|
138 120 | )
|
139 121 | .build()
|
140 122 | );
|
141 123 | }
|
142 124 |
|
143 125 | /// vanilla outposts china@cn-north-1
|
144 126 | #[test]
|
145 127 | fn test_4() {
|
146 128 | let params = crate::config::endpoint::Params::builder()
|
147 129 | .access_point_name("arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
148 130 | .account_id("123456789012".to_string())
|
149 131 | .region("cn-north-1".to_string())
|
150 132 | .requires_account_id(true)
|
151 133 | .use_dual_stack(false)
|
152 134 | .use_fips(false)
|
153 135 | .build()
|
154 136 | .expect("invalid params");
|
155 137 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
156 138 | let endpoint = resolver.resolve_endpoint(¶ms);
|
157 139 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.cn-north-1.amazonaws.com.cn");
|
158 140 | assert_eq!(
|
159 141 | endpoint,
|
160 142 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
161 143 | .url("https://s3-outposts.cn-north-1.amazonaws.com.cn")
|
162 144 | .header("x-amz-account-id", "123456789012")
|
163 145 | .header("x-amz-outpost-id", "op-01234567890123456")
|
164 - | .property(
|
165 - | "authSchemes",
|
166 - | vec![{
|
167 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
168 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
169 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
170 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
171 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
172 - | out
|
173 - | }
|
174 - | .into()]
|
146 + | .auth_scheme(
|
147 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
148 + | .put("disableDoubleEncoding", true)
|
149 + | .put("signingName", "s3-outposts".to_string())
|
150 + | .put("signingRegion", "cn-north-1".to_string())
|
175 151 | )
|
176 152 | .build()
|
177 153 | );
|
178 154 | }
|
179 155 |
|
180 156 | /// gov region@us-west-2
|
181 157 | #[test]
|
182 158 | fn test_5() {
|
183 159 | let params = crate::config::endpoint::Params::builder()
|
184 160 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
185 161 | .account_id("123456789012".to_string())
|
186 162 | .region("us-west-2".to_string())
|
187 163 | .requires_account_id(true)
|
188 164 | .use_dual_stack(false)
|
189 165 | .use_fips(false)
|
190 166 | .build()
|
191 167 | .expect("invalid params");
|
192 168 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
193 169 | let endpoint = resolver.resolve_endpoint(¶ms);
|
194 170 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.amazonaws.com");
|
195 171 | assert_eq!(
|
196 172 | endpoint,
|
197 173 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
198 174 | .url("https://s3-outposts.us-west-2.amazonaws.com")
|
199 175 | .header("x-amz-account-id", "123456789012")
|
200 176 | .header("x-amz-outpost-id", "op-01234567890123456")
|
201 - | .property(
|
202 - | "authSchemes",
|
203 - | vec![{
|
204 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
205 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
206 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
207 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
208 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
209 - | out
|
210 - | }
|
211 - | .into()]
|
177 + | .auth_scheme(
|
178 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
179 + | .put("disableDoubleEncoding", true)
|
180 + | .put("signingName", "s3-outposts".to_string())
|
181 + | .put("signingRegion", "us-west-2".to_string())
|
212 182 | )
|
213 183 | .build()
|
214 184 | );
|
215 185 | }
|
216 186 |
|
217 187 | /// gov cloud with fips@us-west-2
|
218 188 | #[test]
|
219 189 | fn test_6() {
|
220 190 | let params = crate::config::endpoint::Params::builder()
|
221 191 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
222 192 | .account_id("123456789012".to_string())
|
223 193 | .region("us-west-2".to_string())
|
224 194 | .requires_account_id(true)
|
225 195 | .use_dual_stack(false)
|
226 196 | .use_fips(true)
|
227 197 | .build()
|
228 198 | .expect("invalid params");
|
229 199 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
230 200 | let endpoint = resolver.resolve_endpoint(¶ms);
|
231 201 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-west-2.amazonaws.com");
|
232 202 | assert_eq!(
|
233 203 | endpoint,
|
234 204 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
235 205 | .url("https://s3-outposts-fips.us-west-2.amazonaws.com")
|
236 206 | .header("x-amz-account-id", "123456789012")
|
237 207 | .header("x-amz-outpost-id", "op-01234567890123456")
|
238 - | .property(
|
239 - | "authSchemes",
|
240 - | vec![{
|
241 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
242 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
243 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
244 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
245 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
246 - | out
|
247 - | }
|
248 - | .into()]
|
208 + | .auth_scheme(
|
209 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
210 + | .put("disableDoubleEncoding", true)
|
211 + | .put("signingName", "s3-outposts".to_string())
|
212 + | .put("signingRegion", "us-west-2".to_string())
|
249 213 | )
|
250 214 | .build()
|
251 215 | );
|
252 216 | }
|
253 217 |
|
254 218 | /// govcloud with fips + arn region@us-gov-west-1
|
255 219 | #[test]
|
256 220 | fn test_7() {
|
257 221 | let params = crate::config::endpoint::Params::builder()
|
258 222 | .access_point_name(
|
259 223 | "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string(),
|
260 224 | )
|
261 225 | .account_id("123456789012".to_string())
|
262 226 | .region("us-gov-west-1".to_string())
|
263 227 | .requires_account_id(true)
|
264 228 | .use_dual_stack(false)
|
265 229 | .use_fips(true)
|
266 230 | .build()
|
267 231 | .expect("invalid params");
|
268 232 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
269 233 | let endpoint = resolver.resolve_endpoint(¶ms);
|
270 234 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-east-1.amazonaws.com");
|
271 235 | assert_eq!(
|
272 236 | endpoint,
|
273 237 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
274 238 | .url("https://s3-outposts-fips.us-gov-east-1.amazonaws.com")
|
275 239 | .header("x-amz-account-id", "123456789012")
|
276 240 | .header("x-amz-outpost-id", "op-01234567890123456")
|
277 - | .property(
|
278 - | "authSchemes",
|
279 - | vec![{
|
280 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
281 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
282 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
283 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
284 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
285 - | out
|
286 - | }
|
287 - | .into()]
|
241 + | .auth_scheme(
|
242 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
243 + | .put("disableDoubleEncoding", true)
|
244 + | .put("signingName", "s3-outposts".to_string())
|
245 + | .put("signingRegion", "us-gov-east-1".to_string())
|
288 246 | )
|
289 247 | .build()
|
290 248 | );
|
291 249 | }
|
292 250 |
|
293 251 | /// gov region@cn-north-1
|
294 252 | #[test]
|
295 253 | fn test_8() {
|
296 254 | let params = crate::config::endpoint::Params::builder()
|
297 255 | .access_point_name("arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
298 256 | .account_id("123456789012".to_string())
|
299 257 | .region("cn-north-1".to_string())
|
300 258 | .requires_account_id(true)
|
301 259 | .use_dual_stack(false)
|
302 260 | .use_fips(false)
|
303 261 | .build()
|
304 262 | .expect("invalid params");
|
305 263 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
306 264 | let endpoint = resolver.resolve_endpoint(¶ms);
|
307 265 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.cn-north-1.amazonaws.com.cn");
|
308 266 | assert_eq!(
|
309 267 | endpoint,
|
310 268 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
311 269 | .url("https://s3-outposts.cn-north-1.amazonaws.com.cn")
|
312 270 | .header("x-amz-account-id", "123456789012")
|
313 271 | .header("x-amz-outpost-id", "op-01234567890123456")
|
314 - | .property(
|
315 - | "authSchemes",
|
316 - | vec![{
|
317 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
318 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
319 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
320 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
321 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
322 - | out
|
323 - | }
|
324 - | .into()]
|
272 + | .auth_scheme(
|
273 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
274 + | .put("disableDoubleEncoding", true)
|
275 + | .put("signingName", "s3-outposts".to_string())
|
276 + | .put("signingRegion", "cn-north-1".to_string())
|
325 277 | )
|
326 278 | .build()
|
327 279 | );
|
328 280 | }
|
329 281 |
|
330 282 | /// gov cloud with fips@cn-north-1
|
331 283 | #[test]
|
332 284 | fn test_9() {
|
333 285 | let params = crate::config::endpoint::Params::builder()
|
334 286 | .access_point_name("arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
335 287 | .account_id("123456789012".to_string())
|
336 288 | .region("cn-north-1".to_string())
|
337 289 | .requires_account_id(true)
|
338 290 | .use_dual_stack(false)
|
339 291 | .use_fips(true)
|
340 292 | .build()
|
341 293 | .expect("invalid params");
|
342 294 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
343 295 | let endpoint = resolver.resolve_endpoint(¶ms);
|
344 296 | let error = endpoint.expect_err("expected error: Partition does not support FIPS [gov cloud with fips@cn-north-1]");
|
345 297 | assert_eq!(format!("{}", error), "Partition does not support FIPS")
|
346 298 | }
|
347 299 |
|
348 300 | /// govcloud with fips + arn region@us-gov-west-1
|
349 301 | #[test]
|
350 302 | fn test_10() {
|
351 303 | let params = crate::config::endpoint::Params::builder()
|
352 304 | .access_point_name(
|
353 305 | "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string(),
|
354 306 | )
|
355 307 | .account_id("123456789012".to_string())
|
356 308 | .region("us-gov-west-1".to_string())
|
357 309 | .requires_account_id(true)
|
358 310 | .use_dual_stack(false)
|
359 311 | .use_fips(true)
|
360 312 | .build()
|
361 313 | .expect("invalid params");
|
362 314 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
363 315 | let endpoint = resolver.resolve_endpoint(¶ms);
|
364 316 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-east-1.amazonaws.com");
|
365 317 | assert_eq!(
|
366 318 | endpoint,
|
367 319 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
368 320 | .url("https://s3-outposts-fips.us-gov-east-1.amazonaws.com")
|
369 321 | .header("x-amz-account-id", "123456789012")
|
370 322 | .header("x-amz-outpost-id", "op-01234567890123456")
|
371 - | .property(
|
372 - | "authSchemes",
|
373 - | vec![{
|
374 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
375 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
376 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
377 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
378 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
379 - | out
|
380 - | }
|
381 - | .into()]
|
323 + | .auth_scheme(
|
324 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
325 + | .put("disableDoubleEncoding", true)
|
326 + | .put("signingName", "s3-outposts".to_string())
|
327 + | .put("signingRegion", "us-gov-east-1".to_string())
|
382 328 | )
|
383 329 | .build()
|
384 330 | );
|
385 331 | }
|
386 332 |
|
387 333 | /// gov region@af-south-1
|
388 334 | #[test]
|
389 335 | fn test_11() {
|
390 336 | let params = crate::config::endpoint::Params::builder()
|
391 337 | .access_point_name("arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
392 338 | .account_id("123456789012".to_string())
|
393 339 | .region("af-south-1".to_string())
|
394 340 | .requires_account_id(true)
|
395 341 | .use_dual_stack(false)
|
396 342 | .use_fips(false)
|
397 343 | .build()
|
398 344 | .expect("invalid params");
|
399 345 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
400 346 | let endpoint = resolver.resolve_endpoint(¶ms);
|
401 347 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.af-south-1.amazonaws.com");
|
402 348 | assert_eq!(
|
403 349 | endpoint,
|
404 350 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
405 351 | .url("https://s3-outposts.af-south-1.amazonaws.com")
|
406 352 | .header("x-amz-account-id", "123456789012")
|
407 353 | .header("x-amz-outpost-id", "op-01234567890123456")
|
408 - | .property(
|
409 - | "authSchemes",
|
410 - | vec![{
|
411 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
412 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
413 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
414 - | out.insert("signingRegion".to_string(), "af-south-1".to_string().into());
|
415 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
416 - | out
|
417 - | }
|
418 - | .into()]
|
354 + | .auth_scheme(
|
355 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
356 + | .put("disableDoubleEncoding", true)
|
357 + | .put("signingName", "s3-outposts".to_string())
|
358 + | .put("signingRegion", "af-south-1".to_string())
|
419 359 | )
|
420 360 | .build()
|
421 361 | );
|
422 362 | }
|
423 363 |
|
424 364 | /// gov cloud with fips@af-south-1
|
425 365 | #[test]
|
426 366 | fn test_12() {
|
427 367 | let params = crate::config::endpoint::Params::builder()
|
428 368 | .access_point_name("arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
429 369 | .account_id("123456789012".to_string())
|
430 370 | .region("af-south-1".to_string())
|
431 371 | .requires_account_id(true)
|
432 372 | .use_dual_stack(false)
|
433 373 | .use_fips(true)
|
434 374 | .build()
|
435 375 | .expect("invalid params");
|
436 376 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
437 377 | let endpoint = resolver.resolve_endpoint(¶ms);
|
438 378 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.af-south-1.amazonaws.com");
|
439 379 | assert_eq!(
|
440 380 | endpoint,
|
441 381 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
442 382 | .url("https://s3-outposts-fips.af-south-1.amazonaws.com")
|
443 383 | .header("x-amz-account-id", "123456789012")
|
444 384 | .header("x-amz-outpost-id", "op-01234567890123456")
|
445 - | .property(
|
446 - | "authSchemes",
|
447 - | vec![{
|
448 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
449 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
450 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
451 - | out.insert("signingRegion".to_string(), "af-south-1".to_string().into());
|
452 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
453 - | out
|
454 - | }
|
455 - | .into()]
|
385 + | .auth_scheme(
|
386 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
387 + | .put("disableDoubleEncoding", true)
|
388 + | .put("signingName", "s3-outposts".to_string())
|
389 + | .put("signingRegion", "af-south-1".to_string())
|
456 390 | )
|
457 391 | .build()
|
458 392 | );
|
459 393 | }
|
460 394 |
|
461 395 | /// govcloud with fips + arn region@us-gov-west-1
|
462 396 | #[test]
|
463 397 | fn test_13() {
|
464 398 | let params = crate::config::endpoint::Params::builder()
|
465 399 | .access_point_name(
|
466 400 | "arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string(),
|
467 401 | )
|
468 402 | .account_id("123456789012".to_string())
|
469 403 | .region("us-gov-west-1".to_string())
|
470 404 | .requires_account_id(true)
|
471 405 | .use_dual_stack(false)
|
472 406 | .use_fips(true)
|
473 407 | .build()
|
474 408 | .expect("invalid params");
|
475 409 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
476 410 | let endpoint = resolver.resolve_endpoint(¶ms);
|
477 411 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-east-1.amazonaws.com");
|
478 412 | assert_eq!(
|
479 413 | endpoint,
|
480 414 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
481 415 | .url("https://s3-outposts-fips.us-gov-east-1.amazonaws.com")
|
482 416 | .header("x-amz-account-id", "123456789012")
|
483 417 | .header("x-amz-outpost-id", "op-01234567890123456")
|
484 - | .property(
|
485 - | "authSchemes",
|
486 - | vec![{
|
487 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
488 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
489 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
490 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
491 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
492 - | out
|
493 - | }
|
494 - | .into()]
|
418 + | .auth_scheme(
|
419 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
420 + | .put("disableDoubleEncoding", true)
|
421 + | .put("signingName", "s3-outposts".to_string())
|
422 + | .put("signingRegion", "us-gov-east-1".to_string())
|
495 423 | )
|
496 424 | .build()
|
497 425 | );
|
498 426 | }
|
499 427 |
|
500 428 | /// CreateBucket + OutpostId = outposts endpoint@us-east-2
|
501 429 | #[test]
|
502 430 | fn test_14() {
|
503 431 | let params = crate::config::endpoint::Params::builder()
|
504 432 | .bucket("blah".to_string())
|
505 433 | .outpost_id("123".to_string())
|
506 434 | .region("us-east-2".to_string())
|
507 435 | .requires_account_id(false)
|
508 436 | .use_dual_stack(false)
|
509 437 | .use_fips(false)
|
510 438 | .build()
|
511 439 | .expect("invalid params");
|
512 440 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
513 441 | let endpoint = resolver.resolve_endpoint(¶ms);
|
514 442 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-2.amazonaws.com");
|
515 443 | assert_eq!(
|
516 444 | endpoint,
|
517 445 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
518 446 | .url("https://s3-outposts.us-east-2.amazonaws.com")
|
519 - | .property(
|
520 - | "authSchemes",
|
521 - | vec![{
|
522 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
523 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
524 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
525 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
526 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
527 - | out
|
528 - | }
|
529 - | .into()]
|
447 + | .auth_scheme(
|
448 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
449 + | .put("disableDoubleEncoding", true)
|
450 + | .put("signingName", "s3-outposts".to_string())
|
451 + | .put("signingRegion", "us-east-2".to_string())
|
530 452 | )
|
531 453 | .build()
|
532 454 | );
|
533 455 | }
|
534 456 |
|
535 457 | /// CreateBucket + OutpostId with fips = outposts endpoint@us-east-2
|
536 458 | #[test]
|
537 459 | fn test_15() {
|
538 460 | let params = crate::config::endpoint::Params::builder()
|
539 461 | .bucket("blah".to_string())
|
540 462 | .outpost_id("123".to_string())
|
541 463 | .region("us-east-2".to_string())
|
542 464 | .requires_account_id(false)
|
543 465 | .use_dual_stack(false)
|
544 466 | .use_fips(true)
|
545 467 | .build()
|
546 468 | .expect("invalid params");
|
547 469 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
548 470 | let endpoint = resolver.resolve_endpoint(¶ms);
|
549 471 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.amazonaws.com");
|
550 472 | assert_eq!(
|
551 473 | endpoint,
|
552 474 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
553 475 | .url("https://s3-outposts-fips.us-east-2.amazonaws.com")
|
554 - | .property(
|
555 - | "authSchemes",
|
556 - | vec![{
|
557 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
558 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
559 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
560 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
561 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
562 - | out
|
563 - | }
|
564 - | .into()]
|
476 + | .auth_scheme(
|
477 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
478 + | .put("disableDoubleEncoding", true)
|
479 + | .put("signingName", "s3-outposts".to_string())
|
480 + | .put("signingRegion", "us-east-2".to_string())
|
565 481 | )
|
566 482 | .build()
|
567 483 | );
|
568 484 | }
|
569 485 |
|
570 486 | /// CreateBucket without OutpostId = regular endpoint@us-east-2
|
571 487 | #[test]
|
572 488 | fn test_16() {
|
573 489 | let params = crate::config::endpoint::Params::builder()
|
574 490 | .bucket("blah".to_string())
|
575 491 | .region("us-east-2".to_string())
|
576 492 | .requires_account_id(false)
|
577 493 | .use_dual_stack(false)
|
578 494 | .use_fips(false)
|
579 495 | .build()
|
580 496 | .expect("invalid params");
|
581 497 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
582 498 | let endpoint = resolver.resolve_endpoint(¶ms);
|
583 499 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-control.us-east-2.amazonaws.com");
|
584 500 | assert_eq!(
|
585 501 | endpoint,
|
586 502 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
587 503 | .url("https://s3-control.us-east-2.amazonaws.com")
|
588 - | .property(
|
589 - | "authSchemes",
|
590 - | vec![{
|
591 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
592 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
593 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
594 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
595 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
596 - | out
|
597 - | }
|
598 - | .into()]
|
504 + | .auth_scheme(
|
505 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
506 + | .put("disableDoubleEncoding", true)
|
507 + | .put("signingName", "s3".to_string())
|
508 + | .put("signingRegion", "us-east-2".to_string())
|
599 509 | )
|
600 510 | .build()
|
601 511 | );
|
602 512 | }
|
603 513 |
|
604 514 | /// ListRegionalBuckets + OutpostId = outposts endpoint@us-east-2
|
605 515 | #[test]
|
606 516 | fn test_17() {
|
607 517 | let params = crate::config::endpoint::Params::builder()
|
608 518 | .account_id("123456789012".to_string())
|
609 519 | .outpost_id("op-123".to_string())
|
610 520 | .region("us-east-2".to_string())
|
611 521 | .requires_account_id(true)
|
612 522 | .use_dual_stack(false)
|
613 523 | .use_fips(false)
|
614 524 | .build()
|
615 525 | .expect("invalid params");
|
616 526 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
617 527 | let endpoint = resolver.resolve_endpoint(¶ms);
|
618 528 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-2.amazonaws.com");
|
619 529 | assert_eq!(
|
620 530 | endpoint,
|
621 531 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
622 532 | .url("https://s3-outposts.us-east-2.amazonaws.com")
|
623 - | .property(
|
624 - | "authSchemes",
|
625 - | vec![{
|
626 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
627 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
628 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
629 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
630 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
631 - | out
|
632 - | }
|
633 - | .into()]
|
533 + | .auth_scheme(
|
534 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
535 + | .put("disableDoubleEncoding", true)
|
536 + | .put("signingName", "s3-outposts".to_string())
|
537 + | .put("signingRegion", "us-east-2".to_string())
|
634 538 | )
|
635 539 | .build()
|
636 540 | );
|
637 541 | }
|
638 542 |
|
639 543 | /// ListRegionalBuckets without OutpostId = regular endpoint@us-east-2
|
640 544 | #[test]
|
641 545 | fn test_18() {
|
642 546 | let params = crate::config::endpoint::Params::builder()
|
643 547 | .account_id("123456789012".to_string())
|
644 548 | .region("us-east-2".to_string())
|
645 549 | .requires_account_id(true)
|
646 550 | .use_dual_stack(false)
|
647 551 | .use_fips(false)
|
648 552 | .build()
|
649 553 | .expect("invalid params");
|
650 554 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
651 555 | let endpoint = resolver.resolve_endpoint(¶ms);
|
652 556 | let endpoint = endpoint.expect("Expected valid endpoint: https://123456789012.s3-control.us-east-2.amazonaws.com");
|
653 557 | assert_eq!(
|
654 558 | endpoint,
|
655 559 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
656 560 | .url("https://123456789012.s3-control.us-east-2.amazonaws.com")
|
657 - | .property(
|
658 - | "authSchemes",
|
659 - | vec![{
|
660 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
661 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
662 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
663 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
664 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
665 - | out
|
666 - | }
|
667 - | .into()]
|
561 + | .auth_scheme(
|
562 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
563 + | .put("disableDoubleEncoding", true)
|
564 + | .put("signingName", "s3".to_string())
|
565 + | .put("signingRegion", "us-east-2".to_string())
|
668 566 | )
|
669 567 | .build()
|
670 568 | );
|
671 569 | }
|
672 570 |
|
673 571 | /// ListRegionalBucket + OutpostId with fips = outposts endpoint@us-east-2
|
674 572 | #[test]
|
675 573 | fn test_19() {
|
676 574 | let params = crate::config::endpoint::Params::builder()
|
677 575 | .account_id("123456789012".to_string())
|
678 576 | .outpost_id("op-123".to_string())
|
679 577 | .region("us-east-2".to_string())
|
680 578 | .requires_account_id(true)
|
681 579 | .use_dual_stack(false)
|
682 580 | .use_fips(true)
|
683 581 | .build()
|
684 582 | .expect("invalid params");
|
685 583 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
686 584 | let endpoint = resolver.resolve_endpoint(¶ms);
|
687 585 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.amazonaws.com");
|
688 586 | assert_eq!(
|
689 587 | endpoint,
|
690 588 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
691 589 | .url("https://s3-outposts-fips.us-east-2.amazonaws.com")
|
692 - | .property(
|
693 - | "authSchemes",
|
694 - | vec![{
|
695 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
696 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
697 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
698 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
699 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
700 - | out
|
701 - | }
|
702 - | .into()]
|
590 + | .auth_scheme(
|
591 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
592 + | .put("disableDoubleEncoding", true)
|
593 + | .put("signingName", "s3-outposts".to_string())
|
594 + | .put("signingRegion", "us-east-2".to_string())
|
703 595 | )
|
704 596 | .build()
|
705 597 | );
|
706 598 | }
|
707 599 |
|
708 600 | /// outpost access points support dualstack@us-west-2
|
709 601 | #[test]
|
710 602 | fn test_20() {
|
711 603 | let params = crate::config::endpoint::Params::builder()
|
712 604 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
713 605 | .account_id("123456789012".to_string())
|
714 606 | .region("us-west-2".to_string())
|
715 607 | .requires_account_id(true)
|
716 608 | .use_dual_stack(true)
|
717 609 | .use_fips(false)
|
718 610 | .build()
|
719 611 | .expect("invalid params");
|
720 612 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
721 613 | let endpoint = resolver.resolve_endpoint(¶ms);
|
722 614 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.api.aws");
|
723 615 | assert_eq!(
|
724 616 | endpoint,
|
725 617 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
726 618 | .url("https://s3-outposts.us-west-2.api.aws")
|
727 619 | .header("x-amz-account-id", "123456789012")
|
728 620 | .header("x-amz-outpost-id", "op-01234567890123456")
|
729 - | .property(
|
730 - | "authSchemes",
|
731 - | vec![{
|
732 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
733 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
734 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
735 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
736 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
737 - | out
|
738 - | }
|
739 - | .into()]
|
621 + | .auth_scheme(
|
622 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
623 + | .put("disableDoubleEncoding", true)
|
624 + | .put("signingName", "s3-outposts".to_string())
|
625 + | .put("signingRegion", "us-west-2".to_string())
|
740 626 | )
|
741 627 | .build()
|
742 628 | );
|
743 629 | }
|
744 630 |
|
745 631 | /// outpost access points support dualstack@af-south-1
|
746 632 | #[test]
|
747 633 | fn test_21() {
|
748 634 | let params = crate::config::endpoint::Params::builder()
|
749 635 | .access_point_name("arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
750 636 | .account_id("123456789012".to_string())
|
751 637 | .region("af-south-1".to_string())
|
752 638 | .requires_account_id(true)
|
753 639 | .use_dual_stack(true)
|
754 640 | .use_fips(false)
|
755 641 | .build()
|
756 642 | .expect("invalid params");
|
757 643 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
758 644 | let endpoint = resolver.resolve_endpoint(¶ms);
|
759 645 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.af-south-1.api.aws");
|
760 646 | assert_eq!(
|
761 647 | endpoint,
|
762 648 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
763 649 | .url("https://s3-outposts.af-south-1.api.aws")
|
764 650 | .header("x-amz-account-id", "123456789012")
|
765 651 | .header("x-amz-outpost-id", "op-01234567890123456")
|
766 - | .property(
|
767 - | "authSchemes",
|
768 - | vec![{
|
769 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
770 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
771 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
772 - | out.insert("signingRegion".to_string(), "af-south-1".to_string().into());
|
773 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
774 - | out
|
775 - | }
|
776 - | .into()]
|
652 + | .auth_scheme(
|
653 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
654 + | .put("disableDoubleEncoding", true)
|
655 + | .put("signingName", "s3-outposts".to_string())
|
656 + | .put("signingRegion", "af-south-1".to_string())
|
777 657 | )
|
778 658 | .build()
|
779 659 | );
|
780 660 | }
|
781 661 |
|
782 662 | /// outpost access points support fips + dualstack@af-south-1
|
783 663 | #[test]
|
784 664 | fn test_22() {
|
785 665 | let params = crate::config::endpoint::Params::builder()
|
786 666 | .access_point_name("arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
787 667 | .account_id("123456789012".to_string())
|
788 668 | .region("af-south-1".to_string())
|
789 669 | .requires_account_id(true)
|
790 670 | .use_dual_stack(true)
|
791 671 | .use_fips(true)
|
792 672 | .build()
|
793 673 | .expect("invalid params");
|
794 674 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
795 675 | let endpoint = resolver.resolve_endpoint(¶ms);
|
796 676 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.af-south-1.api.aws");
|
797 677 | assert_eq!(
|
798 678 | endpoint,
|
799 679 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
800 680 | .url("https://s3-outposts-fips.af-south-1.api.aws")
|
801 681 | .header("x-amz-account-id", "123456789012")
|
802 682 | .header("x-amz-outpost-id", "op-01234567890123456")
|
803 - | .property(
|
804 - | "authSchemes",
|
805 - | vec![{
|
806 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
807 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
808 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
809 - | out.insert("signingRegion".to_string(), "af-south-1".to_string().into());
|
810 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
811 - | out
|
812 - | }
|
813 - | .into()]
|
683 + | .auth_scheme(
|
684 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
685 + | .put("disableDoubleEncoding", true)
|
686 + | .put("signingName", "s3-outposts".to_string())
|
687 + | .put("signingRegion", "af-south-1".to_string())
|
814 688 | )
|
815 689 | .build()
|
816 690 | );
|
817 691 | }
|
818 692 |
|
819 693 | /// invalid ARN: must be include outpost ID@us-west-2
|
820 694 | #[test]
|
821 695 | fn test_23() {
|
822 696 | let params = crate::config::endpoint::Params::builder()
|
823 697 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost".to_string())
|
1094 944 | .use_fips(false)
|
1095 945 | .build()
|
1096 946 | .expect("invalid params");
|
1097 947 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1098 948 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1099 949 | let endpoint = endpoint.expect("Expected valid endpoint: https://beta.example.com");
|
1100 950 | assert_eq!(
|
1101 951 | endpoint,
|
1102 952 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1103 953 | .url("https://beta.example.com")
|
1104 - | .property(
|
1105 - | "authSchemes",
|
1106 - | vec![{
|
1107 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1108 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1109 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1110 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
1111 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1112 - | out
|
1113 - | }
|
1114 - | .into()]
|
954 + | .auth_scheme(
|
955 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
956 + | .put("disableDoubleEncoding", true)
|
957 + | .put("signingName", "s3-outposts".to_string())
|
958 + | .put("signingRegion", "us-west-2".to_string())
|
1115 959 | )
|
1116 960 | .build()
|
1117 961 | );
|
1118 962 | }
|
1119 963 |
|
1120 964 | /// get bucket with endpoint_url@us-west-2
|
1121 965 | #[test]
|
1122 966 | fn test_34() {
|
1123 967 | let params = crate::config::endpoint::Params::builder()
|
1124 968 | .bucket("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1125 969 | .endpoint("https://beta.example.com".to_string())
|
1126 970 | .region("us-west-2".to_string())
|
1127 971 | .requires_account_id(true)
|
1128 972 | .use_dual_stack(false)
|
1129 973 | .use_fips(false)
|
1130 974 | .build()
|
1131 975 | .expect("invalid params");
|
1132 976 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1133 977 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1134 978 | let endpoint = endpoint.expect("Expected valid endpoint: https://beta.example.com");
|
1135 979 | assert_eq!(
|
1136 980 | endpoint,
|
1137 981 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1138 982 | .url("https://beta.example.com")
|
1139 983 | .header("x-amz-account-id", "123456789012")
|
1140 984 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1141 - | .property(
|
1142 - | "authSchemes",
|
1143 - | vec![{
|
1144 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1145 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1146 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1147 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
1148 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1149 - | out
|
1150 - | }
|
1151 - | .into()]
|
985 + | .auth_scheme(
|
986 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
987 + | .put("disableDoubleEncoding", true)
|
988 + | .put("signingName", "s3-outposts".to_string())
|
989 + | .put("signingRegion", "us-west-2".to_string())
|
1152 990 | )
|
1153 991 | .build()
|
1154 992 | );
|
1155 993 | }
|
1156 994 |
|
1157 995 | /// ListRegionalBucket + OutpostId endpoint url@us-east-2
|
1158 996 | #[test]
|
1159 997 | fn test_35() {
|
1160 998 | let params = crate::config::endpoint::Params::builder()
|
1161 999 | .account_id("123456789012".to_string())
|
1162 1000 | .endpoint("https://beta.example.com".to_string())
|
1163 1001 | .outpost_id("op-123".to_string())
|
1164 1002 | .region("us-east-2".to_string())
|
1165 1003 | .requires_account_id(true)
|
1166 1004 | .use_dual_stack(false)
|
1167 1005 | .use_fips(false)
|
1168 1006 | .build()
|
1169 1007 | .expect("invalid params");
|
1170 1008 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1171 1009 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1172 1010 | let endpoint = endpoint.expect("Expected valid endpoint: https://beta.example.com");
|
1173 1011 | assert_eq!(
|
1174 1012 | endpoint,
|
1175 1013 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1176 1014 | .url("https://beta.example.com")
|
1177 - | .property(
|
1178 - | "authSchemes",
|
1179 - | vec![{
|
1180 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1181 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1182 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1183 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1184 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1185 - | out
|
1186 - | }
|
1187 - | .into()]
|
1015 + | .auth_scheme(
|
1016 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1017 + | .put("disableDoubleEncoding", true)
|
1018 + | .put("signingName", "s3-outposts".to_string())
|
1019 + | .put("signingRegion", "us-east-2".to_string())
|
1188 1020 | )
|
1189 1021 | .build()
|
1190 1022 | );
|
1191 1023 | }
|
1192 1024 |
|
1193 1025 | /// ListRegionalBucket + OutpostId + fips + endpoint url@us-east-2
|
1194 1026 | #[test]
|
1195 1027 | fn test_36() {
|
1196 1028 | let params = crate::config::endpoint::Params::builder()
|
1197 1029 | .account_id("123456789012".to_string())
|
1198 1030 | .endpoint("https://beta.example.com".to_string())
|
1199 1031 | .outpost_id("op-123".to_string())
|
1200 1032 | .region("us-east-2".to_string())
|
1201 1033 | .requires_account_id(true)
|
1202 1034 | .use_dual_stack(false)
|
1203 1035 | .use_fips(true)
|
1204 1036 | .build()
|
1205 1037 | .expect("invalid params");
|
1206 1038 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1207 1039 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1208 1040 | let endpoint = endpoint.expect("Expected valid endpoint: https://beta.example.com");
|
1209 1041 | assert_eq!(
|
1210 1042 | endpoint,
|
1211 1043 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1212 1044 | .url("https://beta.example.com")
|
1213 - | .property(
|
1214 - | "authSchemes",
|
1215 - | vec![{
|
1216 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1217 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1218 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1219 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1220 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1221 - | out
|
1222 - | }
|
1223 - | .into()]
|
1045 + | .auth_scheme(
|
1046 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1047 + | .put("disableDoubleEncoding", true)
|
1048 + | .put("signingName", "s3-outposts".to_string())
|
1049 + | .put("signingRegion", "us-east-2".to_string())
|
1224 1050 | )
|
1225 1051 | .build()
|
1226 1052 | );
|
1227 1053 | }
|
1228 1054 |
|
1229 1055 | /// ListRegionalBucket + OutpostId + fips + dualstack@us-east-2
|
1230 1056 | #[test]
|
1231 1057 | fn test_37() {
|
1232 1058 | let params = crate::config::endpoint::Params::builder()
|
1233 1059 | .account_id("123456789012".to_string())
|
1234 1060 | .outpost_id("op-123".to_string())
|
1235 1061 | .region("us-east-2".to_string())
|
1236 1062 | .requires_account_id(true)
|
1237 1063 | .use_dual_stack(true)
|
1238 1064 | .use_fips(true)
|
1239 1065 | .build()
|
1240 1066 | .expect("invalid params");
|
1241 1067 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1242 1068 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1243 1069 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.api.aws");
|
1244 1070 | assert_eq!(
|
1245 1071 | endpoint,
|
1246 1072 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1247 1073 | .url("https://s3-outposts-fips.us-east-2.api.aws")
|
1248 - | .property(
|
1249 - | "authSchemes",
|
1250 - | vec![{
|
1251 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1252 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1253 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1254 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1255 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1256 - | out
|
1257 - | }
|
1258 - | .into()]
|
1074 + | .auth_scheme(
|
1075 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1076 + | .put("disableDoubleEncoding", true)
|
1077 + | .put("signingName", "s3-outposts".to_string())
|
1078 + | .put("signingRegion", "us-east-2".to_string())
|
1259 1079 | )
|
1260 1080 | .build()
|
1261 1081 | );
|
1262 1082 | }
|
1263 1083 |
|
1264 1084 | /// CreateBucket + OutpostId endpoint url@us-east-2
|
1265 1085 | #[test]
|
1266 1086 | fn test_38() {
|
1267 1087 | let params = crate::config::endpoint::Params::builder()
|
1268 1088 | .bucket("blah".to_string())
|
1269 1089 | .endpoint("https://beta.example.com".to_string())
|
1270 1090 | .outpost_id("123".to_string())
|
1271 1091 | .region("us-east-2".to_string())
|
1272 1092 | .requires_account_id(false)
|
1273 1093 | .use_dual_stack(false)
|
1274 1094 | .use_fips(true)
|
1275 1095 | .build()
|
1276 1096 | .expect("invalid params");
|
1277 1097 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1278 1098 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1279 1099 | let endpoint = endpoint.expect("Expected valid endpoint: https://beta.example.com");
|
1280 1100 | assert_eq!(
|
1281 1101 | endpoint,
|
1282 1102 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1283 1103 | .url("https://beta.example.com")
|
1284 - | .property(
|
1285 - | "authSchemes",
|
1286 - | vec![{
|
1287 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1288 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1289 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1290 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1291 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1292 - | out
|
1293 - | }
|
1294 - | .into()]
|
1104 + | .auth_scheme(
|
1105 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1106 + | .put("disableDoubleEncoding", true)
|
1107 + | .put("signingName", "s3-outposts".to_string())
|
1108 + | .put("signingRegion", "us-east-2".to_string())
|
1295 1109 | )
|
1296 1110 | .build()
|
1297 1111 | );
|
1298 1112 | }
|
1299 1113 |
|
1300 1114 | /// dualstack cannot be used with outposts when an endpoint URL is set@us-west-2.
|
1301 1115 | #[test]
|
1302 1116 | fn test_39() {
|
1303 1117 | let params = crate::config::endpoint::Params::builder()
|
1304 1118 | .access_point_name("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint".to_string())
|
1305 1119 | .endpoint("https://s3-outposts.us-west-2.api.aws".to_string())
|
1306 1120 | .region("us-west-2".to_string())
|
1307 1121 | .requires_account_id(true)
|
1308 1122 | .use_dual_stack(true)
|
1309 1123 | .use_fips(false)
|
1310 1124 | .build()
|
1311 1125 | .expect("invalid params");
|
1312 1126 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1313 1127 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1314 1128 | let error = endpoint.expect_err("expected error: Invalid Configuration: DualStack and custom endpoint are not supported [dualstack cannot be used with outposts when an endpoint URL is set@us-west-2.]");
|
1315 1129 | assert_eq!(
|
1316 1130 | format!("{}", error),
|
1317 1131 | "Invalid Configuration: DualStack and custom endpoint are not supported"
|
1318 1132 | )
|
1319 1133 | }
|
1320 1134 |
|
1321 1135 | /// vanilla bucket arn requires account id@us-west-2
|
1322 1136 | #[test]
|
1323 1137 | fn test_40() {
|
1324 1138 | let params = crate::config::endpoint::Params::builder()
|
1325 1139 | .bucket("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1326 1140 | .region("us-west-2".to_string())
|
1327 1141 | .requires_account_id(true)
|
1328 1142 | .use_dual_stack(false)
|
1329 1143 | .use_fips(false)
|
1330 1144 | .build()
|
1331 1145 | .expect("invalid params");
|
1332 1146 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1333 1147 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1334 1148 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.amazonaws.com");
|
1335 1149 | assert_eq!(
|
1336 1150 | endpoint,
|
1337 1151 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1338 1152 | .url("https://s3-outposts.us-west-2.amazonaws.com")
|
1339 1153 | .header("x-amz-account-id", "123456789012")
|
1340 1154 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1341 - | .property(
|
1342 - | "authSchemes",
|
1343 - | vec![{
|
1344 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1345 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1346 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1347 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
1348 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1349 - | out
|
1350 - | }
|
1351 - | .into()]
|
1155 + | .auth_scheme(
|
1156 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1157 + | .put("disableDoubleEncoding", true)
|
1158 + | .put("signingName", "s3-outposts".to_string())
|
1159 + | .put("signingRegion", "us-west-2".to_string())
|
1352 1160 | )
|
1353 1161 | .build()
|
1354 1162 | );
|
1355 1163 | }
|
1356 1164 |
|
1357 1165 | /// bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2
|
1358 1166 | #[test]
|
1359 1167 | fn test_41() {
|
1360 1168 | let params = crate::config::endpoint::Params::builder()
|
1361 1169 | .bucket("arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1362 1170 | .region("us-west-2".to_string())
|
1363 1171 | .requires_account_id(true)
|
1364 1172 | .use_dual_stack(false)
|
1365 1173 | .use_fips(false)
|
1366 1174 | .build()
|
1367 1175 | .expect("invalid params");
|
1368 1176 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1369 1177 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1370 1178 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-1.amazonaws.com");
|
1371 1179 | assert_eq!(
|
1372 1180 | endpoint,
|
1373 1181 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1374 1182 | .url("https://s3-outposts.us-east-1.amazonaws.com")
|
1375 1183 | .header("x-amz-account-id", "123456789012")
|
1376 1184 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1377 - | .property(
|
1378 - | "authSchemes",
|
1379 - | vec![{
|
1380 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1381 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1382 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1383 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
1384 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1385 - | out
|
1386 - | }
|
1387 - | .into()]
|
1185 + | .auth_scheme(
|
1186 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1187 + | .put("disableDoubleEncoding", true)
|
1188 + | .put("signingName", "s3-outposts".to_string())
|
1189 + | .put("signingRegion", "us-east-1".to_string())
|
1388 1190 | )
|
1389 1191 | .build()
|
1390 1192 | );
|
1391 1193 | }
|
1392 1194 |
|
1393 1195 | /// bucket ARN in gov partition (non-fips)@us-gov-east-1
|
1394 1196 | #[test]
|
1395 1197 | fn test_42() {
|
1396 1198 | let params = crate::config::endpoint::Params::builder()
|
1397 1199 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1398 1200 | .region("us-gov-east-1".to_string())
|
1399 1201 | .requires_account_id(true)
|
1400 1202 | .use_dual_stack(false)
|
1401 1203 | .use_fips(false)
|
1402 1204 | .build()
|
1403 1205 | .expect("invalid params");
|
1404 1206 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1405 1207 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1406 1208 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-gov-east-1.amazonaws.com");
|
1407 1209 | assert_eq!(
|
1408 1210 | endpoint,
|
1409 1211 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1410 1212 | .url("https://s3-outposts.us-gov-east-1.amazonaws.com")
|
1411 1213 | .header("x-amz-account-id", "123456789012")
|
1412 1214 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1413 - | .property(
|
1414 - | "authSchemes",
|
1415 - | vec![{
|
1416 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1417 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1418 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1419 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
1420 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1421 - | out
|
1422 - | }
|
1423 - | .into()]
|
1215 + | .auth_scheme(
|
1216 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1217 + | .put("disableDoubleEncoding", true)
|
1218 + | .put("signingName", "s3-outposts".to_string())
|
1219 + | .put("signingRegion", "us-gov-east-1".to_string())
|
1424 1220 | )
|
1425 1221 | .build()
|
1426 1222 | );
|
1427 1223 | }
|
1428 1224 |
|
1429 1225 | /// bucket ARN in gov partition with FIPS@us-gov-west-1
|
1430 1226 | #[test]
|
1431 1227 | fn test_43() {
|
1432 1228 | let params = crate::config::endpoint::Params::builder()
|
1433 1229 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1434 1230 | .region("us-gov-west-1".to_string())
|
1435 1231 | .requires_account_id(true)
|
1436 1232 | .use_dual_stack(false)
|
1437 1233 | .use_fips(true)
|
1438 1234 | .build()
|
1439 1235 | .expect("invalid params");
|
1440 1236 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1441 1237 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1442 1238 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-west-1.amazonaws.com");
|
1443 1239 | assert_eq!(
|
1444 1240 | endpoint,
|
1445 1241 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1446 1242 | .url("https://s3-outposts-fips.us-gov-west-1.amazonaws.com")
|
1447 1243 | .header("x-amz-account-id", "123456789012")
|
1448 1244 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1449 - | .property(
|
1450 - | "authSchemes",
|
1451 - | vec![{
|
1452 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1453 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1454 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1455 - | out.insert("signingRegion".to_string(), "us-gov-west-1".to_string().into());
|
1456 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1457 - | out
|
1458 - | }
|
1459 - | .into()]
|
1245 + | .auth_scheme(
|
1246 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1247 + | .put("disableDoubleEncoding", true)
|
1248 + | .put("signingName", "s3-outposts".to_string())
|
1249 + | .put("signingRegion", "us-gov-west-1".to_string())
|
1460 1250 | )
|
1461 1251 | .build()
|
1462 1252 | );
|
1463 1253 | }
|
1464 1254 |
|
1465 1255 | /// bucket ARN in aws partition with FIPS@us-east-2
|
1466 1256 | #[test]
|
1467 1257 | fn test_44() {
|
1468 1258 | let params = crate::config::endpoint::Params::builder()
|
1469 1259 | .bucket("arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1470 1260 | .region("us-east-2".to_string())
|
1471 1261 | .requires_account_id(true)
|
1472 1262 | .use_dual_stack(false)
|
1473 1263 | .use_fips(true)
|
1474 1264 | .build()
|
1475 1265 | .expect("invalid params");
|
1476 1266 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1477 1267 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1478 1268 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.amazonaws.com");
|
1479 1269 | assert_eq!(
|
1480 1270 | endpoint,
|
1481 1271 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1482 1272 | .url("https://s3-outposts-fips.us-east-2.amazonaws.com")
|
1483 1273 | .header("x-amz-account-id", "123456789012")
|
1484 1274 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1485 - | .property(
|
1486 - | "authSchemes",
|
1487 - | vec![{
|
1488 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1489 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1490 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1491 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1492 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1493 - | out
|
1494 - | }
|
1495 - | .into()]
|
1275 + | .auth_scheme(
|
1276 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1277 + | .put("disableDoubleEncoding", true)
|
1278 + | .put("signingName", "s3-outposts".to_string())
|
1279 + | .put("signingRegion", "us-east-2".to_string())
|
1496 1280 | )
|
1497 1281 | .build()
|
1498 1282 | );
|
1499 1283 | }
|
1500 1284 |
|
1501 1285 | /// bucket ARN in aws partition with fips + dualstack@us-east-2
|
1502 1286 | #[test]
|
1503 1287 | fn test_45() {
|
1504 1288 | let params = crate::config::endpoint::Params::builder()
|
1505 1289 | .bucket("arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1506 1290 | .region("us-east-2".to_string())
|
1507 1291 | .requires_account_id(true)
|
1508 1292 | .use_dual_stack(true)
|
1509 1293 | .use_fips(true)
|
1510 1294 | .build()
|
1511 1295 | .expect("invalid params");
|
1512 1296 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1513 1297 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1514 1298 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.api.aws");
|
1515 1299 | assert_eq!(
|
1516 1300 | endpoint,
|
1517 1301 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1518 1302 | .url("https://s3-outposts-fips.us-east-2.api.aws")
|
1519 1303 | .header("x-amz-account-id", "123456789012")
|
1520 1304 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1521 - | .property(
|
1522 - | "authSchemes",
|
1523 - | vec![{
|
1524 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1525 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1526 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1527 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1528 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1529 - | out
|
1530 - | }
|
1531 - | .into()]
|
1305 + | .auth_scheme(
|
1306 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1307 + | .put("disableDoubleEncoding", true)
|
1308 + | .put("signingName", "s3-outposts".to_string())
|
1309 + | .put("signingRegion", "us-east-2".to_string())
|
1532 1310 | )
|
1533 1311 | .build()
|
1534 1312 | );
|
1535 1313 | }
|
1536 1314 |
|
1537 1315 | /// vanilla bucket arn requires account id@cn-north-1
|
1538 1316 | #[test]
|
1539 1317 | fn test_46() {
|
1540 1318 | let params = crate::config::endpoint::Params::builder()
|
1541 1319 | .bucket("arn:aws-cn:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1542 1320 | .region("cn-north-1".to_string())
|
1543 1321 | .requires_account_id(true)
|
1544 1322 | .use_dual_stack(false)
|
1545 1323 | .use_fips(false)
|
1546 1324 | .build()
|
1547 1325 | .expect("invalid params");
|
1548 1326 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1549 1327 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1550 1328 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.cn-north-1.amazonaws.com.cn");
|
1551 1329 | assert_eq!(
|
1552 1330 | endpoint,
|
1553 1331 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1554 1332 | .url("https://s3-outposts.cn-north-1.amazonaws.com.cn")
|
1555 1333 | .header("x-amz-account-id", "123456789012")
|
1556 1334 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1557 - | .property(
|
1558 - | "authSchemes",
|
1559 - | vec![{
|
1560 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1561 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1562 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1563 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
1564 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1565 - | out
|
1566 - | }
|
1567 - | .into()]
|
1335 + | .auth_scheme(
|
1336 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1337 + | .put("disableDoubleEncoding", true)
|
1338 + | .put("signingName", "s3-outposts".to_string())
|
1339 + | .put("signingRegion", "cn-north-1".to_string())
|
1568 1340 | )
|
1569 1341 | .build()
|
1570 1342 | );
|
1571 1343 | }
|
1572 1344 |
|
1573 1345 | /// bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2
|
1574 1346 | #[test]
|
1575 1347 | fn test_47() {
|
1576 1348 | let params = crate::config::endpoint::Params::builder()
|
1577 1349 | .bucket("arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1578 1350 | .region("us-west-2".to_string())
|
1579 1351 | .requires_account_id(true)
|
1580 1352 | .use_dual_stack(false)
|
1581 1353 | .use_fips(false)
|
1582 1354 | .build()
|
1583 1355 | .expect("invalid params");
|
1584 1356 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1585 1357 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1586 1358 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-1.amazonaws.com");
|
1587 1359 | assert_eq!(
|
1588 1360 | endpoint,
|
1589 1361 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1590 1362 | .url("https://s3-outposts.us-east-1.amazonaws.com")
|
1591 1363 | .header("x-amz-account-id", "123456789012")
|
1592 1364 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1593 - | .property(
|
1594 - | "authSchemes",
|
1595 - | vec![{
|
1596 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1597 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1598 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1599 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
1600 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1601 - | out
|
1602 - | }
|
1603 - | .into()]
|
1365 + | .auth_scheme(
|
1366 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1367 + | .put("disableDoubleEncoding", true)
|
1368 + | .put("signingName", "s3-outposts".to_string())
|
1369 + | .put("signingRegion", "us-east-1".to_string())
|
1604 1370 | )
|
1605 1371 | .build()
|
1606 1372 | );
|
1607 1373 | }
|
1608 1374 |
|
1609 1375 | /// bucket ARN in gov partition (non-fips)@us-gov-east-1
|
1610 1376 | #[test]
|
1611 1377 | fn test_48() {
|
1612 1378 | let params = crate::config::endpoint::Params::builder()
|
1613 1379 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1614 1380 | .region("us-gov-east-1".to_string())
|
1615 1381 | .requires_account_id(true)
|
1616 1382 | .use_dual_stack(false)
|
1617 1383 | .use_fips(false)
|
1618 1384 | .build()
|
1619 1385 | .expect("invalid params");
|
1620 1386 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1621 1387 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1622 1388 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-gov-east-1.amazonaws.com");
|
1623 1389 | assert_eq!(
|
1624 1390 | endpoint,
|
1625 1391 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1626 1392 | .url("https://s3-outposts.us-gov-east-1.amazonaws.com")
|
1627 1393 | .header("x-amz-account-id", "123456789012")
|
1628 1394 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1629 - | .property(
|
1630 - | "authSchemes",
|
1631 - | vec![{
|
1632 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1633 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1634 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1635 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
1636 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1637 - | out
|
1638 - | }
|
1639 - | .into()]
|
1395 + | .auth_scheme(
|
1396 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1397 + | .put("disableDoubleEncoding", true)
|
1398 + | .put("signingName", "s3-outposts".to_string())
|
1399 + | .put("signingRegion", "us-gov-east-1".to_string())
|
1640 1400 | )
|
1641 1401 | .build()
|
1642 1402 | );
|
1643 1403 | }
|
1644 1404 |
|
1645 1405 | /// bucket ARN in gov partition with FIPS@us-gov-west-1
|
1646 1406 | #[test]
|
1647 1407 | fn test_49() {
|
1648 1408 | let params = crate::config::endpoint::Params::builder()
|
1649 1409 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1650 1410 | .region("us-gov-west-1".to_string())
|
1651 1411 | .requires_account_id(true)
|
1652 1412 | .use_dual_stack(false)
|
1653 1413 | .use_fips(true)
|
1654 1414 | .build()
|
1655 1415 | .expect("invalid params");
|
1656 1416 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1657 1417 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1658 1418 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-west-1.amazonaws.com");
|
1659 1419 | assert_eq!(
|
1660 1420 | endpoint,
|
1661 1421 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1662 1422 | .url("https://s3-outposts-fips.us-gov-west-1.amazonaws.com")
|
1663 1423 | .header("x-amz-account-id", "123456789012")
|
1664 1424 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1665 - | .property(
|
1666 - | "authSchemes",
|
1667 - | vec![{
|
1668 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1669 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1670 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1671 - | out.insert("signingRegion".to_string(), "us-gov-west-1".to_string().into());
|
1672 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1673 - | out
|
1674 - | }
|
1675 - | .into()]
|
1425 + | .auth_scheme(
|
1426 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1427 + | .put("disableDoubleEncoding", true)
|
1428 + | .put("signingName", "s3-outposts".to_string())
|
1429 + | .put("signingRegion", "us-gov-west-1".to_string())
|
1676 1430 | )
|
1677 1431 | .build()
|
1678 1432 | );
|
1679 1433 | }
|
1680 1434 |
|
1681 1435 | /// bucket ARN in aws partition with FIPS@us-east-2
|
1682 1436 | #[test]
|
1683 1437 | fn test_50() {
|
1684 1438 | let params = crate::config::endpoint::Params::builder()
|
1685 1439 | .bucket("arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1686 1440 | .region("us-east-2".to_string())
|
1687 1441 | .requires_account_id(true)
|
1688 1442 | .use_dual_stack(false)
|
1689 1443 | .use_fips(true)
|
1690 1444 | .build()
|
1691 1445 | .expect("invalid params");
|
1692 1446 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1693 1447 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1694 1448 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.amazonaws.com");
|
1695 1449 | assert_eq!(
|
1696 1450 | endpoint,
|
1697 1451 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1698 1452 | .url("https://s3-outposts-fips.us-east-2.amazonaws.com")
|
1699 1453 | .header("x-amz-account-id", "123456789012")
|
1700 1454 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1701 - | .property(
|
1702 - | "authSchemes",
|
1703 - | vec![{
|
1704 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1705 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1706 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1707 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1708 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1709 - | out
|
1710 - | }
|
1711 - | .into()]
|
1455 + | .auth_scheme(
|
1456 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1457 + | .put("disableDoubleEncoding", true)
|
1458 + | .put("signingName", "s3-outposts".to_string())
|
1459 + | .put("signingRegion", "us-east-2".to_string())
|
1712 1460 | )
|
1713 1461 | .build()
|
1714 1462 | );
|
1715 1463 | }
|
1716 1464 |
|
1717 1465 | /// Outposts support dualstack @us-west-2
|
1718 1466 | #[test]
|
1719 1467 | fn test_51() {
|
1720 1468 | let params = crate::config::endpoint::Params::builder()
|
1721 1469 | .bucket("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1722 1470 | .region("us-west-2".to_string())
|
1723 1471 | .requires_account_id(true)
|
1724 1472 | .use_dual_stack(true)
|
1725 1473 | .use_fips(false)
|
1726 1474 | .build()
|
1727 1475 | .expect("invalid params");
|
1728 1476 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1729 1477 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1730 1478 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.api.aws");
|
1731 1479 | assert_eq!(
|
1732 1480 | endpoint,
|
1733 1481 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1734 1482 | .url("https://s3-outposts.us-west-2.api.aws")
|
1735 1483 | .header("x-amz-account-id", "123456789012")
|
1736 1484 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1737 - | .property(
|
1738 - | "authSchemes",
|
1739 - | vec![{
|
1740 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1741 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1742 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1743 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
1744 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1745 - | out
|
1746 - | }
|
1747 - | .into()]
|
1485 + | .auth_scheme(
|
1486 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1487 + | .put("disableDoubleEncoding", true)
|
1488 + | .put("signingName", "s3-outposts".to_string())
|
1489 + | .put("signingRegion", "us-west-2".to_string())
|
1748 1490 | )
|
1749 1491 | .build()
|
1750 1492 | );
|
1751 1493 | }
|
1752 1494 |
|
1753 1495 | /// vanilla bucket arn requires account id@af-south-1
|
1754 1496 | #[test]
|
1755 1497 | fn test_52() {
|
1756 1498 | let params = crate::config::endpoint::Params::builder()
|
1757 1499 | .bucket("arn:aws:s3-outposts:af-south-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1758 1500 | .region("af-south-1".to_string())
|
1759 1501 | .requires_account_id(true)
|
1760 1502 | .use_dual_stack(false)
|
1761 1503 | .use_fips(false)
|
1762 1504 | .build()
|
1763 1505 | .expect("invalid params");
|
1764 1506 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1765 1507 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1766 1508 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.af-south-1.amazonaws.com");
|
1767 1509 | assert_eq!(
|
1768 1510 | endpoint,
|
1769 1511 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1770 1512 | .url("https://s3-outposts.af-south-1.amazonaws.com")
|
1771 1513 | .header("x-amz-account-id", "123456789012")
|
1772 1514 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1773 - | .property(
|
1774 - | "authSchemes",
|
1775 - | vec![{
|
1776 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1777 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1778 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1779 - | out.insert("signingRegion".to_string(), "af-south-1".to_string().into());
|
1780 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1781 - | out
|
1782 - | }
|
1783 - | .into()]
|
1515 + | .auth_scheme(
|
1516 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1517 + | .put("disableDoubleEncoding", true)
|
1518 + | .put("signingName", "s3-outposts".to_string())
|
1519 + | .put("signingRegion", "af-south-1".to_string())
|
1784 1520 | )
|
1785 1521 | .build()
|
1786 1522 | );
|
1787 1523 | }
|
1788 1524 |
|
1789 1525 | /// bucket arn with UseArnRegion = true (arn region supercedes client configured region)@us-west-2
|
1790 1526 | #[test]
|
1791 1527 | fn test_53() {
|
1792 1528 | let params = crate::config::endpoint::Params::builder()
|
1793 1529 | .bucket("arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1794 1530 | .region("us-west-2".to_string())
|
1795 1531 | .requires_account_id(true)
|
1796 1532 | .use_dual_stack(false)
|
1797 1533 | .use_fips(false)
|
1798 1534 | .build()
|
1799 1535 | .expect("invalid params");
|
1800 1536 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1801 1537 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1802 1538 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-east-1.amazonaws.com");
|
1803 1539 | assert_eq!(
|
1804 1540 | endpoint,
|
1805 1541 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1806 1542 | .url("https://s3-outposts.us-east-1.amazonaws.com")
|
1807 1543 | .header("x-amz-account-id", "123456789012")
|
1808 1544 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1809 - | .property(
|
1810 - | "authSchemes",
|
1811 - | vec![{
|
1812 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1813 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1814 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1815 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
1816 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1817 - | out
|
1818 - | }
|
1819 - | .into()]
|
1545 + | .auth_scheme(
|
1546 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1547 + | .put("disableDoubleEncoding", true)
|
1548 + | .put("signingName", "s3-outposts".to_string())
|
1549 + | .put("signingRegion", "us-east-1".to_string())
|
1820 1550 | )
|
1821 1551 | .build()
|
1822 1552 | );
|
1823 1553 | }
|
1824 1554 |
|
1825 1555 | /// bucket ARN in gov partition (non-fips)@us-gov-east-1
|
1826 1556 | #[test]
|
1827 1557 | fn test_54() {
|
1828 1558 | let params = crate::config::endpoint::Params::builder()
|
1829 1559 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-east-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1830 1560 | .region("us-gov-east-1".to_string())
|
1831 1561 | .requires_account_id(true)
|
1832 1562 | .use_dual_stack(false)
|
1833 1563 | .use_fips(false)
|
1834 1564 | .build()
|
1835 1565 | .expect("invalid params");
|
1836 1566 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1837 1567 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1838 1568 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-gov-east-1.amazonaws.com");
|
1839 1569 | assert_eq!(
|
1840 1570 | endpoint,
|
1841 1571 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1842 1572 | .url("https://s3-outposts.us-gov-east-1.amazonaws.com")
|
1843 1573 | .header("x-amz-account-id", "123456789012")
|
1844 1574 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1845 - | .property(
|
1846 - | "authSchemes",
|
1847 - | vec![{
|
1848 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1849 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1850 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1851 - | out.insert("signingRegion".to_string(), "us-gov-east-1".to_string().into());
|
1852 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1853 - | out
|
1854 - | }
|
1855 - | .into()]
|
1575 + | .auth_scheme(
|
1576 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1577 + | .put("disableDoubleEncoding", true)
|
1578 + | .put("signingName", "s3-outposts".to_string())
|
1579 + | .put("signingRegion", "us-gov-east-1".to_string())
|
1856 1580 | )
|
1857 1581 | .build()
|
1858 1582 | );
|
1859 1583 | }
|
1860 1584 |
|
1861 1585 | /// bucket ARN in gov partition with FIPS@us-gov-west-1
|
1862 1586 | #[test]
|
1863 1587 | fn test_55() {
|
1864 1588 | let params = crate::config::endpoint::Params::builder()
|
1865 1589 | .bucket("arn:aws-us-gov:s3-outposts:us-gov-west-1:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1866 1590 | .region("us-gov-west-1".to_string())
|
1867 1591 | .requires_account_id(true)
|
1868 1592 | .use_dual_stack(false)
|
1869 1593 | .use_fips(true)
|
1870 1594 | .build()
|
1871 1595 | .expect("invalid params");
|
1872 1596 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1873 1597 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1874 1598 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-gov-west-1.amazonaws.com");
|
1875 1599 | assert_eq!(
|
1876 1600 | endpoint,
|
1877 1601 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1878 1602 | .url("https://s3-outposts-fips.us-gov-west-1.amazonaws.com")
|
1879 1603 | .header("x-amz-account-id", "123456789012")
|
1880 1604 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1881 - | .property(
|
1882 - | "authSchemes",
|
1883 - | vec![{
|
1884 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1885 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1886 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1887 - | out.insert("signingRegion".to_string(), "us-gov-west-1".to_string().into());
|
1888 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1889 - | out
|
1890 - | }
|
1891 - | .into()]
|
1605 + | .auth_scheme(
|
1606 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1607 + | .put("disableDoubleEncoding", true)
|
1608 + | .put("signingName", "s3-outposts".to_string())
|
1609 + | .put("signingRegion", "us-gov-west-1".to_string())
|
1892 1610 | )
|
1893 1611 | .build()
|
1894 1612 | );
|
1895 1613 | }
|
1896 1614 |
|
1897 1615 | /// bucket ARN in aws partition with FIPS@us-east-2
|
1898 1616 | #[test]
|
1899 1617 | fn test_56() {
|
1900 1618 | let params = crate::config::endpoint::Params::builder()
|
1901 1619 | .bucket("arn:aws:s3-outposts:us-east-2:123456789012:outpost:op-01234567890123456:bucket:mybucket".to_string())
|
1902 1620 | .region("us-east-2".to_string())
|
1903 1621 | .requires_account_id(true)
|
1904 1622 | .use_dual_stack(false)
|
1905 1623 | .use_fips(true)
|
1906 1624 | .build()
|
1907 1625 | .expect("invalid params");
|
1908 1626 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
1909 1627 | let endpoint = resolver.resolve_endpoint(¶ms);
|
1910 1628 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts-fips.us-east-2.amazonaws.com");
|
1911 1629 | assert_eq!(
|
1912 1630 | endpoint,
|
1913 1631 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
1914 1632 | .url("https://s3-outposts-fips.us-east-2.amazonaws.com")
|
1915 1633 | .header("x-amz-account-id", "123456789012")
|
1916 1634 | .header("x-amz-outpost-id", "op-01234567890123456")
|
1917 - | .property(
|
1918 - | "authSchemes",
|
1919 - | vec![{
|
1920 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
1921 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
1922 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
1923 - | out.insert("signingRegion".to_string(), "us-east-2".to_string().into());
|
1924 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
1925 - | out
|
1926 - | }
|
1927 - | .into()]
|
1635 + | .auth_scheme(
|
1636 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
1637 + | .put("disableDoubleEncoding", true)
|
1638 + | .put("signingName", "s3-outposts".to_string())
|
1639 + | .put("signingRegion", "us-east-2".to_string())
|
1928 1640 | )
|
1929 1641 | .build()
|
1930 1642 | );
|
1931 1643 | }
|
1932 1644 |
|
1933 1645 | /// Invalid ARN: missing outpost id and bucket@us-west-2
|
1934 1646 | #[test]
|
1935 1647 | fn test_57() {
|
1936 1648 | let params = crate::config::endpoint::Params::builder()
|
1937 1649 | .bucket("arn:aws:s3-outposts:us-west-2:123456789012:outpost".to_string())
|
3148 2734 | .expect("invalid params");
|
3149 2735 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3150 2736 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3151 2737 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3-outposts.us-west-2.amazonaws.com");
|
3152 2738 | assert_eq!(
|
3153 2739 | endpoint,
|
3154 2740 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3155 2741 | .url("https://s3-outposts.us-west-2.amazonaws.com")
|
3156 2742 | .header("x-amz-account-id", "123456789012")
|
3157 2743 | .header("x-amz-outpost-id", "op-01234567890123456")
|
3158 - | .property(
|
3159 - | "authSchemes",
|
3160 - | vec![{
|
3161 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3162 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3163 - | out.insert("signingName".to_string(), "s3-outposts".to_string().into());
|
3164 - | out.insert("signingRegion".to_string(), "us-west-2".to_string().into());
|
3165 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3166 - | out
|
3167 - | }
|
3168 - | .into()]
|
2744 + | .auth_scheme(
|
2745 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2746 + | .put("disableDoubleEncoding", true)
|
2747 + | .put("signingName", "s3-outposts".to_string())
|
2748 + | .put("signingRegion", "us-west-2".to_string())
|
3169 2749 | )
|
3170 2750 | .build()
|
3171 2751 | );
|
3172 2752 | }
|
3173 2753 |
|
3174 2754 | /// S3 Snow Control with bucket
|
3175 2755 | #[test]
|
3176 2756 | fn test_107() {
|
3177 2757 | let params = crate::config::endpoint::Params::builder()
|
3178 2758 | .region("snow".to_string())
|
3179 2759 | .bucket("bucketName".to_string())
|
3180 2760 | .endpoint("https://10.0.1.12:433".to_string())
|
3181 2761 | .use_fips(false)
|
3182 2762 | .use_dual_stack(false)
|
3183 2763 | .build()
|
3184 2764 | .expect("invalid params");
|
3185 2765 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3186 2766 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3187 2767 | let endpoint = endpoint.expect("Expected valid endpoint: https://10.0.1.12:433");
|
3188 2768 | assert_eq!(
|
3189 2769 | endpoint,
|
3190 2770 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3191 2771 | .url("https://10.0.1.12:433")
|
3192 - | .property(
|
3193 - | "authSchemes",
|
3194 - | vec![{
|
3195 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3196 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3197 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
3198 - | out.insert("signingRegion".to_string(), "snow".to_string().into());
|
3199 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3200 - | out
|
3201 - | }
|
3202 - | .into()]
|
2772 + | .auth_scheme(
|
2773 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2774 + | .put("disableDoubleEncoding", true)
|
2775 + | .put("signingName", "s3".to_string())
|
2776 + | .put("signingRegion", "snow".to_string())
|
3203 2777 | )
|
3204 2778 | .build()
|
3205 2779 | );
|
3206 2780 | }
|
3207 2781 |
|
3208 2782 | /// S3 Snow Control without bucket
|
3209 2783 | #[test]
|
3210 2784 | fn test_108() {
|
3211 2785 | let params = crate::config::endpoint::Params::builder()
|
3212 2786 | .region("snow".to_string())
|
3213 2787 | .endpoint("https://10.0.1.12:433".to_string())
|
3214 2788 | .use_fips(false)
|
3215 2789 | .use_dual_stack(false)
|
3216 2790 | .build()
|
3217 2791 | .expect("invalid params");
|
3218 2792 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3219 2793 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3220 2794 | let endpoint = endpoint.expect("Expected valid endpoint: https://10.0.1.12:433");
|
3221 2795 | assert_eq!(
|
3222 2796 | endpoint,
|
3223 2797 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3224 2798 | .url("https://10.0.1.12:433")
|
3225 - | .property(
|
3226 - | "authSchemes",
|
3227 - | vec![{
|
3228 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3229 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3230 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
3231 - | out.insert("signingRegion".to_string(), "snow".to_string().into());
|
3232 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3233 - | out
|
3234 - | }
|
3235 - | .into()]
|
2799 + | .auth_scheme(
|
2800 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2801 + | .put("disableDoubleEncoding", true)
|
2802 + | .put("signingName", "s3".to_string())
|
2803 + | .put("signingRegion", "snow".to_string())
|
3236 2804 | )
|
3237 2805 | .build()
|
3238 2806 | );
|
3239 2807 | }
|
3240 2808 |
|
3241 2809 | /// S3 Snow Control with bucket and without port
|
3242 2810 | #[test]
|
3243 2811 | fn test_109() {
|
3244 2812 | let params = crate::config::endpoint::Params::builder()
|
3245 2813 | .region("snow".to_string())
|
3246 2814 | .bucket("bucketName".to_string())
|
3247 2815 | .endpoint("https://10.0.1.12".to_string())
|
3248 2816 | .use_fips(false)
|
3249 2817 | .use_dual_stack(false)
|
3250 2818 | .build()
|
3251 2819 | .expect("invalid params");
|
3252 2820 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3253 2821 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3254 2822 | let endpoint = endpoint.expect("Expected valid endpoint: https://10.0.1.12");
|
3255 2823 | assert_eq!(
|
3256 2824 | endpoint,
|
3257 2825 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3258 2826 | .url("https://10.0.1.12")
|
3259 - | .property(
|
3260 - | "authSchemes",
|
3261 - | vec![{
|
3262 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3263 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3264 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
3265 - | out.insert("signingRegion".to_string(), "snow".to_string().into());
|
3266 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3267 - | out
|
3268 - | }
|
3269 - | .into()]
|
2827 + | .auth_scheme(
|
2828 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2829 + | .put("disableDoubleEncoding", true)
|
2830 + | .put("signingName", "s3".to_string())
|
2831 + | .put("signingRegion", "snow".to_string())
|
3270 2832 | )
|
3271 2833 | .build()
|
3272 2834 | );
|
3273 2835 | }
|
3274 2836 |
|
3275 2837 | /// S3 Snow Control with bucket and with DNS
|
3276 2838 | #[test]
|
3277 2839 | fn test_110() {
|
3278 2840 | let params = crate::config::endpoint::Params::builder()
|
3279 2841 | .region("snow".to_string())
|
3280 2842 | .bucket("bucketName".to_string())
|
3281 2843 | .endpoint("http://s3snow.com".to_string())
|
3282 2844 | .use_fips(false)
|
3283 2845 | .use_dual_stack(false)
|
3284 2846 | .build()
|
3285 2847 | .expect("invalid params");
|
3286 2848 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3287 2849 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3288 2850 | let endpoint = endpoint.expect("Expected valid endpoint: http://s3snow.com");
|
3289 2851 | assert_eq!(
|
3290 2852 | endpoint,
|
3291 2853 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3292 2854 | .url("http://s3snow.com")
|
3293 - | .property(
|
3294 - | "authSchemes",
|
3295 - | vec![{
|
3296 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3297 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3298 - | out.insert("signingName".to_string(), "s3".to_string().into());
|
3299 - | out.insert("signingRegion".to_string(), "snow".to_string().into());
|
3300 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3301 - | out
|
3302 - | }
|
3303 - | .into()]
|
2855 + | .auth_scheme(
|
2856 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2857 + | .put("disableDoubleEncoding", true)
|
2858 + | .put("signingName", "s3".to_string())
|
2859 + | .put("signingRegion", "snow".to_string())
|
3304 2860 | )
|
3305 2861 | .build()
|
3306 2862 | );
|
3307 2863 | }
|
3308 2864 |
|
3309 2865 | /// S3 Snow Control with FIPS enabled
|
3310 2866 | #[test]
|
3311 2867 | fn test_111() {
|
3312 2868 | let params = crate::config::endpoint::Params::builder()
|
3313 2869 | .region("snow".to_string())
|
3314 2870 | .bucket("bucketName".to_string())
|
3315 2871 | .endpoint("https://10.0.1.12:433".to_string())
|
3316 2872 | .use_fips(true)
|
3317 2873 | .use_dual_stack(false)
|
3318 2874 | .build()
|
3319 2875 | .expect("invalid params");
|
3320 2876 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3321 2877 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3322 2878 | let error = endpoint.expect_err("expected error: S3 Snow does not support FIPS [S3 Snow Control with FIPS enabled]");
|
3323 2879 | assert_eq!(format!("{}", error), "S3 Snow does not support FIPS")
|
3324 2880 | }
|
3325 2881 |
|
3326 2882 | /// S3 Snow Control with Dualstack enabled
|
3327 2883 | #[test]
|
3328 2884 | fn test_112() {
|
3329 2885 | let params = crate::config::endpoint::Params::builder()
|
3330 2886 | .region("snow".to_string())
|
3331 2887 | .bucket("bucketName".to_string())
|
3332 2888 | .endpoint("https://10.0.1.12:433".to_string())
|
3333 2889 | .use_fips(false)
|
3334 2890 | .use_dual_stack(true)
|
3335 2891 | .build()
|
3336 2892 | .expect("invalid params");
|
3337 2893 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3338 2894 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3339 2895 | let error = endpoint.expect_err("expected error: S3 Snow does not support DualStack [S3 Snow Control with Dualstack enabled]");
|
3340 2896 | assert_eq!(format!("{}", error), "S3 Snow does not support DualStack")
|
3341 2897 | }
|
3342 2898 |
|
3343 2899 | /// Tagging on express bucket routed to s3express-control
|
3344 2900 | #[test]
|
3345 2901 | fn test_113() {
|
3346 2902 | let params = crate::config::endpoint::Params::builder()
|
3347 2903 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3348 2904 | .account_id("871317572157".to_string())
|
3349 2905 | .region("us-east-1".to_string())
|
3350 2906 | .requires_account_id(true)
|
3351 2907 | .use_dual_stack(false)
|
3352 2908 | .use_fips(false)
|
3353 2909 | .build()
|
3354 2910 | .expect("invalid params");
|
3355 2911 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3356 2912 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3357 2913 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.us-east-1.amazonaws.com");
|
3358 2914 | assert_eq!(
|
3359 2915 | endpoint,
|
3360 2916 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3361 2917 | .url("https://s3express-control.us-east-1.amazonaws.com")
|
3362 - | .property(
|
3363 - | "authSchemes",
|
3364 - | vec![{
|
3365 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3366 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3367 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3368 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3369 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3370 - | out
|
3371 - | }
|
3372 - | .into()]
|
2918 + | .auth_scheme(
|
2919 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2920 + | .put("disableDoubleEncoding", true)
|
2921 + | .put("signingName", "s3express".to_string())
|
2922 + | .put("signingRegion", "us-east-1".to_string())
|
3373 2923 | )
|
3374 2924 | .build()
|
3375 2925 | );
|
3376 2926 | }
|
3377 2927 |
|
3378 2928 | /// Tagging on express ap routed to s3express-control
|
3379 2929 | #[test]
|
3380 2930 | fn test_114() {
|
3381 2931 | let params = crate::config::endpoint::Params::builder()
|
3382 2932 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:accesspoint/crachlintest--use1-az4--xa-s3".to_string())
|
3383 2933 | .account_id("871317572157".to_string())
|
3384 2934 | .region("us-east-1".to_string())
|
3385 2935 | .requires_account_id(true)
|
3386 2936 | .use_dual_stack(false)
|
3387 2937 | .use_fips(false)
|
3388 2938 | .build()
|
3389 2939 | .expect("invalid params");
|
3390 2940 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3391 2941 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3392 2942 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.us-east-1.amazonaws.com");
|
3393 2943 | assert_eq!(
|
3394 2944 | endpoint,
|
3395 2945 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3396 2946 | .url("https://s3express-control.us-east-1.amazonaws.com")
|
3397 - | .property(
|
3398 - | "authSchemes",
|
3399 - | vec![{
|
3400 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3401 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3402 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3403 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3404 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3405 - | out
|
3406 - | }
|
3407 - | .into()]
|
2947 + | .auth_scheme(
|
2948 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2949 + | .put("disableDoubleEncoding", true)
|
2950 + | .put("signingName", "s3express".to_string())
|
2951 + | .put("signingRegion", "us-east-1".to_string())
|
3408 2952 | )
|
3409 2953 | .build()
|
3410 2954 | );
|
3411 2955 | }
|
3412 2956 |
|
3413 2957 | /// Tagging on express bucket routed to s3express-control FIPS when FIPS enabled
|
3414 2958 | #[test]
|
3415 2959 | fn test_115() {
|
3416 2960 | let params = crate::config::endpoint::Params::builder()
|
3417 2961 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3418 2962 | .account_id("871317572157".to_string())
|
3419 2963 | .region("us-east-1".to_string())
|
3420 2964 | .requires_account_id(true)
|
3421 2965 | .use_dual_stack(false)
|
3422 2966 | .use_fips(true)
|
3423 2967 | .build()
|
3424 2968 | .expect("invalid params");
|
3425 2969 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3426 2970 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3427 2971 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control-fips.us-east-1.amazonaws.com");
|
3428 2972 | assert_eq!(
|
3429 2973 | endpoint,
|
3430 2974 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3431 2975 | .url("https://s3express-control-fips.us-east-1.amazonaws.com")
|
3432 - | .property(
|
3433 - | "authSchemes",
|
3434 - | vec![{
|
3435 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3436 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3437 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3438 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3439 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3440 - | out
|
3441 - | }
|
3442 - | .into()]
|
2976 + | .auth_scheme(
|
2977 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
2978 + | .put("disableDoubleEncoding", true)
|
2979 + | .put("signingName", "s3express".to_string())
|
2980 + | .put("signingRegion", "us-east-1".to_string())
|
3443 2981 | )
|
3444 2982 | .build()
|
3445 2983 | );
|
3446 2984 | }
|
3447 2985 |
|
3448 2986 | /// Tagging on express bucket cn routed to s3express-control china endpoint
|
3449 2987 | #[test]
|
3450 2988 | fn test_116() {
|
3451 2989 | let params = crate::config::endpoint::Params::builder()
|
3452 2990 | .resource_arn("arn:aws-cn:s3express:cn-north-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3453 2991 | .account_id("871317572157".to_string())
|
3454 2992 | .region("cn-north-1".to_string())
|
3455 2993 | .requires_account_id(true)
|
3456 2994 | .use_dual_stack(false)
|
3457 2995 | .use_fips(false)
|
3458 2996 | .build()
|
3459 2997 | .expect("invalid params");
|
3460 2998 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3461 2999 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3462 3000 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.cn-north-1.amazonaws.com.cn");
|
3463 3001 | assert_eq!(
|
3464 3002 | endpoint,
|
3465 3003 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3466 3004 | .url("https://s3express-control.cn-north-1.amazonaws.com.cn")
|
3467 - | .property(
|
3468 - | "authSchemes",
|
3469 - | vec![{
|
3470 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3471 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3472 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3473 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
3474 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3475 - | out
|
3476 - | }
|
3477 - | .into()]
|
3005 + | .auth_scheme(
|
3006 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3007 + | .put("disableDoubleEncoding", true)
|
3008 + | .put("signingName", "s3express".to_string())
|
3009 + | .put("signingRegion", "cn-north-1".to_string())
|
3478 3010 | )
|
3479 3011 | .build()
|
3480 3012 | );
|
3481 3013 | }
|
3482 3014 |
|
3483 3015 | /// Tagging on express bucket cn routed to s3express-control china endpoint with FIPS
|
3484 3016 | #[test]
|
3485 3017 | fn test_117() {
|
3486 3018 | let params = crate::config::endpoint::Params::builder()
|
3487 3019 | .resource_arn("arn:aws-cn:s3express:cn-north-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3488 3020 | .account_id("871317572157".to_string())
|
3489 3021 | .region("cn-north-1".to_string())
|
3490 3022 | .requires_account_id(true)
|
3491 3023 | .use_dual_stack(false)
|
3492 3024 | .use_fips(true)
|
3493 3025 | .build()
|
3494 3026 | .expect("invalid params");
|
3495 3027 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3496 3028 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3497 3029 | let error = endpoint.expect_err(
|
3498 3030 | "expected error: Partition does not support FIPS [Tagging on express bucket cn routed to s3express-control china endpoint with FIPS]",
|
3499 3031 | );
|
3500 3032 | assert_eq!(format!("{}", error), "Partition does not support FIPS")
|
3501 3033 | }
|
3502 3034 |
|
3503 3035 | /// Tagging on express bucket with custom endpoint routed to custom endpoint
|
3504 3036 | #[test]
|
3505 3037 | fn test_118() {
|
3506 3038 | let params = crate::config::endpoint::Params::builder()
|
3507 3039 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3508 3040 | .endpoint("https://my-endpoint.express-control.s3.aws.dev".to_string())
|
3509 3041 | .account_id("871317572157".to_string())
|
3510 3042 | .region("us-east-1".to_string())
|
3511 3043 | .requires_account_id(true)
|
3512 3044 | .use_dual_stack(false)
|
3513 3045 | .use_fips(false)
|
3514 3046 | .build()
|
3515 3047 | .expect("invalid params");
|
3516 3048 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3517 3049 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3518 3050 | let endpoint = endpoint.expect("Expected valid endpoint: https://my-endpoint.express-control.s3.aws.dev");
|
3519 3051 | assert_eq!(
|
3520 3052 | endpoint,
|
3521 3053 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3522 3054 | .url("https://my-endpoint.express-control.s3.aws.dev")
|
3523 - | .property(
|
3524 - | "authSchemes",
|
3525 - | vec![{
|
3526 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3527 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3528 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3529 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3530 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3531 - | out
|
3532 - | }
|
3533 - | .into()]
|
3055 + | .auth_scheme(
|
3056 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3057 + | .put("disableDoubleEncoding", true)
|
3058 + | .put("signingName", "s3express".to_string())
|
3059 + | .put("signingRegion", "us-east-1".to_string())
|
3534 3060 | )
|
3535 3061 | .build()
|
3536 3062 | );
|
3537 3063 | }
|
3538 3064 |
|
3539 3065 | /// Tagging on express access point with custom endpoint routed to custom endpoint
|
3540 3066 | #[test]
|
3541 3067 | fn test_119() {
|
3542 3068 | let params = crate::config::endpoint::Params::builder()
|
3543 3069 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:accesspoint/crachlintest--use1-az4--xa-s3".to_string())
|
3544 3070 | .endpoint("https://my-endpoint.express-control.s3.aws.dev".to_string())
|
3545 3071 | .account_id("871317572157".to_string())
|
3546 3072 | .region("us-east-1".to_string())
|
3547 3073 | .requires_account_id(true)
|
3548 3074 | .use_dual_stack(false)
|
3549 3075 | .use_fips(false)
|
3550 3076 | .build()
|
3551 3077 | .expect("invalid params");
|
3552 3078 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3553 3079 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3554 3080 | let endpoint = endpoint.expect("Expected valid endpoint: https://my-endpoint.express-control.s3.aws.dev");
|
3555 3081 | assert_eq!(
|
3556 3082 | endpoint,
|
3557 3083 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3558 3084 | .url("https://my-endpoint.express-control.s3.aws.dev")
|
3559 - | .property(
|
3560 - | "authSchemes",
|
3561 - | vec![{
|
3562 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3563 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3564 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3565 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3566 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3567 - | out
|
3568 - | }
|
3569 - | .into()]
|
3085 + | .auth_scheme(
|
3086 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3087 + | .put("disableDoubleEncoding", true)
|
3088 + | .put("signingName", "s3express".to_string())
|
3089 + | .put("signingRegion", "us-east-1".to_string())
|
3570 3090 | )
|
3571 3091 | .build()
|
3572 3092 | );
|
3573 3093 | }
|
3574 3094 |
|
3575 3095 | /// Tagging on express bucket with dualstack and custom endpoint fails
|
3576 3096 | #[test]
|
3577 3097 | fn test_120() {
|
3578 3098 | let params = crate::config::endpoint::Params::builder()
|
3579 3099 | .resource_arn("arn:aws:s3express:us-east-1:871317572157:bucket/crachlintest--use1-az4--x-s3".to_string())
|
3580 3100 | .endpoint("https://my-endpoint.express-control.s3.aws.dev".to_string())
|
3581 3101 | .account_id("871317572157".to_string())
|
3582 3102 | .region("us-east-1".to_string())
|
3583 3103 | .requires_account_id(true)
|
3584 3104 | .use_dual_stack(true)
|
3585 3105 | .use_fips(false)
|
3586 3106 | .build()
|
3587 3107 | .expect("invalid params");
|
3588 3108 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3589 3109 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3590 3110 | let error = endpoint.expect_err("expected error: Invalid Configuration: DualStack and custom endpoint are not supported [Tagging on express bucket with dualstack and custom endpoint fails]");
|
3591 3111 | assert_eq!(
|
3592 3112 | format!("{}", error),
|
3593 3113 | "Invalid Configuration: DualStack and custom endpoint are not supported"
|
3594 3114 | )
|
3595 3115 | }
|
3596 3116 |
|
3597 3117 | /// Access Point APIs on express bucket routed to s3express-control
|
3598 3118 | #[test]
|
3599 3119 | fn test_121() {
|
3600 3120 | let params = crate::config::endpoint::Params::builder()
|
3601 3121 | .account_id("871317572157".to_string())
|
3602 3122 | .access_point_name("myaccesspoint--abcd-ab1--xa-s3".to_string())
|
3603 3123 | .region("us-east-1".to_string())
|
3604 3124 | .requires_account_id(true)
|
3605 3125 | .use_dual_stack(false)
|
3606 3126 | .use_fips(false)
|
3607 3127 | .build()
|
3608 3128 | .expect("invalid params");
|
3609 3129 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3610 3130 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3611 3131 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.us-east-1.amazonaws.com");
|
3612 3132 | assert_eq!(
|
3613 3133 | endpoint,
|
3614 3134 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3615 3135 | .url("https://s3express-control.us-east-1.amazonaws.com")
|
3616 - | .property(
|
3617 - | "authSchemes",
|
3618 - | vec![{
|
3619 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3620 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3621 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3622 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3623 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3624 - | out
|
3625 - | }
|
3626 - | .into()]
|
3136 + | .auth_scheme(
|
3137 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3138 + | .put("disableDoubleEncoding", true)
|
3139 + | .put("signingName", "s3express".to_string())
|
3140 + | .put("signingRegion", "us-east-1".to_string())
|
3627 3141 | )
|
3628 3142 | .build()
|
3629 3143 | );
|
3630 3144 | }
|
3631 3145 |
|
3632 3146 | /// Access Point APIs on express bucket routed to s3express-control for List
|
3633 3147 | #[test]
|
3634 3148 | fn test_122() {
|
3635 3149 | let params = crate::config::endpoint::Params::builder()
|
3636 3150 | .account_id("871317572157".to_string())
|
3637 3151 | .region("us-east-1".to_string())
|
3638 3152 | .use_s3_express_control_endpoint(true)
|
3639 3153 | .requires_account_id(true)
|
3640 3154 | .use_dual_stack(false)
|
3641 3155 | .use_fips(false)
|
3642 3156 | .build()
|
3643 3157 | .expect("invalid params");
|
3644 3158 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3645 3159 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3646 3160 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.us-east-1.amazonaws.com");
|
3647 3161 | assert_eq!(
|
3648 3162 | endpoint,
|
3649 3163 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3650 3164 | .url("https://s3express-control.us-east-1.amazonaws.com")
|
3651 - | .property(
|
3652 - | "authSchemes",
|
3653 - | vec![{
|
3654 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3655 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3656 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3657 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3658 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3659 - | out
|
3660 - | }
|
3661 - | .into()]
|
3165 + | .auth_scheme(
|
3166 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3167 + | .put("disableDoubleEncoding", true)
|
3168 + | .put("signingName", "s3express".to_string())
|
3169 + | .put("signingRegion", "us-east-1".to_string())
|
3662 3170 | )
|
3663 3171 | .build()
|
3664 3172 | );
|
3665 3173 | }
|
3666 3174 |
|
3667 3175 | /// Access Point APIs on express bucket routed to s3express-control for FIPS
|
3668 3176 | #[test]
|
3669 3177 | fn test_123() {
|
3670 3178 | let params = crate::config::endpoint::Params::builder()
|
3671 3179 | .account_id("871317572157".to_string())
|
3672 3180 | .access_point_name("myaccesspoint--abcd-ab1--xa-s3".to_string())
|
3673 3181 | .region("us-east-1".to_string())
|
3674 3182 | .requires_account_id(true)
|
3675 3183 | .use_dual_stack(false)
|
3676 3184 | .use_fips(true)
|
3677 3185 | .build()
|
3678 3186 | .expect("invalid params");
|
3679 3187 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3680 3188 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3681 3189 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control-fips.us-east-1.amazonaws.com");
|
3682 3190 | assert_eq!(
|
3683 3191 | endpoint,
|
3684 3192 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3685 3193 | .url("https://s3express-control-fips.us-east-1.amazonaws.com")
|
3686 - | .property(
|
3687 - | "authSchemes",
|
3688 - | vec![{
|
3689 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3690 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3691 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3692 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3693 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3694 - | out
|
3695 - | }
|
3696 - | .into()]
|
3194 + | .auth_scheme(
|
3195 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3196 + | .put("disableDoubleEncoding", true)
|
3197 + | .put("signingName", "s3express".to_string())
|
3198 + | .put("signingRegion", "us-east-1".to_string())
|
3697 3199 | )
|
3698 3200 | .build()
|
3699 3201 | );
|
3700 3202 | }
|
3701 3203 |
|
3702 3204 | /// Access Point APIs on express bucket routed to s3express-control for FIPS for List
|
3703 3205 | #[test]
|
3704 3206 | fn test_124() {
|
3705 3207 | let params = crate::config::endpoint::Params::builder()
|
3706 3208 | .account_id("871317572157".to_string())
|
3707 3209 | .region("us-east-1".to_string())
|
3708 3210 | .use_s3_express_control_endpoint(true)
|
3709 3211 | .requires_account_id(true)
|
3710 3212 | .use_dual_stack(false)
|
3711 3213 | .use_fips(true)
|
3712 3214 | .build()
|
3713 3215 | .expect("invalid params");
|
3714 3216 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3715 3217 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3716 3218 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control-fips.us-east-1.amazonaws.com");
|
3717 3219 | assert_eq!(
|
3718 3220 | endpoint,
|
3719 3221 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3720 3222 | .url("https://s3express-control-fips.us-east-1.amazonaws.com")
|
3721 - | .property(
|
3722 - | "authSchemes",
|
3723 - | vec![{
|
3724 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3725 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3726 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3727 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3728 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3729 - | out
|
3730 - | }
|
3731 - | .into()]
|
3223 + | .auth_scheme(
|
3224 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3225 + | .put("disableDoubleEncoding", true)
|
3226 + | .put("signingName", "s3express".to_string())
|
3227 + | .put("signingRegion", "us-east-1".to_string())
|
3732 3228 | )
|
3733 3229 | .build()
|
3734 3230 | );
|
3735 3231 | }
|
3736 3232 |
|
3737 3233 | /// Access Point APIs on express bucket routed to s3express-control for china region
|
3738 3234 | #[test]
|
3739 3235 | fn test_125() {
|
3740 3236 | let params = crate::config::endpoint::Params::builder()
|
3741 3237 | .access_point_name("myaccesspoint--abcd-ab1--xa-s3".to_string())
|
3742 3238 | .account_id("871317572157".to_string())
|
3743 3239 | .region("cn-north-1".to_string())
|
3744 3240 | .requires_account_id(true)
|
3745 3241 | .use_dual_stack(false)
|
3746 3242 | .use_fips(false)
|
3747 3243 | .build()
|
3748 3244 | .expect("invalid params");
|
3749 3245 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3750 3246 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3751 3247 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.cn-north-1.amazonaws.com.cn");
|
3752 3248 | assert_eq!(
|
3753 3249 | endpoint,
|
3754 3250 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3755 3251 | .url("https://s3express-control.cn-north-1.amazonaws.com.cn")
|
3756 - | .property(
|
3757 - | "authSchemes",
|
3758 - | vec![{
|
3759 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3760 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3761 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3762 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
3763 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3764 - | out
|
3765 - | }
|
3766 - | .into()]
|
3252 + | .auth_scheme(
|
3253 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3254 + | .put("disableDoubleEncoding", true)
|
3255 + | .put("signingName", "s3express".to_string())
|
3256 + | .put("signingRegion", "cn-north-1".to_string())
|
3767 3257 | )
|
3768 3258 | .build()
|
3769 3259 | );
|
3770 3260 | }
|
3771 3261 |
|
3772 3262 | /// Access Point APIs on express bucket routed to s3express-control for china region for List
|
3773 3263 | #[test]
|
3774 3264 | fn test_126() {
|
3775 3265 | let params = crate::config::endpoint::Params::builder()
|
3776 3266 | .account_id("871317572157".to_string())
|
3777 3267 | .region("cn-north-1".to_string())
|
3778 3268 | .use_s3_express_control_endpoint(true)
|
3779 3269 | .requires_account_id(true)
|
3780 3270 | .use_dual_stack(false)
|
3781 3271 | .use_fips(false)
|
3782 3272 | .build()
|
3783 3273 | .expect("invalid params");
|
3784 3274 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3785 3275 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3786 3276 | let endpoint = endpoint.expect("Expected valid endpoint: https://s3express-control.cn-north-1.amazonaws.com.cn");
|
3787 3277 | assert_eq!(
|
3788 3278 | endpoint,
|
3789 3279 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3790 3280 | .url("https://s3express-control.cn-north-1.amazonaws.com.cn")
|
3791 - | .property(
|
3792 - | "authSchemes",
|
3793 - | vec![{
|
3794 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3795 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3796 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3797 - | out.insert("signingRegion".to_string(), "cn-north-1".to_string().into());
|
3798 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3799 - | out
|
3800 - | }
|
3801 - | .into()]
|
3281 + | .auth_scheme(
|
3282 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3283 + | .put("disableDoubleEncoding", true)
|
3284 + | .put("signingName", "s3express".to_string())
|
3285 + | .put("signingRegion", "cn-north-1".to_string())
|
3802 3286 | )
|
3803 3287 | .build()
|
3804 3288 | );
|
3805 3289 | }
|
3806 3290 |
|
3807 3291 | /// Error when Access Point APIs on express bucket routed to s3express-control for china and FIPS
|
3808 3292 | #[test]
|
3809 3293 | fn test_127() {
|
3810 3294 | let params = crate::config::endpoint::Params::builder()
|
3811 3295 | .account_id("871317572157".to_string())
|
3812 3296 | .region("cn-north-1".to_string())
|
3813 3297 | .requires_account_id(true)
|
3814 3298 | .use_dual_stack(false)
|
3815 3299 | .use_fips(true)
|
3816 3300 | .build()
|
3817 3301 | .expect("invalid params");
|
3818 3302 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3819 3303 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3820 3304 | let error = endpoint.expect_err("expected error: Partition does not support FIPS [Error when Access Point APIs on express bucket routed to s3express-control for china and FIPS]");
|
3821 3305 | assert_eq!(format!("{}", error), "Partition does not support FIPS")
|
3822 3306 | }
|
3823 3307 |
|
3824 3308 | /// Error Access Point APIs on express bucket routed to s3express-control invalid zone
|
3825 3309 | #[test]
|
3826 3310 | fn test_128() {
|
3827 3311 | let params = crate::config::endpoint::Params::builder()
|
3828 3312 | .access_point_name("myaccesspoint-garbage-zone--xa-s3".to_string())
|
3829 3313 | .account_id("871317572157".to_string())
|
3830 3314 | .region("us-east-1".to_string())
|
3831 3315 | .requires_account_id(true)
|
3832 3316 | .use_dual_stack(false)
|
3833 3317 | .use_fips(false)
|
3834 3318 | .build()
|
3835 3319 | .expect("invalid params");
|
3836 3320 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3837 3321 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3838 3322 | let error = endpoint.expect_err("expected error: Unrecognized S3Express Access Point name format. [Error Access Point APIs on express bucket routed to s3express-control invalid zone]");
|
3839 3323 | assert_eq!(format!("{}", error), "Unrecognized S3Express Access Point name format.")
|
3840 3324 | }
|
3841 3325 |
|
3842 3326 | /// Access Point APIs on express bucket routed to custom endpoint if provided
|
3843 3327 | #[test]
|
3844 3328 | fn test_129() {
|
3845 3329 | let params = crate::config::endpoint::Params::builder()
|
3846 3330 | .account_id("871317572157".to_string())
|
3847 3331 | .access_point_name("myaccesspoint--abcd-ab1--xa-s3".to_string())
|
3848 3332 | .endpoint("https://my-endpoint.express-control.s3.aws.dev".to_string())
|
3849 3333 | .region("us-east-1".to_string())
|
3850 3334 | .requires_account_id(true)
|
3851 3335 | .use_dual_stack(false)
|
3852 3336 | .use_fips(false)
|
3853 3337 | .build()
|
3854 3338 | .expect("invalid params");
|
3855 3339 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3856 3340 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3857 3341 | let endpoint = endpoint.expect("Expected valid endpoint: https://my-endpoint.express-control.s3.aws.dev");
|
3858 3342 | assert_eq!(
|
3859 3343 | endpoint,
|
3860 3344 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3861 3345 | .url("https://my-endpoint.express-control.s3.aws.dev")
|
3862 - | .property(
|
3863 - | "authSchemes",
|
3864 - | vec![{
|
3865 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3866 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3867 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3868 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3869 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3870 - | out
|
3871 - | }
|
3872 - | .into()]
|
3346 + | .auth_scheme(
|
3347 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3348 + | .put("disableDoubleEncoding", true)
|
3349 + | .put("signingName", "s3express".to_string())
|
3350 + | .put("signingRegion", "us-east-1".to_string())
|
3873 3351 | )
|
3874 3352 | .build()
|
3875 3353 | );
|
3876 3354 | }
|
3877 3355 |
|
3878 3356 | /// Access Point APIs on express bucket routed to custom endpoint if provided for List
|
3879 3357 | #[test]
|
3880 3358 | fn test_130() {
|
3881 3359 | let params = crate::config::endpoint::Params::builder()
|
3882 3360 | .account_id("871317572157".to_string())
|
3883 3361 | .region("us-east-1".to_string())
|
3884 3362 | .use_s3_express_control_endpoint(true)
|
3885 3363 | .endpoint("https://my-endpoint.express-control.s3.aws.dev".to_string())
|
3886 3364 | .requires_account_id(true)
|
3887 3365 | .use_dual_stack(false)
|
3888 3366 | .use_fips(false)
|
3889 3367 | .build()
|
3890 3368 | .expect("invalid params");
|
3891 3369 | let resolver = crate::config::endpoint::DefaultResolver::new();
|
3892 3370 | let endpoint = resolver.resolve_endpoint(¶ms);
|
3893 3371 | let endpoint = endpoint.expect("Expected valid endpoint: https://my-endpoint.express-control.s3.aws.dev");
|
3894 3372 | assert_eq!(
|
3895 3373 | endpoint,
|
3896 3374 | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3897 3375 | .url("https://my-endpoint.express-control.s3.aws.dev")
|
3898 - | .property(
|
3899 - | "authSchemes",
|
3900 - | vec![{
|
3901 - | let mut out = ::std::collections::HashMap::<String, ::aws_smithy_types::Document>::new();
|
3902 - | out.insert("name".to_string(), "sigv4".to_string().into());
|
3903 - | out.insert("signingName".to_string(), "s3express".to_string().into());
|
3904 - | out.insert("signingRegion".to_string(), "us-east-1".to_string().into());
|
3905 - | out.insert("disableDoubleEncoding".to_string(), true.into());
|
3906 - | out
|
3907 - | }
|
3908 - | .into()]
|
3376 + | .auth_scheme(
|
3377 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4", 3)
|
3378 + | .put("disableDoubleEncoding", true)
|
3379 + | .put("signingName", "s3express".to_string())
|
3380 + | .put("signingRegion", "us-east-1".to_string())
|
3909 3381 | )
|
3910 3382 | .build()
|
3911 3383 | );
|
3912 3384 | }
|
3913 3385 |
|
3914 3386 | /// Error on Access Point APIs on express bucket for dual stack
|
3915 3387 | #[test]
|
3916 3388 | fn test_131() {
|
3917 3389 | let params = crate::config::endpoint::Params::builder()
|
3918 3390 | .account_id("871317572157".to_string())
|
4021 3493 | params: &'a ::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams,
|
4022 3494 | ) -> ::aws_smithy_runtime_api::client::endpoint::EndpointFuture<'a> {
|
4023 3495 | let ep = match params.get::<crate::config::endpoint::Params>() {
|
4024 3496 | Some(params) => self.0.resolve_endpoint(params),
|
4025 3497 | None => ::aws_smithy_runtime_api::client::endpoint::EndpointFuture::ready(Err("params of expected type was not present".into())),
|
4026 3498 | };
|
4027 3499 | ep
|
4028 3500 | }
|
4029 3501 | }
|
4030 3502 |
|
4031 - | /// The default endpoint resolver
|
4032 - | #[derive(Debug, Default)]
|
3503 + | #[derive(Debug)]
|
3504 + | /// The default endpoint resolver.
|
4033 3505 | pub struct DefaultResolver {
|
4034 - | partition_resolver: crate::endpoint_lib::partition::PartitionResolver,
|
3506 + | partition_resolver: &'static crate::endpoint_lib::partition::PartitionResolver,
|
3507 + | endpoint_cache: ::arc_swap::ArcSwap<::std::option::Option<(Params, ::aws_smithy_types::endpoint::Endpoint)>>,
|
3508 + | }
|
3509 + |
|
3510 + | impl Default for DefaultResolver {
|
3511 + | fn default() -> Self {
|
3512 + | Self::new()
|
3513 + | }
|
4035 3514 | }
|
4036 3515 |
|
4037 3516 | impl DefaultResolver {
|
4038 - | /// Create a new endpoint resolver with default settings
|
3517 + | /// Create a new DefaultResolver
|
4039 3518 | pub fn new() -> Self {
|
4040 3519 | Self {
|
4041 - | partition_resolver: crate::endpoint_lib::DEFAULT_PARTITION_RESOLVER.clone(),
|
4042 - | }
|
4043 - | }
|
4044 - |
|
4045 - | fn resolve_endpoint(
|
4046 - | &self,
|
4047 - | params: &crate::config::endpoint::Params,
|
3520 + | partition_resolver: &crate::endpoint_lib::DEFAULT_PARTITION_RESOLVER,
|
3521 + | endpoint_cache: ::arc_swap::ArcSwap::from_pointee(None),
|
3522 + | }
|
3523 + | }
|
3524 + |
|
3525 + | #[allow(
|
3526 + | unused_variables,
|
3527 + | unused_parens,
|
3528 + | clippy::double_parens,
|
3529 + | clippy::useless_conversion,
|
3530 + | clippy::bool_comparison,
|
3531 + | clippy::comparison_to_empty,
|
3532 + | clippy::needless_borrow,
|
3533 + | clippy::useless_asref,
|
3534 + | clippy::redundant_closure_call,
|
3535 + | clippy::clone_on_copy
|
3536 + | )]
|
3537 + | fn resolve_endpoint<'a>(
|
3538 + | &'a self,
|
3539 + | params: &'a crate::config::endpoint::Params,
|
4048 3540 | ) -> ::std::result::Result<::aws_smithy_types::endpoint::Endpoint, ::aws_smithy_runtime_api::box_error::BoxError> {
|
4049 - | let mut diagnostic_collector = crate::endpoint_lib::diagnostic::DiagnosticCollector::new();
|
4050 - | Ok(
|
4051 - | crate::config::endpoint::internals::resolve_endpoint(params, &mut diagnostic_collector, &self.partition_resolver)
|
4052 - | .map_err(|err| err.with_source(diagnostic_collector.take_last_error()))?,
|
3541 + | let mut _diagnostic_collector = crate::endpoint_lib::diagnostic::DiagnosticCollector::new();
|
3542 + | #[allow(unused_mut)]
|
3543 + | let mut context = ConditionContext::default();
|
3544 + |
|
3545 + | // Param bindings
|
3546 + | let region = ¶ms.region;
|
3547 + | let use_fips = ¶ms.use_fips;
|
3548 + | let use_dual_stack = ¶ms.use_dual_stack;
|
3549 + | let endpoint = ¶ms.endpoint;
|
3550 + | let account_id = ¶ms.account_id;
|
3551 + | let requires_account_id = ¶ms.requires_account_id;
|
3552 + | let outpost_id = ¶ms.outpost_id;
|
3553 + | let bucket = ¶ms.bucket;
|
3554 + | let access_point_name = ¶ms.access_point_name;
|
3555 + | let use_arn_region = ¶ms.use_arn_region;
|
3556 + | let resource_arn = ¶ms.resource_arn;
|
3557 + | let use_s3_express_control_endpoint = ¶ms.use_s3_express_control_endpoint;
|
3558 + |
|
3559 + | let mut current_ref: i32 = 428;
|
3560 + | loop {
|
3561 + | match current_ref {
|
3562 + | ref_val if ref_val >= 100_000_000 => {
|
3563 + | return match (ref_val - 100_000_000) as usize {
|
3564 + | 0 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3565 + | "No endpoint rule matched",
|
3566 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3567 + | 1 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3568 + | "Partition does not support FIPS".to_string(),
|
3569 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3570 + | 2 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3571 + | "AccountId is required but not set".to_string(),
|
3572 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3573 + | 3 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3574 + | "AccountId must only contain a-z, A-Z, 0-9 and `-`.".to_string(),
|
3575 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3576 + | 4 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3577 + | "OutpostId must only contain a-z, A-Z, 0-9 and `-`.".to_string(),
|
3578 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3579 + | 5 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3580 + | "Invalid Configuration: DualStack and custom endpoint are not supported".to_string(),
|
3581 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3582 + | 6 => {
|
3583 + | let region = params.region.as_deref().unwrap_or_default();
|
3584 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3585 + | ::std::result::Result::Ok(
|
3586 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3587 + | .url({
|
3588 + | let mut out = String::new();
|
3589 + | #[allow(clippy::needless_borrow)]
|
3590 + | out.push_str(&url.scheme());
|
3591 + | out.push_str("://");
|
3592 + | #[allow(clippy::needless_borrow)]
|
3593 + | out.push_str(&url.authority());
|
3594 + | #[allow(clippy::needless_borrow)]
|
3595 + | out.push_str(&url.path());
|
3596 + | out
|
3597 + | })
|
3598 + | .auth_scheme(
|
3599 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3600 + | .put("disableDoubleEncoding", true)
|
3601 + | .put("signingName", "s3-outposts")
|
3602 + | .put("signingRegion", region.as_ref()),
|
3603 + | )
|
3604 + | .build(),
|
4053 3605 | )
|
4054 3606 | }
|
4055 - | }
|
4056 - |
|
4057 - | impl crate::config::endpoint::ResolveEndpoint for DefaultResolver {
|
4058 - | fn resolve_endpoint(&self, params: &crate::config::endpoint::Params) -> ::aws_smithy_runtime_api::client::endpoint::EndpointFuture<'_> {
|
4059 - | ::aws_smithy_runtime_api::client::endpoint::EndpointFuture::ready(self.resolve_endpoint(params))
|
4060 - | }
|
4061 - | }
|
4062 - |
|
4063 - | #[non_exhaustive]
|
4064 - | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4065 - | /// Configuration parameters for resolving the correct endpoint
|
4066 - | pub struct Params {
|
4067 - | /// The AWS region used to dispatch the request.
|
4068 - | pub(crate) region: ::std::option::Option<::std::string::String>,
|
4069 - | /// When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
4070 - | pub(crate) use_fips: bool,
|
4071 - | /// When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
4072 - | pub(crate) use_dual_stack: bool,
|
4073 - | /// Override the endpoint used to send this request
|
4074 - | pub(crate) endpoint: ::std::option::Option<::std::string::String>,
|
4075 - | /// The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.
|
4076 - | pub(crate) account_id: ::std::option::Option<::std::string::String>,
|
4077 - | /// Internal parameter for operations that require account id host prefix.
|
4078 - | pub(crate) requires_account_id: ::std::option::Option<bool>,
|
4079 - | /// The Outpost ID. Some operations have an optional OutpostId which should be used in endpoint construction.
|
4080 - | pub(crate) outpost_id: ::std::option::Option<::std::string::String>,
|
4081 - | /// The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.
|
4082 - | pub(crate) bucket: ::std::option::Option<::std::string::String>,
|
4083 - | /// The S3 AccessPointName used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 AccessPoint.
|
4084 - | pub(crate) access_point_name: ::std::option::Option<::std::string::String>,
|
4085 - | /// When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.
|
4086 - | pub(crate) use_arn_region: ::std::option::Option<bool>,
|
4087 - | /// The resource ARN included in the request. Only set on TagResource, UntagResourceand ListTagsForResource
|
4088 - | pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
|
4089 - | /// Internal parameter to indicate whether S3Express operation should use control plane, (ex. ListDirectoryAccessPoints)
|
4090 - | pub(crate) use_s3_express_control_endpoint: ::std::option::Option<bool>,
|
4091 - | }
|
4092 - | impl Params {
|
4093 - | /// Create a builder for [`Params`]
|
4094 - | pub fn builder() -> crate::config::endpoint::ParamsBuilder {
|
4095 - | crate::config::endpoint::ParamsBuilder::default()
|
3607 + | 7 => {
|
3608 + | let region = params.region.as_deref().unwrap_or_default();
|
3609 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3610 + | ::std::result::Result::Ok(
|
3611 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3612 + | .url({
|
3613 + | let mut out = String::new();
|
3614 + | out.push_str("https://s3-outposts-fips.");
|
3615 + | #[allow(clippy::needless_borrow)]
|
3616 + | out.push_str(®ion.as_ref());
|
3617 + | out.push('.');
|
3618 + | #[allow(clippy::needless_borrow)]
|
3619 + | out.push_str(&partition_result.dual_stack_dns_suffix());
|
3620 + | out
|
3621 + | })
|
3622 + | .auth_scheme(
|
3623 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3624 + | .put("disableDoubleEncoding", true)
|
3625 + | .put("signingName", "s3-outposts")
|
3626 + | .put("signingRegion", region.as_ref()),
|
3627 + | )
|
3628 + | .build(),
|
3629 + | )
|
4096 3630 | }
|
4097 - | /// The AWS region used to dispatch the request.
|
4098 - | pub fn region(&self) -> ::std::option::Option<&str> {
|
4099 - | self.region.as_deref()
|
3631 + | 8 => {
|
3632 + | let region = params.region.as_deref().unwrap_or_default();
|
3633 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3634 + | ::std::result::Result::Ok(
|
3635 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3636 + | .url({
|
3637 + | let mut out = String::new();
|
3638 + | out.push_str("https://s3-outposts-fips.");
|
3639 + | #[allow(clippy::needless_borrow)]
|
3640 + | out.push_str(®ion.as_ref());
|
3641 + | out.push('.');
|
3642 + | #[allow(clippy::needless_borrow)]
|
3643 + | out.push_str(&partition_result.dns_suffix());
|
3644 + | out
|
3645 + | })
|
3646 + | .auth_scheme(
|
3647 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3648 + | .put("disableDoubleEncoding", true)
|
3649 + | .put("signingName", "s3-outposts")
|
3650 + | .put("signingRegion", region.as_ref()),
|
3651 + | )
|
3652 + | .build(),
|
3653 + | )
|
4100 3654 | }
|
4101 - | /// When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
4102 - | pub fn use_fips(&self) -> ::std::option::Option<bool> {
|
4103 - | Some(self.use_fips)
|
3655 + | 9 => {
|
3656 + | let region = params.region.as_deref().unwrap_or_default();
|
3657 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3658 + | ::std::result::Result::Ok(
|
3659 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3660 + | .url({
|
3661 + | let mut out = String::new();
|
3662 + | out.push_str("https://s3-outposts.");
|
3663 + | #[allow(clippy::needless_borrow)]
|
3664 + | out.push_str(®ion.as_ref());
|
3665 + | out.push('.');
|
3666 + | #[allow(clippy::needless_borrow)]
|
3667 + | out.push_str(&partition_result.dual_stack_dns_suffix());
|
3668 + | out
|
3669 + | })
|
3670 + | .auth_scheme(
|
3671 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3672 + | .put("disableDoubleEncoding", true)
|
3673 + | .put("signingName", "s3-outposts")
|
3674 + | .put("signingRegion", region.as_ref()),
|
3675 + | )
|
3676 + | .build(),
|
3677 + | )
|
4104 3678 | }
|
4105 - | /// When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
4106 - | pub fn use_dual_stack(&self) -> ::std::option::Option<bool> {
|
4107 - | Some(self.use_dual_stack)
|
3679 + | 10 => {
|
3680 + | let region = params.region.as_deref().unwrap_or_default();
|
3681 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3682 + | ::std::result::Result::Ok(
|
3683 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3684 + | .url({
|
3685 + | let mut out = String::new();
|
3686 + | out.push_str("https://s3-outposts.");
|
3687 + | #[allow(clippy::needless_borrow)]
|
3688 + | out.push_str(®ion.as_ref());
|
3689 + | out.push('.');
|
3690 + | #[allow(clippy::needless_borrow)]
|
3691 + | out.push_str(&partition_result.dns_suffix());
|
3692 + | out
|
3693 + | })
|
3694 + | .auth_scheme(
|
3695 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3696 + | .put("disableDoubleEncoding", true)
|
3697 + | .put("signingName", "s3-outposts")
|
3698 + | .put("signingRegion", region.as_ref()),
|
3699 + | )
|
3700 + | .build(),
|
3701 + | )
|
4108 3702 | }
|
4109 - | /// Override the endpoint used to send this request
|
3703 + | 11 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3704 + | "Invalid region: region was not a valid DNS name.".to_string(),
|
3705 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3706 + | 12 => {
|
3707 + | let region = params.region.as_deref().unwrap_or_default();
|
3708 + | let resource_arn_ctx_1 = context
|
3709 + | .resource_arn_ctx_1
|
3710 + | .as_ref()
|
3711 + | .expect("Guaranteed to have a value by earlier checks.");
|
3712 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
3713 + | let mut out = String::new();
|
3714 + | out.push_str("Invalid configuration: region from ARN `");
|
3715 + | #[allow(clippy::needless_borrow)]
|
3716 + | out.push_str(&resource_arn_ctx_1.region());
|
3717 + | out.push_str("` does not match client region `");
|
3718 + | #[allow(clippy::needless_borrow)]
|
3719 + | out.push_str(®ion.as_ref());
|
3720 + | out.push_str("` and UseArnRegion is `false`");
|
3721 + | out
|
3722 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
3723 + | }
|
3724 + | 13 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3725 + | "S3Express does not support Dual-stack.".to_string(),
|
3726 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3727 + | 14 => {
|
3728 + | let region = params.region.as_deref().unwrap_or_default();
|
3729 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3730 + | ::std::result::Result::Ok(
|
3731 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3732 + | .url({
|
3733 + | let mut out = String::new();
|
3734 + | #[allow(clippy::needless_borrow)]
|
3735 + | out.push_str(&url.scheme());
|
3736 + | out.push_str("://");
|
3737 + | #[allow(clippy::needless_borrow)]
|
3738 + | out.push_str(&url.authority());
|
3739 + | out
|
3740 + | })
|
3741 + | .auth_scheme(
|
3742 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3743 + | .put("disableDoubleEncoding", true)
|
3744 + | .put("signingName", "s3express")
|
3745 + | .put("signingRegion", region.as_ref()),
|
3746 + | )
|
3747 + | .build(),
|
3748 + | )
|
3749 + | }
|
3750 + | 15 => {
|
3751 + | let region = params.region.as_deref().unwrap_or_default();
|
3752 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3753 + | ::std::result::Result::Ok(
|
3754 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3755 + | .url({
|
3756 + | let mut out = String::new();
|
3757 + | out.push_str("https://s3express-control-fips.");
|
3758 + | #[allow(clippy::needless_borrow)]
|
3759 + | out.push_str(®ion.as_ref());
|
3760 + | out.push('.');
|
3761 + | #[allow(clippy::needless_borrow)]
|
3762 + | out.push_str(&partition_result.dns_suffix());
|
3763 + | out
|
3764 + | })
|
3765 + | .auth_scheme(
|
3766 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3767 + | .put("disableDoubleEncoding", true)
|
3768 + | .put("signingName", "s3express")
|
3769 + | .put("signingRegion", region.as_ref()),
|
3770 + | )
|
3771 + | .build(),
|
3772 + | )
|
3773 + | }
|
3774 + | 16 => {
|
3775 + | let region = params.region.as_deref().unwrap_or_default();
|
3776 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3777 + | ::std::result::Result::Ok(
|
3778 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3779 + | .url({
|
3780 + | let mut out = String::new();
|
3781 + | out.push_str("https://s3express-control.");
|
3782 + | #[allow(clippy::needless_borrow)]
|
3783 + | out.push_str(®ion.as_ref());
|
3784 + | out.push('.');
|
3785 + | #[allow(clippy::needless_borrow)]
|
3786 + | out.push_str(&partition_result.dns_suffix());
|
3787 + | out
|
3788 + | })
|
3789 + | .auth_scheme(
|
3790 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3791 + | .put("disableDoubleEncoding", true)
|
3792 + | .put("signingName", "s3express")
|
3793 + | .put("signingRegion", region.as_ref()),
|
3794 + | )
|
3795 + | .build(),
|
3796 + | )
|
3797 + | }
|
3798 + | 17 => {
|
3799 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3800 + | let arn_partition_ssa_3 = context
|
3801 + | .arn_partition_ssa_3
|
3802 + | .as_ref()
|
3803 + | .expect("Guaranteed to have a value by earlier checks.");
|
3804 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
3805 + | let mut out = String::new();
|
3806 + | out.push_str("Client was configured for partition `");
|
3807 + | #[allow(clippy::needless_borrow)]
|
3808 + | out.push_str(&partition_result.name());
|
3809 + | out.push_str("` but ARN has `");
|
3810 + | #[allow(clippy::needless_borrow)]
|
3811 + | out.push_str(&arn_partition_ssa_3.name());
|
3812 + | out.push('`');
|
3813 + | out
|
3814 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
3815 + | }
|
3816 + | 18 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3817 + | "Unrecognized S3Express Access Point name format.".to_string(),
|
3818 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3819 + | 19 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3820 + | "S3 Snow does not support DualStack".to_string(),
|
3821 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3822 + | 20 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
3823 + | "S3 Snow does not support FIPS".to_string(),
|
3824 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
3825 + | 21 => {
|
3826 + | let region = params.region.as_deref().unwrap_or_default();
|
3827 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3828 + | ::std::result::Result::Ok(
|
3829 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3830 + | .url({
|
3831 + | let mut out = String::new();
|
3832 + | #[allow(clippy::needless_borrow)]
|
3833 + | out.push_str(&url.scheme());
|
3834 + | out.push_str("://");
|
3835 + | #[allow(clippy::needless_borrow)]
|
3836 + | out.push_str(&url.authority());
|
3837 + | out
|
3838 + | })
|
3839 + | .auth_scheme(
|
3840 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3841 + | .put("disableDoubleEncoding", true)
|
3842 + | .put("signingName", "s3")
|
3843 + | .put("signingRegion", region.as_ref()),
|
3844 + | )
|
3845 + | .build(),
|
3846 + | )
|
3847 + | }
|
3848 + | 22 => {
|
3849 + | let region = params.region.as_deref().unwrap_or_default();
|
3850 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3851 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
3852 + | let mut out = String::new();
|
3853 + | out.push_str("Invalid configuration: region from ARN `");
|
3854 + | #[allow(clippy::needless_borrow)]
|
3855 + | out.push_str(&access_point_arn.region());
|
3856 + | out.push_str("` does not match client region `");
|
3857 + | #[allow(clippy::needless_borrow)]
|
3858 + | out.push_str(®ion.as_ref());
|
3859 + | out.push_str("` and UseArnRegion is `false`");
|
3860 + | out
|
3861 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
3862 + | }
|
3863 + | 23 => {
|
3864 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
3865 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3866 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
3867 + | let mut out = String::new();
|
3868 + | out.push_str("Invalid ARN: the accountId specified in the ARN (`");
|
3869 + | #[allow(clippy::needless_borrow)]
|
3870 + | out.push_str(&access_point_arn.account_id());
|
3871 + | out.push_str("`) does not match the parameter (`");
|
3872 + | #[allow(clippy::needless_borrow)]
|
3873 + | out.push_str(&account_id.as_ref());
|
3874 + | out.push_str("`)");
|
3875 + | out
|
3876 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
3877 + | }
|
3878 + | 24 => {
|
3879 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3880 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3881 + | let arn_partition_ssa_1 = context
|
3882 + | .arn_partition_ssa_1
|
3883 + | .as_ref()
|
3884 + | .expect("Guaranteed to have a value by earlier checks.");
|
3885 + | ::std::result::Result::Ok(
|
3886 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3887 + | .url({
|
3888 + | let mut out = String::new();
|
3889 + | out.push_str("https://s3-outposts-fips.");
|
3890 + | #[allow(clippy::needless_borrow)]
|
3891 + | out.push_str(&access_point_arn.region());
|
3892 + | out.push('.');
|
3893 + | #[allow(clippy::needless_borrow)]
|
3894 + | out.push_str(&arn_partition_ssa_1.dual_stack_dns_suffix());
|
3895 + | out
|
3896 + | })
|
3897 + | .header("x-amz-account-id", access_point_arn.account_id().to_owned())
|
3898 + | .header("x-amz-outpost-id", outpost_id_ssa_1.to_owned())
|
3899 + | .auth_scheme(
|
3900 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3901 + | .put("disableDoubleEncoding", true)
|
3902 + | .put("signingName", "s3-outposts")
|
3903 + | .put("signingRegion", access_point_arn.region()),
|
3904 + | )
|
3905 + | .build(),
|
3906 + | )
|
3907 + | }
|
3908 + | 25 => {
|
3909 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3910 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3911 + | let arn_partition_ssa_1 = context
|
3912 + | .arn_partition_ssa_1
|
3913 + | .as_ref()
|
3914 + | .expect("Guaranteed to have a value by earlier checks.");
|
3915 + | ::std::result::Result::Ok(
|
3916 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3917 + | .url({
|
3918 + | let mut out = String::new();
|
3919 + | out.push_str("https://s3-outposts-fips.");
|
3920 + | #[allow(clippy::needless_borrow)]
|
3921 + | out.push_str(&access_point_arn.region());
|
3922 + | out.push('.');
|
3923 + | #[allow(clippy::needless_borrow)]
|
3924 + | out.push_str(&arn_partition_ssa_1.dns_suffix());
|
3925 + | out
|
3926 + | })
|
3927 + | .header("x-amz-account-id", access_point_arn.account_id().to_owned())
|
3928 + | .header("x-amz-outpost-id", outpost_id_ssa_1.to_owned())
|
3929 + | .auth_scheme(
|
3930 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3931 + | .put("disableDoubleEncoding", true)
|
3932 + | .put("signingName", "s3-outposts")
|
3933 + | .put("signingRegion", access_point_arn.region()),
|
3934 + | )
|
3935 + | .build(),
|
3936 + | )
|
3937 + | }
|
3938 + | 26 => {
|
3939 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3940 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3941 + | let arn_partition_ssa_1 = context
|
3942 + | .arn_partition_ssa_1
|
3943 + | .as_ref()
|
3944 + | .expect("Guaranteed to have a value by earlier checks.");
|
3945 + | ::std::result::Result::Ok(
|
3946 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3947 + | .url({
|
3948 + | let mut out = String::new();
|
3949 + | out.push_str("https://s3-outposts.");
|
3950 + | #[allow(clippy::needless_borrow)]
|
3951 + | out.push_str(&access_point_arn.region());
|
3952 + | out.push('.');
|
3953 + | #[allow(clippy::needless_borrow)]
|
3954 + | out.push_str(&arn_partition_ssa_1.dual_stack_dns_suffix());
|
3955 + | out
|
3956 + | })
|
3957 + | .header("x-amz-account-id", access_point_arn.account_id().to_owned())
|
3958 + | .header("x-amz-outpost-id", outpost_id_ssa_1.to_owned())
|
3959 + | .auth_scheme(
|
3960 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3961 + | .put("disableDoubleEncoding", true)
|
3962 + | .put("signingName", "s3-outposts")
|
3963 + | .put("signingRegion", access_point_arn.region()),
|
3964 + | )
|
3965 + | .build(),
|
3966 + | )
|
3967 + | }
|
3968 + | 27 => {
|
3969 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3970 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3971 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3972 + | ::std::result::Result::Ok(
|
3973 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
3974 + | .url({
|
3975 + | let mut out = String::new();
|
3976 + | #[allow(clippy::needless_borrow)]
|
3977 + | out.push_str(&url.scheme());
|
3978 + | out.push_str("://");
|
3979 + | #[allow(clippy::needless_borrow)]
|
3980 + | out.push_str(&url.authority());
|
3981 + | #[allow(clippy::needless_borrow)]
|
3982 + | out.push_str(&url.path());
|
3983 + | out
|
3984 + | })
|
3985 + | .header("x-amz-account-id", access_point_arn.account_id().to_owned())
|
3986 + | .header("x-amz-outpost-id", outpost_id_ssa_1.to_owned())
|
3987 + | .auth_scheme(
|
3988 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
3989 + | .put("disableDoubleEncoding", true)
|
3990 + | .put("signingName", "s3-outposts")
|
3991 + | .put("signingRegion", access_point_arn.region()),
|
3992 + | )
|
3993 + | .build(),
|
3994 + | )
|
3995 + | }
|
3996 + | 28 => {
|
3997 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3998 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
3999 + | let arn_partition_ssa_1 = context
|
4000 + | .arn_partition_ssa_1
|
4001 + | .as_ref()
|
4002 + | .expect("Guaranteed to have a value by earlier checks.");
|
4003 + | ::std::result::Result::Ok(
|
4004 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4005 + | .url({
|
4006 + | let mut out = String::new();
|
4007 + | out.push_str("https://s3-outposts.");
|
4008 + | #[allow(clippy::needless_borrow)]
|
4009 + | out.push_str(&access_point_arn.region());
|
4010 + | out.push('.');
|
4011 + | #[allow(clippy::needless_borrow)]
|
4012 + | out.push_str(&arn_partition_ssa_1.dns_suffix());
|
4013 + | out
|
4014 + | })
|
4015 + | .header("x-amz-account-id", access_point_arn.account_id().to_owned())
|
4016 + | .header("x-amz-outpost-id", outpost_id_ssa_1.to_owned())
|
4017 + | .auth_scheme(
|
4018 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4019 + | .put("disableDoubleEncoding", true)
|
4020 + | .put("signingName", "s3-outposts")
|
4021 + | .put("signingRegion", access_point_arn.region()),
|
4022 + | )
|
4023 + | .build(),
|
4024 + | )
|
4025 + | }
|
4026 + | 29 => {
|
4027 + | let outpost_type_ssa_1 = context
|
4028 + | .outpost_type_ssa_1
|
4029 + | .as_ref()
|
4030 + | .expect("Guaranteed to have a value by earlier checks.");
|
4031 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4032 + | let mut out = String::new();
|
4033 + | out.push_str("Expected an outpost type `accesspoint`, found `");
|
4034 + | #[allow(clippy::needless_borrow)]
|
4035 + | out.push_str(&outpost_type_ssa_1.as_ref());
|
4036 + | out.push('`');
|
4037 + | out
|
4038 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4039 + | }
|
4040 + | 30 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4041 + | "Invalid ARN: expected an access point name".to_string(),
|
4042 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4043 + | 31 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4044 + | "Invalid ARN: Expected a 4-component resource".to_string(),
|
4045 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4046 + | 32 => {
|
4047 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4048 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4049 + | let mut out = String::new();
|
4050 + | out.push_str("Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `");
|
4051 + | #[allow(clippy::needless_borrow)]
|
4052 + | out.push_str(&access_point_arn.account_id());
|
4053 + | out.push('`');
|
4054 + | out
|
4055 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4056 + | }
|
4057 + | 33 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4058 + | "Invalid ARN: missing account ID".to_string(),
|
4059 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4060 + | 34 => {
|
4061 + | let access_point_arn = context.access_point_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4062 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4063 + | let mut out = String::new();
|
4064 + | out.push_str("Invalid region in ARN: `");
|
4065 + | #[allow(clippy::needless_borrow)]
|
4066 + | out.push_str(&access_point_arn.region());
|
4067 + | out.push_str("` (invalid DNS name)");
|
4068 + | out
|
4069 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4070 + | }
|
4071 + | 35 => {
|
4072 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4073 + | let arn_partition_ssa_1 = context
|
4074 + | .arn_partition_ssa_1
|
4075 + | .as_ref()
|
4076 + | .expect("Guaranteed to have a value by earlier checks.");
|
4077 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4078 + | let mut out = String::new();
|
4079 + | out.push_str("Client was configured for partition `");
|
4080 + | #[allow(clippy::needless_borrow)]
|
4081 + | out.push_str(&partition_result.name());
|
4082 + | out.push_str("` but ARN has `");
|
4083 + | #[allow(clippy::needless_borrow)]
|
4084 + | out.push_str(&arn_partition_ssa_1.name());
|
4085 + | out.push('`');
|
4086 + | out
|
4087 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4088 + | }
|
4089 + | 36 => {
|
4090 + | let outpost_id_ssa_1 = context.outpost_id_ssa_1.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4091 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4092 + | let mut out = String::new();
|
4093 + | out.push_str("Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `");
|
4094 + | #[allow(clippy::needless_borrow)]
|
4095 + | out.push_str(&outpost_id_ssa_1.as_ref());
|
4096 + | out.push('`');
|
4097 + | out
|
4098 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4099 + | }
|
4100 + | 37 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4101 + | "Invalid ARN: The Outpost Id was not set".to_string(),
|
4102 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4103 + | 38 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4104 + | "Invalid ARN: No ARN type specified".to_string(),
|
4105 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4106 + | 39 => {
|
4107 + | let region = params.region.as_deref().unwrap_or_default();
|
4108 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4109 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4110 + | let mut out = String::new();
|
4111 + | out.push_str("Invalid configuration: region from ARN `");
|
4112 + | #[allow(clippy::needless_borrow)]
|
4113 + | out.push_str(&bucket_arn.region());
|
4114 + | out.push_str("` does not match client region `");
|
4115 + | #[allow(clippy::needless_borrow)]
|
4116 + | out.push_str(®ion.as_ref());
|
4117 + | out.push_str("` and UseArnRegion is `false`");
|
4118 + | out
|
4119 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4120 + | }
|
4121 + | 40 => {
|
4122 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4123 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4124 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4125 + | let mut out = String::new();
|
4126 + | out.push_str("Invalid ARN: the accountId specified in the ARN (`");
|
4127 + | #[allow(clippy::needless_borrow)]
|
4128 + | out.push_str(&bucket_arn.account_id());
|
4129 + | out.push_str("`) does not match the parameter (`");
|
4130 + | #[allow(clippy::needless_borrow)]
|
4131 + | out.push_str(&account_id.as_ref());
|
4132 + | out.push_str("`)");
|
4133 + | out
|
4134 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4135 + | }
|
4136 + | 41 => {
|
4137 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4138 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4139 + | let arn_partition_ssa_2 = context
|
4140 + | .arn_partition_ssa_2
|
4141 + | .as_ref()
|
4142 + | .expect("Guaranteed to have a value by earlier checks.");
|
4143 + | ::std::result::Result::Ok(
|
4144 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4145 + | .url({
|
4146 + | let mut out = String::new();
|
4147 + | out.push_str("https://s3-outposts-fips.");
|
4148 + | #[allow(clippy::needless_borrow)]
|
4149 + | out.push_str(&bucket_arn.region());
|
4150 + | out.push('.');
|
4151 + | #[allow(clippy::needless_borrow)]
|
4152 + | out.push_str(&arn_partition_ssa_2.dual_stack_dns_suffix());
|
4153 + | out
|
4154 + | })
|
4155 + | .header("x-amz-account-id", bucket_arn.account_id().to_owned())
|
4156 + | .header("x-amz-outpost-id", outpost_id_ssa_2.to_owned())
|
4157 + | .auth_scheme(
|
4158 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4159 + | .put("disableDoubleEncoding", true)
|
4160 + | .put("signingName", "s3-outposts")
|
4161 + | .put("signingRegion", bucket_arn.region()),
|
4162 + | )
|
4163 + | .build(),
|
4164 + | )
|
4165 + | }
|
4166 + | 42 => {
|
4167 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4168 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4169 + | let arn_partition_ssa_2 = context
|
4170 + | .arn_partition_ssa_2
|
4171 + | .as_ref()
|
4172 + | .expect("Guaranteed to have a value by earlier checks.");
|
4173 + | ::std::result::Result::Ok(
|
4174 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4175 + | .url({
|
4176 + | let mut out = String::new();
|
4177 + | out.push_str("https://s3-outposts-fips.");
|
4178 + | #[allow(clippy::needless_borrow)]
|
4179 + | out.push_str(&bucket_arn.region());
|
4180 + | out.push('.');
|
4181 + | #[allow(clippy::needless_borrow)]
|
4182 + | out.push_str(&arn_partition_ssa_2.dns_suffix());
|
4183 + | out
|
4184 + | })
|
4185 + | .header("x-amz-account-id", bucket_arn.account_id().to_owned())
|
4186 + | .header("x-amz-outpost-id", outpost_id_ssa_2.to_owned())
|
4187 + | .auth_scheme(
|
4188 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4189 + | .put("disableDoubleEncoding", true)
|
4190 + | .put("signingName", "s3-outposts")
|
4191 + | .put("signingRegion", bucket_arn.region()),
|
4192 + | )
|
4193 + | .build(),
|
4194 + | )
|
4195 + | }
|
4196 + | 43 => {
|
4197 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4198 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4199 + | let arn_partition_ssa_2 = context
|
4200 + | .arn_partition_ssa_2
|
4201 + | .as_ref()
|
4202 + | .expect("Guaranteed to have a value by earlier checks.");
|
4203 + | ::std::result::Result::Ok(
|
4204 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4205 + | .url({
|
4206 + | let mut out = String::new();
|
4207 + | out.push_str("https://s3-outposts.");
|
4208 + | #[allow(clippy::needless_borrow)]
|
4209 + | out.push_str(&bucket_arn.region());
|
4210 + | out.push('.');
|
4211 + | #[allow(clippy::needless_borrow)]
|
4212 + | out.push_str(&arn_partition_ssa_2.dual_stack_dns_suffix());
|
4213 + | out
|
4214 + | })
|
4215 + | .header("x-amz-account-id", bucket_arn.account_id().to_owned())
|
4216 + | .header("x-amz-outpost-id", outpost_id_ssa_2.to_owned())
|
4217 + | .auth_scheme(
|
4218 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4219 + | .put("disableDoubleEncoding", true)
|
4220 + | .put("signingName", "s3-outposts")
|
4221 + | .put("signingRegion", bucket_arn.region()),
|
4222 + | )
|
4223 + | .build(),
|
4224 + | )
|
4225 + | }
|
4226 + | 44 => {
|
4227 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4228 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4229 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4230 + | ::std::result::Result::Ok(
|
4231 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4232 + | .url({
|
4233 + | let mut out = String::new();
|
4234 + | #[allow(clippy::needless_borrow)]
|
4235 + | out.push_str(&url.scheme());
|
4236 + | out.push_str("://");
|
4237 + | #[allow(clippy::needless_borrow)]
|
4238 + | out.push_str(&url.authority());
|
4239 + | #[allow(clippy::needless_borrow)]
|
4240 + | out.push_str(&url.path());
|
4241 + | out
|
4242 + | })
|
4243 + | .header("x-amz-account-id", bucket_arn.account_id().to_owned())
|
4244 + | .header("x-amz-outpost-id", outpost_id_ssa_2.to_owned())
|
4245 + | .auth_scheme(
|
4246 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4247 + | .put("disableDoubleEncoding", true)
|
4248 + | .put("signingName", "s3-outposts")
|
4249 + | .put("signingRegion", bucket_arn.region()),
|
4250 + | )
|
4251 + | .build(),
|
4252 + | )
|
4253 + | }
|
4254 + | 45 => {
|
4255 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4256 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4257 + | let arn_partition_ssa_2 = context
|
4258 + | .arn_partition_ssa_2
|
4259 + | .as_ref()
|
4260 + | .expect("Guaranteed to have a value by earlier checks.");
|
4261 + | ::std::result::Result::Ok(
|
4262 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4263 + | .url({
|
4264 + | let mut out = String::new();
|
4265 + | out.push_str("https://s3-outposts.");
|
4266 + | #[allow(clippy::needless_borrow)]
|
4267 + | out.push_str(&bucket_arn.region());
|
4268 + | out.push('.');
|
4269 + | #[allow(clippy::needless_borrow)]
|
4270 + | out.push_str(&arn_partition_ssa_2.dns_suffix());
|
4271 + | out
|
4272 + | })
|
4273 + | .header("x-amz-account-id", bucket_arn.account_id().to_owned())
|
4274 + | .header("x-amz-outpost-id", outpost_id_ssa_2.to_owned())
|
4275 + | .auth_scheme(
|
4276 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4277 + | .put("disableDoubleEncoding", true)
|
4278 + | .put("signingName", "s3-outposts")
|
4279 + | .put("signingRegion", bucket_arn.region()),
|
4280 + | )
|
4281 + | .build(),
|
4282 + | )
|
4283 + | }
|
4284 + | 46 => {
|
4285 + | let outpost_type_ssa_2 = context
|
4286 + | .outpost_type_ssa_2
|
4287 + | .as_ref()
|
4288 + | .expect("Guaranteed to have a value by earlier checks.");
|
4289 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4290 + | let mut out = String::new();
|
4291 + | out.push_str("Invalid ARN: Expected an outpost type `bucket`, found `");
|
4292 + | #[allow(clippy::needless_borrow)]
|
4293 + | out.push_str(&outpost_type_ssa_2.as_ref());
|
4294 + | out.push('`');
|
4295 + | out
|
4296 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4297 + | }
|
4298 + | 47 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4299 + | "Invalid ARN: expected a bucket name".to_string(),
|
4300 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4301 + | 48 => {
|
4302 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4303 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4304 + | let mut out = String::new();
|
4305 + | out.push_str("Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `");
|
4306 + | #[allow(clippy::needless_borrow)]
|
4307 + | out.push_str(&bucket_arn.account_id());
|
4308 + | out.push('`');
|
4309 + | out
|
4310 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4311 + | }
|
4312 + | 49 => {
|
4313 + | let bucket_arn = context.bucket_arn.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4314 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4315 + | let mut out = String::new();
|
4316 + | out.push_str("Invalid region in ARN: `");
|
4317 + | #[allow(clippy::needless_borrow)]
|
4318 + | out.push_str(&bucket_arn.region());
|
4319 + | out.push_str("` (invalid DNS name)");
|
4320 + | out
|
4321 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4322 + | }
|
4323 + | 50 => {
|
4324 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4325 + | let arn_partition_ssa_2 = context
|
4326 + | .arn_partition_ssa_2
|
4327 + | .as_ref()
|
4328 + | .expect("Guaranteed to have a value by earlier checks.");
|
4329 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4330 + | let mut out = String::new();
|
4331 + | out.push_str("Client was configured for partition `");
|
4332 + | #[allow(clippy::needless_borrow)]
|
4333 + | out.push_str(&partition_result.name());
|
4334 + | out.push_str("` but ARN has `");
|
4335 + | #[allow(clippy::needless_borrow)]
|
4336 + | out.push_str(&arn_partition_ssa_2.name());
|
4337 + | out.push('`');
|
4338 + | out
|
4339 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4340 + | }
|
4341 + | 51 => {
|
4342 + | let outpost_id_ssa_2 = context.outpost_id_ssa_2.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4343 + | ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message({
|
4344 + | let mut out = String::new();
|
4345 + | out.push_str("Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `");
|
4346 + | #[allow(clippy::needless_borrow)]
|
4347 + | out.push_str(&outpost_id_ssa_2.as_ref());
|
4348 + | out.push('`');
|
4349 + | out
|
4350 + | })) as ::aws_smithy_runtime_api::box_error::BoxError)
|
4351 + | }
|
4352 + | 52 => {
|
4353 + | let region = params.region.as_deref().unwrap_or_default();
|
4354 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4355 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4356 + | ::std::result::Result::Ok(
|
4357 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4358 + | .url({
|
4359 + | let mut out = String::new();
|
4360 + | #[allow(clippy::needless_borrow)]
|
4361 + | out.push_str(&url.scheme());
|
4362 + | out.push_str("://");
|
4363 + | #[allow(clippy::needless_borrow)]
|
4364 + | out.push_str(&account_id.as_ref());
|
4365 + | out.push('.');
|
4366 + | #[allow(clippy::needless_borrow)]
|
4367 + | out.push_str(&url.authority());
|
4368 + | #[allow(clippy::needless_borrow)]
|
4369 + | out.push_str(&url.path());
|
4370 + | out
|
4371 + | })
|
4372 + | .auth_scheme(
|
4373 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4374 + | .put("disableDoubleEncoding", true)
|
4375 + | .put("signingName", "s3")
|
4376 + | .put("signingRegion", region.as_ref()),
|
4377 + | )
|
4378 + | .build(),
|
4379 + | )
|
4380 + | }
|
4381 + | 53 => {
|
4382 + | let region = params.region.as_deref().unwrap_or_default();
|
4383 + | let url = context.url.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4384 + | ::std::result::Result::Ok(
|
4385 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4386 + | .url({
|
4387 + | let mut out = String::new();
|
4388 + | #[allow(clippy::needless_borrow)]
|
4389 + | out.push_str(&url.scheme());
|
4390 + | out.push_str("://");
|
4391 + | #[allow(clippy::needless_borrow)]
|
4392 + | out.push_str(&url.authority());
|
4393 + | #[allow(clippy::needless_borrow)]
|
4394 + | out.push_str(&url.path());
|
4395 + | out
|
4396 + | })
|
4397 + | .auth_scheme(
|
4398 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4399 + | .put("disableDoubleEncoding", true)
|
4400 + | .put("signingName", "s3")
|
4401 + | .put("signingRegion", region.as_ref()),
|
4402 + | )
|
4403 + | .build(),
|
4404 + | )
|
4405 + | }
|
4406 + | 54 => {
|
4407 + | let region = params.region.as_deref().unwrap_or_default();
|
4408 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4409 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4410 + | ::std::result::Result::Ok(
|
4411 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4412 + | .url({
|
4413 + | let mut out = String::new();
|
4414 + | out.push_str("https://");
|
4415 + | #[allow(clippy::needless_borrow)]
|
4416 + | out.push_str(&account_id.as_ref());
|
4417 + | out.push_str(".s3-control-fips.dualstack.");
|
4418 + | #[allow(clippy::needless_borrow)]
|
4419 + | out.push_str(®ion.as_ref());
|
4420 + | out.push('.');
|
4421 + | #[allow(clippy::needless_borrow)]
|
4422 + | out.push_str(&partition_result.dns_suffix());
|
4423 + | out
|
4424 + | })
|
4425 + | .auth_scheme(
|
4426 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4427 + | .put("disableDoubleEncoding", true)
|
4428 + | .put("signingName", "s3")
|
4429 + | .put("signingRegion", region.as_ref()),
|
4430 + | )
|
4431 + | .build(),
|
4432 + | )
|
4433 + | }
|
4434 + | 55 => {
|
4435 + | let region = params.region.as_deref().unwrap_or_default();
|
4436 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4437 + | ::std::result::Result::Ok(
|
4438 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4439 + | .url({
|
4440 + | let mut out = String::new();
|
4441 + | out.push_str("https://s3-control-fips.dualstack.");
|
4442 + | #[allow(clippy::needless_borrow)]
|
4443 + | out.push_str(®ion.as_ref());
|
4444 + | out.push('.');
|
4445 + | #[allow(clippy::needless_borrow)]
|
4446 + | out.push_str(&partition_result.dns_suffix());
|
4447 + | out
|
4448 + | })
|
4449 + | .auth_scheme(
|
4450 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4451 + | .put("disableDoubleEncoding", true)
|
4452 + | .put("signingName", "s3")
|
4453 + | .put("signingRegion", region.as_ref()),
|
4454 + | )
|
4455 + | .build(),
|
4456 + | )
|
4457 + | }
|
4458 + | 56 => {
|
4459 + | let region = params.region.as_deref().unwrap_or_default();
|
4460 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4461 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4462 + | ::std::result::Result::Ok(
|
4463 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4464 + | .url({
|
4465 + | let mut out = String::new();
|
4466 + | out.push_str("https://");
|
4467 + | #[allow(clippy::needless_borrow)]
|
4468 + | out.push_str(&account_id.as_ref());
|
4469 + | out.push_str(".s3-control-fips.");
|
4470 + | #[allow(clippy::needless_borrow)]
|
4471 + | out.push_str(®ion.as_ref());
|
4472 + | out.push('.');
|
4473 + | #[allow(clippy::needless_borrow)]
|
4474 + | out.push_str(&partition_result.dns_suffix());
|
4475 + | out
|
4476 + | })
|
4477 + | .auth_scheme(
|
4478 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4479 + | .put("disableDoubleEncoding", true)
|
4480 + | .put("signingName", "s3")
|
4481 + | .put("signingRegion", region.as_ref()),
|
4482 + | )
|
4483 + | .build(),
|
4484 + | )
|
4485 + | }
|
4486 + | 57 => {
|
4487 + | let region = params.region.as_deref().unwrap_or_default();
|
4488 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4489 + | ::std::result::Result::Ok(
|
4490 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4491 + | .url({
|
4492 + | let mut out = String::new();
|
4493 + | out.push_str("https://s3-control-fips.");
|
4494 + | #[allow(clippy::needless_borrow)]
|
4495 + | out.push_str(®ion.as_ref());
|
4496 + | out.push('.');
|
4497 + | #[allow(clippy::needless_borrow)]
|
4498 + | out.push_str(&partition_result.dns_suffix());
|
4499 + | out
|
4500 + | })
|
4501 + | .auth_scheme(
|
4502 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4503 + | .put("disableDoubleEncoding", true)
|
4504 + | .put("signingName", "s3")
|
4505 + | .put("signingRegion", region.as_ref()),
|
4506 + | )
|
4507 + | .build(),
|
4508 + | )
|
4509 + | }
|
4510 + | 58 => {
|
4511 + | let region = params.region.as_deref().unwrap_or_default();
|
4512 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4513 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4514 + | ::std::result::Result::Ok(
|
4515 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4516 + | .url({
|
4517 + | let mut out = String::new();
|
4518 + | out.push_str("https://");
|
4519 + | #[allow(clippy::needless_borrow)]
|
4520 + | out.push_str(&account_id.as_ref());
|
4521 + | out.push_str(".s3-control.dualstack.");
|
4522 + | #[allow(clippy::needless_borrow)]
|
4523 + | out.push_str(®ion.as_ref());
|
4524 + | out.push('.');
|
4525 + | #[allow(clippy::needless_borrow)]
|
4526 + | out.push_str(&partition_result.dns_suffix());
|
4527 + | out
|
4528 + | })
|
4529 + | .auth_scheme(
|
4530 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4531 + | .put("disableDoubleEncoding", true)
|
4532 + | .put("signingName", "s3")
|
4533 + | .put("signingRegion", region.as_ref()),
|
4534 + | )
|
4535 + | .build(),
|
4536 + | )
|
4537 + | }
|
4538 + | 59 => {
|
4539 + | let region = params.region.as_deref().unwrap_or_default();
|
4540 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4541 + | ::std::result::Result::Ok(
|
4542 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4543 + | .url({
|
4544 + | let mut out = String::new();
|
4545 + | out.push_str("https://s3-control.dualstack.");
|
4546 + | #[allow(clippy::needless_borrow)]
|
4547 + | out.push_str(®ion.as_ref());
|
4548 + | out.push('.');
|
4549 + | #[allow(clippy::needless_borrow)]
|
4550 + | out.push_str(&partition_result.dns_suffix());
|
4551 + | out
|
4552 + | })
|
4553 + | .auth_scheme(
|
4554 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4555 + | .put("disableDoubleEncoding", true)
|
4556 + | .put("signingName", "s3")
|
4557 + | .put("signingRegion", region.as_ref()),
|
4558 + | )
|
4559 + | .build(),
|
4560 + | )
|
4561 + | }
|
4562 + | 60 => {
|
4563 + | let region = params.region.as_deref().unwrap_or_default();
|
4564 + | let account_id = params.account_id.as_deref().unwrap_or_default();
|
4565 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4566 + | ::std::result::Result::Ok(
|
4567 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4568 + | .url({
|
4569 + | let mut out = String::new();
|
4570 + | out.push_str("https://");
|
4571 + | #[allow(clippy::needless_borrow)]
|
4572 + | out.push_str(&account_id.as_ref());
|
4573 + | out.push_str(".s3-control.");
|
4574 + | #[allow(clippy::needless_borrow)]
|
4575 + | out.push_str(®ion.as_ref());
|
4576 + | out.push('.');
|
4577 + | #[allow(clippy::needless_borrow)]
|
4578 + | out.push_str(&partition_result.dns_suffix());
|
4579 + | out
|
4580 + | })
|
4581 + | .auth_scheme(
|
4582 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4583 + | .put("disableDoubleEncoding", true)
|
4584 + | .put("signingName", "s3")
|
4585 + | .put("signingRegion", region.as_ref()),
|
4586 + | )
|
4587 + | .build(),
|
4588 + | )
|
4589 + | }
|
4590 + | 61 => {
|
4591 + | let region = params.region.as_deref().unwrap_or_default();
|
4592 + | let partition_result = context.partition_result.as_ref().expect("Guaranteed to have a value by earlier checks.");
|
4593 + | ::std::result::Result::Ok(
|
4594 + | ::aws_smithy_types::endpoint::Endpoint::builder()
|
4595 + | .url({
|
4596 + | let mut out = String::new();
|
4597 + | out.push_str("https://s3-control.");
|
4598 + | #[allow(clippy::needless_borrow)]
|
4599 + | out.push_str(®ion.as_ref());
|
4600 + | out.push('.');
|
4601 + | #[allow(clippy::needless_borrow)]
|
4602 + | out.push_str(&partition_result.dns_suffix());
|
4603 + | out
|
4604 + | })
|
4605 + | .auth_scheme(
|
4606 + | ::aws_smithy_types::endpoint::EndpointAuthScheme::with_capacity("sigv4".to_string(), 3)
|
4607 + | .put("disableDoubleEncoding", true)
|
4608 + | .put("signingName", "s3")
|
4609 + | .put("signingRegion", region.as_ref()),
|
4610 + | )
|
4611 + | .build(),
|
4612 + | )
|
4613 + | }
|
4614 + | 62 => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4615 + | "Region must be set".to_string(),
|
4616 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4617 + | _ => ::std::result::Result::Err(Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message(
|
4618 + | "No endpoint rule matched",
|
4619 + | )) as ::aws_smithy_runtime_api::box_error::BoxError),
|
4620 + | };
|
4621 + | }
|
4622 + | 1 | -1 => {
|
4623 + | return ::std::result::Result::Err(
|
4624 + | Box::new(::aws_smithy_http::endpoint::ResolveEndpointError::message("No endpoint rule matched"))
|
4625 + | as ::aws_smithy_runtime_api::box_error::BoxError,
|
4626 + | )
|
4627 + | }
|
4628 + | ref_val => {
|
4629 + | let is_complement = ref_val < 0;
|
4630 + | let node = &NODES[(ref_val.unsigned_abs() as usize) - 1];
|
4631 + | let condition_result = match node.condition_index {
|
4632 + | 0 => region.is_some(),
|
4633 + | 1 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4634 + | let partition_result = &mut context.partition_result;
|
4635 + | let partition_resolver = &self.partition_resolver;
|
4636 + | {
|
4637 + | *partition_result = partition_resolver
|
4638 + | .resolve_partition(if let Some(param) = region { param } else { return false }, _diagnostic_collector)
|
4639 + | .map(|inner| inner.into());
|
4640 + | partition_result.is_some()
|
4641 + | }
|
4642 + | })(&mut _diagnostic_collector),
|
4643 + | 2 => (use_fips) == (&true),
|
4644 + | 3 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4645 + | let partition_result = &context.partition_result;
|
4646 + | let partition_resolver = &self.partition_resolver;
|
4647 + | (if let Some(inner) = partition_result {
|
4648 + | inner.name()
|
4649 + | } else {
|
4650 + | return false;
|
4651 + | }) == ("aws-cn")
|
4652 + | })(&mut _diagnostic_collector),
|
4653 + | 4 => outpost_id.is_some(),
|
4654 + | 5 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4655 + | let partition_resolver = &self.partition_resolver;
|
4656 + | crate::endpoint_lib::host::is_valid_host_label(
|
4657 + | if let Some(param) = outpost_id { param } else { return false },
|
4658 + | false,
|
4659 + | _diagnostic_collector,
|
4660 + | )
|
4661 + | })(&mut _diagnostic_collector),
|
4662 + | 6 => resource_arn.is_some(),
|
4663 + | 7 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4664 + | let resource_arn_ctx_1 = &mut context.resource_arn_ctx_1;
|
4665 + | let partition_resolver = &self.partition_resolver;
|
4666 + | {
|
4667 + | *resource_arn_ctx_1 = crate::endpoint_lib::arn::parse_arn(
|
4668 + | if let Some(param) = resource_arn { param } else { return false },
|
4669 + | _diagnostic_collector,
|
4670 + | )
|
4671 + | .map(|inner| inner.into());
|
4672 + | resource_arn_ctx_1.is_some()
|
4673 + | }
|
4674 + | })(&mut _diagnostic_collector),
|
4675 + | 8 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4676 + | let resource_arn_ctx_1 = &context.resource_arn_ctx_1;
|
4677 + | let partition_resolver = &self.partition_resolver;
|
4678 + | (if let Some(inner) = resource_arn_ctx_1 {
|
4679 + | inner.service()
|
4680 + | } else {
|
4681 + | return false;
|
4682 + | }) == ("s3express")
|
4683 + | })(&mut _diagnostic_collector),
|
4684 + | 9 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4685 + | let resource_arn_ctx_1 = &context.resource_arn_ctx_1;
|
4686 + | let arn_partition_ssa_3 = &mut context.arn_partition_ssa_3;
|
4687 + | let partition_resolver = &self.partition_resolver;
|
4688 + | {
|
4689 + | *arn_partition_ssa_3 = partition_resolver
|
4690 + | .resolve_partition(
|
4691 + | if let Some(inner) = resource_arn_ctx_1 {
|
4692 + | inner.region()
|
4693 + | } else {
|
4694 + | return false;
|
4695 + | },
|
4696 + | _diagnostic_collector,
|
4697 + | )
|
4698 + | .map(|inner| inner.into());
|
4699 + | arn_partition_ssa_3.is_some()
|
4700 + | }
|
4701 + | })(&mut _diagnostic_collector),
|
4702 + | 10 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4703 + | let partition_result = &context.partition_result;
|
4704 + | let arn_partition_ssa_3 = &context.arn_partition_ssa_3;
|
4705 + | let partition_resolver = &self.partition_resolver;
|
4706 + | (if let Some(inner) = arn_partition_ssa_3 {
|
4707 + | inner.name()
|
4708 + | } else {
|
4709 + | return false;
|
4710 + | }) == (if let Some(inner) = partition_result {
|
4711 + | inner.name()
|
4712 + | } else {
|
4713 + | return false;
|
4714 + | })
|
4715 + | })(&mut _diagnostic_collector),
|
4716 + | 11 => endpoint.is_some(),
|
4717 + | 12 => (use_dual_stack) == (&true),
|
4718 + | 13 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4719 + | let partition_resolver = &self.partition_resolver;
|
4720 + | (crate::endpoint_lib::coalesce::coalesce!(use_s3_express_control_endpoint.clone(), false)) == (true)
|
4721 + | })(&mut _diagnostic_collector),
|
4722 + | 14 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4723 + | let url = &mut context.url;
|
4724 + | let partition_resolver = &self.partition_resolver;
|
4725 + | {
|
4726 + | *url = crate::endpoint_lib::parse_url::parse_url(
|
4727 + | if let Some(param) = endpoint { param } else { return false },
|
4728 + | _diagnostic_collector,
|
4729 + | )
|
4730 + | .map(|inner| inner.into());
|
4731 + | url.is_some()
|
4732 + | }
|
4733 + | })(&mut _diagnostic_collector),
|
4734 + | 15 => access_point_name.is_some(),
|
4735 + | 16 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4736 + | let partition_resolver = &self.partition_resolver;
|
4737 + | (crate::endpoint_lib::coalesce::coalesce!(
|
4738 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
4739 + | if let Some(param) = access_point_name { param } else { return false },
|
4740 + | 0,
|
4741 + | 7,
|
4742 + | true,
|
4743 + | _diagnostic_collector
|
4744 + | ) {
|
4745 + | inner
|
4746 + | } else {
|
4747 + | return false;
|
4748 + | },
|
4749 + | "".to_string()
|
4750 + | )) == ("--xa-s3")
|
4751 + | })(&mut _diagnostic_collector),
|
4752 + | 17 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4753 + | let partition_resolver = &self.partition_resolver;
|
4754 + | (crate::endpoint_lib::substring::substring(
|
4755 + | if let Some(param) = access_point_name { param } else { return false },
|
4756 + | 7,
|
4757 + | 15,
|
4758 + | true,
|
4759 + | _diagnostic_collector,
|
4760 + | ))
|
4761 + | .is_some()
|
4762 + | })(&mut _diagnostic_collector),
|
4763 + | 18 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4764 + | let partition_resolver = &self.partition_resolver;
|
4765 + | (crate::endpoint_lib::coalesce::coalesce!(
|
4766 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
4767 + | if let Some(param) = access_point_name { param } else { return false },
|
4768 + | 15,
|
4769 + | 17,
|
4770 + | true,
|
4771 + | _diagnostic_collector
|
4772 + | ) {
|
4773 + | inner
|
4774 + | } else {
|
4775 + | return false;
|
4776 + | },
|
4777 + | "".to_string()
|
4778 + | )) == ("--")
|
4779 + | })(&mut _diagnostic_collector),
|
4780 + | 19 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4781 + | let partition_resolver = &self.partition_resolver;
|
4782 + | (crate::endpoint_lib::substring::substring(
|
4783 + | if let Some(param) = access_point_name { param } else { return false },
|
4784 + | 7,
|
4785 + | 16,
|
4786 + | true,
|
4787 + | _diagnostic_collector,
|
4788 + | ))
|
4789 + | .is_some()
|
4790 + | })(&mut _diagnostic_collector),
|
4791 + | 20 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4792 + | let partition_resolver = &self.partition_resolver;
|
4793 + | (region) == &mut Some(("snow".to_string().into()))
|
4794 + | })(&mut _diagnostic_collector),
|
4795 + | 21 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4796 + | let access_point_arn = &mut context.access_point_arn;
|
4797 + | let partition_resolver = &self.partition_resolver;
|
4798 + | {
|
4799 + | *access_point_arn = crate::endpoint_lib::arn::parse_arn(
|
4800 + | if let Some(param) = access_point_name { param } else { return false },
|
4801 + | _diagnostic_collector,
|
4802 + | )
|
4803 + | .map(|inner| inner.into());
|
4804 + | access_point_arn.is_some()
|
4805 + | }
|
4806 + | })(&mut _diagnostic_collector),
|
4807 + | 22 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4808 + | let access_point_arn = &context.access_point_arn;
|
4809 + | let arn_type_ssa_1 = &mut context.arn_type_ssa_1;
|
4810 + | let partition_resolver = &self.partition_resolver;
|
4811 + | {
|
4812 + | *arn_type_ssa_1 = if let Some(inner) = access_point_arn {
|
4813 + | inner.resource_id().first().cloned()
|
4814 + | } else {
|
4815 + | return false;
|
4816 + | }
|
4817 + | .map(|inner| inner.into());
|
4818 + | arn_type_ssa_1.is_some()
|
4819 + | }
|
4820 + | })(&mut _diagnostic_collector),
|
4821 + | 23 => bucket.is_some(),
|
4822 + | 24 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4823 + | let bucket_arn = &mut context.bucket_arn;
|
4824 + | let partition_resolver = &self.partition_resolver;
|
4825 + | {
|
4826 + | *bucket_arn = crate::endpoint_lib::arn::parse_arn(
|
4827 + | if let Some(param) = bucket { param } else { return false },
|
4828 + | _diagnostic_collector,
|
4829 + | )
|
4830 + | .map(|inner| inner.into());
|
4831 + | bucket_arn.is_some()
|
4832 + | }
|
4833 + | })(&mut _diagnostic_collector),
|
4834 + | 25 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4835 + | let bucket_arn = &context.bucket_arn;
|
4836 + | let arn_type_ssa_2 = &mut context.arn_type_ssa_2;
|
4837 + | let partition_resolver = &self.partition_resolver;
|
4838 + | {
|
4839 + | *arn_type_ssa_2 = if let Some(inner) = bucket_arn {
|
4840 + | inner.resource_id().first().cloned()
|
4841 + | } else {
|
4842 + | return false;
|
4843 + | }
|
4844 + | .map(|inner| inner.into());
|
4845 + | arn_type_ssa_2.is_some()
|
4846 + | }
|
4847 + | })(&mut _diagnostic_collector),
|
4848 + | 26 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4849 + | let arn_type_ssa_2 = &context.arn_type_ssa_2;
|
4850 + | let partition_resolver = &self.partition_resolver;
|
4851 + | (arn_type_ssa_2) == &mut Some(("".to_string().into()))
|
4852 + | })(&mut _diagnostic_collector),
|
4853 + | 27 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4854 + | let bucket_arn = &context.bucket_arn;
|
4855 + | let partition_resolver = &self.partition_resolver;
|
4856 + | (if let Some(inner) = bucket_arn { inner.service() } else { return false }) == ("s3-outposts")
|
4857 + | })(&mut _diagnostic_collector),
|
4858 + | 28 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4859 + | let bucket_arn = &context.bucket_arn;
|
4860 + | let outpost_id_ssa_2 = &mut context.outpost_id_ssa_2;
|
4861 + | let partition_resolver = &self.partition_resolver;
|
4862 + | {
|
4863 + | *outpost_id_ssa_2 = if let Some(inner) = bucket_arn {
|
4864 + | inner.resource_id().get(1).cloned()
|
4865 + | } else {
|
4866 + | return false;
|
4867 + | }
|
4868 + | .map(|inner| inner.into());
|
4869 + | outpost_id_ssa_2.is_some()
|
4870 + | }
|
4871 + | })(&mut _diagnostic_collector),
|
4872 + | 29 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4873 + | let partition_resolver = &self.partition_resolver;
|
4874 + | (crate::endpoint_lib::coalesce::coalesce!(
|
4875 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
4876 + | if let Some(param) = access_point_name { param } else { return false },
|
4877 + | 16,
|
4878 + | 18,
|
4879 + | true,
|
4880 + | _diagnostic_collector
|
4881 + | ) {
|
4882 + | inner
|
4883 + | } else {
|
4884 + | return false;
|
4885 + | },
|
4886 + | "".to_string()
|
4887 + | )) == ("--")
|
4888 + | })(&mut _diagnostic_collector),
|
4889 + | 30 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4890 + | let arn_type_ssa_1 = &context.arn_type_ssa_1;
|
4891 + | let partition_resolver = &self.partition_resolver;
|
4892 + | (arn_type_ssa_1) == &mut Some(("".to_string().into()))
|
4893 + | })(&mut _diagnostic_collector),
|
4894 + | 31 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4895 + | let access_point_arn = &context.access_point_arn;
|
4896 + | let partition_resolver = &self.partition_resolver;
|
4897 + | (if let Some(inner) = access_point_arn {
|
4898 + | inner.service()
|
4899 + | } else {
|
4900 + | return false;
|
4901 + | }) == ("s3-outposts")
|
4902 + | })(&mut _diagnostic_collector),
|
4903 + | 32 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4904 + | let access_point_arn = &context.access_point_arn;
|
4905 + | let outpost_id_ssa_1 = &mut context.outpost_id_ssa_1;
|
4906 + | let partition_resolver = &self.partition_resolver;
|
4907 + | {
|
4908 + | *outpost_id_ssa_1 = if let Some(inner) = access_point_arn {
|
4909 + | inner.resource_id().get(1).cloned()
|
4910 + | } else {
|
4911 + | return false;
|
4912 + | }
|
4913 + | .map(|inner| inner.into());
|
4914 + | outpost_id_ssa_1.is_some()
|
4915 + | }
|
4916 + | })(&mut _diagnostic_collector),
|
4917 + | 33 => account_id.is_some(),
|
4918 + | 34 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4919 + | let partition_resolver = &self.partition_resolver;
|
4920 + | crate::endpoint_lib::host::is_valid_host_label(
|
4921 + | if let Some(param) = account_id { param } else { return false },
|
4922 + | false,
|
4923 + | _diagnostic_collector,
|
4924 + | )
|
4925 + | })(&mut _diagnostic_collector),
|
4926 + | 35 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4927 + | let partition_resolver = &self.partition_resolver;
|
4928 + | (crate::endpoint_lib::coalesce::coalesce!(requires_account_id.clone(), false)) == (true)
|
4929 + | })(&mut _diagnostic_collector),
|
4930 + | 36 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4931 + | let access_point_arn = &context.access_point_arn;
|
4932 + | let partition_resolver = &self.partition_resolver;
|
4933 + | (account_id)
|
4934 + | == &mut Some(
|
4935 + | (if let Some(inner) = access_point_arn {
|
4936 + | inner.account_id()
|
4937 + | } else {
|
4938 + | return false;
|
4939 + | }
|
4940 + | .into()),
|
4941 + | )
|
4942 + | })(&mut _diagnostic_collector),
|
4943 + | 37 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4944 + | let partition_resolver = &self.partition_resolver;
|
4945 + | crate::endpoint_lib::host::is_valid_host_label(
|
4946 + | if let Some(param) = region { param } else { return false },
|
4947 + | true,
|
4948 + | _diagnostic_collector,
|
4949 + | )
|
4950 + | })(&mut _diagnostic_collector),
|
4951 + | 38 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4952 + | let bucket_arn = &context.bucket_arn;
|
4953 + | let partition_resolver = &self.partition_resolver;
|
4954 + | (account_id)
|
4955 + | == &mut Some(
|
4956 + | (if let Some(inner) = bucket_arn {
|
4957 + | inner.account_id()
|
4958 + | } else {
|
4959 + | return false;
|
4960 + | }
|
4961 + | .into()),
|
4962 + | )
|
4963 + | })(&mut _diagnostic_collector),
|
4964 + | 39 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4965 + | let partition_resolver = &self.partition_resolver;
|
4966 + | (crate::endpoint_lib::coalesce::coalesce!(use_arn_region.clone(), true)) == (true)
|
4967 + | })(&mut _diagnostic_collector),
|
4968 + | 40 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4969 + | let outpost_id_ssa_2 = &context.outpost_id_ssa_2;
|
4970 + | let partition_resolver = &self.partition_resolver;
|
4971 + | crate::endpoint_lib::host::is_valid_host_label(
|
4972 + | if let Some(param) = outpost_id_ssa_2 { param } else { return false },
|
4973 + | false,
|
4974 + | _diagnostic_collector,
|
4975 + | )
|
4976 + | })(&mut _diagnostic_collector),
|
4977 + | 41 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4978 + | let access_point_arn = &context.access_point_arn;
|
4979 + | let partition_resolver = &self.partition_resolver;
|
4980 + | (region)
|
4981 + | == &mut Some(
|
4982 + | (if let Some(inner) = access_point_arn {
|
4983 + | inner.region()
|
4984 + | } else {
|
4985 + | return false;
|
4986 + | }
|
4987 + | .into()),
|
4988 + | )
|
4989 + | })(&mut _diagnostic_collector),
|
4990 + | 42 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4991 + | let bucket_arn = &context.bucket_arn;
|
4992 + | let partition_resolver = &self.partition_resolver;
|
4993 + | (region) == &mut Some((if let Some(inner) = bucket_arn { inner.region() } else { return false }.into()))
|
4994 + | })(&mut _diagnostic_collector),
|
4995 + | 43 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
4996 + | let bucket_arn = &context.bucket_arn;
|
4997 + | let arn_partition_ssa_2 = &mut context.arn_partition_ssa_2;
|
4998 + | let partition_resolver = &self.partition_resolver;
|
4999 + | {
|
5000 + | *arn_partition_ssa_2 = partition_resolver
|
5001 + | .resolve_partition(
|
5002 + | if let Some(inner) = bucket_arn { inner.region() } else { return false },
|
5003 + | _diagnostic_collector,
|
5004 + | )
|
5005 + | .map(|inner| inner.into());
|
5006 + | arn_partition_ssa_2.is_some()
|
5007 + | }
|
5008 + | })(&mut _diagnostic_collector),
|
5009 + | 44 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5010 + | let partition_result = &context.partition_result;
|
5011 + | let arn_partition_ssa_2 = &context.arn_partition_ssa_2;
|
5012 + | let partition_resolver = &self.partition_resolver;
|
5013 + | (if let Some(inner) = arn_partition_ssa_2 {
|
5014 + | inner.name()
|
5015 + | } else {
|
5016 + | return false;
|
5017 + | }) == (if let Some(inner) = partition_result {
|
5018 + | inner.name()
|
5019 + | } else {
|
5020 + | return false;
|
5021 + | })
|
5022 + | })(&mut _diagnostic_collector),
|
5023 + | 45 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5024 + | let bucket_arn = &context.bucket_arn;
|
5025 + | let partition_resolver = &self.partition_resolver;
|
5026 + | crate::endpoint_lib::host::is_valid_host_label(
|
5027 + | if let Some(inner) = bucket_arn { inner.region() } else { return false },
|
5028 + | true,
|
5029 + | _diagnostic_collector,
|
5030 + | )
|
5031 + | })(&mut _diagnostic_collector),
|
5032 + | 46 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5033 + | let bucket_arn = &context.bucket_arn;
|
5034 + | let partition_resolver = &self.partition_resolver;
|
5035 + | (if let Some(inner) = bucket_arn {
|
5036 + | inner.account_id()
|
5037 + | } else {
|
5038 + | return false;
|
5039 + | }) == ("")
|
5040 + | })(&mut _diagnostic_collector),
|
5041 + | 47 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5042 + | let bucket_arn = &context.bucket_arn;
|
5043 + | let partition_resolver = &self.partition_resolver;
|
5044 + | crate::endpoint_lib::host::is_valid_host_label(
|
5045 + | if let Some(inner) = bucket_arn {
|
5046 + | inner.account_id()
|
5047 + | } else {
|
5048 + | return false;
|
5049 + | },
|
5050 + | false,
|
5051 + | _diagnostic_collector,
|
5052 + | )
|
5053 + | })(&mut _diagnostic_collector),
|
5054 + | 48 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5055 + | let outpost_id_ssa_1 = &context.outpost_id_ssa_1;
|
5056 + | let partition_resolver = &self.partition_resolver;
|
5057 + | crate::endpoint_lib::host::is_valid_host_label(
|
5058 + | if let Some(param) = outpost_id_ssa_1 { param } else { return false },
|
5059 + | false,
|
5060 + | _diagnostic_collector,
|
5061 + | )
|
5062 + | })(&mut _diagnostic_collector),
|
5063 + | 49 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5064 + | let access_point_arn = &context.access_point_arn;
|
5065 + | let arn_partition_ssa_1 = &mut context.arn_partition_ssa_1;
|
5066 + | let partition_resolver = &self.partition_resolver;
|
5067 + | {
|
5068 + | *arn_partition_ssa_1 = partition_resolver
|
5069 + | .resolve_partition(
|
5070 + | if let Some(inner) = access_point_arn {
|
5071 + | inner.region()
|
5072 + | } else {
|
5073 + | return false;
|
5074 + | },
|
5075 + | _diagnostic_collector,
|
5076 + | )
|
5077 + | .map(|inner| inner.into());
|
5078 + | arn_partition_ssa_1.is_some()
|
5079 + | }
|
5080 + | })(&mut _diagnostic_collector),
|
5081 + | 50 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5082 + | let partition_result = &context.partition_result;
|
5083 + | let arn_partition_ssa_1 = &context.arn_partition_ssa_1;
|
5084 + | let partition_resolver = &self.partition_resolver;
|
5085 + | (if let Some(inner) = arn_partition_ssa_1 {
|
5086 + | inner.name()
|
5087 + | } else {
|
5088 + | return false;
|
5089 + | }) == (if let Some(inner) = partition_result {
|
5090 + | inner.name()
|
5091 + | } else {
|
5092 + | return false;
|
5093 + | })
|
5094 + | })(&mut _diagnostic_collector),
|
5095 + | 51 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5096 + | let access_point_arn = &context.access_point_arn;
|
5097 + | let partition_resolver = &self.partition_resolver;
|
5098 + | crate::endpoint_lib::host::is_valid_host_label(
|
5099 + | if let Some(inner) = access_point_arn {
|
5100 + | inner.region()
|
5101 + | } else {
|
5102 + | return false;
|
5103 + | },
|
5104 + | true,
|
5105 + | _diagnostic_collector,
|
5106 + | )
|
5107 + | })(&mut _diagnostic_collector),
|
5108 + | 52 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5109 + | let access_point_arn = &context.access_point_arn;
|
5110 + | let partition_resolver = &self.partition_resolver;
|
5111 + | (if let Some(inner) = access_point_arn {
|
5112 + | inner.account_id()
|
5113 + | } else {
|
5114 + | return false;
|
5115 + | }) == ("")
|
5116 + | })(&mut _diagnostic_collector),
|
5117 + | 53 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5118 + | let access_point_arn = &context.access_point_arn;
|
5119 + | let partition_resolver = &self.partition_resolver;
|
5120 + | crate::endpoint_lib::host::is_valid_host_label(
|
5121 + | if let Some(inner) = access_point_arn {
|
5122 + | inner.account_id()
|
5123 + | } else {
|
5124 + | return false;
|
5125 + | },
|
5126 + | false,
|
5127 + | _diagnostic_collector,
|
5128 + | )
|
5129 + | })(&mut _diagnostic_collector),
|
5130 + | 54 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5131 + | let partition_resolver = &self.partition_resolver;
|
5132 + | (crate::endpoint_lib::substring::substring(
|
5133 + | if let Some(param) = access_point_name { param } else { return false },
|
5134 + | 7,
|
5135 + | 20,
|
5136 + | true,
|
5137 + | _diagnostic_collector,
|
5138 + | ))
|
5139 + | .is_some()
|
5140 + | })(&mut _diagnostic_collector),
|
5141 + | 55 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5142 + | let partition_resolver = &self.partition_resolver;
|
5143 + | (crate::endpoint_lib::coalesce::coalesce!(
|
5144 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
5145 + | if let Some(param) = access_point_name { param } else { return false },
|
5146 + | 20,
|
5147 + | 22,
|
5148 + | true,
|
5149 + | _diagnostic_collector
|
5150 + | ) {
|
5151 + | inner
|
5152 + | } else {
|
5153 + | return false;
|
5154 + | },
|
5155 + | "".to_string()
|
5156 + | )) == ("--")
|
5157 + | })(&mut _diagnostic_collector),
|
5158 + | 56 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5159 + | let partition_resolver = &self.partition_resolver;
|
5160 + | (crate::endpoint_lib::substring::substring(
|
5161 + | if let Some(param) = access_point_name { param } else { return false },
|
5162 + | 7,
|
5163 + | 21,
|
5164 + | true,
|
5165 + | _diagnostic_collector,
|
5166 + | ))
|
5167 + | .is_some()
|
5168 + | })(&mut _diagnostic_collector),
|
5169 + | 57 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5170 + | let partition_resolver = &self.partition_resolver;
|
5171 + | (crate::endpoint_lib::coalesce::coalesce!(
|
5172 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
5173 + | if let Some(param) = access_point_name { param } else { return false },
|
5174 + | 21,
|
5175 + | 23,
|
5176 + | true,
|
5177 + | _diagnostic_collector
|
5178 + | ) {
|
5179 + | inner
|
5180 + | } else {
|
5181 + | return false;
|
5182 + | },
|
5183 + | "".to_string()
|
5184 + | )) == ("--")
|
5185 + | })(&mut _diagnostic_collector),
|
5186 + | 58 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5187 + | let access_point_arn = &context.access_point_arn;
|
5188 + | let outpost_type_ssa_1 = &mut context.outpost_type_ssa_1;
|
5189 + | let partition_resolver = &self.partition_resolver;
|
5190 + | {
|
5191 + | *outpost_type_ssa_1 = if let Some(inner) = access_point_arn {
|
5192 + | inner.resource_id().get(2).cloned()
|
5193 + | } else {
|
5194 + | return false;
|
5195 + | }
|
5196 + | .map(|inner| inner.into());
|
5197 + | outpost_type_ssa_1.is_some()
|
5198 + | }
|
5199 + | })(&mut _diagnostic_collector),
|
5200 + | 59 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5201 + | let access_point_arn = &context.access_point_arn;
|
5202 + | let partition_resolver = &self.partition_resolver;
|
5203 + | if let Some(inner) = access_point_arn {
|
5204 + | inner.resource_id().get(3).cloned()
|
5205 + | } else {
|
5206 + | return false;
|
5207 + | }
|
5208 + | .is_some()
|
5209 + | })(&mut _diagnostic_collector),
|
5210 + | 60 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5211 + | let outpost_type_ssa_1 = &context.outpost_type_ssa_1;
|
5212 + | let partition_resolver = &self.partition_resolver;
|
5213 + | (outpost_type_ssa_1) == &mut Some(("accesspoint".to_string().into()))
|
5214 + | })(&mut _diagnostic_collector),
|
5215 + | 61 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5216 + | let partition_resolver = &self.partition_resolver;
|
5217 + | (crate::endpoint_lib::substring::substring(
|
5218 + | if let Some(param) = access_point_name { param } else { return false },
|
5219 + | 7,
|
5220 + | 27,
|
5221 + | true,
|
5222 + | _diagnostic_collector,
|
5223 + | ))
|
5224 + | .is_some()
|
5225 + | })(&mut _diagnostic_collector),
|
5226 + | 62 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5227 + | let partition_resolver = &self.partition_resolver;
|
5228 + | (crate::endpoint_lib::coalesce::coalesce!(
|
5229 + | if let Some(inner) = crate::endpoint_lib::substring::substring(
|
5230 + | if let Some(param) = access_point_name { param } else { return false },
|
5231 + | 27,
|
5232 + | 29,
|
5233 + | true,
|
5234 + | _diagnostic_collector
|
5235 + | ) {
|
5236 + | inner
|
5237 + | } else {
|
5238 + | return false;
|
5239 + | },
|
5240 + | "".to_string()
|
5241 + | )) == ("--")
|
5242 + | })(&mut _diagnostic_collector),
|
5243 + | 63 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5244 + | let bucket_arn = &context.bucket_arn;
|
5245 + | let outpost_type_ssa_2 = &mut context.outpost_type_ssa_2;
|
5246 + | let partition_resolver = &self.partition_resolver;
|
5247 + | {
|
5248 + | *outpost_type_ssa_2 = if let Some(inner) = bucket_arn {
|
5249 + | inner.resource_id().get(2).cloned()
|
5250 + | } else {
|
5251 + | return false;
|
5252 + | }
|
5253 + | .map(|inner| inner.into());
|
5254 + | outpost_type_ssa_2.is_some()
|
5255 + | }
|
5256 + | })(&mut _diagnostic_collector),
|
5257 + | 64 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5258 + | let bucket_arn = &context.bucket_arn;
|
5259 + | let partition_resolver = &self.partition_resolver;
|
5260 + | if let Some(inner) = bucket_arn {
|
5261 + | inner.resource_id().get(3).cloned()
|
5262 + | } else {
|
5263 + | return false;
|
5264 + | }
|
5265 + | .is_some()
|
5266 + | })(&mut _diagnostic_collector),
|
5267 + | 65 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5268 + | let outpost_type_ssa_2 = &context.outpost_type_ssa_2;
|
5269 + | let partition_resolver = &self.partition_resolver;
|
5270 + | (outpost_type_ssa_2) == &mut Some(("bucket".to_string().into()))
|
5271 + | })(&mut _diagnostic_collector),
|
5272 + | 66 => (|_diagnostic_collector: &mut crate::endpoint_lib::diagnostic::DiagnosticCollector| -> bool {
|
5273 + | let resource_arn_ctx_1 = &context.resource_arn_ctx_1;
|
5274 + | let partition_resolver = &self.partition_resolver;
|
5275 + | (region)
|
5276 + | == &mut Some(
|
5277 + | (if let Some(inner) = resource_arn_ctx_1 {
|
5278 + | inner.region()
|
5279 + | } else {
|
5280 + | return false;
|
5281 + | }
|
5282 + | .into()),
|
5283 + | )
|
5284 + | })(&mut _diagnostic_collector),
|
5285 + | _ => unreachable!("Invalid condition index"),
|
5286 + | };
|
5287 + | current_ref = if is_complement ^ condition_result { node.high_ref } else { node.low_ref };
|
5288 + | }
|
5289 + | }
|
5290 + | }
|
5291 + | }
|
5292 + | }
|
5293 + |
|
5294 + | impl crate::config::endpoint::ResolveEndpoint for DefaultResolver {
|
5295 + | fn resolve_endpoint<'a>(&'a self, params: &'a crate::config::endpoint::Params) -> ::aws_smithy_runtime_api::client::endpoint::EndpointFuture<'a> {
|
5296 + | // Check single-entry cache (lock-free read via ArcSwap)
|
5297 + | let cached = self.endpoint_cache.load();
|
5298 + | if let Some((cached_params, cached_endpoint)) = cached.as_ref() {
|
5299 + | if cached_params == params {
|
5300 + | return ::aws_smithy_runtime_api::client::endpoint::EndpointFuture::ready(::std::result::Result::Ok(cached_endpoint.clone()));
|
5301 + | }
|
5302 + | }
|
5303 + | drop(cached);
|
5304 + | let result = self.resolve_endpoint(params);
|
5305 + | if let ::std::result::Result::Ok(ref endpoint) = result {
|
5306 + | self.endpoint_cache.store(::std::sync::Arc::new(Some((params.clone(), endpoint.clone()))));
|
5307 + | }
|
5308 + | ::aws_smithy_runtime_api::client::endpoint::EndpointFuture::ready(result)
|
5309 + | }
|
5310 + | }
|
5311 + | const NODES: [crate::endpoint_lib::bdd_interpreter::BddNode; 428] = [
|
5312 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5313 + | condition_index: -1,
|
5314 + | high_ref: 1,
|
5315 + | low_ref: -1,
|
5316 + | },
|
5317 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5318 + | condition_index: 34,
|
5319 + | high_ref: 100000005,
|
5320 + | low_ref: 100000003,
|
5321 + | },
|
5322 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5323 + | condition_index: 35,
|
5324 + | high_ref: 100000002,
|
5325 + | low_ref: 100000005,
|
5326 + | },
|
5327 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5328 + | condition_index: 33,
|
5329 + | high_ref: 2,
|
5330 + | low_ref: 3,
|
5331 + | },
|
5332 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5333 + | condition_index: 37,
|
5334 + | high_ref: 100000006,
|
5335 + | low_ref: 100000011,
|
5336 + | },
|
5337 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5338 + | condition_index: 34,
|
5339 + | high_ref: 5,
|
5340 + | low_ref: 100000003,
|
5341 + | },
|
5342 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5343 + | condition_index: 35,
|
5344 + | high_ref: 100000002,
|
5345 + | low_ref: 5,
|
5346 + | },
|
5347 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5348 + | condition_index: 33,
|
5349 + | high_ref: 6,
|
5350 + | low_ref: 7,
|
5351 + | },
|
5352 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5353 + | condition_index: 37,
|
5354 + | high_ref: 100000008,
|
5355 + | low_ref: 100000011,
|
5356 + | },
|
5357 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5358 + | condition_index: 34,
|
5359 + | high_ref: 9,
|
5360 + | low_ref: 100000003,
|
5361 + | },
|
5362 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5363 + | condition_index: 35,
|
5364 + | high_ref: 100000002,
|
5365 + | low_ref: 9,
|
5366 + | },
|
5367 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5368 + | condition_index: 33,
|
5369 + | high_ref: 10,
|
5370 + | low_ref: 11,
|
5371 + | },
|
5372 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5373 + | condition_index: 14,
|
5374 + | high_ref: 8,
|
5375 + | low_ref: 12,
|
5376 + | },
|
5377 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5378 + | condition_index: 12,
|
5379 + | high_ref: 4,
|
5380 + | low_ref: 13,
|
5381 + | },
|
5382 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5383 + | condition_index: 37,
|
5384 + | high_ref: 100000007,
|
5385 + | low_ref: 100000011,
|
5386 + | },
|
5387 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5388 + | condition_index: 34,
|
5389 + | high_ref: 15,
|
5390 + | low_ref: 100000003,
|
5391 + | },
|
5392 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5393 + | condition_index: 35,
|
5394 + | high_ref: 100000002,
|
5395 + | low_ref: 15,
|
5396 + | },
|
5397 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5398 + | condition_index: 33,
|
5399 + | high_ref: 16,
|
5400 + | low_ref: 17,
|
5401 + | },
|
5402 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5403 + | condition_index: 12,
|
5404 + | high_ref: 18,
|
5405 + | low_ref: 12,
|
5406 + | },
|
5407 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5408 + | condition_index: 11,
|
5409 + | high_ref: 14,
|
5410 + | low_ref: 19,
|
5411 + | },
|
5412 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5413 + | condition_index: 34,
|
5414 + | high_ref: 100000004,
|
5415 + | low_ref: 100000003,
|
5416 + | },
|
5417 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5418 + | condition_index: 35,
|
5419 + | high_ref: 100000002,
|
5420 + | low_ref: 100000004,
|
5421 + | },
|
5422 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5423 + | condition_index: 33,
|
5424 + | high_ref: 21,
|
5425 + | low_ref: 22,
|
5426 + | },
|
5427 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5428 + | condition_index: 5,
|
5429 + | high_ref: 20,
|
5430 + | low_ref: 23,
|
5431 + | },
|
5432 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5433 + | condition_index: 66,
|
5434 + | high_ref: 100000005,
|
5435 + | low_ref: 100000012,
|
5436 + | },
|
5437 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5438 + | condition_index: 39,
|
5439 + | high_ref: 100000005,
|
5440 + | low_ref: 25,
|
5441 + | },
|
5442 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5443 + | condition_index: 66,
|
5444 + | high_ref: 100000014,
|
5445 + | low_ref: 100000012,
|
5446 + | },
|
5447 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5448 + | condition_index: 39,
|
5449 + | high_ref: 100000014,
|
5450 + | low_ref: 27,
|
5451 + | },
|
5452 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5453 + | condition_index: 66,
|
5454 + | high_ref: 100000015,
|
5455 + | low_ref: 100000012,
|
5456 + | },
|
5457 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5458 + | condition_index: 39,
|
5459 + | high_ref: 100000015,
|
5460 + | low_ref: 29,
|
5461 + | },
|
5462 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5463 + | condition_index: 14,
|
5464 + | high_ref: 28,
|
5465 + | low_ref: 30,
|
5466 + | },
|
5467 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5468 + | condition_index: 12,
|
5469 + | high_ref: 26,
|
5470 + | low_ref: 31,
|
5471 + | },
|
5472 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5473 + | condition_index: 66,
|
5474 + | high_ref: 100000013,
|
5475 + | low_ref: 100000012,
|
5476 + | },
|
5477 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5478 + | condition_index: 39,
|
5479 + | high_ref: 100000013,
|
5480 + | low_ref: 33,
|
5481 + | },
|
5482 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5483 + | condition_index: 12,
|
5484 + | high_ref: 34,
|
5485 + | low_ref: 30,
|
5486 + | },
|
5487 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5488 + | condition_index: 11,
|
5489 + | high_ref: 32,
|
5490 + | low_ref: 35,
|
5491 + | },
|
5492 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5493 + | condition_index: 10,
|
5494 + | high_ref: 36,
|
5495 + | low_ref: 100000017,
|
5496 + | },
|
5497 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5498 + | condition_index: 48,
|
5499 + | high_ref: 100000005,
|
5500 + | low_ref: 100000036,
|
5501 + | },
|
5502 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5503 + | condition_index: 32,
|
5504 + | high_ref: 38,
|
5505 + | low_ref: 100000037,
|
5506 + | },
|
5507 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5508 + | condition_index: 31,
|
5509 + | high_ref: 39,
|
5510 + | low_ref: 100000038,
|
5511 + | },
|
5512 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5513 + | condition_index: 30,
|
5514 + | high_ref: 100000038,
|
5515 + | low_ref: 40,
|
5516 + | },
|
5517 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5518 + | condition_index: 22,
|
5519 + | high_ref: 41,
|
5520 + | low_ref: 100000038,
|
5521 + | },
|
5522 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5523 + | condition_index: 40,
|
5524 + | high_ref: 100000005,
|
5525 + | low_ref: 100000051,
|
5526 + | },
|
5527 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5528 + | condition_index: 28,
|
5529 + | high_ref: 43,
|
5530 + | low_ref: 100000037,
|
5531 + | },
|
5532 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5533 + | condition_index: 27,
|
5534 + | high_ref: 44,
|
5535 + | low_ref: 100000038,
|
5536 + | },
|
5537 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5538 + | condition_index: 26,
|
5539 + | high_ref: 100000038,
|
5540 + | low_ref: 45,
|
5541 + | },
|
5542 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5543 + | condition_index: 25,
|
5544 + | high_ref: 46,
|
5545 + | low_ref: 100000038,
|
5546 + | },
|
5547 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5548 + | condition_index: 37,
|
5549 + | high_ref: 100000005,
|
5550 + | low_ref: 100000011,
|
5551 + | },
|
5552 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5553 + | condition_index: 37,
|
5554 + | high_ref: 100000003,
|
5555 + | low_ref: 100000011,
|
5556 + | },
|
5557 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5558 + | condition_index: 34,
|
5559 + | high_ref: 48,
|
5560 + | low_ref: 49,
|
5561 + | },
|
5562 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5563 + | condition_index: 37,
|
5564 + | high_ref: 100000002,
|
5565 + | low_ref: 100000011,
|
5566 + | },
|
5567 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5568 + | condition_index: 35,
|
5569 + | high_ref: 51,
|
5570 + | low_ref: 48,
|
5571 + | },
|
5572 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5573 + | condition_index: 33,
|
5574 + | high_ref: 50,
|
5575 + | low_ref: 52,
|
5576 + | },
|
5577 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5578 + | condition_index: 24,
|
5579 + | high_ref: 47,
|
5580 + | low_ref: 53,
|
5581 + | },
|
5582 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5583 + | condition_index: 23,
|
5584 + | high_ref: 54,
|
5585 + | low_ref: 53,
|
5586 + | },
|
5587 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5588 + | condition_index: 21,
|
5589 + | high_ref: 42,
|
5590 + | low_ref: 55,
|
5591 + | },
|
5592 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5593 + | condition_index: 20,
|
5594 + | high_ref: 100000019,
|
5595 + | low_ref: 56,
|
5596 + | },
|
5597 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5598 + | condition_index: 16,
|
5599 + | high_ref: 100000005,
|
5600 + | low_ref: 57,
|
5601 + | },
|
5602 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5603 + | condition_index: 20,
|
5604 + | high_ref: 100000019,
|
5605 + | low_ref: 55,
|
5606 + | },
|
5607 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5608 + | condition_index: 15,
|
5609 + | high_ref: 58,
|
5610 + | low_ref: 59,
|
5611 + | },
|
5612 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5613 + | condition_index: 37,
|
5614 + | high_ref: 100000054,
|
5615 + | low_ref: 100000011,
|
5616 + | },
|
5617 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5618 + | condition_index: 37,
|
5619 + | high_ref: 100000055,
|
5620 + | low_ref: 100000011,
|
5621 + | },
|
5622 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5623 + | condition_index: 35,
|
5624 + | high_ref: 61,
|
5625 + | low_ref: 62,
|
5626 + | },
|
5627 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5628 + | condition_index: 34,
|
5629 + | high_ref: 63,
|
5630 + | low_ref: 49,
|
5631 + | },
|
5632 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5633 + | condition_index: 35,
|
5634 + | high_ref: 51,
|
5635 + | low_ref: 62,
|
5636 + | },
|
5637 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5638 + | condition_index: 33,
|
5639 + | high_ref: 64,
|
5640 + | low_ref: 65,
|
5641 + | },
|
5642 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5643 + | condition_index: 24,
|
5644 + | high_ref: 47,
|
5645 + | low_ref: 66,
|
5646 + | },
|
5647 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5648 + | condition_index: 23,
|
5649 + | high_ref: 67,
|
5650 + | low_ref: 66,
|
5651 + | },
|
5652 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5653 + | condition_index: 21,
|
5654 + | high_ref: 42,
|
5655 + | low_ref: 68,
|
5656 + | },
|
5657 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5658 + | condition_index: 16,
|
5659 + | high_ref: 100000005,
|
5660 + | low_ref: 69,
|
5661 + | },
|
5662 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5663 + | condition_index: 15,
|
5664 + | high_ref: 70,
|
5665 + | low_ref: 68,
|
5666 + | },
|
5667 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5668 + | condition_index: 14,
|
5669 + | high_ref: 60,
|
5670 + | low_ref: 71,
|
5671 + | },
|
5672 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5673 + | condition_index: 13,
|
5674 + | high_ref: 100000005,
|
5675 + | low_ref: 72,
|
5676 + | },
|
5677 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5678 + | condition_index: 62,
|
5679 + | high_ref: 100000015,
|
5680 + | low_ref: 100000018,
|
5681 + | },
|
5682 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5683 + | condition_index: 61,
|
5684 + | high_ref: 74,
|
5685 + | low_ref: 100000018,
|
5686 + | },
|
5687 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5688 + | condition_index: 57,
|
5689 + | high_ref: 100000015,
|
5690 + | low_ref: 75,
|
5691 + | },
|
5692 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5693 + | condition_index: 56,
|
5694 + | high_ref: 76,
|
5695 + | low_ref: 75,
|
5696 + | },
|
5697 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5698 + | condition_index: 55,
|
5699 + | high_ref: 100000015,
|
5700 + | low_ref: 77,
|
5701 + | },
|
5702 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5703 + | condition_index: 54,
|
5704 + | high_ref: 78,
|
5705 + | low_ref: 77,
|
5706 + | },
|
5707 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5708 + | condition_index: 29,
|
5709 + | high_ref: 100000015,
|
5710 + | low_ref: 79,
|
5711 + | },
|
5712 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5713 + | condition_index: 19,
|
5714 + | high_ref: 80,
|
5715 + | low_ref: 79,
|
5716 + | },
|
5717 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5718 + | condition_index: 18,
|
5719 + | high_ref: 100000015,
|
5720 + | low_ref: 81,
|
5721 + | },
|
5722 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5723 + | condition_index: 17,
|
5724 + | high_ref: 82,
|
5725 + | low_ref: 81,
|
5726 + | },
|
5727 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5728 + | condition_index: 16,
|
5729 + | high_ref: 83,
|
5730 + | low_ref: 100000015,
|
5731 + | },
|
5732 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5733 + | condition_index: 15,
|
5734 + | high_ref: 84,
|
5735 + | low_ref: 100000015,
|
5736 + | },
|
5737 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5738 + | condition_index: 14,
|
5739 + | high_ref: 100000014,
|
5740 + | low_ref: 85,
|
5741 + | },
|
5742 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5743 + | condition_index: 60,
|
5744 + | high_ref: 100000025,
|
5745 + | low_ref: 100000029,
|
5746 + | },
|
5747 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5748 + | condition_index: 59,
|
5749 + | high_ref: 87,
|
5750 + | low_ref: 100000030,
|
5751 + | },
|
5752 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5753 + | condition_index: 58,
|
5754 + | high_ref: 88,
|
5755 + | low_ref: 100000031,
|
5756 + | },
|
5757 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5758 + | condition_index: 53,
|
5759 + | high_ref: 89,
|
5760 + | low_ref: 100000032,
|
5761 + | },
|
5762 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5763 + | condition_index: 52,
|
5764 + | high_ref: 100000033,
|
5765 + | low_ref: 90,
|
5766 + | },
|
5767 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5768 + | condition_index: 51,
|
5769 + | high_ref: 91,
|
5770 + | low_ref: 100000034,
|
5771 + | },
|
5772 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5773 + | condition_index: 50,
|
5774 + | high_ref: 92,
|
5775 + | low_ref: 100000035,
|
5776 + | },
|
5777 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5778 + | condition_index: 49,
|
5779 + | high_ref: 93,
|
5780 + | low_ref: 100000036,
|
5781 + | },
|
5782 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5783 + | condition_index: 48,
|
5784 + | high_ref: 94,
|
5785 + | low_ref: 100000036,
|
5786 + | },
|
5787 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5788 + | condition_index: 48,
|
5789 + | high_ref: 100000022,
|
5790 + | low_ref: 100000036,
|
5791 + | },
|
5792 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5793 + | condition_index: 41,
|
5794 + | high_ref: 95,
|
5795 + | low_ref: 96,
|
5796 + | },
|
5797 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5798 + | condition_index: 39,
|
5799 + | high_ref: 95,
|
5800 + | low_ref: 97,
|
5801 + | },
|
5802 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5803 + | condition_index: 53,
|
5804 + | high_ref: 100000023,
|
5805 + | low_ref: 100000032,
|
5806 + | },
|
5807 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5808 + | condition_index: 52,
|
5809 + | high_ref: 100000033,
|
5810 + | low_ref: 99,
|
5811 + | },
|
5812 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5813 + | condition_index: 51,
|
5814 + | high_ref: 100,
|
5815 + | low_ref: 100000034,
|
5816 + | },
|
5817 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5818 + | condition_index: 50,
|
5819 + | high_ref: 101,
|
5820 + | low_ref: 100000035,
|
5821 + | },
|
5822 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5823 + | condition_index: 49,
|
5824 + | high_ref: 102,
|
5825 + | low_ref: 100000036,
|
5826 + | },
|
5827 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5828 + | condition_index: 48,
|
5829 + | high_ref: 103,
|
5830 + | low_ref: 100000036,
|
5831 + | },
|
5832 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5833 + | condition_index: 41,
|
5834 + | high_ref: 104,
|
5835 + | low_ref: 96,
|
5836 + | },
|
5837 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5838 + | condition_index: 39,
|
5839 + | high_ref: 104,
|
5840 + | low_ref: 105,
|
5841 + | },
|
5842 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5843 + | condition_index: 36,
|
5844 + | high_ref: 98,
|
5845 + | low_ref: 106,
|
5846 + | },
|
5847 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5848 + | condition_index: 33,
|
5849 + | high_ref: 107,
|
5850 + | low_ref: 98,
|
5851 + | },
|
5852 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5853 + | condition_index: 32,
|
5854 + | high_ref: 108,
|
5855 + | low_ref: 100000037,
|
5856 + | },
|
5857 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5858 + | condition_index: 31,
|
5859 + | high_ref: 109,
|
5860 + | low_ref: 100000038,
|
5861 + | },
|
5862 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5863 + | condition_index: 30,
|
5864 + | high_ref: 100000038,
|
5865 + | low_ref: 110,
|
5866 + | },
|
5867 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5868 + | condition_index: 22,
|
5869 + | high_ref: 111,
|
5870 + | low_ref: 100000038,
|
5871 + | },
|
5872 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5873 + | condition_index: 65,
|
5874 + | high_ref: 100000042,
|
5875 + | low_ref: 100000046,
|
5876 + | },
|
5877 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5878 + | condition_index: 64,
|
5879 + | high_ref: 113,
|
5880 + | low_ref: 100000047,
|
5881 + | },
|
5882 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5883 + | condition_index: 63,
|
5884 + | high_ref: 114,
|
5885 + | low_ref: 100000031,
|
5886 + | },
|
5887 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5888 + | condition_index: 47,
|
5889 + | high_ref: 115,
|
5890 + | low_ref: 100000048,
|
5891 + | },
|
5892 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5893 + | condition_index: 46,
|
5894 + | high_ref: 100000033,
|
5895 + | low_ref: 116,
|
5896 + | },
|
5897 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5898 + | condition_index: 45,
|
5899 + | high_ref: 117,
|
5900 + | low_ref: 100000049,
|
5901 + | },
|
5902 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5903 + | condition_index: 44,
|
5904 + | high_ref: 118,
|
5905 + | low_ref: 100000050,
|
5906 + | },
|
5907 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5908 + | condition_index: 43,
|
5909 + | high_ref: 119,
|
5910 + | low_ref: 100000051,
|
5911 + | },
|
5912 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5913 + | condition_index: 40,
|
5914 + | high_ref: 120,
|
5915 + | low_ref: 100000051,
|
5916 + | },
|
5917 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5918 + | condition_index: 42,
|
5919 + | high_ref: 120,
|
5920 + | low_ref: 100000039,
|
5921 + | },
|
5922 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5923 + | condition_index: 40,
|
5924 + | high_ref: 122,
|
5925 + | low_ref: 100000051,
|
5926 + | },
|
5927 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5928 + | condition_index: 39,
|
5929 + | high_ref: 121,
|
5930 + | low_ref: 123,
|
5931 + | },
|
5932 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5933 + | condition_index: 47,
|
5934 + | high_ref: 100000040,
|
5935 + | low_ref: 100000048,
|
5936 + | },
|
5937 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5938 + | condition_index: 46,
|
5939 + | high_ref: 100000033,
|
5940 + | low_ref: 125,
|
5941 + | },
|
5942 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5943 + | condition_index: 45,
|
5944 + | high_ref: 126,
|
5945 + | low_ref: 100000049,
|
5946 + | },
|
5947 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5948 + | condition_index: 44,
|
5949 + | high_ref: 127,
|
5950 + | low_ref: 100000050,
|
5951 + | },
|
5952 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5953 + | condition_index: 43,
|
5954 + | high_ref: 128,
|
5955 + | low_ref: 100000051,
|
5956 + | },
|
5957 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5958 + | condition_index: 40,
|
5959 + | high_ref: 129,
|
5960 + | low_ref: 100000051,
|
5961 + | },
|
5962 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5963 + | condition_index: 42,
|
5964 + | high_ref: 129,
|
5965 + | low_ref: 100000039,
|
5966 + | },
|
5967 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5968 + | condition_index: 40,
|
5969 + | high_ref: 131,
|
5970 + | low_ref: 100000051,
|
5971 + | },
|
5972 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5973 + | condition_index: 39,
|
5974 + | high_ref: 130,
|
5975 + | low_ref: 132,
|
5976 + | },
|
5977 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5978 + | condition_index: 38,
|
5979 + | high_ref: 124,
|
5980 + | low_ref: 133,
|
5981 + | },
|
5982 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5983 + | condition_index: 33,
|
5984 + | high_ref: 134,
|
5985 + | low_ref: 124,
|
5986 + | },
|
5987 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5988 + | condition_index: 28,
|
5989 + | high_ref: 135,
|
5990 + | low_ref: 100000037,
|
5991 + | },
|
5992 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5993 + | condition_index: 27,
|
5994 + | high_ref: 136,
|
5995 + | low_ref: 100000038,
|
5996 + | },
|
5997 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
5998 + | condition_index: 26,
|
5999 + | high_ref: 100000038,
|
6000 + | low_ref: 137,
|
6001 + | },
|
6002 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6003 + | condition_index: 25,
|
6004 + | high_ref: 138,
|
6005 + | low_ref: 100000038,
|
6006 + | },
|
6007 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6008 + | condition_index: 37,
|
6009 + | high_ref: 100000052,
|
6010 + | low_ref: 100000011,
|
6011 + | },
|
6012 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6013 + | condition_index: 37,
|
6014 + | high_ref: 100000053,
|
6015 + | low_ref: 100000011,
|
6016 + | },
|
6017 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6018 + | condition_index: 35,
|
6019 + | high_ref: 140,
|
6020 + | low_ref: 141,
|
6021 + | },
|
6022 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6023 + | condition_index: 34,
|
6024 + | high_ref: 142,
|
6025 + | low_ref: 49,
|
6026 + | },
|
6027 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6028 + | condition_index: 35,
|
6029 + | high_ref: 51,
|
6030 + | low_ref: 141,
|
6031 + | },
|
6032 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6033 + | condition_index: 33,
|
6034 + | high_ref: 143,
|
6035 + | low_ref: 144,
|
6036 + | },
|
6037 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6038 + | condition_index: 24,
|
6039 + | high_ref: 139,
|
6040 + | low_ref: 145,
|
6041 + | },
|
6042 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6043 + | condition_index: 23,
|
6044 + | high_ref: 146,
|
6045 + | low_ref: 145,
|
6046 + | },
|
6047 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6048 + | condition_index: 21,
|
6049 + | high_ref: 112,
|
6050 + | low_ref: 147,
|
6051 + | },
|
6052 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6053 + | condition_index: 20,
|
6054 + | high_ref: 100000020,
|
6055 + | low_ref: 148,
|
6056 + | },
|
6057 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6058 + | condition_index: 16,
|
6059 + | high_ref: 100000014,
|
6060 + | low_ref: 149,
|
6061 + | },
|
6062 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6063 + | condition_index: 20,
|
6064 + | high_ref: 100000020,
|
6065 + | low_ref: 147,
|
6066 + | },
|
6067 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6068 + | condition_index: 15,
|
6069 + | high_ref: 150,
|
6070 + | low_ref: 151,
|
6071 + | },
|
6072 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6073 + | condition_index: 37,
|
6074 + | high_ref: 100000056,
|
6075 + | low_ref: 100000011,
|
6076 + | },
|
6077 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6078 + | condition_index: 37,
|
6079 + | high_ref: 100000057,
|
6080 + | low_ref: 100000011,
|
6081 + | },
|
6082 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6083 + | condition_index: 35,
|
6084 + | high_ref: 153,
|
6085 + | low_ref: 154,
|
6086 + | },
|
6087 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6088 + | condition_index: 34,
|
6089 + | high_ref: 155,
|
6090 + | low_ref: 49,
|
6091 + | },
|
6092 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6093 + | condition_index: 35,
|
6094 + | high_ref: 51,
|
6095 + | low_ref: 154,
|
6096 + | },
|
6097 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6098 + | condition_index: 33,
|
6099 + | high_ref: 156,
|
6100 + | low_ref: 157,
|
6101 + | },
|
6102 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6103 + | condition_index: 24,
|
6104 + | high_ref: 139,
|
6105 + | low_ref: 158,
|
6106 + | },
|
6107 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6108 + | condition_index: 23,
|
6109 + | high_ref: 159,
|
6110 + | low_ref: 158,
|
6111 + | },
|
6112 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6113 + | condition_index: 21,
|
6114 + | high_ref: 112,
|
6115 + | low_ref: 160,
|
6116 + | },
|
6117 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6118 + | condition_index: 16,
|
6119 + | high_ref: 83,
|
6120 + | low_ref: 161,
|
6121 + | },
|
6122 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6123 + | condition_index: 15,
|
6124 + | high_ref: 162,
|
6125 + | low_ref: 160,
|
6126 + | },
|
6127 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6128 + | condition_index: 14,
|
6129 + | high_ref: 152,
|
6130 + | low_ref: 163,
|
6131 + | },
|
6132 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6133 + | condition_index: 13,
|
6134 + | high_ref: 86,
|
6135 + | low_ref: 164,
|
6136 + | },
|
6137 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6138 + | condition_index: 12,
|
6139 + | high_ref: 73,
|
6140 + | low_ref: 165,
|
6141 + | },
|
6142 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6143 + | condition_index: 60,
|
6144 + | high_ref: 100000024,
|
6145 + | low_ref: 100000029,
|
6146 + | },
|
6147 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6148 + | condition_index: 59,
|
6149 + | high_ref: 167,
|
6150 + | low_ref: 100000030,
|
6151 + | },
|
6152 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6153 + | condition_index: 58,
|
6154 + | high_ref: 168,
|
6155 + | low_ref: 100000031,
|
6156 + | },
|
6157 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6158 + | condition_index: 53,
|
6159 + | high_ref: 169,
|
6160 + | low_ref: 100000032,
|
6161 + | },
|
6162 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6163 + | condition_index: 52,
|
6164 + | high_ref: 100000033,
|
6165 + | low_ref: 170,
|
6166 + | },
|
6167 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6168 + | condition_index: 51,
|
6169 + | high_ref: 171,
|
6170 + | low_ref: 100000034,
|
6171 + | },
|
6172 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6173 + | condition_index: 50,
|
6174 + | high_ref: 172,
|
6175 + | low_ref: 100000035,
|
6176 + | },
|
6177 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6178 + | condition_index: 49,
|
6179 + | high_ref: 173,
|
6180 + | low_ref: 100000036,
|
6181 + | },
|
6182 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6183 + | condition_index: 48,
|
6184 + | high_ref: 174,
|
6185 + | low_ref: 100000036,
|
6186 + | },
|
6187 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6188 + | condition_index: 41,
|
6189 + | high_ref: 175,
|
6190 + | low_ref: 96,
|
6191 + | },
|
6192 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6193 + | condition_index: 39,
|
6194 + | high_ref: 175,
|
6195 + | low_ref: 176,
|
6196 + | },
|
6197 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6198 + | condition_index: 36,
|
6199 + | high_ref: 177,
|
6200 + | low_ref: 106,
|
6201 + | },
|
6202 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6203 + | condition_index: 33,
|
6204 + | high_ref: 178,
|
6205 + | low_ref: 177,
|
6206 + | },
|
6207 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6208 + | condition_index: 32,
|
6209 + | high_ref: 179,
|
6210 + | low_ref: 100000037,
|
6211 + | },
|
6212 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6213 + | condition_index: 31,
|
6214 + | high_ref: 180,
|
6215 + | low_ref: 100000038,
|
6216 + | },
|
6217 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6218 + | condition_index: 30,
|
6219 + | high_ref: 100000038,
|
6220 + | low_ref: 181,
|
6221 + | },
|
6222 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6223 + | condition_index: 22,
|
6224 + | high_ref: 182,
|
6225 + | low_ref: 100000038,
|
6226 + | },
|
6227 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6228 + | condition_index: 65,
|
6229 + | high_ref: 100000041,
|
6230 + | low_ref: 100000046,
|
6231 + | },
|
6232 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6233 + | condition_index: 64,
|
6234 + | high_ref: 184,
|
6235 + | low_ref: 100000047,
|
6236 + | },
|
6237 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6238 + | condition_index: 63,
|
6239 + | high_ref: 185,
|
6240 + | low_ref: 100000031,
|
6241 + | },
|
6242 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6243 + | condition_index: 47,
|
6244 + | high_ref: 186,
|
6245 + | low_ref: 100000048,
|
6246 + | },
|
6247 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6248 + | condition_index: 46,
|
6249 + | high_ref: 100000033,
|
6250 + | low_ref: 187,
|
6251 + | },
|
6252 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6253 + | condition_index: 45,
|
6254 + | high_ref: 188,
|
6255 + | low_ref: 100000049,
|
6256 + | },
|
6257 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6258 + | condition_index: 44,
|
6259 + | high_ref: 189,
|
6260 + | low_ref: 100000050,
|
6261 + | },
|
6262 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6263 + | condition_index: 43,
|
6264 + | high_ref: 190,
|
6265 + | low_ref: 100000051,
|
6266 + | },
|
6267 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6268 + | condition_index: 40,
|
6269 + | high_ref: 191,
|
6270 + | low_ref: 100000051,
|
6271 + | },
|
6272 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6273 + | condition_index: 42,
|
6274 + | high_ref: 191,
|
6275 + | low_ref: 100000039,
|
6276 + | },
|
6277 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6278 + | condition_index: 40,
|
6279 + | high_ref: 193,
|
6280 + | low_ref: 100000051,
|
6281 + | },
|
6282 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6283 + | condition_index: 39,
|
6284 + | high_ref: 192,
|
6285 + | low_ref: 194,
|
6286 + | },
|
6287 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6288 + | condition_index: 38,
|
6289 + | high_ref: 195,
|
6290 + | low_ref: 133,
|
6291 + | },
|
6292 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6293 + | condition_index: 33,
|
6294 + | high_ref: 196,
|
6295 + | low_ref: 195,
|
6296 + | },
|
6297 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6298 + | condition_index: 28,
|
6299 + | high_ref: 197,
|
6300 + | low_ref: 100000037,
|
6301 + | },
|
6302 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6303 + | condition_index: 27,
|
6304 + | high_ref: 198,
|
6305 + | low_ref: 100000038,
|
6306 + | },
|
6307 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6308 + | condition_index: 26,
|
6309 + | high_ref: 100000038,
|
6310 + | low_ref: 199,
|
6311 + | },
|
6312 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6313 + | condition_index: 25,
|
6314 + | high_ref: 200,
|
6315 + | low_ref: 100000038,
|
6316 + | },
|
6317 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6318 + | condition_index: 24,
|
6319 + | high_ref: 201,
|
6320 + | low_ref: 66,
|
6321 + | },
|
6322 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6323 + | condition_index: 23,
|
6324 + | high_ref: 202,
|
6325 + | low_ref: 66,
|
6326 + | },
|
6327 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6328 + | condition_index: 21,
|
6329 + | high_ref: 183,
|
6330 + | low_ref: 203,
|
6331 + | },
|
6332 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6333 + | condition_index: 16,
|
6334 + | high_ref: 100000013,
|
6335 + | low_ref: 204,
|
6336 + | },
|
6337 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6338 + | condition_index: 15,
|
6339 + | high_ref: 205,
|
6340 + | low_ref: 203,
|
6341 + | },
|
6342 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6343 + | condition_index: 13,
|
6344 + | high_ref: 100000013,
|
6345 + | low_ref: 206,
|
6346 + | },
|
6347 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6348 + | condition_index: 13,
|
6349 + | high_ref: 85,
|
6350 + | low_ref: 163,
|
6351 + | },
|
6352 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6353 + | condition_index: 12,
|
6354 + | high_ref: 207,
|
6355 + | low_ref: 208,
|
6356 + | },
|
6357 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6358 + | condition_index: 11,
|
6359 + | high_ref: 166,
|
6360 + | low_ref: 209,
|
6361 + | },
|
6362 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6363 + | condition_index: 9,
|
6364 + | high_ref: 37,
|
6365 + | low_ref: 210,
|
6366 + | },
|
6367 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6368 + | condition_index: 8,
|
6369 + | high_ref: 211,
|
6370 + | low_ref: 210,
|
6371 + | },
|
6372 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6373 + | condition_index: 7,
|
6374 + | high_ref: 212,
|
6375 + | low_ref: 210,
|
6376 + | },
|
6377 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6378 + | condition_index: 6,
|
6379 + | high_ref: 213,
|
6380 + | low_ref: 210,
|
6381 + | },
|
6382 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6383 + | condition_index: 4,
|
6384 + | high_ref: 24,
|
6385 + | low_ref: 214,
|
6386 + | },
|
6387 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6388 + | condition_index: 3,
|
6389 + | high_ref: 100000001,
|
6390 + | low_ref: 215,
|
6391 + | },
|
6392 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6393 + | condition_index: 37,
|
6394 + | high_ref: 100000010,
|
6395 + | low_ref: 100000011,
|
6396 + | },
|
6397 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6398 + | condition_index: 34,
|
6399 + | high_ref: 217,
|
6400 + | low_ref: 100000003,
|
6401 + | },
|
6402 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6403 + | condition_index: 35,
|
6404 + | high_ref: 100000002,
|
6405 + | low_ref: 217,
|
6406 + | },
|
6407 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6408 + | condition_index: 33,
|
6409 + | high_ref: 218,
|
6410 + | low_ref: 219,
|
6411 + | },
|
6412 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6413 + | condition_index: 14,
|
6414 + | high_ref: 8,
|
6415 + | low_ref: 220,
|
6416 + | },
|
6417 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6418 + | condition_index: 12,
|
6419 + | high_ref: 4,
|
6420 + | low_ref: 221,
|
6421 + | },
|
6422 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6423 + | condition_index: 37,
|
6424 + | high_ref: 100000009,
|
6425 + | low_ref: 100000011,
|
6426 + | },
|
6427 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6428 + | condition_index: 34,
|
6429 + | high_ref: 223,
|
6430 + | low_ref: 100000003,
|
6431 + | },
|
6432 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6433 + | condition_index: 35,
|
6434 + | high_ref: 100000002,
|
6435 + | low_ref: 223,
|
6436 + | },
|
6437 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6438 + | condition_index: 33,
|
6439 + | high_ref: 224,
|
6440 + | low_ref: 225,
|
6441 + | },
|
6442 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6443 + | condition_index: 12,
|
6444 + | high_ref: 226,
|
6445 + | low_ref: 220,
|
6446 + | },
|
6447 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6448 + | condition_index: 11,
|
6449 + | high_ref: 222,
|
6450 + | low_ref: 227,
|
6451 + | },
|
6452 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6453 + | condition_index: 5,
|
6454 + | high_ref: 228,
|
6455 + | low_ref: 23,
|
6456 + | },
|
6457 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6458 + | condition_index: 66,
|
6459 + | high_ref: 100000016,
|
6460 + | low_ref: 100000012,
|
6461 + | },
|
6462 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6463 + | condition_index: 39,
|
6464 + | high_ref: 100000016,
|
6465 + | low_ref: 230,
|
6466 + | },
|
6467 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6468 + | condition_index: 14,
|
6469 + | high_ref: 28,
|
6470 + | low_ref: 231,
|
6471 + | },
|
6472 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6473 + | condition_index: 12,
|
6474 + | high_ref: 26,
|
6475 + | low_ref: 232,
|
6476 + | },
|
6477 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6478 + | condition_index: 12,
|
6479 + | high_ref: 34,
|
6480 + | low_ref: 231,
|
6481 + | },
|
6482 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6483 + | condition_index: 11,
|
6484 + | high_ref: 233,
|
6485 + | low_ref: 234,
|
6486 + | },
|
6487 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6488 + | condition_index: 10,
|
6489 + | high_ref: 235,
|
6490 + | low_ref: 100000017,
|
6491 + | },
|
6492 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6493 + | condition_index: 37,
|
6494 + | high_ref: 100000058,
|
6495 + | low_ref: 100000011,
|
6496 + | },
|
6497 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6498 + | condition_index: 37,
|
6499 + | high_ref: 100000059,
|
6500 + | low_ref: 100000011,
|
6501 + | },
|
6502 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6503 + | condition_index: 35,
|
6504 + | high_ref: 237,
|
6505 + | low_ref: 238,
|
6506 + | },
|
6507 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6508 + | condition_index: 34,
|
6509 + | high_ref: 239,
|
6510 + | low_ref: 49,
|
6511 + | },
|
6512 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6513 + | condition_index: 35,
|
6514 + | high_ref: 51,
|
6515 + | low_ref: 238,
|
6516 + | },
|
6517 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6518 + | condition_index: 33,
|
6519 + | high_ref: 240,
|
6520 + | low_ref: 241,
|
6521 + | },
|
6522 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6523 + | condition_index: 24,
|
6524 + | high_ref: 47,
|
6525 + | low_ref: 242,
|
6526 + | },
|
6527 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6528 + | condition_index: 23,
|
6529 + | high_ref: 243,
|
6530 + | low_ref: 242,
|
6531 + | },
|
6532 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6533 + | condition_index: 21,
|
6534 + | high_ref: 42,
|
6535 + | low_ref: 244,
|
6536 + | },
|
6537 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6538 + | condition_index: 16,
|
6539 + | high_ref: 100000005,
|
6540 + | low_ref: 245,
|
6541 + | },
|
6542 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6543 + | condition_index: 15,
|
6544 + | high_ref: 246,
|
6545 + | low_ref: 244,
|
6546 + | },
|
6547 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6548 + | condition_index: 14,
|
6549 + | high_ref: 60,
|
6550 + | low_ref: 247,
|
6551 + | },
|
6552 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6553 + | condition_index: 13,
|
6554 + | high_ref: 100000005,
|
6555 + | low_ref: 248,
|
6556 + | },
|
6557 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6558 + | condition_index: 62,
|
6559 + | high_ref: 100000016,
|
6560 + | low_ref: 100000018,
|
6561 + | },
|
6562 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6563 + | condition_index: 61,
|
6564 + | high_ref: 250,
|
6565 + | low_ref: 100000018,
|
6566 + | },
|
6567 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6568 + | condition_index: 57,
|
6569 + | high_ref: 100000016,
|
6570 + | low_ref: 251,
|
6571 + | },
|
6572 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6573 + | condition_index: 56,
|
6574 + | high_ref: 252,
|
6575 + | low_ref: 251,
|
6576 + | },
|
6577 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6578 + | condition_index: 55,
|
6579 + | high_ref: 100000016,
|
6580 + | low_ref: 253,
|
6581 + | },
|
6582 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6583 + | condition_index: 54,
|
6584 + | high_ref: 254,
|
6585 + | low_ref: 253,
|
6586 + | },
|
6587 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6588 + | condition_index: 29,
|
6589 + | high_ref: 100000016,
|
6590 + | low_ref: 255,
|
6591 + | },
|
6592 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6593 + | condition_index: 19,
|
6594 + | high_ref: 256,
|
6595 + | low_ref: 255,
|
6596 + | },
|
6597 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6598 + | condition_index: 18,
|
6599 + | high_ref: 100000016,
|
6600 + | low_ref: 257,
|
6601 + | },
|
6602 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6603 + | condition_index: 17,
|
6604 + | high_ref: 258,
|
6605 + | low_ref: 257,
|
6606 + | },
|
6607 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6608 + | condition_index: 16,
|
6609 + | high_ref: 259,
|
6610 + | low_ref: 100000016,
|
6611 + | },
|
6612 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6613 + | condition_index: 15,
|
6614 + | high_ref: 260,
|
6615 + | low_ref: 100000016,
|
6616 + | },
|
6617 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6618 + | condition_index: 14,
|
6619 + | high_ref: 100000014,
|
6620 + | low_ref: 261,
|
6621 + | },
|
6622 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6623 + | condition_index: 60,
|
6624 + | high_ref: 100000027,
|
6625 + | low_ref: 100000029,
|
6626 + | },
|
6627 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6628 + | condition_index: 59,
|
6629 + | high_ref: 263,
|
6630 + | low_ref: 100000030,
|
6631 + | },
|
6632 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6633 + | condition_index: 58,
|
6634 + | high_ref: 264,
|
6635 + | low_ref: 100000031,
|
6636 + | },
|
6637 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6638 + | condition_index: 53,
|
6639 + | high_ref: 265,
|
6640 + | low_ref: 100000032,
|
6641 + | },
|
6642 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6643 + | condition_index: 52,
|
6644 + | high_ref: 100000033,
|
6645 + | low_ref: 266,
|
6646 + | },
|
6647 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6648 + | condition_index: 51,
|
6649 + | high_ref: 267,
|
6650 + | low_ref: 100000034,
|
6651 + | },
|
6652 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6653 + | condition_index: 50,
|
6654 + | high_ref: 268,
|
6655 + | low_ref: 100000035,
|
6656 + | },
|
6657 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6658 + | condition_index: 49,
|
6659 + | high_ref: 269,
|
6660 + | low_ref: 100000036,
|
6661 + | },
|
6662 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6663 + | condition_index: 48,
|
6664 + | high_ref: 270,
|
6665 + | low_ref: 100000036,
|
6666 + | },
|
6667 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6668 + | condition_index: 41,
|
6669 + | high_ref: 271,
|
6670 + | low_ref: 96,
|
6671 + | },
|
6672 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6673 + | condition_index: 39,
|
6674 + | high_ref: 271,
|
6675 + | low_ref: 272,
|
6676 + | },
|
6677 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6678 + | condition_index: 36,
|
6679 + | high_ref: 273,
|
6680 + | low_ref: 106,
|
6681 + | },
|
6682 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6683 + | condition_index: 33,
|
6684 + | high_ref: 274,
|
6685 + | low_ref: 273,
|
6686 + | },
|
6687 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6688 + | condition_index: 32,
|
6689 + | high_ref: 275,
|
6690 + | low_ref: 100000037,
|
6691 + | },
|
6692 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6693 + | condition_index: 31,
|
6694 + | high_ref: 276,
|
6695 + | low_ref: 100000038,
|
6696 + | },
|
6697 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6698 + | condition_index: 30,
|
6699 + | high_ref: 100000038,
|
6700 + | low_ref: 277,
|
6701 + | },
|
6702 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6703 + | condition_index: 22,
|
6704 + | high_ref: 278,
|
6705 + | low_ref: 100000038,
|
6706 + | },
|
6707 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6708 + | condition_index: 65,
|
6709 + | high_ref: 100000044,
|
6710 + | low_ref: 100000046,
|
6711 + | },
|
6712 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6713 + | condition_index: 64,
|
6714 + | high_ref: 280,
|
6715 + | low_ref: 100000047,
|
6716 + | },
|
6717 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6718 + | condition_index: 63,
|
6719 + | high_ref: 281,
|
6720 + | low_ref: 100000031,
|
6721 + | },
|
6722 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6723 + | condition_index: 47,
|
6724 + | high_ref: 282,
|
6725 + | low_ref: 100000048,
|
6726 + | },
|
6727 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6728 + | condition_index: 46,
|
6729 + | high_ref: 100000033,
|
6730 + | low_ref: 283,
|
6731 + | },
|
6732 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6733 + | condition_index: 45,
|
6734 + | high_ref: 284,
|
6735 + | low_ref: 100000049,
|
6736 + | },
|
6737 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6738 + | condition_index: 44,
|
6739 + | high_ref: 285,
|
6740 + | low_ref: 100000050,
|
6741 + | },
|
6742 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6743 + | condition_index: 43,
|
6744 + | high_ref: 286,
|
6745 + | low_ref: 100000051,
|
6746 + | },
|
6747 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6748 + | condition_index: 40,
|
6749 + | high_ref: 287,
|
6750 + | low_ref: 100000051,
|
6751 + | },
|
6752 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6753 + | condition_index: 42,
|
6754 + | high_ref: 287,
|
6755 + | low_ref: 100000039,
|
6756 + | },
|
6757 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6758 + | condition_index: 40,
|
6759 + | high_ref: 289,
|
6760 + | low_ref: 100000051,
|
6761 + | },
|
6762 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6763 + | condition_index: 39,
|
6764 + | high_ref: 288,
|
6765 + | low_ref: 290,
|
6766 + | },
|
6767 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6768 + | condition_index: 38,
|
6769 + | high_ref: 291,
|
6770 + | low_ref: 133,
|
6771 + | },
|
6772 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6773 + | condition_index: 33,
|
6774 + | high_ref: 292,
|
6775 + | low_ref: 291,
|
6776 + | },
|
6777 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6778 + | condition_index: 28,
|
6779 + | high_ref: 293,
|
6780 + | low_ref: 100000037,
|
6781 + | },
|
6782 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6783 + | condition_index: 27,
|
6784 + | high_ref: 294,
|
6785 + | low_ref: 100000038,
|
6786 + | },
|
6787 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6788 + | condition_index: 26,
|
6789 + | high_ref: 100000038,
|
6790 + | low_ref: 295,
|
6791 + | },
|
6792 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6793 + | condition_index: 25,
|
6794 + | high_ref: 296,
|
6795 + | low_ref: 100000038,
|
6796 + | },
|
6797 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6798 + | condition_index: 24,
|
6799 + | high_ref: 297,
|
6800 + | low_ref: 145,
|
6801 + | },
|
6802 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6803 + | condition_index: 23,
|
6804 + | high_ref: 298,
|
6805 + | low_ref: 145,
|
6806 + | },
|
6807 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6808 + | condition_index: 21,
|
6809 + | high_ref: 279,
|
6810 + | low_ref: 299,
|
6811 + | },
|
6812 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6813 + | condition_index: 20,
|
6814 + | high_ref: 100000021,
|
6815 + | low_ref: 300,
|
6816 + | },
|
6817 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6818 + | condition_index: 16,
|
6819 + | high_ref: 100000014,
|
6820 + | low_ref: 301,
|
6821 + | },
|
6822 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6823 + | condition_index: 20,
|
6824 + | high_ref: 100000021,
|
6825 + | low_ref: 299,
|
6826 + | },
|
6827 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6828 + | condition_index: 15,
|
6829 + | high_ref: 302,
|
6830 + | low_ref: 303,
|
6831 + | },
|
6832 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6833 + | condition_index: 60,
|
6834 + | high_ref: 100000028,
|
6835 + | low_ref: 100000029,
|
6836 + | },
|
6837 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6838 + | condition_index: 59,
|
6839 + | high_ref: 305,
|
6840 + | low_ref: 100000030,
|
6841 + | },
|
6842 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6843 + | condition_index: 58,
|
6844 + | high_ref: 306,
|
6845 + | low_ref: 100000031,
|
6846 + | },
|
6847 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6848 + | condition_index: 53,
|
6849 + | high_ref: 307,
|
6850 + | low_ref: 100000032,
|
6851 + | },
|
6852 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6853 + | condition_index: 52,
|
6854 + | high_ref: 100000033,
|
6855 + | low_ref: 308,
|
6856 + | },
|
6857 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6858 + | condition_index: 51,
|
6859 + | high_ref: 309,
|
6860 + | low_ref: 100000034,
|
6861 + | },
|
6862 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6863 + | condition_index: 50,
|
6864 + | high_ref: 310,
|
6865 + | low_ref: 100000035,
|
6866 + | },
|
6867 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6868 + | condition_index: 49,
|
6869 + | high_ref: 311,
|
6870 + | low_ref: 100000036,
|
6871 + | },
|
6872 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6873 + | condition_index: 48,
|
6874 + | high_ref: 312,
|
6875 + | low_ref: 100000036,
|
6876 + | },
|
6877 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6878 + | condition_index: 41,
|
6879 + | high_ref: 313,
|
6880 + | low_ref: 96,
|
6881 + | },
|
6882 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6883 + | condition_index: 39,
|
6884 + | high_ref: 313,
|
6885 + | low_ref: 314,
|
6886 + | },
|
6887 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6888 + | condition_index: 36,
|
6889 + | high_ref: 315,
|
6890 + | low_ref: 106,
|
6891 + | },
|
6892 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6893 + | condition_index: 33,
|
6894 + | high_ref: 316,
|
6895 + | low_ref: 315,
|
6896 + | },
|
6897 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6898 + | condition_index: 32,
|
6899 + | high_ref: 317,
|
6900 + | low_ref: 100000037,
|
6901 + | },
|
6902 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6903 + | condition_index: 31,
|
6904 + | high_ref: 318,
|
6905 + | low_ref: 100000038,
|
6906 + | },
|
6907 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6908 + | condition_index: 30,
|
6909 + | high_ref: 100000038,
|
6910 + | low_ref: 319,
|
6911 + | },
|
6912 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6913 + | condition_index: 22,
|
6914 + | high_ref: 320,
|
6915 + | low_ref: 100000038,
|
6916 + | },
|
6917 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6918 + | condition_index: 65,
|
6919 + | high_ref: 100000045,
|
6920 + | low_ref: 100000046,
|
6921 + | },
|
6922 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6923 + | condition_index: 64,
|
6924 + | high_ref: 322,
|
6925 + | low_ref: 100000047,
|
6926 + | },
|
6927 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6928 + | condition_index: 63,
|
6929 + | high_ref: 323,
|
6930 + | low_ref: 100000031,
|
6931 + | },
|
6932 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6933 + | condition_index: 47,
|
6934 + | high_ref: 324,
|
6935 + | low_ref: 100000048,
|
6936 + | },
|
6937 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6938 + | condition_index: 46,
|
6939 + | high_ref: 100000033,
|
6940 + | low_ref: 325,
|
6941 + | },
|
6942 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6943 + | condition_index: 45,
|
6944 + | high_ref: 326,
|
6945 + | low_ref: 100000049,
|
6946 + | },
|
6947 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6948 + | condition_index: 44,
|
6949 + | high_ref: 327,
|
6950 + | low_ref: 100000050,
|
6951 + | },
|
6952 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6953 + | condition_index: 43,
|
6954 + | high_ref: 328,
|
6955 + | low_ref: 100000051,
|
6956 + | },
|
6957 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6958 + | condition_index: 40,
|
6959 + | high_ref: 329,
|
6960 + | low_ref: 100000051,
|
6961 + | },
|
6962 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6963 + | condition_index: 42,
|
6964 + | high_ref: 329,
|
6965 + | low_ref: 100000039,
|
6966 + | },
|
6967 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6968 + | condition_index: 40,
|
6969 + | high_ref: 331,
|
6970 + | low_ref: 100000051,
|
6971 + | },
|
6972 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6973 + | condition_index: 39,
|
6974 + | high_ref: 330,
|
6975 + | low_ref: 332,
|
6976 + | },
|
6977 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6978 + | condition_index: 38,
|
6979 + | high_ref: 333,
|
6980 + | low_ref: 133,
|
6981 + | },
|
6982 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6983 + | condition_index: 33,
|
6984 + | high_ref: 334,
|
6985 + | low_ref: 333,
|
6986 + | },
|
6987 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6988 + | condition_index: 28,
|
6989 + | high_ref: 335,
|
6990 + | low_ref: 100000037,
|
6991 + | },
|
6992 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6993 + | condition_index: 27,
|
6994 + | high_ref: 336,
|
6995 + | low_ref: 100000038,
|
6996 + | },
|
6997 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
6998 + | condition_index: 26,
|
6999 + | high_ref: 100000038,
|
7000 + | low_ref: 337,
|
7001 + | },
|
7002 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7003 + | condition_index: 25,
|
7004 + | high_ref: 338,
|
7005 + | low_ref: 100000038,
|
7006 + | },
|
7007 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7008 + | condition_index: 37,
|
7009 + | high_ref: 100000060,
|
7010 + | low_ref: 100000011,
|
7011 + | },
|
7012 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7013 + | condition_index: 37,
|
7014 + | high_ref: 100000061,
|
7015 + | low_ref: 100000011,
|
7016 + | },
|
7017 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7018 + | condition_index: 35,
|
7019 + | high_ref: 340,
|
7020 + | low_ref: 341,
|
7021 + | },
|
7022 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7023 + | condition_index: 34,
|
7024 + | high_ref: 342,
|
7025 + | low_ref: 49,
|
7026 + | },
|
7027 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7028 + | condition_index: 35,
|
7029 + | high_ref: 51,
|
7030 + | low_ref: 341,
|
7031 + | },
|
7032 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7033 + | condition_index: 33,
|
7034 + | high_ref: 343,
|
7035 + | low_ref: 344,
|
7036 + | },
|
7037 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7038 + | condition_index: 24,
|
7039 + | high_ref: 339,
|
7040 + | low_ref: 345,
|
7041 + | },
|
7042 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7043 + | condition_index: 23,
|
7044 + | high_ref: 346,
|
7045 + | low_ref: 345,
|
7046 + | },
|
7047 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7048 + | condition_index: 21,
|
7049 + | high_ref: 321,
|
7050 + | low_ref: 347,
|
7051 + | },
|
7052 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7053 + | condition_index: 16,
|
7054 + | high_ref: 259,
|
7055 + | low_ref: 348,
|
7056 + | },
|
7057 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7058 + | condition_index: 15,
|
7059 + | high_ref: 349,
|
7060 + | low_ref: 347,
|
7061 + | },
|
7062 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7063 + | condition_index: 14,
|
7064 + | high_ref: 304,
|
7065 + | low_ref: 350,
|
7066 + | },
|
7067 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7068 + | condition_index: 13,
|
7069 + | high_ref: 262,
|
7070 + | low_ref: 351,
|
7071 + | },
|
7072 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7073 + | condition_index: 12,
|
7074 + | high_ref: 249,
|
7075 + | low_ref: 352,
|
7076 + | },
|
7077 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7078 + | condition_index: 60,
|
7079 + | high_ref: 100000026,
|
7080 + | low_ref: 100000029,
|
7081 + | },
|
7082 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7083 + | condition_index: 59,
|
7084 + | high_ref: 354,
|
7085 + | low_ref: 100000030,
|
7086 + | },
|
7087 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7088 + | condition_index: 58,
|
7089 + | high_ref: 355,
|
7090 + | low_ref: 100000031,
|
7091 + | },
|
7092 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7093 + | condition_index: 53,
|
7094 + | high_ref: 356,
|
7095 + | low_ref: 100000032,
|
7096 + | },
|
7097 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7098 + | condition_index: 52,
|
7099 + | high_ref: 100000033,
|
7100 + | low_ref: 357,
|
7101 + | },
|
7102 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7103 + | condition_index: 51,
|
7104 + | high_ref: 358,
|
7105 + | low_ref: 100000034,
|
7106 + | },
|
7107 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7108 + | condition_index: 50,
|
7109 + | high_ref: 359,
|
7110 + | low_ref: 100000035,
|
7111 + | },
|
7112 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7113 + | condition_index: 49,
|
7114 + | high_ref: 360,
|
7115 + | low_ref: 100000036,
|
7116 + | },
|
7117 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7118 + | condition_index: 48,
|
7119 + | high_ref: 361,
|
7120 + | low_ref: 100000036,
|
7121 + | },
|
7122 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7123 + | condition_index: 41,
|
7124 + | high_ref: 362,
|
7125 + | low_ref: 96,
|
7126 + | },
|
7127 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7128 + | condition_index: 39,
|
7129 + | high_ref: 362,
|
7130 + | low_ref: 363,
|
7131 + | },
|
7132 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7133 + | condition_index: 36,
|
7134 + | high_ref: 364,
|
7135 + | low_ref: 106,
|
7136 + | },
|
7137 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7138 + | condition_index: 33,
|
7139 + | high_ref: 365,
|
7140 + | low_ref: 364,
|
7141 + | },
|
7142 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7143 + | condition_index: 32,
|
7144 + | high_ref: 366,
|
7145 + | low_ref: 100000037,
|
7146 + | },
|
7147 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7148 + | condition_index: 31,
|
7149 + | high_ref: 367,
|
7150 + | low_ref: 100000038,
|
7151 + | },
|
7152 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7153 + | condition_index: 30,
|
7154 + | high_ref: 100000038,
|
7155 + | low_ref: 368,
|
7156 + | },
|
7157 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7158 + | condition_index: 22,
|
7159 + | high_ref: 369,
|
7160 + | low_ref: 100000038,
|
7161 + | },
|
7162 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7163 + | condition_index: 65,
|
7164 + | high_ref: 100000043,
|
7165 + | low_ref: 100000046,
|
7166 + | },
|
7167 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7168 + | condition_index: 64,
|
7169 + | high_ref: 371,
|
7170 + | low_ref: 100000047,
|
7171 + | },
|
7172 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7173 + | condition_index: 63,
|
7174 + | high_ref: 372,
|
7175 + | low_ref: 100000031,
|
7176 + | },
|
7177 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7178 + | condition_index: 47,
|
7179 + | high_ref: 373,
|
7180 + | low_ref: 100000048,
|
7181 + | },
|
7182 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7183 + | condition_index: 46,
|
7184 + | high_ref: 100000033,
|
7185 + | low_ref: 374,
|
7186 + | },
|
7187 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7188 + | condition_index: 45,
|
7189 + | high_ref: 375,
|
7190 + | low_ref: 100000049,
|
7191 + | },
|
7192 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7193 + | condition_index: 44,
|
7194 + | high_ref: 376,
|
7195 + | low_ref: 100000050,
|
7196 + | },
|
7197 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7198 + | condition_index: 43,
|
7199 + | high_ref: 377,
|
7200 + | low_ref: 100000051,
|
7201 + | },
|
7202 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7203 + | condition_index: 40,
|
7204 + | high_ref: 378,
|
7205 + | low_ref: 100000051,
|
7206 + | },
|
7207 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7208 + | condition_index: 42,
|
7209 + | high_ref: 378,
|
7210 + | low_ref: 100000039,
|
7211 + | },
|
7212 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7213 + | condition_index: 40,
|
7214 + | high_ref: 380,
|
7215 + | low_ref: 100000051,
|
7216 + | },
|
7217 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7218 + | condition_index: 39,
|
7219 + | high_ref: 379,
|
7220 + | low_ref: 381,
|
7221 + | },
|
7222 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7223 + | condition_index: 38,
|
7224 + | high_ref: 382,
|
7225 + | low_ref: 133,
|
7226 + | },
|
7227 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7228 + | condition_index: 33,
|
7229 + | high_ref: 383,
|
7230 + | low_ref: 382,
|
7231 + | },
|
7232 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7233 + | condition_index: 28,
|
7234 + | high_ref: 384,
|
7235 + | low_ref: 100000037,
|
7236 + | },
|
7237 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7238 + | condition_index: 27,
|
7239 + | high_ref: 385,
|
7240 + | low_ref: 100000038,
|
7241 + | },
|
7242 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7243 + | condition_index: 26,
|
7244 + | high_ref: 100000038,
|
7245 + | low_ref: 386,
|
7246 + | },
|
7247 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7248 + | condition_index: 25,
|
7249 + | high_ref: 387,
|
7250 + | low_ref: 100000038,
|
7251 + | },
|
7252 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7253 + | condition_index: 24,
|
7254 + | high_ref: 388,
|
7255 + | low_ref: 242,
|
7256 + | },
|
7257 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7258 + | condition_index: 23,
|
7259 + | high_ref: 389,
|
7260 + | low_ref: 242,
|
7261 + | },
|
7262 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7263 + | condition_index: 21,
|
7264 + | high_ref: 370,
|
7265 + | low_ref: 390,
|
7266 + | },
|
7267 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7268 + | condition_index: 16,
|
7269 + | high_ref: 100000013,
|
7270 + | low_ref: 391,
|
7271 + | },
|
7272 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7273 + | condition_index: 15,
|
7274 + | high_ref: 392,
|
7275 + | low_ref: 390,
|
7276 + | },
|
7277 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7278 + | condition_index: 13,
|
7279 + | high_ref: 100000013,
|
7280 + | low_ref: 393,
|
7281 + | },
|
7282 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7283 + | condition_index: 13,
|
7284 + | high_ref: 261,
|
7285 + | low_ref: 350,
|
7286 + | },
|
7287 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7288 + | condition_index: 12,
|
7289 + | high_ref: 394,
|
7290 + | low_ref: 395,
|
7291 + | },
|
7292 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7293 + | condition_index: 11,
|
7294 + | high_ref: 353,
|
7295 + | low_ref: 396,
|
7296 + | },
|
7297 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7298 + | condition_index: 9,
|
7299 + | high_ref: 236,
|
7300 + | low_ref: 397,
|
7301 + | },
|
7302 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7303 + | condition_index: 8,
|
7304 + | high_ref: 398,
|
7305 + | low_ref: 397,
|
7306 + | },
|
7307 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7308 + | condition_index: 7,
|
7309 + | high_ref: 399,
|
7310 + | low_ref: 397,
|
7311 + | },
|
7312 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7313 + | condition_index: 6,
|
7314 + | high_ref: 400,
|
7315 + | low_ref: 397,
|
7316 + | },
|
7317 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7318 + | condition_index: 4,
|
7319 + | high_ref: 229,
|
7320 + | low_ref: 401,
|
7321 + | },
|
7322 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7323 + | condition_index: 2,
|
7324 + | high_ref: 216,
|
7325 + | low_ref: 402,
|
7326 + | },
|
7327 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7328 + | condition_index: 24,
|
7329 + | high_ref: 47,
|
7330 + | low_ref: 100000062,
|
7331 + | },
|
7332 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7333 + | condition_index: 23,
|
7334 + | high_ref: 404,
|
7335 + | low_ref: 100000062,
|
7336 + | },
|
7337 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7338 + | condition_index: 21,
|
7339 + | high_ref: 42,
|
7340 + | low_ref: 405,
|
7341 + | },
|
7342 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7343 + | condition_index: 15,
|
7344 + | high_ref: 406,
|
7345 + | low_ref: 405,
|
7346 + | },
|
7347 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7348 + | condition_index: 41,
|
7349 + | high_ref: 100000036,
|
7350 + | low_ref: 96,
|
7351 + | },
|
7352 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7353 + | condition_index: 39,
|
7354 + | high_ref: 100000036,
|
7355 + | low_ref: 408,
|
7356 + | },
|
7357 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7358 + | condition_index: 32,
|
7359 + | high_ref: 409,
|
7360 + | low_ref: 100000037,
|
7361 + | },
|
7362 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7363 + | condition_index: 31,
|
7364 + | high_ref: 410,
|
7365 + | low_ref: 100000038,
|
7366 + | },
|
7367 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7368 + | condition_index: 30,
|
7369 + | high_ref: 100000038,
|
7370 + | low_ref: 411,
|
7371 + | },
|
7372 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7373 + | condition_index: 22,
|
7374 + | high_ref: 412,
|
7375 + | low_ref: 100000038,
|
7376 + | },
|
7377 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7378 + | condition_index: 42,
|
7379 + | high_ref: 100000051,
|
7380 + | low_ref: 100000039,
|
7381 + | },
|
7382 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7383 + | condition_index: 40,
|
7384 + | high_ref: 414,
|
7385 + | low_ref: 100000051,
|
7386 + | },
|
7387 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7388 + | condition_index: 39,
|
7389 + | high_ref: 100000051,
|
7390 + | low_ref: 415,
|
7391 + | },
|
7392 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7393 + | condition_index: 28,
|
7394 + | high_ref: 416,
|
7395 + | low_ref: 100000037,
|
7396 + | },
|
7397 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7398 + | condition_index: 27,
|
7399 + | high_ref: 417,
|
7400 + | low_ref: 100000038,
|
7401 + | },
|
7402 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7403 + | condition_index: 26,
|
7404 + | high_ref: 100000038,
|
7405 + | low_ref: 418,
|
7406 + | },
|
7407 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7408 + | condition_index: 25,
|
7409 + | high_ref: 419,
|
7410 + | low_ref: 100000038,
|
7411 + | },
|
7412 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7413 + | condition_index: 24,
|
7414 + | high_ref: 420,
|
7415 + | low_ref: 100000062,
|
7416 + | },
|
7417 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7418 + | condition_index: 23,
|
7419 + | high_ref: 421,
|
7420 + | low_ref: 100000062,
|
7421 + | },
|
7422 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7423 + | condition_index: 21,
|
7424 + | high_ref: 413,
|
7425 + | low_ref: 422,
|
7426 + | },
|
7427 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7428 + | condition_index: 15,
|
7429 + | high_ref: 423,
|
7430 + | low_ref: 422,
|
7431 + | },
|
7432 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7433 + | condition_index: 12,
|
7434 + | high_ref: 407,
|
7435 + | low_ref: 424,
|
7436 + | },
|
7437 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7438 + | condition_index: 11,
|
7439 + | high_ref: 425,
|
7440 + | low_ref: 424,
|
7441 + | },
|
7442 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7443 + | condition_index: 1,
|
7444 + | high_ref: 403,
|
7445 + | low_ref: 426,
|
7446 + | },
|
7447 + | crate::endpoint_lib::bdd_interpreter::BddNode {
|
7448 + | condition_index: 0,
|
7449 + | high_ref: 427,
|
7450 + | low_ref: 100000062,
|
7451 + | },
|
7452 + | ];
|
7453 + | // These are all optional since they are set by conditions and will
|
7454 + | // all be unset when we start evaluation
|
7455 + | #[derive(Default)]
|
7456 + | #[allow(unused_lifetimes)]
|
7457 + | pub(crate) struct ConditionContext<'a> {
|
7458 + | pub(crate) partition_result: Option<crate::endpoint_lib::partition::Partition<'a>>,
|
7459 + | pub(crate) resource_arn_ctx_1: Option<crate::endpoint_lib::arn::Arn<'a>>,
|
7460 + | pub(crate) arn_partition_ssa_3: Option<crate::endpoint_lib::partition::Partition<'a>>,
|
7461 + | pub(crate) url: Option<crate::endpoint_lib::parse_url::Url<'a>>,
|
7462 + | pub(crate) access_point_arn: Option<crate::endpoint_lib::arn::Arn<'a>>,
|
7463 + | pub(crate) arn_type_ssa_1: ::std::option::Option<::std::string::String>,
|
7464 + | pub(crate) bucket_arn: Option<crate::endpoint_lib::arn::Arn<'a>>,
|
7465 + | pub(crate) arn_type_ssa_2: ::std::option::Option<::std::string::String>,
|
7466 + | pub(crate) outpost_id_ssa_2: ::std::option::Option<::std::string::String>,
|
7467 + | pub(crate) outpost_id_ssa_1: ::std::option::Option<::std::string::String>,
|
7468 + | pub(crate) arn_partition_ssa_2: Option<crate::endpoint_lib::partition::Partition<'a>>,
|
7469 + | pub(crate) arn_partition_ssa_1: Option<crate::endpoint_lib::partition::Partition<'a>>,
|
7470 + | pub(crate) outpost_type_ssa_1: ::std::option::Option<::std::string::String>,
|
7471 + | pub(crate) outpost_type_ssa_2: ::std::option::Option<::std::string::String>,
|
7472 + | // Sometimes none of the members reference the lifetime, this makes it still valid
|
7473 + | phantom: std::marker::PhantomData<&'a ()>,
|
7474 + | }
|
7475 + |
|
7476 + | #[non_exhaustive]
|
7477 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7478 + | /// Configuration parameters for resolving the correct endpoint
|
7479 + | pub struct Params {
|
7480 + | /// The AWS region used to dispatch the request.
|
7481 + | pub(crate) region: ::std::option::Option<::std::string::String>,
|
7482 + | /// When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
7483 + | pub(crate) use_fips: bool,
|
7484 + | /// When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
7485 + | pub(crate) use_dual_stack: bool,
|
7486 + | /// Override the endpoint used to send this request
|
7487 + | pub(crate) endpoint: ::std::option::Option<::std::string::String>,
|
7488 + | /// The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.
|
7489 + | pub(crate) account_id: ::std::option::Option<::std::string::String>,
|
7490 + | /// Internal parameter for operations that require account id host prefix.
|
7491 + | pub(crate) requires_account_id: ::std::option::Option<bool>,
|
7492 + | /// The Outpost ID. Some operations have an optional OutpostId which should be used in endpoint construction.
|
7493 + | pub(crate) outpost_id: ::std::option::Option<::std::string::String>,
|
7494 + | /// The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.
|
7495 + | pub(crate) bucket: ::std::option::Option<::std::string::String>,
|
7496 + | /// The S3 AccessPointName used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 AccessPoint.
|
7497 + | pub(crate) access_point_name: ::std::option::Option<::std::string::String>,
|
7498 + | /// When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.
|
7499 + | pub(crate) use_arn_region: ::std::option::Option<bool>,
|
7500 + | /// The resource ARN included in the request. Only set on TagResource, UntagResourceand ListTagsForResource
|
7501 + | pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
|
7502 + | /// Internal parameter to indicate whether S3Express operation should use control plane, (ex. ListDirectoryAccessPoints)
|
7503 + | pub(crate) use_s3_express_control_endpoint: ::std::option::Option<bool>,
|
7504 + | }
|
7505 + | impl Params {
|
7506 + | /// Create a builder for [`Params`]
|
7507 + | pub fn builder() -> crate::config::endpoint::ParamsBuilder {
|
7508 + | crate::config::endpoint::ParamsBuilder::default()
|
7509 + | }
|
7510 + | /// The AWS region used to dispatch the request.
|
7511 + | pub fn region(&self) -> ::std::option::Option<&str> {
|
7512 + | self.region.as_deref()
|
7513 + | }
|
7514 + | /// When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
7515 + | pub fn use_fips(&self) -> ::std::option::Option<bool> {
|
7516 + | Some(self.use_fips)
|
7517 + | }
|
7518 + | /// When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
7519 + | pub fn use_dual_stack(&self) -> ::std::option::Option<bool> {
|
7520 + | Some(self.use_dual_stack)
|
7521 + | }
|
7522 + | /// Override the endpoint used to send this request
|
4110 7523 | pub fn endpoint(&self) -> ::std::option::Option<&str> {
|
4111 7524 | self.endpoint.as_deref()
|
4112 7525 | }
|
4113 7526 | /// The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.
|
4114 7527 | pub fn account_id(&self) -> ::std::option::Option<&str> {
|
4115 7528 | self.account_id.as_deref()
|
4116 7529 | }
|
4117 7530 | /// Internal parameter for operations that require account id host prefix.
|
4118 7531 | pub fn requires_account_id(&self) -> ::std::option::Option<bool> {
|
4119 7532 | self.requires_account_id
|