Skip to content

Data Source: awsVpcDhcpOptions

Retrieve information about an EC2 DHCP Options configuration.

Example Usage

Lookup by DHCP Options ID

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsVpcDhcpOptions.DataAwsVpcDhcpOptions(this, "example", {
  dhcpOptionsId: "dopts-12345678",
});

Lookup by Filter

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsVpcDhcpOptions.DataAwsVpcDhcpOptions(this, "example", {
  filter: [
    {
      name: "key",
      values: ["domain-name"],
    },
    {
      name: "value",
      values: ["example.com"],
    },
  ],
});

Argument Reference

  • dhcpOptionsId - (Optional) EC2 DHCP Options ID.
  • filter - (Optional) List of custom filters as described below.

filter

For more information about filtering, see the EC2 API documentation.

  • name - (Required) Name of the field to filter.
  • values - (Required) Set of values for filtering.

Attributes Reference

  • arn - ARN of the DHCP Options Set.
  • dhcpOptionsId - EC2 DHCP Options ID
  • domainName - Suffix domain name to used when resolving non Fully Qualified Domain NamesE.g., the search value in the /etc/resolvConf file.
  • domainNameServers - List of name servers.
  • id - EC2 DHCP Options ID
  • netbiosNameServers - List of NETBIOS name servers.
  • netbiosNodeType - NetBIOS node type (1, 2, 4, or 8). For more information about these node types, see RFC 2132.
  • ntpServers - List of NTP servers.
  • tags - Map of tags assigned to the resource.
  • ownerId - ID of the AWS account that owns the DHCP options set.

Timeouts

Configuration options:

  • read - (Default 20M)