S3 / Client / get_bucket_abac
get_bucket_abac¶
- S3.Client.get_bucket_abac(**kwargs)¶
Returns the attribute-based access control (ABAC) property of the general purpose bucket. If the bucket ABAC is enabled, you can use tags for bucket access control. For more information, see Enabling ABAC in general purpose buckets. Whether ABAC is enabled or disabled, you can use tags for cost tracking. For more information, see Using tags with S3 general purpose buckets.
See also: AWS API Documentation
Request Syntax
response = client.get_bucket_abac( Bucket='string', ExpectedBucketOwner='string' )
- Parameters:
Bucket (string) –
[REQUIRED]
The name of the general purpose bucket.
ExpectedBucketOwner (string) – The Amazon Web Services account ID of the general purpose bucket’s owner.
- Return type:
dict
- Returns:
Response Syntax
{ 'AbacStatus': { 'Status': 'Enabled'|'Disabled' } }
Response Structure
(dict) –
AbacStatus (dict) –
The ABAC status of the general purpose bucket.
Status (string) –
The ABAC status of the general purpose bucket.