Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Class: Aws::EC2::Types::SecurityGroupRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Describes a security group rule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cidr_ipv_4String

The IPv4 CIDR range.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#cidr_ipv_6String

The IPv6 CIDR range.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

The security group rule description.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#from_portInteger

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 ICMP type or -1 (all ICMP types).

Returns:

  • (Integer)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#group_idString

The ID of the security group.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#group_owner_idString

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

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#ip_protocolString

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

Use -1 to specify all protocols.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#is_egressBoolean

Indicates whether the security group rule is an outbound rule.

Returns:

  • (Boolean)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#prefix_list_idString

The ID of the prefix list.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#referenced_group_infoTypes::ReferencedSecurityGroup

Describes the security group that is referenced in the rule.


68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#security_group_rule_arnString

The ARN of the security group rule.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#security_group_rule_idString

The ID of the security group rule.

Returns:

  • (String)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The tags applied to the security group rule.

Returns:


68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end

#to_portInteger

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 ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).

Returns:

  • (Integer)

68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 68687

class SecurityGroupRule < Struct.new(
  :security_group_rule_id,
  :group_id,
  :group_owner_id,
  :is_egress,
  :ip_protocol,
  :from_port,
  :to_port,
  :cidr_ipv_4,
  :cidr_ipv_6,
  :prefix_list_id,
  :referenced_group_info,
  :description,
  :tags,
  :security_group_rule_arn)
  SENSITIVE = []
  include Aws::Structure
end