AWS.S3.TS3ObjectExistsWaiter.Wait

Wait for an object to exist.

function Wait(const ABucket: string; const AKey: string): IS3HeadObjectResponse; overload;
__fastcall IS3HeadObjectResponse Wait(const AnsiString ABucket, const AnsiString AKey);

File: AWS.S3.pas 

Namespace: AWS.S3 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ABucket: string
The name of the object's bucket.
const AKey: string
The object's key.

Response containing HeadObject results.

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