SecurityGroupRule - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

SecurityGroupRule

Describes a security group rule.

Contents

cidrIpv4

The IPv4 CIDR range.

Type: String

Required: No

cidrIpv6

The IPv6 CIDR range.

Type: String

Required: No

description

The security group rule description.

Type: String

Required: No

fromPort

If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.

Type: Integer

Required: No

groupId

The ID of the security group.

Type: String

Required: No

groupOwnerId

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

Type: String

Required: No

ipProtocol

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

Use -1 to specify all protocols.

Type: String

Required: No

isEgress

Indicates whether the security group rule is an outbound rule.

Type: Boolean

Required: No

prefixListId

The ID of the prefix list.

Type: String

Required: No

referencedGroupInfo

Describes the security group that is referenced in the rule.

Type: ReferencedSecurityGroup object

Required: No

securityGroupRuleId

The ID of the security group rule.

Type: String

Required: No

tagSet

The tags applied to the security group rule.

Type: Array of Tag objects

Required: No

toPort

If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.

Type: Integer

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: