Debian Codegraph @

models/apis/kinesis-video-webrtc-storage/2018-05-10/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 "endpoint": {
169 "url": "https://kinesisvideo-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 "endpoint": {
221 "url": "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",
222 "properties": {},
223 "headers": {}
224 },
225 "type": "endpoint"
226 }
227 ]
228 },
229 {
230 "conditions": [],
231 "error": "FIPS is enabled but this partition does not support FIPS",
232 "type": "error"
233 }
234 ]
235 },
236 {
237 "conditions": [
238 {
239 "fn": "booleanEquals",
240 "argv": [
241 {
242 "ref": "UseDualStack"
243 },
244 true
245 ]
246 }
247 ],
248 "type": "tree",
249 "rules": [
250 {
251 "conditions": [
252 {
253 "fn": "booleanEquals",
254 "argv": [
255 true,
256 {
257 "fn": "getAttr",
258 "argv": [
259 {
260 "ref": "PartitionResult"
261 },
262 "supportsDualStack"
263 ]
264 }
265 ]
266 }
267 ],
268 "type": "tree",
269 "rules": [
270 {
271 "conditions": [],
272 "endpoint": {
273 "url": "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",
274 "properties": {},
275 "headers": {}
276 },
277 "type": "endpoint"
278 }
279 ]
280 },
281 {
282 "conditions": [],
283 "error": "DualStack is enabled but this partition does not support DualStack",
284 "type": "error"
285 }
286 ]
287 },
288 {
289 "conditions": [],
290 "endpoint": {
291 "url": "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",
292 "properties": {},
293 "headers": {}
294 },
295 "type": "endpoint"
296 }
297 ]
298 }
299 ]
300 }