getBucketVersioning
abstract suspend fun getBucketVersioning(input: GetBucketVersioningRequest): GetBucketVersioningResponse
This operation is not supported for directory buckets.
Returns the versioning state of a bucket.
To retrieve the versioning state of a bucket, you must be the bucket owner.
This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete status is enabled
, the bucket owner must use an authentication device to change the versioning state of the bucket.
The following operations are related to GetBucketVersioning
:
Samples
fun main() {
//sampleStart
// The following example retrieves bucket versioning configuration.
val resp = s3Client.getBucketVersioning {
bucket = "examplebucket"
}
//sampleEnd
}