deleteNotebook method

Future<void> deleteNotebook({
  1. required String notebookId,
})

Deletes the specified notebook.

May throw InternalServerException. May throw InvalidRequestException. May throw TooManyRequestsException.

Parameter notebookId : The ID of the notebook to delete.

Implementation

Future<void> deleteNotebook({
  required String notebookId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonAthena.DeleteNotebook'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'NotebookId': notebookId,
    },
  );
}