service ()

The service ID to use in the signature.

Access

protected

Returns

Type

Description

return

The service ID.

Source

Method defined in authentication/signature_v4query.class.php | Toggle source view (11 lines) | View on GitHub

protected function service()
{
    $endpoint = str_replace(array('http://', 'https://'), '', $this->endpoint);

    if (isset(self::$endpoint_map[$endpoint])) {
        return self::$endpoint_map[$endpoint]['service'];
    }

    $pieces = explode('.', $endpoint);
    return $pieces[0];
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback