| 1 | { |
| 2 | "parameters": { |
| 3 | "Region": { |
| 4 | "type": "string", |
| 5 | "builtIn": "AWS::Region", |
| 6 | "documentation": "The region to dispatch this request, eg. `us-east-1`." |
| 7 | } |
| 8 | }, |
| 9 | "rules": [ |
| 10 | { |
| 11 | "documentation": "Template the region into the URI when region is set", |
| 12 | "conditions": [ |
| 13 | { |
| 14 | "fn": "isSet", |
| 15 | "argv": [ |
| 16 | { |
| 17 | "ref": "Region" |
| 18 | } |
| 19 | ] |
| 20 | } |
| 21 | ], |
| 22 | "endpoint": { |
| 23 | "url": "https://{Region}.amazonaws.com", |
| 24 | "headers": { |
| 25 | "x-amz-region": [ |
| 26 | "{Region}" |
| 27 | ], |
| 28 | "x-amz-multi": [ |
| 29 | "*", |
| 30 | "{Region}" |
| 31 | ] |
| 32 | } |
| 33 | }, |
| 34 | "type": "endpoint" |
| 35 | }, |
| 36 | { |
| 37 | "documentation": "fallback when region is unset", |
| 38 | "conditions": [], |
| 39 | "error": "Region must be set to resolve a valid endpoint", |
| 40 | "type": "error" |
| 41 | } |
| 42 | ], |
| 43 | "version": "1.3" |
| 44 | } |