AWS-Networks
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.025, CPAN::Meta::Converter version 2.142690'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: AWS-Networks
requires:
DateTime: '0'
File::Slurp: '0'
HTTP::Tiny: '0'
IO::Socket::SSL: '0'
JSON: '0'
Moose: '0'
Net::CIDR::Set: '0'
version: '0.01'
Makefile.PL view on Meta::CPAN
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "AWS-Networks",
"EXE_FILES" => [
"bin/aws_ips_for_service",
"bin/aws_ip"
],
"LICENSE" => "perl",
"NAME" => "AWS::Networks",
"PREREQ_PM" => {
"DateTime" => 0,
"File::Slurp" => 0,
"HTTP::Tiny" => 0,
"IO::Socket::SSL" => 0,
"JSON" => 0,
"Moose" => 0,
"Net::CIDR::Set" => 0
},
"TEST_REQUIRES" => {
"Test::Exception" => 0,
"Test::More" => 0
},
"VERSION" => "0.01",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"DateTime" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Slurp" => 0,
"HTTP::Tiny" => 0,
"IO::Socket::SSL" => 0,
"JSON" => 0,
"Moose" => 0,
"Net::CIDR::Set" => 0,
"Test::Exception" => 0,
"Test::More" => 0
);
METHODS
new([ url => 'http....' ])
Standard Moose constructor. Can specify a custom URL to download a
document that follows the same schema
url
Returns the URL from which the information was retrieved. Returns undef
on filtered datasets
sync_token
Returns a DateTime object created from the current timestamp of the
syncToken reported from the service
networks
Returns an ArrayRef with HashRefs following the following structure:
{ ip_prefix => '0.0.0.0/0', region => '...', service => '...' }
The keys and values in the HashRefs are the ones returned by the Network
service
allow_dirty = README
[@Filter]
-bundle = @Basic
-remove = Readme
[Prereqs]
JSON = 0
HTTP::Tiny = 0
Moose = 0
DateTime = 0
IO::Socket::SSL = 0
File::Slurp = 0
Net::CIDR::Set = 0
[Prereqs / TestRequires ]
Test::More = 0
Test::Exception = 0
lib/AWS/Networks.pm view on Meta::CPAN
package AWS::Networks;
use Moose;
use JSON;
use HTTP::Tiny;
use DateTime;
our $VERSION = '0.01';
has url => (
is => 'ro',
isa => 'Str|Undef',
default => 'https://ip-ranges.amazonaws.com/ip-ranges.json'
);
has netinfo => (
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.360 second using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )