Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 AmazonVirtual Private Cloud User Guide.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateNetworkAclEntry.html
- data CreateNetworkAclEntry
- createNetworkAclEntry :: Text -> Int -> Text -> RuleAction -> Bool -> Text -> CreateNetworkAclEntry
- cnaeCidrBlock :: Lens' CreateNetworkAclEntry Text
- cnaeDryRun :: Lens' CreateNetworkAclEntry (Maybe Bool)
- cnaeEgress :: Lens' CreateNetworkAclEntry Bool
- cnaeIcmpTypeCode :: Lens' CreateNetworkAclEntry (Maybe IcmpTypeCode)
- cnaeNetworkAclId :: Lens' CreateNetworkAclEntry Text
- cnaePortRange :: Lens' CreateNetworkAclEntry (Maybe PortRange)
- cnaeProtocol :: Lens' CreateNetworkAclEntry Text
- cnaeRuleAction :: Lens' CreateNetworkAclEntry RuleAction
- cnaeRuleNumber :: Lens' CreateNetworkAclEntry Int
- data CreateNetworkAclEntryResponse
- createNetworkAclEntryResponse :: CreateNetworkAclEntryResponse
Request
data CreateNetworkAclEntry Source
Eq CreateNetworkAclEntry | |
Read CreateNetworkAclEntry | |
Show CreateNetworkAclEntry | |
AWSRequest CreateNetworkAclEntry | |
ToQuery CreateNetworkAclEntry | |
ToPath CreateNetworkAclEntry | |
ToHeaders CreateNetworkAclEntry | |
type Sv CreateNetworkAclEntry = EC2 | |
type Rs CreateNetworkAclEntry = CreateNetworkAclEntryResponse |
Request constructor
:: Text | |
-> Int | |
-> Text | |
-> RuleAction | |
-> Bool | |
-> Text | |
-> CreateNetworkAclEntry |
CreateNetworkAclEntry
constructor.
The fields accessible through corresponding lenses are:
Request lenses
cnaeCidrBlock :: Lens' CreateNetworkAclEntry Text Source
The network range to allow or deny, in CIDR notation (for example '172.16.0.0/24').
cnaeEgress :: Lens' CreateNetworkAclEntry Bool Source
Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
cnaeIcmpTypeCode :: Lens' CreateNetworkAclEntry (Maybe IcmpTypeCode) Source
ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
cnaeNetworkAclId :: Lens' CreateNetworkAclEntry Text Source
The ID of the network ACL.
cnaePortRange :: Lens' CreateNetworkAclEntry (Maybe PortRange) Source
TCP or UDP protocols: The range of ports the rule applies to.
cnaeProtocol :: Lens' CreateNetworkAclEntry Text Source
The protocol. A value of -1 means all protocols.
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