Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/valid-rules/eventbridge.json

raw symbols SCIP
1 {
2 "version": "1.3",
3 "parameters": {
4 "region": {
5 "type": "string",
6 "builtIn": "AWS::Region",
7 "required": true
8 },
9 "useDualStackEndpoint": {
10 "type": "boolean",
11 "builtIn": "AWS::UseDualStack"
12 },
13 "useFIPSEndpoint": {
14 "type": "boolean",
15 "builtIn": "AWS::UseFIPS"
16 },
17 "endpointId": {
18 "type": "string"
19 }
20 },
21 "rules": [
22 {
23 "conditions": [
24 {
25 "fn": "aws.partition",
26 "argv": [
27 {
28 "ref": "region"
29 }
30 ],
31 "assign": "partitionResult"
32 }
33 ],
34 "rules": [
35 {
36 "conditions": [
37 {
38 "fn": "isSet",
39 "argv": [
40 {
41 "ref": "endpointId"
42 }
43 ]
44 }
45 ],
46 "rules": [
47 {
48 "conditions": [
49 {
50 "fn": "isSet",
51 "argv": [
52 {
53 "ref": "useFIPSEndpoint"
54 }
55 ]
56 },
57 {
58 "fn": "booleanEquals",
59 "argv": [
60 {
61 "ref": "useFIPSEndpoint"
62 },
63 true
64 ]
65 }
66 ],
67 "error": "FIPS endpoints not supported with multi-region endpoints",
68 "type": "error"
69 },
70 {
71 "conditions": [
72 {
73 "fn": "not",
74 "argv": [
75 {
76 "fn": "isSet",
77 "argv": [
78 {
79 "ref": "useFIPSEndpoint"
80 }
81 ]
82 }
83 ]
84 },
85 {
86 "fn": "isSet",
87 "argv": [
88 {
89 "ref": "useDualStackEndpoint"
90 }
91 ]
92 },
93 {
94 "fn": "booleanEquals",
95 "argv": [
96 {
97 "ref": "useDualStackEndpoint"
98 },
99 true
100 ]
101 }
102 ],
103 "endpoint": {
104 "url": "https://{endpointId}.endpoint.events.{partitionResult#dualStackDnsSuffix}",
105 "properties": {
106 "authSchemes": [
107 {
108 "name": "sigv4a",
109 "signingName": "events",
110 "signingRegionSet": [
111 "*"
112 ]
113 }
114 ]
115 }
116 },
117 "type": "endpoint"
118 },
119 {
120 "conditions": [],
121 "endpoint": {
122 "url": "https://{endpointId}.endpoint.events.{partitionResult#dnsSuffix}",
123 "properties": {
124 "authSchemes": [
125 {
126 "name": "sigv4a",
127 "signingName": "events",
128 "signingRegionSet": [
129 "*"
130 ]
131 }
132 ]
133 }
134 },
135 "type": "endpoint"
136 }
137 ],
138 "type": "tree"
139 },
140 {
141 "conditions": [
142 {
143 "fn": "isValidHostLabel",
144 "argv": [
145 {
146 "ref": "region"
147 },
148 false
149 ]
150 }
151 ],
152 "rules": [
153 {
154 "conditions": [
155 {
156 "fn": "isSet",
157 "argv": [
158 {
159 "ref": "useFIPSEndpoint"
160 }
161 ]
162 },
163 {
164 "fn": "booleanEquals",
165 "argv": [
166 {
167 "ref": "useFIPSEndpoint"
168 },
169 true
170 ]
171 },
172 {
173 "fn": "not",
174 "argv": [
175 {
176 "fn": "isSet",
177 "argv": [
178 {
179 "ref": "useDualStackEndpoint"
180 }
181 ]
182 }
183 ]
184 }
185 ],
186 "endpoint": {
187 "url": "https://events-fips.{region}.{partitionResult#dnsSuffix}",
188 "properties": {
189 "authSchemes": [
190 {
191 "name": "sigv4a",
192 "signingName": "events",
193 "signingRegionSet": [
194 "*"
195 ]
196 }
197 ]
198 }
199 },
200 "type": "endpoint"
201 },
202 {
203 "conditions": [
204 {
205 "fn": "isSet",
206 "argv": [
207 {
208 "ref": "useDualStackEndpoint"
209 }
210 ]
211 },
212 {
213 "fn": "booleanEquals",
214 "argv": [
215 {
216 "ref": "useDualStackEndpoint"
217 },
218 true
219 ]
220 },
221 {
222 "fn": "not",
223 "argv": [
224 {
225 "fn": "isSet",
226 "argv": [
227 {
228 "ref": "useFIPSEndpoint"
229 }
230 ]
231 }
232 ]
233 }
234 ],
235 "endpoint": {
236 "url": "https://events.{region}.{partitionResult#dualStackDnsSuffix}",
237 "properties": {
238 "authSchemes": [
239 {
240 "name": "sigv4a",
241 "signingName": "events",
242 "signingRegionSet": [
243 "*"
244 ]
245 }
246 ]
247 }
248 },
249 "type": "endpoint"
250 },
251 {
252 "conditions": [
253 {
254 "fn": "isSet",
255 "argv": [
256 {
257 "ref": "useDualStackEndpoint"
258 }
259 ]
260 },
261 {
262 "fn": "isSet",
263 "argv": [
264 {
265 "ref": "useFIPSEndpoint"
266 }
267 ]
268 },
269 {
270 "fn": "booleanEquals",
271 "argv": [
272 {
273 "ref": "useDualStackEndpoint"
274 },
275 true
276 ]
277 },
278 {
279 "fn": "booleanEquals",
280 "argv": [
281 {
282 "ref": "useFIPSEndpoint"
283 },
284 true
285 ]
286 }
287 ],
288 "endpoint": {
289 "url": "https://events-fips.{region}.{partitionResult#dualStackDnsSuffix}",
290 "properties": {
291 "authSchemes": [
292 {
293 "name": "sigv4a",
294 "signingName": "events",
295 "signingRegionSet": [
296 "*"
297 ]
298 }
299 ]
300 }
301 },
302 "type": "endpoint"
303 },
304 {
305 "conditions": [],
306 "endpoint": {
307 "url": "https://events.{region}.{partitionResult#dnsSuffix}"
308 },
309 "type": "endpoint"
310 }
311 ],
312 "type": "tree"
313 },
314 {
315 "conditions": [],
316 "error": "{region} is not a valid HTTP host-label",
317 "type": "error"
318 }
319 ],
320 "type": "tree"
321 }
322 ]
323 }