| 1 | <?php |
| 2 | namespace Aws\Arn; |
| 3 | |
| 4 | /** |
| 5 | * Amazon Resource Names (ARNs) uniquely identify AWS resources. Classes |
| 6 | * implementing ArnInterface parse and store an ARN object representation. |
| 7 | * |
| 8 | * Valid ARN formats include: |
| 9 | * |
| 10 | * arn:partition:service:region:account-id:resource-id |
| 11 | * arn:partition:service:region:account-id:resource-type/resource-id |
| 12 | * arn:partition:service:region:account-id:resource-type:resource-id |
| 13 | * |
| 14 | * Some components may be omitted, depending on the service and resource type. |
| 15 | * |
| 16 | * @internal |
| 17 | */ |
| 18 | interface ArnInterface |
| 19 | { |
| 20 | public static function parse($string); |
| 21 | |
| 22 | public function __toString(); |
| 23 | |
| 24 | public function getPrefix(); |
| 25 | |
| 26 | public function getPartition(); |
| 27 | |
| 28 | public function getService(); |
| 29 | |
| 30 | public function getRegion(); |
| 31 | |
| 32 | public function getAccountId(); |
| 33 | |
| 34 | public function getResource(); |
| 35 | |
| 36 | public function toArray(); |
| 37 | } |