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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

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)

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

#availability_zoneString

The Availability Zone of the subnet.

Returns:

  • (String)

    The Availability Zone of the subnet.

#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)

    The number of unused private IPv4 addresses in the subnet.

#cidr_blockString

The IPv4 CIDR block assigned to the subnet.

Returns:

  • (String)

    The IPv4 CIDR block assigned to the subnet.

#default_for_azBoolean

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

Returns:

  • (Boolean)

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

#ipv_6_cidr_block_association_setArray<Types::SubnetIpv6CidrBlockAssociation>

Information about the IPv6 CIDR blocks associated with the subnet.

Returns:

#map_public_ip_on_launchBoolean

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

Returns:

  • (Boolean)

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

#stateString

The current state of the subnet.

Possible values:

  • pending
  • available

Returns:

  • (String)

    The current state of the subnet.

#subnet_idString

The ID of the subnet.

Returns:

  • (String)

    The ID of the subnet.

#tagsArray<Types::Tag>

Any tags assigned to the subnet.

Returns:

  • (Array<Types::Tag>)

    Any tags assigned to the subnet.

#vpc_idString

The ID of the VPC the subnet is in.

Returns:

  • (String)

    The ID of the VPC the subnet is in.