aws-cdk-lib.aws_ec2.CfnDHCPOptionsProps

interface CfnDHCPOptionsProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnDHCPOptionsProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnDHCPOptionsProps
Javasoftware.amazon.awscdk.services.ec2.CfnDHCPOptionsProps
Pythonaws_cdk.aws_ec2.CfnDHCPOptionsProps
TypeScript aws-cdk-lib » aws_ec2 » CfnDHCPOptionsProps

Properties for defining a CfnDHCPOptions.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnDHCPOptionsProps: ec2.CfnDHCPOptionsProps = {
  domainName: 'domainName',
  domainNameServers: ['domainNameServers'],
  netbiosNameServers: ['netbiosNameServers'],
  netbiosNodeType: 123,
  ntpServers: ['ntpServers'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
domainName?stringThis value is used to complete unqualified DNS hostnames.
domainNameServers?string[]The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS .
netbiosNameServers?string[]The IPv4 addresses of up to four NetBIOS name servers.
netbiosNodeType?numberThe NetBIOS node type (1, 2, 4, or 8).
ntpServers?string[]The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
tags?CfnTag[]Any tags assigned to the DHCP options set.

domainName?

Type: string (optional)

This value is used to complete unqualified DNS hostnames.

If you're using AmazonProvidedDNS in us-east-1 , specify ec2.internal . If you're using AmazonProvidedDNS in another Region, specify region . compute.internal (for example, ap-northeast-1.compute.internal ). Otherwise, specify a domain name (for example, MyCompany.com ).


domainNameServers?

Type: string[] (optional)

The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS .

The default is AmazonProvidedDNS . To have your instance receive a custom DNS hostname as specified in DomainName , you must set this property to a custom DNS server.


netbiosNameServers?

Type: string[] (optional)

The IPv4 addresses of up to four NetBIOS name servers.


netbiosNodeType?

Type: number (optional)

The NetBIOS node type (1, 2, 4, or 8).

We recommend that you specify 2 (broadcast and multicast are not currently supported).


ntpServers?

Type: string[] (optional)

The IPv4 addresses of up to four Network Time Protocol (NTP) servers.


tags?

Type: CfnTag[] (optional)

Any tags assigned to the DHCP options set.