AWS.S3.TS3BucketNotExistsWaiter.Wait

Wait for a bucket to not exist.

function Wait(const ABucket: string; const AExpectedBucketOwner: string = ''): IS3HeadBucketResponse;
__fastcall IS3HeadBucketResponse Wait(const AnsiString ABucket, const AnsiString AExpectedBucketOwner = '');

File: AWS.S3.pas 

Namespace: AWS.S3 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ABucket: string
A bucket name.
const AExpectedBucketOwner: string = ''
The expected bucket owner for the request.

Response containing HeadBucket results.

var S3: IS3Client; Waiter: IS3BucketWaiter; begin S3 := TS3Client.Create; Waiter := TSBucketNotExistsWaiter.Create(S3); Waiter.Wait('a-bucket-name').IsSuccessful then begin // Bucket does not exist. end; end;
Copyright © 2019-2021 Appercept Ltd. All rights reserved.