Debian Codegraph @

models/apis/batch/2016-08-10/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://batch-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 "aws",
251 {
252 "fn": "getAttr",
253 "argv": [
254 {
255 "ref": "PartitionResult"
256 },
257 "name"
258 ]
259 }
260 ]
261 }
262 ],
263 "endpoint": {
264 "url": "https://fips.batch.{Region}.amazonaws.com",
265 "properties": {},
266 "headers": {}
267 },
268 "type": "endpoint"
269 },
270 {
271 "conditions": [
272 {
273 "fn": "stringEquals",
274 "argv": [
275 "aws-us-gov",
276 {
277 "fn": "getAttr",
278 "argv": [
279 {
280 "ref": "PartitionResult"
281 },
282 "name"
283 ]
284 }
285 ]
286 }
287 ],
288 "endpoint": {
289 "url": "https://batch.{Region}.amazonaws.com",
290 "properties": {},
291 "headers": {}
292 },
293 "type": "endpoint"
294 },
295 {
296 "conditions": [],
297 "endpoint": {
298 "url": "https://batch-fips.{Region}.{PartitionResult#dnsSuffix}",
299 "properties": {},
300 "headers": {}
301 },
302 "type": "endpoint"
303 }
304 ]
305 }
306 ]
307 },
308 {
309 "conditions": [],
310 "error": "FIPS is enabled but this partition does not support FIPS",
311 "type": "error"
312 }
313 ]
314 },
315 {
316 "conditions": [
317 {
318 "fn": "booleanEquals",
319 "argv": [
320 {
321 "ref": "UseDualStack"
322 },
323 true
324 ]
325 }
326 ],
327 "type": "tree",
328 "rules": [
329 {
330 "conditions": [
331 {
332 "fn": "booleanEquals",
333 "argv": [
334 true,
335 {
336 "fn": "getAttr",
337 "argv": [
338 {
339 "ref": "PartitionResult"
340 },
341 "supportsDualStack"
342 ]
343 }
344 ]
345 }
346 ],
347 "type": "tree",
348 "rules": [
349 {
350 "conditions": [],
351 "type": "tree",
352 "rules": [
353 {
354 "conditions": [],
355 "endpoint": {
356 "url": "https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}",
357 "properties": {},
358 "headers": {}
359 },
360 "type": "endpoint"
361 }
362 ]
363 }
364 ]
365 },
366 {
367 "conditions": [],
368 "error": "DualStack is enabled but this partition does not support DualStack",
369 "type": "error"
370 }
371 ]
372 },
373 {
374 "conditions": [],
375 "type": "tree",
376 "rules": [
377 {
378 "conditions": [],
379 "endpoint": {
380 "url": "https://batch.{Region}.{PartitionResult#dnsSuffix}",
381 "properties": {},
382 "headers": {}
383 },
384 "type": "endpoint"
385 }
386 ]
387 }
388 ]
389 }
390 ]
391 },
392 {
393 "conditions": [],
394 "error": "Invalid Configuration: Missing Region",
395 "type": "error"
396 }
397 ]
398 }
399 ]
400 }