ApplicationDiscoveryService / Client / batch_delete_import_data

batch_delete_import_data#

ApplicationDiscoveryService.Client.batch_delete_import_data(**kwargs)#

Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records that can identify servers or applications.

Amazon Web Services Application Discovery Service has built-in matching logic that will identify when discovered servers match existing entries that you’ve previously discovered, the information for the already-existing discovered server is updated. When you delete an import task that contains records that were used to match, the information in those matched records that comes from the deleted records will also be deleted.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_import_data(
    importTaskIds=[
        'string',
    ],
    deleteHistory=True|False
)
Parameters:
  • importTaskIds (list) –

    [REQUIRED]

    The IDs for the import tasks that you want to delete.

    • (string) –

  • deleteHistory (boolean) – Set to true to remove the deleted import task from DescribeImportTasks.

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'importTaskId': 'string',
            'errorCode': 'NOT_FOUND'|'INTERNAL_SERVER_ERROR'|'OVER_LIMIT',
            'errorDescription': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • errors (list) –

      Error messages returned for each import task that you deleted as a response for this command.

      • (dict) –

        Error messages returned for each import task that you deleted as a response for this command.

        • importTaskId (string) –

          The unique import ID associated with the error that occurred.

        • errorCode (string) –

          The type of error that occurred for a specific import task.

        • errorDescription (string) –

          The description of the error that occurred for a specific import task.

Exceptions