:doc:`NeptuneGraph <../../neptune-graph>` / Client / cancel_import_task

******************
cancel_import_task
******************



.. py:method:: NeptuneGraph.Client.cancel_import_task(**kwargs)

  

  Deletes the specified import task.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/CancelImportTask>`_  


  **Request Syntax**
  ::

    response = client.cancel_import_task(
        taskIdentifier='string'
    )
    
  :type taskIdentifier: string
  :param taskIdentifier: **[REQUIRED]** 

    The unique identifier of the import task.

    

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

    
    ::

      {
          'graphId': 'string',
          'taskId': 'string',
          'source': 'string',
          'format': 'CSV'|'OPEN_CYPHER'|'PARQUET'|'NTRIPLES',
          'parquetType': 'COLUMNAR',
          'roleArn': 'string',
          'status': 'INITIALIZING'|'EXPORTING'|'ANALYZING_DATA'|'IMPORTING'|'REPROVISIONING'|'ROLLING_BACK'|'SUCCEEDED'|'FAILED'|'CANCELLING'|'CANCELLED'|'DELETED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **graphId** *(string) --* 

        The unique identifier of the Neptune Analytics graph.

        
      

      - **taskId** *(string) --* 

        The unique identifier of the import task.

        
      

      - **source** *(string) --* 

        A URL identifying to the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.

        
      

      - **format** *(string) --* 

        Specifies the format of S3 data to be imported. Valid values are ``CSV``, which identifies the `Gremlin CSV format <https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load-tutorial-format-gremlin.html>`__ or ``OPENCYPHER``, which identifies the `openCypher load format <https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load-tutorial-format-opencypher.html>`__.

        
      

      - **parquetType** *(string) --* 

        The parquet type of the cancelled import task.

        
      

      - **roleArn** *(string) --* 

        The ARN of the IAM role that will allow access to the data that is to be imported.

        
      

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

        Current status of the task. Status is CANCELLING when the import task is cancelled.

        
  
  **Exceptions**
  
  *   :py:class:`NeptuneGraph.Client.exceptions.ThrottlingException`

  
  *   :py:class:`NeptuneGraph.Client.exceptions.ValidationException`

  
  *   :py:class:`NeptuneGraph.Client.exceptions.ConflictException`

  
  *   :py:class:`NeptuneGraph.Client.exceptions.InternalServerException`

  
  *   :py:class:`NeptuneGraph.Client.exceptions.ResourceNotFoundException`

  