disassociateWorkspace method
Removes the association between a workspace and one or more users or routing profiles.
May throw AccessDeniedException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter instanceId :
The identifier of the Amazon Connect instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter resourceArns :
The Amazon Resource Names (ARNs) of the resources to disassociate from the
workspace.
Parameter workspaceId :
The identifier of the workspace.
Implementation
Future<DisassociateWorkspaceResponse> disassociateWorkspace({
required String instanceId,
required List<String> resourceArns,
required String workspaceId,
}) async {
final $payload = <String, dynamic>{
'ResourceArns': resourceArns,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/workspaces/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(workspaceId)}/disassociate',
exceptionFnMap: _exceptionFns,
);
return DisassociateWorkspaceResponse.fromJson(response);
}