deleteWorkspace method

Future<DeleteWorkspaceResponse> deleteWorkspace({
  1. required String workspaceId,
})

Deletes an Amazon Managed Grafana workspace.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter workspaceId : The ID of the workspace to delete.

Implementation

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