Debian Codegraph @

models/apis/amp/2020-08-01/endpoint-tests-1.json

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