Aws\Sdk::getEndpointPrefix PHP Method

getEndpointPrefix() public static method

Determine the endpoint prefix from a client namespace.
Deprecation: Use the `\Aws\manifest()` function instead.
public static getEndpointPrefix ( string $name ) : string
$name string Namespace name
return string
    public static function getEndpointPrefix($name)
    {
        return manifest($name)['endpoint'];
    }

Usage Example

Beispiel #1
0
 /**
  * Determine the endpoint prefix from a client namespace.
  *
  * @param string $name Namespace name
  * @return string
  * @internal
  * @deprecated Use the `\Aws\manifest()` function instead.
  * @static
  */
 public static function getEndpointPrefix($name)
 {
     return \Aws\Sdk::getEndpointPrefix($name);
 }