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_creation ⇒ Boolean

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_zone ⇒ String

The Availability Zone of the subnet.

Returns:

  • (String) —

    The Availability Zone of the subnet.

#availability_zone_id ⇒ String

The AZ ID of the subnet.

Returns:

  • (String) —

    The AZ ID of the subnet.

#available_ip_address_count ⇒ Integer

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_block ⇒ String

The IPv4 CIDR block assigned to the subnet.

Returns:

  • (String) —

    The IPv4 CIDR block assigned to the subnet.

#customer_owned_ipv_4_pool ⇒ String

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

Returns:

  • (String) —

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

#default_for_az ⇒ Boolean

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_set ⇒ Array<Types::SubnetIpv6CidrBlockAssociation>

Information about the IPv6 CIDR blocks associated with the subnet.

Returns:

#map_customer_owned_ip_on_launch ⇒ Boolean

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_launch ⇒ Boolean

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_arn ⇒ String

The Amazon Resource Name (ARN) of the Outpost.

Returns:

  • (String) —

    The Amazon Resource Name (ARN) of the Outpost.

#owner_id ⇒ String

The ID of the AWS account that owns the subnet.

Returns:

  • (String) —

    The ID of the AWS account that owns the subnet.

#state ⇒ String

The current state of the subnet.

Possible values:

  • pending
  • available

Returns:

  • (String) —

    The current state of the subnet.

#subnet_arn ⇒ String

The Amazon Resource Name (ARN) of the subnet.

Returns:

  • (String) —

    The Amazon Resource Name (ARN) of the subnet.

#subnet_id ⇒ String

The ID of the subnet.

Returns:

  • (String) —

    The ID of the subnet.

#tags ⇒ Array<Types::Tag>

Any tags assigned to the subnet.

Returns:

  • (Array<Types::Tag>) —

    Any tags assigned to the subnet.

#vpc_id ⇒ String

The ID of the VPC the subnet is in.

Returns:

  • (String) —

    The ID of the VPC the subnet is in.