Debian Codegraph @

models/apis/clouddirectory/2017-01-11/endpoint-rule-set-1.json

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