AWS.S3.IS3Presigner.PresignedUrl

Pre-sign a URL of a request.

function PresignedUrl(const ARequest: IS3PresignerRequest): string;
__fastcall AnsiString PresignedUrl(const IS3PresignerRequest ARequest);

File: AWS.S3.pas 

Namespace: AWS.S3 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ARequest: IS3PresignerRequest
Param1Description

Specifies the S3 request to pre-sign.

// 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 URL var PresignedUrl := Presigner.PresignedUrl(PresignerRequest);
Copyright © 2019-2021 Appercept Ltd. All rights reserved.