Debian Codegraph @

models/apis/backup-gateway/2021-01-01/endpoint-rule-set-1.json

raw symbols SCIP
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 "endpoint": {
169 "url": "https://backup-gateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
170 "properties": {},
171 "headers": {}
172 },
173 "type": "endpoint"
174 }
175 ]
176 },
177 {
178 "conditions": [],
179 "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
180 "type": "error"
181 }
182 ]
183 },
184 {
185 "conditions": [
186 {
187 "fn": "booleanEquals",
188 "argv": [
189 {
190 "ref": "UseFIPS"
191 },
192 true
193 ]
194 }
195 ],
196 "type": "tree",
197 "rules": [
198 {
199 "conditions": [
200 {
201 "fn": "booleanEquals",
202 "argv": [
203 true,
204 {
205 "fn": "getAttr",
206 "argv": [
207 {
208 "ref": "PartitionResult"
209 },
210 "supportsFIPS"
211 ]
212 }
213 ]
214 }
215 ],
216 "type": "tree",
217 "rules": [
218 {
219 "conditions": [],
220 "type": "tree",
221 "rules": [
222 {
223 "conditions": [],
224 "endpoint": {
225 "url": "https://backup-gateway-fips.{Region}.{PartitionResult#dnsSuffix}",
226 "properties": {},
227 "headers": {}
228 },
229 "type": "endpoint"
230 }
231 ]
232 }
233 ]
234 },
235 {
236 "conditions": [],
237 "error": "FIPS is enabled but this partition does not support FIPS",
238 "type": "error"
239 }
240 ]
241 },
242 {
243 "conditions": [
244 {
245 "fn": "booleanEquals",
246 "argv": [
247 {
248 "ref": "UseDualStack"
249 },
250 true
251 ]
252 }
253 ],
254 "type": "tree",
255 "rules": [
256 {
257 "conditions": [
258 {
259 "fn": "booleanEquals",
260 "argv": [
261 true,
262 {
263 "fn": "getAttr",
264 "argv": [
265 {
266 "ref": "PartitionResult"
267 },
268 "supportsDualStack"
269 ]
270 }
271 ]
272 }
273 ],
274 "type": "tree",
275 "rules": [
276 {
277 "conditions": [],
278 "endpoint": {
279 "url": "https://backup-gateway.{Region}.{PartitionResult#dualStackDnsSuffix}",
280 "properties": {},
281 "headers": {}
282 },
283 "type": "endpoint"
284 }
285 ]
286 },
287 {
288 "conditions": [],
289 "error": "DualStack is enabled but this partition does not support DualStack",
290 "type": "error"
291 }
292 ]
293 },
294 {
295 "conditions": [],
296 "endpoint": {
297 "url": "https://backup-gateway.{Region}.{PartitionResult#dnsSuffix}",
298 "properties": {},
299 "headers": {}
300 },
301 "type": "endpoint"
302 }
303 ]
304 }
305 ]
306 }