Debian Codegraph @

models/apis/chime/2018-05-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://chime.us-east-1.amazonaws.com",
163 "properties": {
164 "authSchemes": [
165 {
166 "name": "sigv4",
167 "signingName": "chime",
168 "signingRegion": "us-east-1"
169 }
170 ]
171 },
172 "headers": {}
173 },
174 "type": "endpoint"
175 },
176 {
177 "conditions": [
178 {
179 "fn": "booleanEquals",
180 "argv": [
181 {
182 "ref": "UseFIPS"
183 },
184 true
185 ]
186 },
187 {
188 "fn": "booleanEquals",
189 "argv": [
190 {
191 "ref": "UseDualStack"
192 },
193 true
194 ]
195 }
196 ],
197 "type": "tree",
198 "rules": [
199 {
200 "conditions": [
201 {
202 "fn": "booleanEquals",
203 "argv": [
204 true,
205 {
206 "fn": "getAttr",
207 "argv": [
208 {
209 "ref": "PartitionResult"
210 },
211 "supportsFIPS"
212 ]
213 }
214 ]
215 },
216 {
217 "fn": "booleanEquals",
218 "argv": [
219 true,
220 {
221 "fn": "getAttr",
222 "argv": [
223 {
224 "ref": "PartitionResult"
225 },
226 "supportsDualStack"
227 ]
228 }
229 ]
230 }
231 ],
232 "type": "tree",
233 "rules": [
234 {
235 "conditions": [],
236 "type": "tree",
237 "rules": [
238 {
239 "conditions": [],
240 "endpoint": {
241 "url": "https://chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
242 "properties": {},
243 "headers": {}
244 },
245 "type": "endpoint"
246 }
247 ]
248 }
249 ]
250 },
251 {
252 "conditions": [],
253 "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
254 "type": "error"
255 }
256 ]
257 },
258 {
259 "conditions": [
260 {
261 "fn": "booleanEquals",
262 "argv": [
263 {
264 "ref": "UseFIPS"
265 },
266 true
267 ]
268 }
269 ],
270 "type": "tree",
271 "rules": [
272 {
273 "conditions": [
274 {
275 "fn": "booleanEquals",
276 "argv": [
277 true,
278 {
279 "fn": "getAttr",
280 "argv": [
281 {
282 "ref": "PartitionResult"
283 },
284 "supportsFIPS"
285 ]
286 }
287 ]
288 }
289 ],
290 "type": "tree",
291 "rules": [
292 {
293 "conditions": [],
294 "type": "tree",
295 "rules": [
296 {
297 "conditions": [],
298 "endpoint": {
299 "url": "https://chime-fips.{Region}.{PartitionResult#dnsSuffix}",
300 "properties": {},
301 "headers": {}
302 },
303 "type": "endpoint"
304 }
305 ]
306 }
307 ]
308 },
309 {
310 "conditions": [],
311 "error": "FIPS is enabled but this partition does not support FIPS",
312 "type": "error"
313 }
314 ]
315 },
316 {
317 "conditions": [
318 {
319 "fn": "booleanEquals",
320 "argv": [
321 {
322 "ref": "UseDualStack"
323 },
324 true
325 ]
326 }
327 ],
328 "type": "tree",
329 "rules": [
330 {
331 "conditions": [
332 {
333 "fn": "booleanEquals",
334 "argv": [
335 true,
336 {
337 "fn": "getAttr",
338 "argv": [
339 {
340 "ref": "PartitionResult"
341 },
342 "supportsDualStack"
343 ]
344 }
345 ]
346 }
347 ],
348 "type": "tree",
349 "rules": [
350 {
351 "conditions": [],
352 "type": "tree",
353 "rules": [
354 {
355 "conditions": [],
356 "endpoint": {
357 "url": "https://chime.{Region}.{PartitionResult#dualStackDnsSuffix}",
358 "properties": {},
359 "headers": {}
360 },
361 "type": "endpoint"
362 }
363 ]
364 }
365 ]
366 },
367 {
368 "conditions": [],
369 "error": "DualStack is enabled but this partition does not support DualStack",
370 "type": "error"
371 }
372 ]
373 },
374 {
375 "conditions": [],
376 "type": "tree",
377 "rules": [
378 {
379 "conditions": [],
380 "endpoint": {
381 "url": "https://chime.{Region}.{PartitionResult#dnsSuffix}",
382 "properties": {},
383 "headers": {}
384 },
385 "type": "endpoint"
386 }
387 ]
388 }
389 ]
390 }
391 ]
392 },
393 {
394 "conditions": [],
395 "error": "Invalid Configuration: Missing Region",
396 "type": "error"
397 }
398 ]
399 }
400 ]
401 }