s3_get_bucket_versioning: Returns the versioning state of a bucket
Description
Returns the versioning state of a bucket.
Usage
s3_get_bucket_versioning(Bucket)
Arguments
Bucket
[required] The name of the bucket for which to get the versioning information.
Request syntax
svc$get_bucket_versioning(
Bucket = "string"
)
Details
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:
# NOT RUN {# The following example retrieves bucket versioning configuration.# }# NOT RUN {svc$get_bucket_versioning(
Bucket = "examplebucket")
# }# NOT RUN {# }