describeWorkspace method

Future<DescribeWorkspaceResponse> describeWorkspace({
  1. required String workspaceName,
})

Retrieves information about a workspace.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter workspaceName : The name of the workspace.

Implementation

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