deleteAction method

Future<DeleteActionResponse> deleteAction({
  1. required String actionName,
})

Deletes an action.

May throw ResourceNotFound.

Parameter actionName : The name of the action to delete.

Implementation

Future<DeleteActionResponse> deleteAction({
  required String actionName,
}) async {
  ArgumentError.checkNotNull(actionName, 'actionName');
  _s.validateStringLength(
    'actionName',
    actionName,
    1,
    120,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DeleteAction'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ActionName': actionName,
    },
  );

  return DeleteActionResponse.fromJson(jsonResponse.body);
}