startNotebookInstance method
Launches an ML compute instance with the latest version of the libraries
and attaches your ML storage volume. After configuring the notebook
instance, Amazon SageMaker sets the notebook instance status to
InService
. A notebook instance's status must be
InService
before you can connect to your Jupyter notebook.
May throw ResourceLimitExceeded.
Parameter notebookInstanceName
:
The name of the notebook instance to start.
Implementation
Future<void> startNotebookInstance({
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.StartNotebookInstance'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NotebookInstanceName': notebookInstanceName,
},
);
}