amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.SecurityGroupRule

Description

 
Synopsis

Documentation

data SecurityGroupRule Source #

Describes a security group rule.

See: newSecurityGroupRule smart constructor.

Constructors

SecurityGroupRule' 

Fields

Instances

Instances details
FromXML SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

Generic SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

Associated Types

type Rep SecurityGroupRule :: Type -> Type #

Read SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

Show SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

NFData SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

Methods

rnf :: SecurityGroupRule -> () #

Eq SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

Hashable SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

type Rep SecurityGroupRule Source # 
Instance details

Defined in Amazonka.EC2.Types.SecurityGroupRule

type Rep SecurityGroupRule = D1 ('MetaData "SecurityGroupRule" "Amazonka.EC2.Types.SecurityGroupRule" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "SecurityGroupRule'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cidrIpv4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "cidrIpv6") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "fromPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "groupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "groupOwnerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "ipProtocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "isEgress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "prefixListId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "referencedGroupInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReferencedSecurityGroup)) :*: S1 ('MetaSel ('Just "securityGroupRuleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "toPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))))

newSecurityGroupRule :: SecurityGroupRule Source #

Create a value of SecurityGroupRule 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:SecurityGroupRule', securityGroupRule_cidrIpv4 - The IPv4 CIDR range.

$sel:cidrIpv6:SecurityGroupRule', securityGroupRule_cidrIpv6 - The IPv6 CIDR range.

$sel:description:SecurityGroupRule', securityGroupRule_description - The security group rule description.

$sel:fromPort:SecurityGroupRule', securityGroupRule_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.

SecurityGroupRule, securityGroupRule_groupId - The ID of the security group.

$sel:groupOwnerId:SecurityGroupRule', securityGroupRule_groupOwnerId - The ID of the Amazon Web Services account that owns the security group.

$sel:ipProtocol:SecurityGroupRule', securityGroupRule_ipProtocol - The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

Use -1 to specify all protocols.

$sel:isEgress:SecurityGroupRule', securityGroupRule_isEgress - Indicates whether the security group rule is an outbound rule.

$sel:prefixListId:SecurityGroupRule', securityGroupRule_prefixListId - The ID of the prefix list.

$sel:referencedGroupInfo:SecurityGroupRule', securityGroupRule_referencedGroupInfo - Describes the security group that is referenced in the rule.

$sel:securityGroupRuleId:SecurityGroupRule', securityGroupRule_securityGroupRuleId - The ID of the security group rule.

$sel:tags:SecurityGroupRule', securityGroupRule_tags - The tags applied to the security group rule.

$sel:toPort:SecurityGroupRule', securityGroupRule_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.

securityGroupRule_description :: Lens' SecurityGroupRule (Maybe Text) Source #

The security group rule description.

securityGroupRule_fromPort :: Lens' SecurityGroupRule (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.

securityGroupRule_groupOwnerId :: Lens' SecurityGroupRule (Maybe Text) Source #

The ID of the Amazon Web Services account that owns the security group.

securityGroupRule_ipProtocol :: Lens' SecurityGroupRule (Maybe Text) Source #

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

Use -1 to specify all protocols.

securityGroupRule_isEgress :: Lens' SecurityGroupRule (Maybe Bool) Source #

Indicates whether the security group rule is an outbound rule.

securityGroupRule_referencedGroupInfo :: Lens' SecurityGroupRule (Maybe ReferencedSecurityGroup) Source #

Describes the security group that is referenced in the rule.

securityGroupRule_tags :: Lens' SecurityGroupRule (Maybe [Tag]) Source #

The tags applied to the security group rule.

securityGroupRule_toPort :: Lens' SecurityGroupRule (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.