CfnDHCPOptionsProps Struct
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'],
ipv6AddressPreferredLeaseTime: 123,
netbiosNameServers: ['netbiosNameServers'],
netbiosNodeType: 123,
ntpServers: ['ntpServers'],
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
notes
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 ).
domainNameServersstring[]domain_name_serverstyping.List[str]domainNameServersList<String>DomainNameServersstring[]DomainNameServers*[]*string#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.
ipv6AddressPreferredLeaseTimenumberipv6_address_preferred_lease_timeint | floatipv6AddressPreferredLeaseTimeNumberIpv6AddressPreferredLeaseTimedoubleIpv6AddressPreferredLeaseTime*float64#notes
Acceptable values are between 140 and 2147483647 seconds (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
netbiosNameServersstring[]netbios_name_serverstyping.List[str]netbiosNameServersList<String>NetbiosNameServersstring[]NetbiosNameServers*[]*string#netbiosNodeTypenumbernetbios_node_typeint | floatnetbiosNodeTypeNumberNetbiosNodeTypedoubleNetbiosNodeType*float64#We recommend that you specify 2 (broadcast and multicast are not currently supported).
ntpServersstring[]ntp_serverstyping.List[str]ntpServersList<String>NtpServersstring[]NtpServers*[]*string#