AWS.S3.TS3ObjectNotExistsWaiter.Wait

Wait for an object to not 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 := TSObjectNotExistsWaiter.Create(S3); if Waiter.Wait('a-bucket-name', 'a-object-key').IsSuccessful then begin // Object does not exist. end; end;
Copyright © 2019-2021 Appercept Ltd. All rights reserved.