You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::IpRange

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

Overview

Note:

When making an API call, you may pass IpRange data as a hash:

{
  cidr_ip: "String",
  description: "String",
}

Describes an IPv4 range.

Instance Attribute Summary collapse

Instance Attribute Details

#cidr_ipString

The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.

Returns:

  • (String)


16058
16059
16060
16061
16062
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16058

class IpRange < Struct.new(
  :cidr_ip,
  :description)
  include Aws::Structure
end

#descriptionString

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 ._-:/()#,@[]+=;{\}!$*

Returns:

  • (String)


16058
16059
16060
16061
16062
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 16058

class IpRange < Struct.new(
  :cidr_ip,
  :description)
  include Aws::Structure
end