batchDeleteClusterSnapshots method

Future<BatchDeleteClusterSnapshotsResult> batchDeleteClusterSnapshots({
  1. required List<DeleteClusterSnapshotMessage> identifiers,
})

Deletes a set of cluster snapshots.

May throw BatchDeleteRequestSizeExceededFault.

Parameter identifiers : A list of identifiers for the snapshots that you want to delete.

Implementation

Future<BatchDeleteClusterSnapshotsResult> batchDeleteClusterSnapshots({
  required List<DeleteClusterSnapshotMessage> identifiers,
}) async {
  final $request = <String, String>{
    if (identifiers.isEmpty)
      'Identifiers': ''
    else
      for (var i1 = 0; i1 < identifiers.length; i1++)
        for (var e3 in identifiers[i1].toQueryMap().entries)
          'Identifiers.DeleteClusterSnapshotMessage.${i1 + 1}.${e3.key}':
              e3.value,
  };
  final $result = await _protocol.send(
    $request,
    action: 'BatchDeleteClusterSnapshots',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'BatchDeleteClusterSnapshotsResult',
  );
  return BatchDeleteClusterSnapshotsResult.fromXml($result);
}