Debian Codegraph @

models/apis/account/2021-02-01/endpoint-rule-set-1.json

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