describeNotebookInstanceLifecycleConfig method

Future<DescribeNotebookInstanceLifecycleConfigOutput> describeNotebookInstanceLifecycleConfig({
  1. required String notebookInstanceLifecycleConfigName,
})

Returns a description of a notebook instance lifecycle configuration.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

Parameter notebookInstanceLifecycleConfigName : The name of the lifecycle configuration to describe.

Implementation

Future<DescribeNotebookInstanceLifecycleConfigOutput>
    describeNotebookInstanceLifecycleConfig({
  required String notebookInstanceLifecycleConfigName,
}) async {
  ArgumentError.checkNotNull(notebookInstanceLifecycleConfigName,
      'notebookInstanceLifecycleConfigName');
  _s.validateStringLength(
    'notebookInstanceLifecycleConfigName',
    notebookInstanceLifecycleConfigName,
    0,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeNotebookInstanceLifecycleConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'NotebookInstanceLifecycleConfigName':
          notebookInstanceLifecycleConfigName,
    },
  );

  return DescribeNotebookInstanceLifecycleConfigOutput.fromJson(
      jsonResponse.body);
}