use strict;
use warnings;
package AWS::IP;
use Cache::File;
use Carp;
use HTTP::Tiny;
use JSON::XS;
use File::Temp 'tempdir';
use Net::CIDR::Set;
# required by HTTP::Tiny for https
use IO::Socket::SS
ta; # auto refreshes
=head2 DESCRIPTION
AWS L<publish|https://ip-ranges.amazonaws.com/ip-ranges.json> their IP ranges, which periodically change. This module downloads and serializes the IP ranges i
= $self->{cache}->entry(CACHE_KEY);
if ($entry->exists)
{
decode_json($entry->get());
}
else
{
decode_json($self->_refresh_cache);
}
}
=head2 get_cidrs
Returns an arrayref of t