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.

#availability_zone_idString

The AZ ID of the subnet.

Returns:

  • (String)

    The AZ ID of the subnet.

#available_ip_address_countInteger

The number of unused private IPv4 addresses in the subnet. 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.

#customer_owned_ipv_4_poolString

The customer-owned IPv4 address pool associated with the subnet.

Returns:

  • (String)

    The customer-owned IPv4 address pool associated with 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_customer_owned_ip_on_launchBoolean

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.

Returns:

  • (Boolean)

    Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.

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

#outpost_arnString

The Amazon Resource Name (ARN) of the Outpost.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the Outpost.

#owner_idString

The ID of the AWS account that owns the subnet.

Returns:

  • (String)

    The ID of the AWS account that owns the subnet.

#stateString

The current state of the subnet.

Possible values:

  • pending
  • available

Returns:

  • (String)

    The current state of the subnet.

#subnet_arnString

The Amazon Resource Name (ARN) of the subnet.

Returns:

  • (String)

    The Amazon Resource Name (ARN) 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.