Class PartitionEndpointProvider
Methods Summary
- __construct ( array $partitions, $defaultPartition = 'aws' )
- __invoke ( array $args = [] )
-
getPartition ( string $region, string $service )
Returns the partition containing the provided region or the default partition if no match is found.
-
getPartitionByName ( string $name )
Returns the partition with the provided name or null if no partition with the provided name can be found.
-
static
defaultProvider ( )
Creates and returns the default SDK partition provider.
-
static
mergePrefixData ( $data, $prefixData )
Copy endpoint data for other prefixes used by a given service
Methods Details
__construct ( array $partitions, $defaultPartition = 'aws' )
__invoke ( array $args = [] )
Aws\Endpoint\Partition
getPartition (
string
$region,
string
$service
)
Returns the partition containing the provided region or the default partition if no match is found.
Parameters
string | $region | |
string | $service |
Returns
Aws\Endpoint\Partition |
Aws\Endpoint\Partition
|null
getPartitionByName (
string
$name
)
Returns the partition with the provided name or null if no partition with the provided name can be found.
Parameters
string | $name |
Returns
Aws\Endpoint\Partition |null |
static
Aws\Endpoint\PartitionEndpointProvider
defaultProvider (
)
Creates and returns the default SDK partition provider.
Returns
Aws\Endpoint\PartitionEndpointProvider |
static array mergePrefixData ( $data, $prefixData )
Copy endpoint data for other prefixes used by a given service
Parameters
$data | ||
$prefixData |
Returns
array |