Class: Aws::EC2::Types::IpPermission
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::IpPermission
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
Describes a set of permissions for a security group rule.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#from_port ⇒ Integer
If the protocol is TCP or UDP, this is the start of the port range.
-
#ip_protocol ⇒ String
The IP protocol name (‘tcp`, `udp`, `icmp`, `icmpv6`) or number (see [Protocol Numbers]).
-
#ip_ranges ⇒ Array<Types::IpRange>
The IPv4 ranges.
-
#ipv_6_ranges ⇒ Array<Types::Ipv6Range>
The IPv6 ranges.
-
#prefix_list_ids ⇒ Array<Types::PrefixListId>
The prefix list IDs.
-
#to_port ⇒ Integer
If the protocol is TCP or UDP, this is the end of the port range.
-
#user_id_group_pairs ⇒ Array<Types::UserIdGroupPair>
The security group and Amazon Web Services account ID pairs.
Instance Attribute Details
#from_port ⇒ Integer
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.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#ip_protocol ⇒ String
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.
[1]: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#ip_ranges ⇒ Array<Types::IpRange>
The IPv4 ranges.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#ipv_6_ranges ⇒ Array<Types::Ipv6Range>
The IPv6 ranges.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#prefix_list_ids ⇒ Array<Types::PrefixListId>
The prefix list IDs.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#to_port ⇒ Integer
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 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |
#user_id_group_pairs ⇒ Array<Types::UserIdGroupPair>
The security group and Amazon Web Services account ID pairs.
41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 |
# File 'lib/aws-sdk-ec2/types.rb', line 41445 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) SENSITIVE = [] include Aws::Structure end |