Class: Aws::EC2::Types::IpRange
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::IpRange
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
Describes an IPv4 address range.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#cidr_ip ⇒ String
The IPv4 address range.
-
#description ⇒ String
A description for the security group rule that references this IPv4 address range.
Instance Attribute Details
#cidr_ip ⇒ String
The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
<note markdown=“1”> Amazon Web Services [canonicalizes] IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.
</note>
45850 45851 45852 45853 45854 45855 |
# File 'lib/aws-sdk-ec2/types.rb', line 45850 class IpRange < Struct.new( :description, :cidr_ip) SENSITIVE = [] include Aws::Structure end |
#description ⇒ String
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@+=&;{}!$*
45850 45851 45852 45853 45854 45855 |
# File 'lib/aws-sdk-ec2/types.rb', line 45850 class IpRange < Struct.new( :description, :cidr_ip) SENSITIVE = [] include Aws::Structure end |