« blib/lib/Paws/EC2/ReplaceIamInstanceProfileAssociationResult.pm
↑ Summary
blib/lib/Paws/EC2/ReplaceRootVolumeTask.pm »
| 1 | |||
| 2 | package Paws::EC2::ReplaceNetworkAclEntry; | ||
| 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 => 'ReplaceNetworkAclEntry'); | ||
| 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::ReplaceNetworkAclEntry - Arguments for method ReplaceNetworkAclEntry on L<Paws::EC2> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method ReplaceNetworkAclEntry on the | ||
| 31 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 32 | as arguments to method ReplaceNetworkAclEntry. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ReplaceNetworkAclEntry. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $ec2 = Paws->service('EC2'); | ||
| 39 | # To replace a network ACL entry | ||
| 40 | # This example replaces an entry for the specified network ACL. The new rule 100 | ||
| 41 | # allows ingress traffic from 203.0.113.12/24 on UDP port 53 (DNS) into any | ||
| 42 | # associated subnet. | ||
| 43 | $ec2->ReplaceNetworkAclEntry( | ||
| 44 | 'CidrBlock' => '203.0.113.12/24', | ||
| 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/ReplaceNetworkAclEntry> | ||
| 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>). | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 DryRun => Bool | ||
| 71 | |||
| 72 | Checks whether you have the required permissions for the action, | ||
| 73 | without actually making the request, and provides an error response. If | ||
| 74 | you have the required permissions, the error response is | ||
| 75 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> Egress => Bool | ||
| 80 | |||
| 81 | Indicates whether to replace the egress rule. | ||
| 82 | |||
| 83 | Default: If no value is specified, we replace the ingress rule. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 IcmpTypeCode => L<Paws::EC2::IcmpTypeCode> | ||
| 88 | |||
| 89 | ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying | ||
| 90 | protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 Ipv6CidrBlock => Str | ||
| 95 | |||
| 96 | The IPv6 network range to allow or deny, in CIDR notation (for example | ||
| 97 | C<2001:bd8:1234:1a00::/64>). | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> NetworkAclId => Str | ||
| 102 | |||
| 103 | The ID of the ACL. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 PortRange => L<Paws::EC2::PortRange> | ||
| 108 | |||
| 109 | TCP or UDP protocols: The range of ports the rule applies to. Required | ||
| 110 | if specifying protocol 6 (TCP) or 17 (UDP). | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 B<REQUIRED> Protocol => Str | ||
| 115 | |||
| 116 | The protocol number. A value of "-1" means all protocols. If you | ||
| 117 | specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or | ||
| 118 | "1" (ICMP), traffic on all ports is allowed, regardless of any ports or | ||
| 119 | ICMP types or codes that you specify. If you specify protocol "58" | ||
| 120 | (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and | ||
| 121 | codes allowed, regardless of any that you specify. If you specify | ||
| 122 | protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify | ||
| 123 | an ICMP type and code. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 B<REQUIRED> RuleAction => Str | ||
| 128 | |||
| 129 | Indicates whether to allow or deny the traffic that matches the rule. | ||
| 130 | |||
| 131 | Valid values are: C<"allow">, C<"deny"> | ||
| 132 | |||
| 133 | =head2 B<REQUIRED> RuleNumber => Int | ||
| 134 | |||
| 135 | The rule number of the entry to replace. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | =head1 SEE ALSO | ||
| 141 | |||
| 142 | This class forms part of L<Paws>, documenting arguments for method ReplaceNetworkAclEntry in L<Paws::EC2> | ||
| 143 | |||
| 144 | =head1 BUGS and CONTRIBUTIONS | ||
| 145 | |||
| 146 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 147 | |||
| 148 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 149 | |||
| 150 | =cut | ||
| 151 |