aws.s3control.get_bucket_versioning
Example SQL Queries
SELECT * FROMaws.s3control.get_bucket_versioningWHERE"account_id" = 'VALUE'AND "bucket" = 'VALUE';Description
This operation returns the versioning state for S3 on Outposts buckets only. To return the versioning state for an S3 bucket, see GetBucketVersioning in the Amazon S3 API Reference.
Returns the versioning state for an S3 on Outposts bucket. With S3 Versioning, you can save multiple distinct copies of your objects and recover from unintended user actions and application failures.
If you’ve never set versioning on your bucket, it has no versioning state. In that case, the GetBucketVersioning request does not return a versioning state value.
For more information about versioning, see Versioning in the Amazon S3 User Guide.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived by using the access point ARN, see the Examples section.
Table Definition
| Column Name | Column Data Type |
|---|---|
| account_id Required Input Column The Amazon Web Services account ID of the S3 on Outposts bucket. | VARCHAR |
| bucket Required Input Column The S3 on Outposts bucket to return the versioning state for. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| mfa_delete Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is returned only if the bucket has been configured with MFA delete. If MFA delete has never been configured for the bucket, this element is not returned. | VARCHAR |
| status The versioning state of the S3 on Outposts bucket. | VARCHAR |