blib/lib/Paws/EC2/CreateNetworkAclEntry.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateNetworkAclEntry;
3 use Moose;
4 has CidrBlock => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'cidrBlock' );
5 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6 has Egress => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'egress' , required => 1);
7 has IcmpTypeCode => (is => 'ro', isa => 'Paws::EC2::IcmpTypeCode', traits => ['NameInRequest'], request_name => 'Icmp' );
8 has Ipv6CidrBlock => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ipv6CidrBlock' );
9 has NetworkAclId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkAclId' , required => 1);
10 has PortRange => (is => 'ro', isa => 'Paws::EC2::PortRange', traits => ['NameInRequest'], request_name => 'portRange' );
11 has Protocol => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'protocol' , required => 1);
12 has RuleAction => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ruleAction' , required => 1);
13 has RuleNumber => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'ruleNumber' , required => 1);
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetworkAclEntry');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
19 class_has _result_key => (isa => 'Str', is => 'ro');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::EC2::CreateNetworkAclEntry - Arguments for method CreateNetworkAclEntry on L<Paws::EC2>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateNetworkAclEntry on the
31 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
32 as arguments to method CreateNetworkAclEntry.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetworkAclEntry.
35  
36 =head1 SYNOPSIS
37  
38 my $ec2 = Paws->service('EC2');
39 # To create a network ACL entry
40 # This example creates an entry for the specified network ACL. The rule allows
41 # ingress traffic from anywhere (0.0.0.0/0) on UDP port 53 (DNS) into any
42 # associated subnet.
43 $ec2->CreateNetworkAclEntry(
44 'CidrBlock' => '0.0.0.0/0',
45 'Egress' => 0,
46 'NetworkAclId' => 'acl-5fb85d36',
47 'PortRange' => {
48 'From' => 53,
49 'To' => 53
50 },
51 'Protocol' => 'udp',
52 'RuleAction' => 'allow',
53 'RuleNumber' => 100
54 );
55  
56  
57 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateNetworkAclEntry>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 CidrBlock => Str
64  
65 The IPv4 network range to allow or deny, in CIDR notation (for example
66 C<172.16.0.0/24>). We modify the specified CIDR block to its canonical
67 form; for example, if you specify C<100.68.0.18/18>, we modify it to
68 C<100.68.0.0/18>.
69  
70  
71  
72 =head2 DryRun => Bool
73  
74 Checks whether you have the required permissions for the action,
75 without actually making the request, and provides an error response. If
76 you have the required permissions, the error response is
77 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
78  
79  
80  
81 =head2 B<REQUIRED> Egress => Bool
82  
83 Indicates whether this is an egress rule (rule is applied to traffic
84 leaving the subnet).
85  
86  
87  
88 =head2 IcmpTypeCode => L<Paws::EC2::IcmpTypeCode>
89  
90 ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying
91 protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
92  
93  
94  
95 =head2 Ipv6CidrBlock => Str
96  
97 The IPv6 network range to allow or deny, in CIDR notation (for example
98 C<2001:db8:1234:1a00::/64>).
99  
100  
101  
102 =head2 B<REQUIRED> NetworkAclId => Str
103  
104 The ID of the network ACL.
105  
106  
107  
108 =head2 PortRange => L<Paws::EC2::PortRange>
109  
110 TCP or UDP protocols: The range of ports the rule applies to. Required
111 if specifying protocol 6 (TCP) or 17 (UDP).
112  
113  
114  
115 =head2 B<REQUIRED> Protocol => Str
116  
117 The protocol number. A value of "-1" means all protocols. If you
118 specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or
119 "1" (ICMP), traffic on all ports is allowed, regardless of any ports or
120 ICMP types or codes that you specify. If you specify protocol "58"
121 (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and
122 codes allowed, regardless of any that you specify. If you specify
123 protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify
124 an ICMP type and code.
125  
126  
127  
128 =head2 B<REQUIRED> RuleAction => Str
129  
130 Indicates whether to allow or deny the traffic that matches the rule.
131  
132 Valid values are: C<"allow">, C<"deny">
133  
134 =head2 B<REQUIRED> RuleNumber => Int
135  
136 The rule number for the entry (for example, 100). ACL entries are
137 processed in ascending order by rule number.
138  
139 Constraints: Positive integer from 1 to 32766. The range 32767 to 65535
140 is reserved for internal use.
141  
142  
143  
144  
145 =head1 SEE ALSO
146  
147 This class forms part of L<Paws>, documenting arguments for method CreateNetworkAclEntry in L<Paws::EC2>
148  
149 =head1 BUGS and CONTRIBUTIONS
150  
151 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
152  
153 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
154  
155 =cut
156