Debian Codegraph @

models/apis/organizations/2016-11-28/endpoint-tests-1.json

raw
1 {
2 "testCases": [
3 {
4 "documentation": "For region aws-global with FIPS disabled and DualStack disabled",
5 "expect": {
6 "endpoint": {
7 "properties": {
8 "authSchemes": [
9 {
10 "name": "sigv4",
11 "signingName": "organizations",
12 "signingRegion": "us-east-1"
13 }
14 ]
15 },
16 "url": "https://organizations.us-east-1.amazonaws.com"
17 }
18 },
19 "params": {
20 "Region": "aws-global",
21 "UseFIPS": false,
22 "UseDualStack": false
23 }
24 },
25 {
26 "documentation": "For region aws-global with FIPS enabled and DualStack disabled",
27 "expect": {
28 "endpoint": {
29 "properties": {
30 "authSchemes": [
31 {
32 "name": "sigv4",
33 "signingName": "organizations",
34 "signingRegion": "us-east-1"
35 }
36 ]
37 },
38 "url": "https://organizations-fips.us-east-1.amazonaws.com"
39 }
40 },
41 "params": {
42 "Region": "aws-global",
43 "UseFIPS": true,
44 "UseDualStack": false
45 }
46 },
47 {
48 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
49 "expect": {
50 "endpoint": {
51 "url": "https://organizations-fips.us-east-1.api.aws"
52 }
53 },
54 "params": {
55 "Region": "us-east-1",
56 "UseFIPS": true,
57 "UseDualStack": true
58 }
59 },
60 {
61 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
62 "expect": {
63 "endpoint": {
64 "properties": {
65 "authSchemes": [
66 {
67 "name": "sigv4",
68 "signingName": "organizations",
69 "signingRegion": "us-east-1"
70 }
71 ]
72 },
73 "url": "https://organizations-fips.us-east-1.amazonaws.com"
74 }
75 },
76 "params": {
77 "Region": "us-east-1",
78 "UseFIPS": true,
79 "UseDualStack": false
80 }
81 },
82 {
83 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
84 "expect": {
85 "endpoint": {
86 "url": "https://organizations.us-east-1.api.aws"
87 }
88 },
89 "params": {
90 "Region": "us-east-1",
91 "UseFIPS": false,
92 "UseDualStack": true
93 }
94 },
95 {
96 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
97 "expect": {
98 "endpoint": {
99 "properties": {
100 "authSchemes": [
101 {
102 "name": "sigv4",
103 "signingName": "organizations",
104 "signingRegion": "us-east-1"
105 }
106 ]
107 },
108 "url": "https://organizations.us-east-1.amazonaws.com"
109 }
110 },
111 "params": {
112 "Region": "us-east-1",
113 "UseFIPS": false,
114 "UseDualStack": false
115 }
116 },
117 {
118 "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled",
119 "expect": {
120 "endpoint": {
121 "properties": {
122 "authSchemes": [
123 {
124 "name": "sigv4",
125 "signingName": "organizations",
126 "signingRegion": "cn-northwest-1"
127 }
128 ]
129 },
130 "url": "https://organizations.cn-northwest-1.amazonaws.com.cn"
131 }
132 },
133 "params": {
134 "Region": "aws-cn-global",
135 "UseFIPS": false,
136 "UseDualStack": false
137 }
138 },
139 {
140 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
141 "expect": {
142 "endpoint": {
143 "url": "https://organizations-fips.cn-north-1.api.amazonwebservices.com.cn"
144 }
145 },
146 "params": {
147 "Region": "cn-north-1",
148 "UseFIPS": true,
149 "UseDualStack": true
150 }
151 },
152 {
153 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
154 "expect": {
155 "endpoint": {
156 "url": "https://organizations-fips.cn-north-1.amazonaws.com.cn"
157 }
158 },
159 "params": {
160 "Region": "cn-north-1",
161 "UseFIPS": true,
162 "UseDualStack": false
163 }
164 },
165 {
166 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
167 "expect": {
168 "endpoint": {
169 "url": "https://organizations.cn-north-1.api.amazonwebservices.com.cn"
170 }
171 },
172 "params": {
173 "Region": "cn-north-1",
174 "UseFIPS": false,
175 "UseDualStack": true
176 }
177 },
178 {
179 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
180 "expect": {
181 "endpoint": {
182 "properties": {
183 "authSchemes": [
184 {
185 "name": "sigv4",
186 "signingName": "organizations",
187 "signingRegion": "cn-northwest-1"
188 }
189 ]
190 },
191 "url": "https://organizations.cn-northwest-1.amazonaws.com.cn"
192 }
193 },
194 "params": {
195 "Region": "cn-north-1",
196 "UseFIPS": false,
197 "UseDualStack": false
198 }
199 },
200 {
201 "documentation": "For region aws-us-gov-global with FIPS disabled and DualStack disabled",
202 "expect": {
203 "endpoint": {
204 "properties": {
205 "authSchemes": [
206 {
207 "name": "sigv4",
208 "signingName": "organizations",
209 "signingRegion": "us-gov-west-1"
210 }
211 ]
212 },
213 "url": "https://organizations.us-gov-west-1.amazonaws.com"
214 }
215 },
216 "params": {
217 "Region": "aws-us-gov-global",
218 "UseFIPS": false,
219 "UseDualStack": false
220 }
221 },
222 {
223 "documentation": "For region aws-us-gov-global with FIPS enabled and DualStack disabled",
224 "expect": {
225 "endpoint": {
226 "properties": {
227 "authSchemes": [
228 {
229 "name": "sigv4",
230 "signingName": "organizations",
231 "signingRegion": "us-gov-west-1"
232 }
233 ]
234 },
235 "url": "https://organizations.us-gov-west-1.amazonaws.com"
236 }
237 },
238 "params": {
239 "Region": "aws-us-gov-global",
240 "UseFIPS": true,
241 "UseDualStack": false
242 }
243 },
244 {
245 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
246 "expect": {
247 "endpoint": {
248 "url": "https://organizations-fips.us-gov-east-1.api.aws"
249 }
250 },
251 "params": {
252 "Region": "us-gov-east-1",
253 "UseFIPS": true,
254 "UseDualStack": true
255 }
256 },
257 {
258 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
259 "expect": {
260 "endpoint": {
261 "properties": {
262 "authSchemes": [
263 {
264 "name": "sigv4",
265 "signingName": "organizations",
266 "signingRegion": "us-gov-west-1"
267 }
268 ]
269 },
270 "url": "https://organizations.us-gov-west-1.amazonaws.com"
271 }
272 },
273 "params": {
274 "Region": "us-gov-east-1",
275 "UseFIPS": true,
276 "UseDualStack": false
277 }
278 },
279 {
280 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
281 "expect": {
282 "endpoint": {
283 "url": "https://organizations.us-gov-east-1.api.aws"
284 }
285 },
286 "params": {
287 "Region": "us-gov-east-1",
288 "UseFIPS": false,
289 "UseDualStack": true
290 }
291 },
292 {
293 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
294 "expect": {
295 "endpoint": {
296 "properties": {
297 "authSchemes": [
298 {
299 "name": "sigv4",
300 "signingName": "organizations",
301 "signingRegion": "us-gov-west-1"
302 }
303 ]
304 },
305 "url": "https://organizations.us-gov-west-1.amazonaws.com"
306 }
307 },
308 "params": {
309 "Region": "us-gov-east-1",
310 "UseFIPS": false,
311 "UseDualStack": false
312 }
313 },
314 {
315 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
316 "expect": {
317 "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
318 },
319 "params": {
320 "Region": "us-iso-east-1",
321 "UseFIPS": true,
322 "UseDualStack": true
323 }
324 },
325 {
326 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
327 "expect": {
328 "endpoint": {
329 "url": "https://organizations-fips.us-iso-east-1.c2s.ic.gov"
330 }
331 },
332 "params": {
333 "Region": "us-iso-east-1",
334 "UseFIPS": true,
335 "UseDualStack": false
336 }
337 },
338 {
339 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
340 "expect": {
341 "error": "DualStack is enabled but this partition does not support DualStack"
342 },
343 "params": {
344 "Region": "us-iso-east-1",
345 "UseFIPS": false,
346 "UseDualStack": true
347 }
348 },
349 {
350 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
351 "expect": {
352 "endpoint": {
353 "url": "https://organizations.us-iso-east-1.c2s.ic.gov"
354 }
355 },
356 "params": {
357 "Region": "us-iso-east-1",
358 "UseFIPS": false,
359 "UseDualStack": false
360 }
361 },
362 {
363 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
364 "expect": {
365 "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
366 },
367 "params": {
368 "Region": "us-isob-east-1",
369 "UseFIPS": true,
370 "UseDualStack": true
371 }
372 },
373 {
374 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
375 "expect": {
376 "endpoint": {
377 "url": "https://organizations-fips.us-isob-east-1.sc2s.sgov.gov"
378 }
379 },
380 "params": {
381 "Region": "us-isob-east-1",
382 "UseFIPS": true,
383 "UseDualStack": false
384 }
385 },
386 {
387 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
388 "expect": {
389 "error": "DualStack is enabled but this partition does not support DualStack"
390 },
391 "params": {
392 "Region": "us-isob-east-1",
393 "UseFIPS": false,
394 "UseDualStack": true
395 }
396 },
397 {
398 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
399 "expect": {
400 "endpoint": {
401 "url": "https://organizations.us-isob-east-1.sc2s.sgov.gov"
402 }
403 },
404 "params": {
405 "Region": "us-isob-east-1",
406 "UseFIPS": false,
407 "UseDualStack": false
408 }
409 },
410 {
411 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
412 "expect": {
413 "endpoint": {
414 "url": "https://example.com"
415 }
416 },
417 "params": {
418 "Region": "us-east-1",
419 "UseFIPS": false,
420 "UseDualStack": false,
421 "Endpoint": "https://example.com"
422 }
423 },
424 {
425 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
426 "expect": {
427 "endpoint": {
428 "url": "https://example.com"
429 }
430 },
431 "params": {
432 "UseFIPS": false,
433 "UseDualStack": false,
434 "Endpoint": "https://example.com"
435 }
436 },
437 {
438 "documentation": "For custom endpoint with fips enabled and dualstack disabled",
439 "expect": {
440 "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
441 },
442 "params": {
443 "Region": "us-east-1",
444 "UseFIPS": true,
445 "UseDualStack": false,
446 "Endpoint": "https://example.com"
447 }
448 },
449 {
450 "documentation": "For custom endpoint with fips disabled and dualstack enabled",
451 "expect": {
452 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
453 },
454 "params": {
455 "Region": "us-east-1",
456 "UseFIPS": false,
457 "UseDualStack": true,
458 "Endpoint": "https://example.com"
459 }
460 },
461 {
462 "documentation": "Missing region",
463 "expect": {
464 "error": "Invalid Configuration: Missing Region"
465 }
466 }
467 ],
468 "version": "1.0"
469 }