deleteReplicator method
Deletes a replicator.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter replicatorArn :
The Amazon Resource Name (ARN) of the replicator to be deleted.
Parameter currentVersion :
The current version of the replicator.
Implementation
Future<DeleteReplicatorResponse> deleteReplicator({
required String replicatorArn,
String? currentVersion,
}) async {
final $query = <String, List<String>>{
if (currentVersion != null) 'currentVersion': [currentVersion],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/replication/v1/replicators/${Uri.encodeComponent(replicatorArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteReplicatorResponse.fromJson(response);
}