|
1 | 1 | {
|
2 | 2 | "version": "1.0",
|
3 | 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 | 4 | "UseDualStack": {
|
11 | 5 | "builtIn": "AWS::UseDualStack",
|
12 | 6 | "required": true,
|
|
26 | 20 | "required": false,
|
27 | 21 | "documentation": "Override the endpoint used to send this request",
|
28 | 22 | "type": "String"
|
| 23 | + }, |
| 24 | + "Region": { |
| 25 | + "builtIn": "AWS::Region", |
| 26 | + "required": false, |
| 27 | + "documentation": "The AWS region used to dispatch the request.", |
| 28 | + "type": "String" |
29 | 29 | }
|
30 | 30 | },
|
31 | 31 | "rules": [
|
|
177 | 177 | "rules": [
|
178 | 178 | {
|
179 | 179 | "conditions": [],
|
180 |
| - "rules": [ |
181 |
| - { |
182 |
| - "conditions": [], |
183 |
| - "endpoint": { |
184 |
| - "url": "https://tax-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", |
185 |
| - "properties": {}, |
186 |
| - "headers": {} |
187 |
| - }, |
188 |
| - "type": "endpoint" |
189 |
| - } |
190 |
| - ], |
191 |
| - "type": "tree" |
| 180 | + "endpoint": { |
| 181 | + "url": "https://tax-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", |
| 182 | + "properties": { |
| 183 | + "authSchemes": [ |
| 184 | + { |
| 185 | + "name": "sigv4", |
| 186 | + "signingRegion": "{PartitionResult#implicitGlobalRegion}" |
| 187 | + } |
| 188 | + ] |
| 189 | + }, |
| 190 | + "headers": {} |
| 191 | + }, |
| 192 | + "type": "endpoint" |
192 | 193 | }
|
193 | 194 | ],
|
194 | 195 | "type": "tree"
|
|
211 | 212 | },
|
212 | 213 | true
|
213 | 214 | ]
|
| 215 | + }, |
| 216 | + { |
| 217 | + "fn": "booleanEquals", |
| 218 | + "argv": [ |
| 219 | + { |
| 220 | + "ref": "UseDualStack" |
| 221 | + }, |
| 222 | + false |
| 223 | + ] |
214 | 224 | }
|
215 | 225 | ],
|
216 | 226 | "rules": [
|
|
235 | 245 | "rules": [
|
236 | 246 | {
|
237 | 247 | "conditions": [],
|
238 |
| - "rules": [ |
239 |
| - { |
240 |
| - "conditions": [], |
241 |
| - "endpoint": { |
242 |
| - "url": "https://tax-fips.{Region}.{PartitionResult#dnsSuffix}", |
243 |
| - "properties": {}, |
244 |
| - "headers": {} |
245 |
| - }, |
246 |
| - "type": "endpoint" |
247 |
| - } |
248 |
| - ], |
249 |
| - "type": "tree" |
| 248 | + "endpoint": { |
| 249 | + "url": "https://tax-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", |
| 250 | + "properties": { |
| 251 | + "authSchemes": [ |
| 252 | + { |
| 253 | + "name": "sigv4", |
| 254 | + "signingRegion": "{PartitionResult#implicitGlobalRegion}" |
| 255 | + } |
| 256 | + ] |
| 257 | + }, |
| 258 | + "headers": {} |
| 259 | + }, |
| 260 | + "type": "endpoint" |
250 | 261 | }
|
251 | 262 | ],
|
252 | 263 | "type": "tree"
|
|
261 | 272 | },
|
262 | 273 | {
|
263 | 274 | "conditions": [
|
| 275 | + { |
| 276 | + "fn": "booleanEquals", |
| 277 | + "argv": [ |
| 278 | + { |
| 279 | + "ref": "UseFIPS" |
| 280 | + }, |
| 281 | + false |
| 282 | + ] |
| 283 | + }, |
264 | 284 | {
|
265 | 285 | "fn": "booleanEquals",
|
266 | 286 | "argv": [
|
|
293 | 313 | "rules": [
|
294 | 314 | {
|
295 | 315 | "conditions": [],
|
296 |
| - "rules": [ |
297 |
| - { |
298 |
| - "conditions": [], |
299 |
| - "endpoint": { |
300 |
| - "url": "https://tax.{Region}.{PartitionResult#dualStackDnsSuffix}", |
301 |
| - "properties": {}, |
302 |
| - "headers": {} |
303 |
| - }, |
304 |
| - "type": "endpoint" |
305 |
| - } |
306 |
| - ], |
307 |
| - "type": "tree" |
| 316 | + "endpoint": { |
| 317 | + "url": "https://tax.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", |
| 318 | + "properties": { |
| 319 | + "authSchemes": [ |
| 320 | + { |
| 321 | + "name": "sigv4", |
| 322 | + "signingRegion": "{PartitionResult#implicitGlobalRegion}" |
| 323 | + } |
| 324 | + ] |
| 325 | + }, |
| 326 | + "headers": {} |
| 327 | + }, |
| 328 | + "type": "endpoint" |
308 | 329 | }
|
309 | 330 | ],
|
310 | 331 | "type": "tree"
|
|
319 | 340 | },
|
320 | 341 | {
|
321 | 342 | "conditions": [],
|
322 |
| - "rules": [ |
323 |
| - { |
324 |
| - "conditions": [], |
325 |
| - "endpoint": { |
326 |
| - "url": "https://tax.{Region}.{PartitionResult#dnsSuffix}", |
327 |
| - "properties": {}, |
328 |
| - "headers": {} |
329 |
| - }, |
330 |
| - "type": "endpoint" |
331 |
| - } |
332 |
| - ], |
333 |
| - "type": "tree" |
| 343 | + "endpoint": { |
| 344 | + "url": "https://tax.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", |
| 345 | + "properties": { |
| 346 | + "authSchemes": [ |
| 347 | + { |
| 348 | + "name": "sigv4", |
| 349 | + "signingRegion": "{PartitionResult#implicitGlobalRegion}" |
| 350 | + } |
| 351 | + ] |
| 352 | + }, |
| 353 | + "headers": {} |
| 354 | + }, |
| 355 | + "type": "endpoint" |
334 | 356 | }
|
335 | 357 | ],
|
336 | 358 | "type": "tree"
|
|
0 commit comments