File Coverage

blib/lib/Paws/WAFRegional/IPSetDescriptor.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::WAFRegional::IPSetDescriptor;
2 1     1   400 use Moose;
  1         4  
  1         7  
3             has Type => (is => 'ro', isa => 'Str', required => 1);
4             has Value => (is => 'ro', isa => 'Str', required => 1);
5             1;
6              
7             ### main pod documentation begin ###
8              
9             =head1 NAME
10              
11             Paws::WAFRegional::IPSetDescriptor
12              
13             =head1 USAGE
14              
15             This class represents one of two things:
16              
17             =head3 Arguments in a call to a service
18              
19             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
20             Each attribute should be used as a named argument in the calls that expect this type of object.
21              
22             As an example, if Att1 is expected to be a Paws::WAFRegional::IPSetDescriptor object:
23              
24             $service_obj->Method(Att1 => { Type => $value, ..., Value => $value });
25              
26             =head3 Results returned from an API call
27              
28             Use accessors for each attribute. If Att1 is expected to be an Paws::WAFRegional::IPSetDescriptor object:
29              
30             $result = $service_obj->Method(...);
31             $result->Att1->Type
32              
33             =head1 DESCRIPTION
34              
35             Specifies the IP address type (C<IPV4> or C<IPV6>) and the IP address
36             range (in CIDR format) that web requests originate from.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 B<REQUIRED> Type => Str
42              
43             Specify C<IPV4> or C<IPV6>.
44              
45              
46             =head2 B<REQUIRED> Value => Str
47              
48             Specify an IPv4 address by using CIDR notation. For example:
49              
50             =over
51              
52             =item *
53              
54             To configure AWS WAF to allow, block, or count requests that originated
55             from the IP address 192.0.2.44, specify C<192.0.2.44/32>.
56              
57             =item *
58              
59             To configure AWS WAF to allow, block, or count requests that originated
60             from IP addresses from 192.0.2.0 to 192.0.2.255, specify
61             C<192.0.2.0/24>.
62              
63             =back
64              
65             For more information about CIDR notation, see the Wikipedia entry
66             Classless Inter-Domain Routing.
67              
68             Specify an IPv6 address by using CIDR notation. For example:
69              
70             =over
71              
72             =item *
73              
74             To configure AWS WAF to allow, block, or count requests that originated
75             from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify
76             C<1111:0000:0000:0000:0000:0000:0000:0111/128>.
77              
78             =item *
79              
80             To configure AWS WAF to allow, block, or count requests that originated
81             from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to
82             1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify
83             C<1111:0000:0000:0000:0000:0000:0000:0000/64>.
84              
85             =back
86              
87              
88              
89              
90             =head1 SEE ALSO
91              
92             This class forms part of L<Paws>, describing an object used in L<Paws::WAFRegional>
93              
94             =head1 BUGS and CONTRIBUTIONS
95              
96             The source code is located here: https://github.com/pplu/aws-sdk-perl
97              
98             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
99              
100             =cut
101