| 1 | { |
| 2 | "parameters": { |
| 3 | "Region": { |
| 4 | "type": "string", |
| 5 | "builtIn": "AWS::Region", |
| 6 | "required": true |
| 7 | } |
| 8 | }, |
| 9 | "rules": [ |
| 10 | { |
| 11 | "documentation": "override rule for the local pseduo region", |
| 12 | "conditions": [ |
| 13 | { |
| 14 | "fn": "stringEquals", |
| 15 | "argv": [ |
| 16 | "local", |
| 17 | "{Region}" |
| 18 | ] |
| 19 | } |
| 20 | ], |
| 21 | "endpoint": { |
| 22 | "url": "http://localhost:8080" |
| 23 | }, |
| 24 | "type": "endpoint" |
| 25 | }, |
| 26 | { |
| 27 | "documentation": "base rule", |
| 28 | "conditions": [], |
| 29 | "endpoint": { |
| 30 | "url": "https://{Region}.someservice.amazonaws.com" |
| 31 | }, |
| 32 | "type": "endpoint" |
| 33 | } |
| 34 | ], |
| 35 | "version": "1.3" |
| 36 | } |