Interface ICfnDHCPOptionsProps
Properties for defining a CfnDHCPOptions.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnDHCPOptionsProps
Syntax (vb)
Public Interface 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
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. |
Properties
DomainName
This value is used to complete unqualified DNS hostnames.
string? DomainName { get; }
Property Value
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 .
string[]? DomainNameServers { get; }
Property Value
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.
double? Ipv6AddressPreferredLeaseTime { get; }
Property Value
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.
string[]? NetbiosNameServers { get; }
Property Value
string[]
Remarks
NetbiosNodeType
The NetBIOS node type (1, 2, 4, or 8).
double? NetbiosNodeType { get; }
Property Value
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.
string[]? NtpServers { get; }
Property Value
string[]
Remarks
Tags
Any tags assigned to the DHCP options set.
ICfnTag[]? Tags { get; }
Property Value
ICfnTag[]