---
title: Getting Started with Datadog
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Infrastructure > Datadog Resource Catalog
---

# aws_subnet{% #aws_subnet %}

## `account_id`{% #account_id %}

**Type**: `STRING`

## `assign_ipv6_address_on_creation`{% #assign_ipv6_address_on_creation %}

**Type**: `BOOLEAN`**Provider name**: `AssignIpv6AddressOnCreation`**Description**: Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.

## `availability_zone`{% #availability_zone %}

**Type**: `STRING`**Provider name**: `AvailabilityZone`**Description**: The Availability Zone of the subnet.

## `availability_zone_id`{% #availability_zone_id %}

**Type**: `STRING`**Provider name**: `AvailabilityZoneId`**Description**: The AZ ID of the subnet.

## `available_ip_address_count`{% #available_ip_address_count %}

**Type**: `INT32`**Provider name**: `AvailableIpAddressCount`**Description**: The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.

## `block_public_access_states`{% #block_public_access_states %}

**Type**: `STRUCT`**Provider name**: `BlockPublicAccessStates`**Description**: The state of VPC Block Public Access (BPA).

- `internet_gateway_block_mode`**Type**: `STRING`**Provider name**: `InternetGatewayBlockMode`**Description**: The mode of VPC BPA.
  - `off`: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.
  - `block-bidirectional`: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).
  - `block-ingress`: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

## `cidr_block`{% #cidr_block %}

**Type**: `STRING`**Provider name**: `CidrBlock`**Description**: The IPv4 CIDR block assigned to the subnet.

## `customer_owned_ipv4_pool`{% #customer_owned_ipv4_pool %}

**Type**: `STRING`**Provider name**: `CustomerOwnedIpv4Pool`**Description**: The customer-owned IPv4 address pool associated with the subnet.

## `default_for_az`{% #default_for_az %}

**Type**: `BOOLEAN`**Provider name**: `DefaultForAz`**Description**: Indicates whether this is the default subnet for the Availability Zone.

## `enable_dns64`{% #enable_dns64 %}

**Type**: `BOOLEAN`**Provider name**: `EnableDns64`**Description**: 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`{% #enable_lni_at_device_index %}

**Type**: `INT32`**Provider name**: `EnableLniAtDeviceIndex`**Description**: Indicates the device position for local network interfaces in this subnet. For example, `1` indicates local network interfaces in this subnet are the secondary network interface (eth1).

## `ipv6_cidr_block_association_set`{% #ipv6_cidr_block_association_set %}

**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `Ipv6CidrBlockAssociationSet`**Description**: Information about the IPv6 CIDR blocks associated with the subnet.

- `association_id`**Type**: `STRING`**Provider name**: `AssociationId`**Description**: The ID of the association.
- `ip_source`**Type**: `STRING`**Provider name**: `IpSource`**Description**: The source that allocated the IP address space. `byoip` or `amazon` indicates public IP address space allocated by Amazon or space that you have allocated with Bring your own IP (BYOIP). `none` indicates private space.
- `ipv6_address_attribute`**Type**: `STRING`**Provider name**: `Ipv6AddressAttribute`**Description**: Public IPv6 addresses are those advertised on the internet from Amazon Web Services. Private IP addresses are not and cannot be advertised on the internet from Amazon Web Services.
- `ipv6_cidr_block`**Type**: `STRING`**Provider name**: `Ipv6CidrBlock`**Description**: The IPv6 CIDR block.
- `ipv6_cidr_block_state`**Type**: `STRUCT`**Provider name**: `Ipv6CidrBlockState`**Description**: The state of the CIDR block.
  - `state`**Type**: `STRING`**Provider name**: `State`**Description**: The state of a CIDR block.
  - `status_message`**Type**: `STRING`**Provider name**: `StatusMessage`**Description**: A message about the status of the CIDR block, if applicable.

## `ipv6_native`{% #ipv6_native %}

**Type**: `BOOLEAN`**Provider name**: `Ipv6Native`**Description**: Indicates whether this is an IPv6 only subnet.

## `map_customer_owned_ip_on_launch`{% #map_customer_owned_ip_on_launch %}

**Type**: `BOOLEAN`**Provider name**: `MapCustomerOwnedIpOnLaunch`**Description**: 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`{% #map_public_ip_on_launch %}

**Type**: `BOOLEAN`**Provider name**: `MapPublicIpOnLaunch`**Description**: 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 Public IPv4 Address tab on the [Amazon VPC pricing page](http://aws.amazon.com/vpc/pricing/).

## `outpost_arn`{% #outpost_arn %}

**Type**: `STRING`**Provider name**: `OutpostArn`**Description**: The Amazon Resource Name (ARN) of the Outpost.

## `owner_id`{% #owner_id %}

**Type**: `STRING`**Provider name**: `OwnerId`**Description**: The ID of the Amazon Web Services account that owns the subnet.

## `private_dns_name_options_on_launch`{% #private_dns_name_options_on_launch %}

**Type**: `STRUCT`**Provider name**: `PrivateDnsNameOptionsOnLaunch`**Description**: 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.

- `enable_resource_name_dns_a_record`**Type**: `BOOLEAN`**Provider name**: `EnableResourceNameDnsARecord`**Description**: Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- `enable_resource_name_dns_aaaa_record`**Type**: `BOOLEAN`**Provider name**: `EnableResourceNameDnsAAAARecord`**Description**: Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- `hostname_type`**Type**: `STRING`**Provider name**: `HostnameType`**Description**: The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.

## `state`{% #state %}

**Type**: `STRING`**Provider name**: `State`**Description**: The current state of the subnet.

## `subnet_arn`{% #subnet_arn %}

**Type**: `STRING`**Provider name**: `SubnetArn`**Description**: The Amazon Resource Name (ARN) of the subnet.

## `subnet_id`{% #subnet_id %}

**Type**: `STRING`**Provider name**: `SubnetId`**Description**: The ID of the subnet.

## `tags`{% #tags %}

**Type**: `UNORDERED_LIST_STRING`

## `vpc_id`{% #vpc_id %}

**Type**: `STRING`**Provider name**: `VpcId`**Description**: The ID of the VPC the subnet is in.
