getNotebookMetadata method
Retrieves notebook metadata for the specified notebook ID.
May throw InternalServerException.
May throw InvalidRequestException.
May throw TooManyRequestsException.
Parameter notebookId :
The ID of the notebook whose metadata is to be retrieved.
Implementation
Future<GetNotebookMetadataOutput> getNotebookMetadata({
required String notebookId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetNotebookMetadata'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NotebookId': notebookId,
},
);
return GetNotebookMetadataOutput.fromJson(jsonResponse.body);
}