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 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.

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.