Debian Codegraph @

models/apis/greengrassv2/2020-11-30/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": "booleanEquals",
129 "argv": [
130 {
131 "ref": "UseFIPS"
132 },
133 true
134 ]
135 },
136 {
137 "fn": "booleanEquals",
138 "argv": [
139 {
140 "ref": "UseDualStack"
141 },
142 true
143 ]
144 }
145 ],
146 "type": "tree",
147 "rules": [
148 {
149 "conditions": [
150 {
151 "fn": "booleanEquals",
152 "argv": [
153 true,
154 {
155 "fn": "getAttr",
156 "argv": [
157 {
158 "ref": "PartitionResult"
159 },
160 "supportsFIPS"
161 ]
162 }
163 ]
164 },
165 {
166 "fn": "booleanEquals",
167 "argv": [
168 true,
169 {
170 "fn": "getAttr",
171 "argv": [
172 {
173 "ref": "PartitionResult"
174 },
175 "supportsDualStack"
176 ]
177 }
178 ]
179 }
180 ],
181 "type": "tree",
182 "rules": [
183 {
184 "conditions": [],
185 "type": "tree",
186 "rules": [
187 {
188 "conditions": [],
189 "endpoint": {
190 "url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
191 "properties": {},
192 "headers": {}
193 },
194 "type": "endpoint"
195 }
196 ]
197 }
198 ]
199 },
200 {
201 "conditions": [],
202 "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
203 "type": "error"
204 }
205 ]
206 },
207 {
208 "conditions": [
209 {
210 "fn": "booleanEquals",
211 "argv": [
212 {
213 "ref": "UseFIPS"
214 },
215 true
216 ]
217 }
218 ],
219 "type": "tree",
220 "rules": [
221 {
222 "conditions": [
223 {
224 "fn": "booleanEquals",
225 "argv": [
226 true,
227 {
228 "fn": "getAttr",
229 "argv": [
230 {
231 "ref": "PartitionResult"
232 },
233 "supportsFIPS"
234 ]
235 }
236 ]
237 }
238 ],
239 "type": "tree",
240 "rules": [
241 {
242 "conditions": [],
243 "type": "tree",
244 "rules": [
245 {
246 "conditions": [
247 {
248 "fn": "stringEquals",
249 "argv": [
250 {
251 "ref": "Region"
252 },
253 "us-gov-east-1"
254 ]
255 }
256 ],
257 "endpoint": {
258 "url": "https://greengrass.us-gov-east-1.amazonaws.com",
259 "properties": {},
260 "headers": {}
261 },
262 "type": "endpoint"
263 },
264 {
265 "conditions": [
266 {
267 "fn": "stringEquals",
268 "argv": [
269 {
270 "ref": "Region"
271 },
272 "us-gov-west-1"
273 ]
274 }
275 ],
276 "endpoint": {
277 "url": "https://greengrass.us-gov-west-1.amazonaws.com",
278 "properties": {},
279 "headers": {}
280 },
281 "type": "endpoint"
282 },
283 {
284 "conditions": [],
285 "endpoint": {
286 "url": "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}",
287 "properties": {},
288 "headers": {}
289 },
290 "type": "endpoint"
291 }
292 ]
293 }
294 ]
295 },
296 {
297 "conditions": [],
298 "error": "FIPS is enabled but this partition does not support FIPS",
299 "type": "error"
300 }
301 ]
302 },
303 {
304 "conditions": [
305 {
306 "fn": "booleanEquals",
307 "argv": [
308 {
309 "ref": "UseDualStack"
310 },
311 true
312 ]
313 }
314 ],
315 "type": "tree",
316 "rules": [
317 {
318 "conditions": [
319 {
320 "fn": "booleanEquals",
321 "argv": [
322 true,
323 {
324 "fn": "getAttr",
325 "argv": [
326 {
327 "ref": "PartitionResult"
328 },
329 "supportsDualStack"
330 ]
331 }
332 ]
333 }
334 ],
335 "type": "tree",
336 "rules": [
337 {
338 "conditions": [],
339 "type": "tree",
340 "rules": [
341 {
342 "conditions": [],
343 "endpoint": {
344 "url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",
345 "properties": {},
346 "headers": {}
347 },
348 "type": "endpoint"
349 }
350 ]
351 }
352 ]
353 },
354 {
355 "conditions": [],
356 "error": "DualStack is enabled but this partition does not support DualStack",
357 "type": "error"
358 }
359 ]
360 },
361 {
362 "conditions": [],
363 "type": "tree",
364 "rules": [
365 {
366 "conditions": [
367 {
368 "fn": "stringEquals",
369 "argv": [
370 {
371 "ref": "Region"
372 },
373 "dataplane-us-gov-east-1"
374 ]
375 }
376 ],
377 "endpoint": {
378 "url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
379 "properties": {
380 "authSchemes": [
381 {
382 "name": "sigv4",
383 "signingName": "greengrass",
384 "signingRegion": "us-gov-east-1"
385 }
386 ]
387 },
388 "headers": {}
389 },
390 "type": "endpoint"
391 },
392 {
393 "conditions": [
394 {
395 "fn": "stringEquals",
396 "argv": [
397 {
398 "ref": "Region"
399 },
400 "dataplane-us-gov-west-1"
401 ]
402 }
403 ],
404 "endpoint": {
405 "url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
406 "properties": {
407 "authSchemes": [
408 {
409 "name": "sigv4",
410 "signingName": "greengrass",
411 "signingRegion": "us-gov-west-1"
412 }
413 ]
414 },
415 "headers": {}
416 },
417 "type": "endpoint"
418 },
419 {
420 "conditions": [],
421 "endpoint": {
422 "url": "https://greengrass.{Region}.{PartitionResult#dnsSuffix}",
423 "properties": {},
424 "headers": {}
425 },
426 "type": "endpoint"
427 }
428 ]
429 }
430 ]
431 }
432 ]
433 },
434 {
435 "conditions": [],
436 "error": "Invalid Configuration: Missing Region",
437 "type": "error"
438 }
439 ]
440 }
441 ]
442 }