NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface EndpointSignatureInterface

Interface for signatures that use specific region and service names when signing requests.

  Aws\Common\Signature\EndpointSignatureInterface implements Aws\Common\Signature\SignatureInterface

### Direct known implementers

`Aws\Common\Signature\SignatureV4`

### Indirect known implementers

`Aws\S3\S3SignatureV4`

Namespace: Aws\Common\Signature
Located at Aws/Common/Signature/EndpointSignatureInterface.php

## Methods summary

- `public` `setServiceName ( string $service )`

  Set the service name instead of inferring it from a request URL

- `public` `setRegionName ( string $region )`

  Set the region name instead of inferring it from a request URL

## Methods detail

# `public `Aws\Common\Signature\EndpointSignatureInterface``
`setServiceName( string $service )`

Set the service name instead of inferring it from a request URL

#### Parameters

$service
  `string`
  $service Name of the service used when signing

#### Returns

``Aws\Common\Signature\EndpointSignatureInterface``
# `public `Aws\Common\Signature\EndpointSignatureInterface``
`setRegionName( string $region )`

Set the region name instead of inferring it from a request URL

#### Parameters

$region
  `string`
  $region Name of the region used when signing

#### Returns

``Aws\Common\Signature\EndpointSignatureInterface``

### Methods inherited from Aws\Common\Signature\SignatureInterface

`createPresignedUrl()`, `signRequest()`

### Magic methods summary