disassociateDelegateFromResource method
Removes a member from the resource's set of delegates.
May throw EntityNotFoundException.
May throw EntityStateException.
May throw InvalidParameterException.
May throw OrganizationNotFoundException.
May throw OrganizationStateException.
May throw UnsupportedOperationException.
Parameter entityId :
The identifier for the member (user, group) to be removed from the
resource's delegates.
The entity ID can accept UserId or GroupID, Username or Groupname, or email.
- Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
- Email address: entity@domain.tld
- Entity: entity
Parameter organizationId :
The identifier for the organization under which the resource exists.
Parameter resourceId :
The identifier of the resource from which delegates' set members are
removed.
The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:
- Resource ID: r-0123456789a0123456789b0123456789
- Email address: resource@domain.tld
- Resource name: resource
Implementation
Future<void> disassociateDelegateFromResource({
required String entityId,
required String organizationId,
required String resourceId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.DisassociateDelegateFromResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EntityId': entityId,
'OrganizationId': organizationId,
'ResourceId': resourceId,
},
);
}