deleteAccessGrantsInstanceResourcePolicy method
Deletes the resource policy of the S3 Access Grants instance. The resource policy is used to manage cross-account access to your S3 Access Grants instance. By deleting the resource policy, you delete any cross-account permissions to your S3 Access Grants instance.
- Permissions
-
You must have the
s3:DeleteAccessGrantsInstanceResourcePolicypermission to use this operation.
Parameter accountId :
The Amazon Web Services account ID of the S3 Access Grants instance.
Implementation
Future<void> deleteAccessGrantsInstanceResourcePolicy({
required String accountId,
}) async {
final headers = <String, String>{
'x-amz-account-id': accountId.toString(),
};
await _protocol.send(
method: 'DELETE',
requestUri: '/v20180820/accessgrantsinstance/resourcepolicy',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}