PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Endpoint / PartitionInterface.php

PartitionInterface.php in Media Cloud Sync 1.4.1, at includes/sdk/s3/Aws/Endpoint/PartitionInterface.php

52 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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