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