Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SDK for PHP 3.x

SignatureInterface
in

Interface used to provide interchangeable strategies for signing requests using the various AWS signature protocols.

Table of Contents

Methods

presign()  : RequestInterface
Create a pre-signed request.
signRequest()  : RequestInterface
Signs the specified request with an AWS signing protocol by using the provided AWS account credentials and adding the required headers to the request.

Methods

presign()

Create a pre-signed request.

public presign(RequestInterface $request, CredentialsInterface $credentials, int|string|DateTimeInterface $expires[, array<string|int, mixed> $options = [] ]) : RequestInterface
Parameters
$request : RequestInterface

Request to sign

$credentials : CredentialsInterface

Credentials used to sign

$expires : int|string|DateTimeInterface

The time at which the URL should expire. This can be a Unix timestamp, a PHP DateTime object, or a string that can be evaluated by strtotime.

$options : array<string|int, mixed> = []
Return values
RequestInterface
On this page