interface Catalog

Methods

getServiceUrl (string $name, string $type, string $region, string $urlType)

Attempts to retrieve the base URL for a service from the catalog according to the arguments provided.

Details

getServiceUrl(string $name, string $type, string $region, string $urlType)

Attempts to retrieve the base URL for a service from the catalog according to the arguments provided.

Parameters

$name string The name of the service as it appears in the catalog
$type string The type of the service as it appears in the catalog
$region string The region of the service as it appears in the catalog
$urlType string The URL type of the service as it appears in the catalog

Exceptions

RuntimeException If no endpoint is matched

Example code

$catalog->getServiceUrl($name, $type, $region, $urlType);