---
title: Subnet
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Subnet
---

# Subnet

This table represents the Subnet resource from Amazon Web Services.

```
aws.subnet
```

## Fields

| Title                              | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                               | Description |
| ---------------------------------- | ---- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                               | core | string     |
| account_id                         | core | string     |
| assign_ipv6_address_on_creation    | core | bool       | Indicates whether a network interface created in this subnet (including a network interface created by <a>RunInstances</a>) receives an IPv6 address.                                                                                                                                                                                                                                   |
| availability_zone                  | core | string     | The Availability Zone of the subnet.                                                                                                                                                                                                                                                                                                                                                    |
| availability_zone_id               | core | string     | The AZ ID of the subnet.                                                                                                                                                                                                                                                                                                                                                                |
| available_ip_address_count         | core | int64      | The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.                                                                                                                                                                                                                                                     |
| block_public_access_states         | core | json       | The state of VPC Block Public Access (BPA).                                                                                                                                                                                                                                                                                                                                             |
| cidr_block                         | core | string     | The IPv4 CIDR block assigned to the subnet.                                                                                                                                                                                                                                                                                                                                             |
| customer_owned_ipv4_pool           | core | string     | The customer-owned IPv4 address pool associated with the subnet.                                                                                                                                                                                                                                                                                                                        |
| default_for_az                     | core | bool       | Indicates whether this is the default subnet for the Availability Zone.                                                                                                                                                                                                                                                                                                                 |
| enable_dns64                       | core | bool       | Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.                                                                                                                                                                                                                                |
| enable_lni_at_device_index         | core | int64      | Indicates the device position for local network interfaces in this subnet. For example, <code>1</code> indicates local network interfaces in this subnet are the secondary network interface (eth1).                                                                                                                                                                                    |
| ipv6_cidr_block_association_set    | core | json       | Information about the IPv6 CIDR blocks associated with the subnet.                                                                                                                                                                                                                                                                                                                      |
| ipv6_native                        | core | bool       | Indicates whether this is an IPv6 only subnet.                                                                                                                                                                                                                                                                                                                                          |
| map_customer_owned_ip_on_launch    | core | bool       | Indicates whether a network interface created in this subnet (including a network interface created by <a>RunInstances</a>) receives a customer-owned IPv4 address.                                                                                                                                                                                                                     |
| map_public_ip_on_launch            | core | bool       | Indicates whether instances launched in this subnet receive a public IPv4 address. Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>. |
| outpost_arn                        | core | string     | The Amazon Resource Name (ARN) of the Outpost.                                                                                                                                                                                                                                                                                                                                          |
| owner_id                           | core | string     | The ID of the Amazon Web Services account that owns the subnet.                                                                                                                                                                                                                                                                                                                         |
| private_dns_name_options_on_launch | core | json       | The type of hostnames to assign to instances in the subnet at launch. An instance hostname is based on the IPv4 address or ID of the instance.                                                                                                                                                                                                                                          |
| state                              | core | string     | The current state of the subnet.                                                                                                                                                                                                                                                                                                                                                        |
| subnet_arn                         | core | string     | The Amazon Resource Name (ARN) of the subnet.                                                                                                                                                                                                                                                                                                                                           |
| subnet_id                          | core | string     | The ID of the subnet.                                                                                                                                                                                                                                                                                                                                                                   |
| tags                               | core | hstore_csv |
| vpc_id                             | core | string     | The ID of the VPC the subnet is in.                                                                                                                                                                                                                                                                                                                                                     |
