| 1 | { |
| 2 | "version": "1.3", |
| 3 | "parameters": { |
| 4 | "Bucket": { |
| 5 | "type": "string" |
| 6 | } |
| 7 | }, |
| 8 | "rules": [ |
| 9 | { |
| 10 | "documentation": "bucket is set, handle bucket specific endpoints", |
| 11 | "conditions": [ |
| 12 | { |
| 13 | "fn": "isSet", |
| 14 | "argv": [ |
| 15 | { |
| 16 | "ref": "Bucket" |
| 17 | } |
| 18 | ] |
| 19 | }, |
| 20 | { |
| 21 | "fn": "aws.parseArn", |
| 22 | "argv": [ |
| 23 | { |
| 24 | "ref": "Bucket" |
| 25 | } |
| 26 | ], |
| 27 | "assign": "bucketArn" |
| 28 | }, |
| 29 | { |
| 30 | "fn": "getAttr", |
| 31 | "argv": [ |
| 32 | { |
| 33 | "ref": "bucketArn" |
| 34 | }, |
| 35 | "resourceId[2]" |
| 36 | ], |
| 37 | "assign": "outpostId" |
| 38 | } |
| 39 | ], |
| 40 | "endpoint": { |
| 41 | "url": "https://{bucketArn#accountId}.{outpostId}.{bucketArn#region}" |
| 42 | }, |
| 43 | "type": "endpoint" |
| 44 | } |
| 45 | ] |
| 46 | } |