Class: Aws::EC2::Types::IpPermission

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

Overview

Describes the permissions for a security group rule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#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)


42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  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. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Returns:

  • (String)


42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  SENSITIVE = []
  include Aws::Structure
end

#ip_rangesArray<Types::IpRange>

The IPv4 address ranges.

Returns:



42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_6_rangesArray<Types::Ipv6Range>

The IPv6 address ranges.

Returns:



42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  SENSITIVE = []
  include Aws::Structure
end

#prefix_list_idsArray<Types::PrefixListId>

The prefix list IDs.

Returns:



42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  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)


42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  SENSITIVE = []
  include Aws::Structure
end

#user_id_group_pairsArray<Types::UserIdGroupPair>

The security group and Amazon Web Services account ID pairs.

Returns:



42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 42599

class IpPermission < Struct.new(
  :ip_protocol,
  :from_port,
  :to_port,
  :user_id_group_pairs,
  :ip_ranges,
  :ipv_6_ranges,
  :prefix_list_ids)
  SENSITIVE = []
  include Aws::Structure
end