Debian Codegraph @

models/apis/iotfleetwise/2021-06-17/endpoint-tests-1.json

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