batchDeleteImportData method

Future<BatchDeleteImportDataResponse> batchDeleteImportData({
  1. required List<String> importTaskIds,
})

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.

AWS 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.

May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw HomeRegionNotSetException.

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

Implementation

Future<BatchDeleteImportDataResponse> batchDeleteImportData({
  required List<String> importTaskIds,
}) async {
  ArgumentError.checkNotNull(importTaskIds, 'importTaskIds');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSPoseidonService_V2015_11_01.BatchDeleteImportData'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'importTaskIds': importTaskIds,
    },
  );

  return BatchDeleteImportDataResponse.fromJson(jsonResponse.body);
}