Example
AWS.S3.TS3ObjectNotExistsWaiter.Wait
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.