describeNotebookInstance method
Future<DescribeNotebookInstanceOutput>
describeNotebookInstance({
- required String notebookInstanceName,
Returns information about a notebook instance.
Parameter notebookInstanceName
:
The name of the notebook instance that you want information about.
Implementation
Future<DescribeNotebookInstanceOutput> describeNotebookInstance({
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.DescribeNotebookInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NotebookInstanceName': notebookInstanceName,
},
);
return DescribeNotebookInstanceOutput.fromJson(jsonResponse.body);
}