| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Endpoint; |
| 4 |
|
| 5 |
/** |
| 6 |
* Represents a section of the AWS cloud. |
| 7 |
*/ |
| 8 |
interface PartitionInterface |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Returns the partition's short name, e.g., 'aws,' 'aws-cn,' or |
| 12 |
* 'aws-us-gov.' |
| 13 |
* |
| 14 |
* @return string |
| 15 |
*/ |
| 16 |
public function getName(); |
| 17 |
/** |
| 18 |
* Determine if this partition contains the provided region. Include the |
| 19 |
* name of the service to inspect non-regional endpoints |
| 20 |
* |
| 21 |
* @param string $region |
| 22 |
* @param string $service |
| 23 |
* |
| 24 |
* @return bool |
| 25 |
*/ |
| 26 |
public function isRegionMatch($region, $service); |
| 27 |
/** |
| 28 |
* Return the endpoints supported by a given service. |
| 29 |
* |
| 30 |
* @param string $service Identifier of the service |
| 31 |
* whose endpoints should be |
| 32 |
* listed (e.g., 's3' or 'ses') |
| 33 |
* @param bool $allowNonRegionalEndpoints Set to `true` to include |
| 34 |
* endpoints that are not AWS |
| 35 |
* regions (e.g., 'local' for |
| 36 |
* DynamoDB or |
| 37 |
* 'fips-us-gov-west-1' for S3) |
| 38 |
* |
| 39 |
* @return string[] |
| 40 |
*/ |
| 41 |
public function getAvailableEndpoints($service, $allowNonRegionalEndpoints = \false); |
| 42 |
/** |
| 43 |
* A partition must be invokable as an endpoint provider. |
| 44 |
* |
| 45 |
* @see EndpointProvider |
| 46 |
* |
| 47 |
* @param array $args |
| 48 |
* @return array |
| 49 |
*/ |
| 50 |
public function __invoke(array $args = []); |
| 51 |
} |
| 52 |
|