Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data IpPermission = IpPermission' {
- fromPort :: Maybe Int
- ipRanges :: Maybe [IpRange]
- ipv6Ranges :: Maybe [Ipv6Range]
- prefixListIds :: Maybe [PrefixListId]
- toPort :: Maybe Int
- userIdGroupPairs :: Maybe [UserIdGroupPair]
- ipProtocol :: Text
- newIpPermission :: Text -> IpPermission
- ipPermission_fromPort :: Lens' IpPermission (Maybe Int)
- ipPermission_ipRanges :: Lens' IpPermission (Maybe [IpRange])
- ipPermission_ipv6Ranges :: Lens' IpPermission (Maybe [Ipv6Range])
- ipPermission_prefixListIds :: Lens' IpPermission (Maybe [PrefixListId])
- ipPermission_toPort :: Lens' IpPermission (Maybe Int)
- ipPermission_userIdGroupPairs :: Lens' IpPermission (Maybe [UserIdGroupPair])
- ipPermission_ipProtocol :: Lens' IpPermission Text
Documentation
data IpPermission Source #
Describes a set of permissions for a security group rule.
See: newIpPermission
smart constructor.
IpPermission' | |
|
Instances
Create a value of IpPermission
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fromPort:IpPermission'
, ipPermission_fromPort
- The start of port range for the TCP and UDP protocols, or an
ICMP/ICMPv6 type number. A value of -1
indicates all ICMP/ICMPv6
types. If you specify all ICMP/ICMPv6 types, you must specify all
codes.
$sel:ipRanges:IpPermission'
, ipPermission_ipRanges
- The IPv4 ranges.
$sel:ipv6Ranges:IpPermission'
, ipPermission_ipv6Ranges
- [VPC only] The IPv6 ranges.
$sel:prefixListIds:IpPermission'
, ipPermission_prefixListIds
- [VPC only] The prefix list IDs.
$sel:toPort:IpPermission'
, ipPermission_toPort
- The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
code. A value of -1
indicates all ICMP/ICMPv6 codes. If you specify
all ICMP/ICMPv6 types, you must specify all codes.
$sel:userIdGroupPairs:IpPermission'
, ipPermission_userIdGroupPairs
- The security group and Amazon Web Services account ID pairs.
$sel:ipProtocol:IpPermission'
, ipPermission_ipProtocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see
Protocol Numbers).
- VPC only
- Use
-1
to specify all protocols. When authorizing security group rules, specifying-1
or a protocol number other thantcp
,udp
,icmp
, oricmpv6
allows traffic on all ports, regardless of any port range you specify. Fortcp
,udp
, andicmp
, you must specify a port range. Foricmpv6
, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.
ipPermission_fromPort :: Lens' IpPermission (Maybe Int) Source #
The start of port range for the TCP and UDP protocols, or an
ICMP/ICMPv6 type number. A value of -1
indicates all ICMP/ICMPv6
types. If you specify all ICMP/ICMPv6 types, you must specify all
codes.
ipPermission_ipRanges :: Lens' IpPermission (Maybe [IpRange]) Source #
The IPv4 ranges.
ipPermission_ipv6Ranges :: Lens' IpPermission (Maybe [Ipv6Range]) Source #
- VPC only
- The IPv6 ranges.
ipPermission_prefixListIds :: Lens' IpPermission (Maybe [PrefixListId]) Source #
- VPC only
- The prefix list IDs.
ipPermission_toPort :: Lens' IpPermission (Maybe Int) Source #
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
code. A value of -1
indicates all ICMP/ICMPv6 codes. If you specify
all ICMP/ICMPv6 types, you must specify all codes.
ipPermission_userIdGroupPairs :: Lens' IpPermission (Maybe [UserIdGroupPair]) Source #
The security group and Amazon Web Services account ID pairs.
ipPermission_ipProtocol :: Lens' IpPermission Text Source #
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see
Protocol Numbers).
- VPC only
- Use
-1
to specify all protocols. When authorizing security group rules, specifying-1
or a protocol number other thantcp
,udp
,icmp
, oricmpv6
allows traffic on all ports, regardless of any port range you specify. Fortcp
,udp
, andicmp
, you must specify a port range. Foricmpv6
, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.