getBucketAbac method
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.
Parameter bucket :
The name of the general purpose bucket.
Parameter expectedBucketOwner :
The Amazon Web Services account ID of the general purpose bucket's owner.
Implementation
Future<GetBucketAbacOutput> getBucketAbac({
required String bucket,
String? expectedBucketOwner,
}) async {
final headers = <String, String>{
if (expectedBucketOwner != null)
'x-amz-expected-bucket-owner': expectedBucketOwner.toString(),
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/${Uri.encodeComponent(bucket)}?abac',
headers: headers,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetBucketAbacOutput(
abacStatus: AbacStatus.fromXml($elem),
);
}