exists

abstract fun exists(name: BucketName): Boolean

Tests for the existence of a bucket with the given name.

Return

true if the target bucket exists, otherwise false.

Parameters

name

Name of the bucket to test for.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun exists(name: BucketName, action: BucketExistsParams.() -> Unit): Boolean

Tests for the existence of a bucket with the operation configured by the given action.

Return

true if the target bucket exists, otherwise false.

Parameters

action

Action to configure the S3 operation.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun exists(name: BucketName, params: BucketExistsParams): Boolean

Tests for the existence of a bucket with the operation configured by the given params.

Return

true if the target bucket exists, otherwise false.

Parameters

params

S3 operation parameters.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.