CfnDHCPOptionsProps
- class aws_cdk.aws_ec2.CfnDHCPOptionsProps(*, domain_name=None, domain_name_servers=None, netbios_name_servers=None, netbios_node_type=None, ntp_servers=None, tags=None)
Bases:
objectProperties for defining a
CfnDHCPOptions.- Parameters:
domain_name (
Optional[str]) – This value is used to complete unqualified DNS hostnames. If you’re using AmazonProvidedDNS inus-east-1, specifyec2.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 ).domain_name_servers (
Optional[Sequence[str]]) – The IPv4 addresses of up to four domain name servers, orAmazonProvidedDNS. The default isAmazonProvidedDNS. To have your instance receive a custom DNS hostname as specified inDomainName, you must set this property to a custom DNS server.netbios_name_servers (
Optional[Sequence[str]]) – The IPv4 addresses of up to four NetBIOS name servers.netbios_node_type (
Union[int,float,None]) – The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported).ntp_servers (
Optional[Sequence[str]]) – The IPv4 addresses of up to four Network Time Protocol (NTP) servers.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Any tags assigned to the DHCP options set.
- Link:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2 as ec2 cfn_dHCPOptions_props = ec2.CfnDHCPOptionsProps( domain_name="domainName", domain_name_servers=["domainNameServers"], netbios_name_servers=["netbiosNameServers"], netbios_node_type=123, ntp_servers=["ntpServers"], tags=[CfnTag( key="key", value="value" )] )
Attributes
- domain_name
This value is used to complete unqualified DNS hostnames.
If you’re using AmazonProvidedDNS in
us-east-1, specifyec2.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 ).
- domain_name_servers
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 inDomainName, you must set this property to a custom DNS server.
- netbios_name_servers
The IPv4 addresses of up to four NetBIOS name servers.
- netbios_node_type
The NetBIOS node type (1, 2, 4, or 8).
We recommend that you specify 2 (broadcast and multicast are not currently supported).
- ntp_servers
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
- tags
Any tags assigned to the DHCP options set.