describeWorkspace method

Future<DescribeWorkspaceResponse> describeWorkspace({
  1. required String instanceId,
  2. required String workspaceId,
})

Retrieves details about a workspace, including its configuration and metadata.

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 workspaceId : The identifier of the workspace.

Implementation

Future<DescribeWorkspaceResponse> describeWorkspace({
  required String instanceId,
  required String workspaceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/workspaces/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(workspaceId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeWorkspaceResponse.fromJson(response);
}