deleteNotebookInstance method
Deletes an Amazon SageMaker notebook instance. Before you can delete a
notebook instance, you must call the StopNotebookInstance
API.
Parameter notebookInstanceName
:
The name of the Amazon SageMaker notebook instance to delete.
Implementation
Future<void> deleteNotebookInstance({
required String notebookInstanceName,
}) async {
ArgumentError.checkNotNull(notebookInstanceName, 'notebookInstanceName');
_s.validateStringLength(
'notebookInstanceName',
notebookInstanceName,
0,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteNotebookInstance'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NotebookInstanceName': notebookInstanceName,
},
);
}