interface CfnDHCPOptionsProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnDHCPOptionsProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnDHCPOptionsProps |
Java | software.amazon.awscdk.services.ec2.CfnDHCPOptionsProps |
Python | aws_cdk.aws_ec2.CfnDHCPOptionsProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnDHCPOptionsProps |
Properties for defining a CfnDHCPOptions
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html
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
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 . |
ipv6 | number | A value (in seconds, minutes, hours, or years) for how frequently a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. |
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.
ipv6AddressPreferredLeaseTime?
Type:
number
(optional)
A value (in seconds, minutes, hours, or years) for how frequently a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal.
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.
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.