Skip to main content

bucket_abacs

Creates, updates, deletes, gets or lists a bucket_abacs resource.

Overview

Namebucket_abacs
TypeResource
Idaws.s3.bucket_abacs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
statusstringThe ABAC status of the general purpose bucket.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bucket_abacselectbucket, regionx-amz-expected-bucket-ownerReturns the attribute-based access control (ABAC) property of the general purpose bucket. If ABAC is enabled on your bucket, you can use tags on the bucket for access control. For more information, see Enabling ABAC in general purpose buckets.
put_bucket_abacreplacebucket, region, AbacStatusContent-MD5, x-amz-sdk-checksum-algorithm, x-amz-expected-bucket-ownerSets the attribute-based access control (ABAC) property of the general purpose bucket. You must have s3:PutBucketABAC permission to perform this action. When you enable ABAC, you can use tags for access control on your buckets. Additionally, when ABAC is enabled, you must use the TagResource and UntagResource actions to manage tags on your buckets. You can nolonger use the PutBucketTagging and DeleteBucketTagging actions to tag your bucket. For more information, see Enabling ABAC in general purpose buckets.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketstringThe name of the general purpose bucket.
regionstringAWS region (default: us-east-1)
Content-MD5stringThe MD5 hash of the PutBucketAbac request body. For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
x-amz-expected-bucket-ownerstringThe Amazon Web Services account ID of the general purpose bucket's owner.
x-amz-sdk-checksum-algorithmstringIndicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

SELECT examples

Returns the attribute-based access control (ABAC) property of the general purpose bucket. If ABAC is enabled on your bucket, you can use tags on the bucket for access control. For more information, see Enabling ABAC in general purpose buckets.

SELECT
status
FROM aws.s3.bucket_abacs
WHERE bucket = '{{ bucket }}' -- required
AND region = '{{ region }}' -- required
AND `x-amz-expected-bucket-owner` = '{{ x-amz-expected-bucket-owner }}'
;

REPLACE examples

Sets the attribute-based access control (ABAC) property of the general purpose bucket. You must have s3:PutBucketABAC permission to perform this action. When you enable ABAC, you can use tags for access control on your buckets. Additionally, when ABAC is enabled, you must use the TagResource and UntagResource actions to manage tags on your buckets. You can nolonger use the PutBucketTagging and DeleteBucketTagging actions to tag your bucket. For more information, see Enabling ABAC in general purpose buckets.

REPLACE aws.s3.bucket_abacs
SET
AbacStatus = '{{ AbacStatus }}'
WHERE
bucket = '{{ bucket }}' --required
AND region = '{{ region }}' --required
AND AbacStatus = '{{ AbacStatus }}' --required
AND `Content-MD5` = '{{ Content-MD5}}'
AND `x-amz-sdk-checksum-algorithm` = '{{ x-amz-sdk-checksum-algorithm}}'
AND `x-amz-expected-bucket-owner` = '{{ x-amz-expected-bucket-owner}}';