removeAllResourcePermissions method
Removes all the permissions from the specified resource.
May throw FailedDependencyException.
May throw ServiceUnavailableException.
May throw UnauthorizedOperationException.
May throw UnauthorizedResourceAccessException.
Parameter resourceId :
The ID of the resource.
Parameter authenticationToken :
Amazon WorkDocs authentication token. Not required when using Amazon Web
Services administrator credentials to access the API.
Implementation
Future<void> removeAllResourcePermissions({
required String resourceId,
String? authenticationToken,
}) async {
final headers = <String, String>{
if (authenticationToken != null)
'Authentication': authenticationToken.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/api/v1/resources/${Uri.encodeComponent(resourceId)}/permissions',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}