| 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 |
Amazonka.EC2.Types.SecurityGroupRuleRequest
Description
Synopsis
- data SecurityGroupRuleRequest = SecurityGroupRuleRequest' {}
- newSecurityGroupRuleRequest :: SecurityGroupRuleRequest
- securityGroupRuleRequest_cidrIpv4 :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_cidrIpv6 :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_description :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_fromPort :: Lens' SecurityGroupRuleRequest (Maybe Int)
- securityGroupRuleRequest_ipProtocol :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_prefixListId :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_referencedGroupId :: Lens' SecurityGroupRuleRequest (Maybe Text)
- securityGroupRuleRequest_toPort :: Lens' SecurityGroupRuleRequest (Maybe Int)
Documentation
data SecurityGroupRuleRequest Source #
Describes a security group rule.
You must specify exactly one of the following parameters, based on the rule type:
- CidrIpv4
- CidrIpv6
- PrefixListId
- ReferencedGroupId
When you modify a rule, you cannot change the rule type. For example, if
the rule uses an IPv4 address range, you must use CidrIpv4 to specify
a new IPv4 address range.
See: newSecurityGroupRuleRequest smart constructor.
Constructors
| SecurityGroupRuleRequest' | |
Fields
| |
Instances
newSecurityGroupRuleRequest :: SecurityGroupRuleRequest Source #
Create a value of SecurityGroupRuleRequest 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:cidrIpv4:SecurityGroupRuleRequest', securityGroupRuleRequest_cidrIpv4 - The IPv4 CIDR range. To specify a single IPv4 address, use the /32
prefix length.
$sel:cidrIpv6:SecurityGroupRuleRequest', securityGroupRuleRequest_cidrIpv6 - The IPv6 CIDR range. To specify a single IPv6 address, use the /128
prefix length.
$sel:description:SecurityGroupRuleRequest', securityGroupRuleRequest_description - The description of the security group rule.
$sel:fromPort:SecurityGroupRuleRequest', securityGroupRuleRequest_fromPort - The start of port range for the TCP and UDP protocols, or an
ICMP/ICMPv6 type. A value of -1 indicates all ICMP/ICMPv6 types. If
you specify all ICMP/ICMPv6 types, you must specify all codes.
$sel:ipProtocol:SecurityGroupRuleRequest', securityGroupRuleRequest_ipProtocol - The IP protocol name (tcp, udp, icmp, icmpv6) or number (see
Protocol Numbers).
Use -1 to specify all protocols.
$sel:prefixListId:SecurityGroupRuleRequest', securityGroupRuleRequest_prefixListId - The ID of the prefix list.
$sel:referencedGroupId:SecurityGroupRuleRequest', securityGroupRuleRequest_referencedGroupId - The ID of the security group that is referenced in the security group
rule.
$sel:toPort:SecurityGroupRuleRequest', securityGroupRuleRequest_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.
securityGroupRuleRequest_cidrIpv4 :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.
securityGroupRuleRequest_cidrIpv6 :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
securityGroupRuleRequest_description :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The description of the security group rule.
securityGroupRuleRequest_fromPort :: Lens' SecurityGroupRuleRequest (Maybe Int) Source #
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.
securityGroupRuleRequest_ipProtocol :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The IP protocol name (tcp, udp, icmp, icmpv6) or number (see
Protocol Numbers).
Use -1 to specify all protocols.
securityGroupRuleRequest_prefixListId :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The ID of the prefix list.
securityGroupRuleRequest_referencedGroupId :: Lens' SecurityGroupRuleRequest (Maybe Text) Source #
The ID of the security group that is referenced in the security group rule.
securityGroupRuleRequest_toPort :: Lens' SecurityGroupRuleRequest (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.