interface CfnDHCPOptionsProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnDHCPOptionsProps |
Java | software.amazon.awscdk.services.ec2.CfnDHCPOptionsProps |
Python | aws_cdk.aws_ec2.CfnDHCPOptionsProps |
TypeScript | @aws-cdk/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 * as ec2 from '@aws-cdk/aws-ec2';
const cfnDHCPOptionsProps: ec2.CfnDHCPOptionsProps = {
domainName: 'domainName',
domainNameServers: ['domainNameServers'],
netbiosNameServers: ['netbiosNameServers'],
netbiosNodeType: 123,
ntpServers: ['ntpServers'],
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| domain | string | This value is used to complete unqualified DNS hostnames. |
| domain | string[] | The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS . |
| netbios | string[] | The IPv4 addresses of up to four NetBIOS name servers. |
| netbios | number | The NetBIOS node type (1, 2, 4, or 8). |
| ntp | string[] | The IPv4 addresses of up to four Network Time Protocol (NTP) servers. |
| tags? | Cfn[] | 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:
Cfn[]
(optional)
Any tags assigned to the DHCP options set.

.NET
Java
Python
TypeScript