@aws-sdk/client-s3
Version:
AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native
15 lines (14 loc) • 734 B
TypeScript
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
import { type HeadBucketCommandInput } from "../commands/HeadBucketCommand";
import type { S3Client } from "../S3Client";
/**
*
* @deprecated Use waitUntilBucketExists instead. waitForBucketExists does not throw error in non-success cases.
*/
export declare const waitForBucketExists: (params: WaiterConfiguration<S3Client>, input: HeadBucketCommandInput) => Promise<WaiterResult>;
/**
*
* @param params - Waiter configuration options.
* @param input - The input to HeadBucketCommand for polling.
*/
export declare const waitUntilBucketExists: (params: WaiterConfiguration<S3Client>, input: HeadBucketCommandInput) => Promise<WaiterResult>;