Class HostNameUtils
Utility class for parsing regions and services from URLs
Methods summary
-
public staticparseRegionName ( Guzzle\Http\Url $url )Parse the AWS region name from a URL
-
public staticparseServiceName ( Guzzle\Http\Url $url )Parse the AWS service name from a URL
Methods detail
Parse the AWS region name from a URL
Parameters
- $url
Guzzle\Http\Url
$url HTTP URL
Returns
stringLink
Parse the AWS service name from a URL
Parameters
- $url
Guzzle\Http\Url
$url HTTP URL
Returns
stringReturns a service name (or empty string)
Link
Magic methods summary
Constants summary
string |
DEFAULT_REGION |
'us-east-1' |
|
string |
DEFAULT_GOV_REGION |
'us-gov-west-1' |