:doc:`NeptuneData <../../neptunedata>` / Client / cancel_ml_model_transform_job

*****************************
cancel_ml_model_transform_job
*****************************



.. py:method:: NeptuneData.Client.cancel_ml_model_transform_job(**kwargs)

  

  Cancels a specified model transform job. See `Use a trained model to generate new model artifacts <https://docs.aws.amazon.com/neptune/latest/userguide/machine-learning-model-transform.html>`__.

   

  When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the `neptune-db\:CancelMLModelTransformJob <https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#cancelmlmodeltransformjob>`__ IAM action in that cluster.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptunedata-2023-08-01/CancelMLModelTransformJob>`_  


  **Request Syntax**
  ::

    response = client.cancel_ml_model_transform_job(
        id='string',
        neptuneIamRoleArn='string',
        clean=True|False
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The unique ID of the model transform job to be canceled.

    

  
  :type neptuneIamRoleArn: string
  :param neptuneIamRoleArn: 

    The ARN of an IAM role that provides Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur.

    

  
  :type clean: boolean
  :param clean: 

    If this flag is set to ``TRUE``, all Neptune ML S3 artifacts should be deleted when the job is stopped. The default is ``FALSE``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'status': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(string) --* 

        the status of the cancelation.

        
  
  **Exceptions**
  
  *   :py:class:`NeptuneData.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.BadRequestException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`NeptuneData.Client.exceptions.MLResourceNotFoundException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ClientTimeoutException`

  
  *   :py:class:`NeptuneData.Client.exceptions.PreconditionsFailedException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ConstraintViolationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.MissingParameterException`

  
  *   :py:class:`NeptuneData.Client.exceptions.IllegalArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.TooManyRequestsException`

  