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

Class: Aws::EC2::Types::Subnet

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

Overview

Describes a subnet.

Instance Attribute Summary collapse

Instance Attribute Details

#assign_ipv_6_address_on_creationBoolean

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.

Returns:

  • (Boolean)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#availability_zoneString

The Availability Zone of the subnet.

Returns:

  • (String)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#available_ip_address_countInteger

The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any stopped instances are considered unavailable.

Returns:

  • (Integer)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#cidr_blockString

The IPv4 CIDR block assigned to the subnet.

Returns:

  • (String)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#default_for_azBoolean

Indicates whether this is the default subnet for the Availability Zone.

Returns:

  • (Boolean)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#ipv_6_cidr_block_association_setArray<Types::SubnetIpv6CidrBlockAssociation>

Information about the IPv6 CIDR blocks associated with the subnet.



28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#map_public_ip_on_launchBoolean

Indicates whether instances launched in this subnet receive a public IPv4 address.

Returns:

  • (Boolean)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#stateString

The current state of the subnet.

Returns:

  • (String)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#subnet_idString

The ID of the subnet.

Returns:

  • (String)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

Any tags assigned to the subnet.

Returns:



28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end

#vpc_idString

The ID of the VPC the subnet is in.

Returns:

  • (String)


28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28292

class Subnet < Struct.new(
  :availability_zone,
  :available_ip_address_count,
  :cidr_block,
  :default_for_az,
  :map_public_ip_on_launch,
  :state,
  :subnet_id,
  :vpc_id,
  :assign_ipv_6_address_on_creation,
  :ipv_6_cidr_block_association_set,
  :tags)
  include Aws::Structure
end