list

abstract fun list(): BucketList

Fetches a list of all buckets available on the target S3 instance.

Return

A list of S3 bucket wrappers.

Throws

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


abstract fun list(action: BucketListParams.() -> Unit): BucketList

Fetches a list of all buckets available on the target S3 instance.

Return

A list of S3 bucket wrappers.

Parameters

action

Action used to configure the 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.


abstract fun list(params: BucketListParams): BucketList

Fetches a list of all buckets available on the target S3 instance.

Return

A list of S3 bucket wrappers.

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.