AWS.S3.TS3ObjectExistsWaiter.Wait

Wait for an object to exist.

function Wait(const ARequest: IS3HeadObjectRequest): IS3HeadObjectResponse; overload;
__fastcall IS3HeadObjectResponse Wait(const IS3HeadObjectRequest ARequest);

File: AWS.S3.pas 

Namespace: AWS.S3 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ARequest: IS3HeadObjectRequest
A HeadObject request object.

Response containing HeadObject results.

var S3: IS3Client; HeadRequest: IS3HeadObjectRequest; Waiter: IS3ObjectWaiter; begin S3 := TS3Client.Create; HeadRequest := TS3HeadObjectRequest.Create('a-bucket-name', 'a-object-key'); Waiter := TSObjectExistsWaiter.Create(S3); Waiter.Wait(HeadRequest).IsSuccessful then begin // Object exists. end; end;
Copyright © 2019-2021 Appercept Ltd. All rights reserved.