AWS.S3.IS3Presigner.PresignedRequest

Pre-sign an HTTP request.

function PresignedRequest(const ARequest: IS3PresignerRequest): IHTTPRequest;
__fastcall IHTTPRequest PresignedRequest(const IS3PresignerRequest ARequest);

File: AWS.S3.pas 

Namespace: AWS.S3 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ARequest: IS3PresignerRequest
Specifies the S3 request to pre-sign.

A HTTP request presigned for execution.

// Build an S3 Request. var GetObjectRequest := TS3GetObjectRequest.Create('my-bucket', 'my-object') as IS3GetObjectRequest; // Build the Presigner and Request var Presigner := TS3Presigner.Create as IS3Presigner; var PresignerRequest := TS3PresignerRequest.Create(GetObjectRequest) as IS3PresignerRequest; Specify any options such as ExpiresIn. PresignerRequest.ExpiresIn := 604800; // 1 Week // Presign the request. var PresignedRequest := Presigner.PresignedRequest(PresignerRequest);
Copyright © 2019-2021 Appercept Ltd. All rights reserved.