Class CfnDHCPOptionsProps
Properties for defining a CfnDHCPOptions
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDHCPOptionsProps : Object, ICfnDHCPOptionsProps
Syntax (vb)
Public Class CfnDHCPOptionsProps
Inherits Object
Implements ICfnDHCPOptionsProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnDHCPOptionsProps = new CfnDHCPOptionsProps {
DomainName = "domainName",
DomainNameServers = new [] { "domainNameServers" },
Ipv6AddressPreferredLeaseTime = 123,
NetbiosNameServers = new [] { "netbiosNameServers" },
NetbiosNodeType = 123,
NtpServers = new [] { "ntpServers" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnDHCPOptionsProps() |
Properties
DomainName | This value is used to complete unqualified DNS hostnames. |
DomainNameServers | The IPv4 addresses of up to four domain name servers, or |
Ipv6AddressPreferredLeaseTime | 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. |
NetbiosNameServers | The IPv4 addresses of up to four NetBIOS name servers. |
NetbiosNodeType | The NetBIOS node type (1, 2, 4, or 8). |
NtpServers | The IPv4 addresses of up to four Network Time Protocol (NTP) servers. |
Tags | Any tags assigned to the DHCP options set. |
Constructors
CfnDHCPOptionsProps()
public CfnDHCPOptionsProps()
Properties
DomainName
This value is used to complete unqualified DNS hostnames.
public string DomainName { get; set; }
Property Value
System.String
Remarks
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
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS
.
public string[] DomainNameServers { get; set; }
Property Value
System.String[]
Remarks
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
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.
public Nullable<double> Ipv6AddressPreferredLeaseTime { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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
The IPv4 addresses of up to four NetBIOS name servers.
public string[] NetbiosNameServers { get; set; }
Property Value
System.String[]
Remarks
NetbiosNodeType
The NetBIOS node type (1, 2, 4, or 8).
public Nullable<double> NetbiosNodeType { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
We recommend that you specify 2 (broadcast and multicast are not currently supported).
NtpServers
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
public string[] NtpServers { get; set; }
Property Value
System.String[]
Remarks
Tags
Any tags assigned to the DHCP options set.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]