Class HostNameUtils
Utility class for parsing regions and services from URLs
Methods summary
-
public static
parseRegionName ( Guzzle\Http\Url $url )
Parse the AWS region name from a URL
-
public static
parseServiceName ( 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
string
Link
Parse the AWS service name from a URL
Parameters
- $url
Guzzle\Http\Url
$url HTTP URL
Returns
string
Returns 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' |