amazonka-ec2-1.5.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateNetworkACLEntry

Contents

Description

Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

We recommend that you leave room between the rule numbers (for example, 100, 110, 120, ...), and not number them one right after the other (for example, 101, 102, 103, ...). This makes it easier to add a rule between existing ones without having to renumber the rules.

After you add an entry, you can't modify it; you must either replace it, or create an entry and delete the old one.

For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

createNetworkACLEntry Source #

Creates a value of CreateNetworkACLEntry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cnaeIPv6CidrBlock - The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64 ).
  • cnaeICMPTypeCode - ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  • cnaePortRange - TCP or UDP protocols: The range of ports the rule applies to.
  • cnaeCidrBlock - The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ).
  • cnaeDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • cnaeEgress - Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
  • cnaeNetworkACLId - The ID of the network ACL.
  • cnaeProtocol - The protocol. A value of -1 or all means all protocols. If you specify all , -1 , or a protocol number other than tcp , udp , or icmp , traffic on all ports is allowed, regardless of any ports or ICMP types or codes you specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.
  • cnaeRuleAction - Indicates whether to allow or deny the traffic that matches the rule.
  • cnaeRuleNumber - The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number. Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

data CreateNetworkACLEntry Source #

Contains the parameters for CreateNetworkAclEntry.

See: createNetworkACLEntry smart constructor.

Instances

Eq CreateNetworkACLEntry Source # 
Data CreateNetworkACLEntry Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkACLEntry -> c CreateNetworkACLEntry #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkACLEntry #

toConstr :: CreateNetworkACLEntry -> Constr #

dataTypeOf :: CreateNetworkACLEntry -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkACLEntry) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkACLEntry) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkACLEntry -> CreateNetworkACLEntry #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkACLEntry -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkACLEntry -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkACLEntry -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkACLEntry -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntry -> m CreateNetworkACLEntry #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntry -> m CreateNetworkACLEntry #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntry -> m CreateNetworkACLEntry #

Read CreateNetworkACLEntry Source # 
Show CreateNetworkACLEntry Source # 
Generic CreateNetworkACLEntry Source # 
Hashable CreateNetworkACLEntry Source # 
NFData CreateNetworkACLEntry Source # 

Methods

rnf :: CreateNetworkACLEntry -> () #

AWSRequest CreateNetworkACLEntry Source # 
ToQuery CreateNetworkACLEntry Source # 
ToPath CreateNetworkACLEntry Source # 
ToHeaders CreateNetworkACLEntry Source # 
type Rep CreateNetworkACLEntry Source # 
type Rs CreateNetworkACLEntry Source # 

Request Lenses

cnaeIPv6CidrBlock :: Lens' CreateNetworkACLEntry (Maybe Text) Source #

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64 ).

cnaeICMPTypeCode :: Lens' CreateNetworkACLEntry (Maybe ICMPTypeCode) Source #

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.

cnaePortRange :: Lens' CreateNetworkACLEntry (Maybe PortRange) Source #

TCP or UDP protocols: The range of ports the rule applies to.

cnaeCidrBlock :: Lens' CreateNetworkACLEntry (Maybe Text) Source #

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ).

cnaeDryRun :: Lens' CreateNetworkACLEntry (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

cnaeEgress :: Lens' CreateNetworkACLEntry Bool Source #

Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).

cnaeProtocol :: Lens' CreateNetworkACLEntry Text Source #

The protocol. A value of -1 or all means all protocols. If you specify all , -1 , or a protocol number other than tcp , udp , or icmp , traffic on all ports is allowed, regardless of any ports or ICMP types or codes you specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

cnaeRuleAction :: Lens' CreateNetworkACLEntry RuleAction Source #

Indicates whether to allow or deny the traffic that matches the rule.

cnaeRuleNumber :: Lens' CreateNetworkACLEntry Int Source #

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number. Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

Destructuring the Response

createNetworkACLEntryResponse :: CreateNetworkACLEntryResponse Source #

Creates a value of CreateNetworkACLEntryResponse with the minimum fields required to make a request.

data CreateNetworkACLEntryResponse Source #

See: createNetworkACLEntryResponse smart constructor.

Instances

Eq CreateNetworkACLEntryResponse Source # 
Data CreateNetworkACLEntryResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkACLEntryResponse -> c CreateNetworkACLEntryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkACLEntryResponse #

toConstr :: CreateNetworkACLEntryResponse -> Constr #

dataTypeOf :: CreateNetworkACLEntryResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkACLEntryResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkACLEntryResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkACLEntryResponse -> CreateNetworkACLEntryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkACLEntryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkACLEntryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkACLEntryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkACLEntryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntryResponse -> m CreateNetworkACLEntryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntryResponse -> m CreateNetworkACLEntryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkACLEntryResponse -> m CreateNetworkACLEntryResponse #

Read CreateNetworkACLEntryResponse Source # 
Show CreateNetworkACLEntryResponse Source # 
Generic CreateNetworkACLEntryResponse Source # 
NFData CreateNetworkACLEntryResponse Source # 
type Rep CreateNetworkACLEntryResponse Source # 
type Rep CreateNetworkACLEntryResponse = D1 (MetaData "CreateNetworkACLEntryResponse" "Network.AWS.EC2.CreateNetworkACLEntry" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "CreateNetworkACLEntryResponse'" PrefixI False) U1)