Class: Aws::EC2::Types::IpPermission
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::IpPermission
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass IpPermission data as a hash:
{
from_port: 1,
ip_protocol: "String",
ip_ranges: [
{
cidr_ip: "String",
},
],
ipv_6_ranges: [
{
cidr_ipv_6: "String",
},
],
prefix_list_ids: [
{
prefix_list_id: "String",
},
],
to_port: 1,
user_id_group_pairs: [
{
group_id: "String",
group_name: "String",
peering_status: "String",
user_id: "String",
vpc_id: "String",
vpc_peering_connection_id: "String",
},
],
}
Describes a security group rule.
Instance Attribute Summary collapse
-
#from_port ⇒ Integer
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
-
#ip_protocol ⇒ String
The IP protocol name (‘tcp`, `udp`, `icmp`) or number (see [Protocol Numbers]).
-
#ip_ranges ⇒ Array<Types::IpRange>
One or more IPv4 ranges.
-
#ipv_6_ranges ⇒ Array<Types::Ipv6Range>
[EC2-VPC only] One or more IPv6 ranges.
-
#prefix_list_ids ⇒ Array<Types::PrefixListId>
(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service.
-
#to_port ⇒ Integer
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
-
#user_id_group_pairs ⇒ Array<Types::UserIdGroupPair>
One or more security group and AWS account ID pairs.
Instance Attribute Details
#from_port ⇒ Integer
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of ‘-1` indicates all ICMP/ICMPv6 types.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#ip_protocol ⇒ String
The IP protocol name (‘tcp`, `udp`, `icmp`) or number (see [Protocol Numbers]).
[EC2-VPC only] Use ‘-1` to specify all protocols. When authorizing security group rules, specifying `-1` or a protocol number other than `tcp`, `udp`, `icmp`, or `58` (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 `58` (ICMPv6), you can optionally specify a port range; if you don’t, traffic for all types and codes is allowed when authorizing rules.
[1]: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#ip_ranges ⇒ Array<Types::IpRange>
One or more IPv4 ranges.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#ipv_6_ranges ⇒ Array<Types::Ipv6Range>
[EC2-VPC only] One or more IPv6 ranges.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#prefix_list_ids ⇒ Array<Types::PrefixListId>
(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#to_port ⇒ Integer
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 for the specified ICMP type.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |
#user_id_group_pairs ⇒ Array<Types::UserIdGroupPair>
One or more security group and AWS account ID pairs.
15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 |
# File 'lib/aws-sdk-ec2/types.rb', line 15769 class IpPermission < Struct.new( :from_port, :ip_protocol, :ip_ranges, :ipv_6_ranges, :prefix_list_ids, :to_port, :user_id_group_pairs) include Aws::Structure end |