deleteNotebookInstanceLifecycleConfig method

Future<void> deleteNotebookInstanceLifecycleConfig({
  1. required String notebookInstanceLifecycleConfigName,
})

Deletes a notebook instance lifecycle configuration.

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

Implementation

Future<void> deleteNotebookInstanceLifecycleConfig({
  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.DeleteNotebookInstanceLifecycleConfig'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'NotebookInstanceLifecycleConfigName':
          notebookInstanceLifecycleConfigName,
    },
  );
}