CfnDHCPOptionsProps Struct
Properties for defining a CfnDHCPOptions.
| Source | |
|---|---|
| Type last changed |
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',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_dhcp_options_props = ec2.CfnDHCPOptionsProps(
domain_name="domainName",
domain_name_servers=["domainNameServers"],
ipv6_address_preferred_lease_time=123,
netbios_name_servers=["netbiosNameServers"],
netbios_node_type=123,
ntp_servers=["ntpServers"],
tags=[CfnTag(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnDHCPOptionsProps cfnDHCPOptionsProps = CfnDHCPOptionsProps.builder()
.domainName("domainName")
.domainNameServers(List.of("domainNameServers"))
.ipv6AddressPreferredLeaseTime(123)
.netbiosNameServers(List.of("netbiosNameServers"))
.netbiosNodeType(123)
.ntpServers(List.of("ntpServers"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// 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"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnDHCPOptionsProps := &CfnDHCPOptionsProps{
DomainName: jsii.String("domainName"),
DomainNameServers: []*string{
jsii.String("domainNameServers"),
},
Ipv6AddressPreferredLeaseTime: jsii.Number(123),
NetbiosNameServers: []*string{
jsii.String("netbiosNameServers"),
},
NetbiosNodeType: jsii.Number(123),
NtpServers: []*string{
jsii.String("ntpServers"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
domainNameoptionalstringdomain_nameoptionalstrdomainNameoptionalStringDomainNameoptionalstringDomainNameoptional*string #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 ).
domainNameServersoptionalstring[]domain_name_serversoptionaltyping.List[str]domainNameServersoptionalList<String>DomainNameServersoptionalstring[]DomainNameServersoptional*[]*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.
ipv6AddressPreferredLeaseTimeoptionalnumberipv6_address_preferred_lease_timeoptionalint | floatipv6AddressPreferredLeaseTimeoptionalNumberIpv6AddressPreferredLeaseTimeoptionaldoubleIpv6AddressPreferredLeaseTimeoptional*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.
netbiosNameServersoptionalstring[]netbios_name_serversoptionaltyping.List[str]netbiosNameServersoptionalList<String>NetbiosNameServersoptionalstring[]NetbiosNameServersoptional*[]*string #netbiosNodeTypeoptionalnumbernetbios_node_typeoptionalint | floatnetbiosNodeTypeoptionalNumberNetbiosNodeTypeoptionaldoubleNetbiosNodeTypeoptional*float64 #We recommend that you specify 2 (broadcast and multicast are not currently supported).
ntpServersoptionalstring[]ntp_serversoptionaltyping.List[str]ntpServersoptionalList<String>NtpServersoptionalstring[]NtpServersoptional*[]*string #