@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.137Z") @Stability(value=Stable) public class CfnDHCPOptions extends CfnResource implements IInspectable
Specifies a set of DHCP options for your VPC.
You must specify at least one of the following properties: DomainNameServers , NetbiosNameServers , NtpServers . If you specify NetbiosNameServers , you must specify NetbiosNodeType .
Example:
// 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.*;
CfnDHCPOptions cfnDHCPOptions = CfnDHCPOptions.Builder.create(this, "MyCfnDHCPOptions")
.domainName("domainName")
.domainNameServers(List.of("domainNameServers"))
.netbiosNameServers(List.of("netbiosNameServers"))
.netbiosNodeType(123)
.ntpServers(List.of("ntpServers"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDHCPOptions.Builder
A fluent builder for
CfnDHCPOptions. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDHCPOptions(software.constructs.Construct scope,
String id)
Create a new `AWS::EC2::DHCPOptions`.
|
|
CfnDHCPOptions(software.constructs.Construct scope,
String id,
CfnDHCPOptionsProps props)
Create a new `AWS::EC2::DHCPOptions`.
|
protected |
CfnDHCPOptions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDHCPOptions(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDhcpOptionsId()
The ID of the DHCP options set.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomainName()
This value is used to complete unqualified DNS hostnames.
|
List<String> |
getDomainNameServers()
The IPv4 addresses of up to four domain name servers, or `AmazonProvidedDNS` .
|
List<String> |
getNetbiosNameServers()
The IPv4 addresses of up to four NetBIOS name servers.
|
Number |
getNetbiosNodeType()
The NetBIOS node type (1, 2, 4, or 8).
|
List<String> |
getNtpServers()
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
|
TagManager |
getTags()
Any tags assigned to the DHCP options set.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDomainName(String value)
This value is used to complete unqualified DNS hostnames.
|
void |
setDomainNameServers(List<String> value)
The IPv4 addresses of up to four domain name servers, or `AmazonProvidedDNS` .
|
void |
setNetbiosNameServers(List<String> value)
The IPv4 addresses of up to four NetBIOS name servers.
|
void |
setNetbiosNodeType(Number value)
The NetBIOS node type (1, 2, 4, or 8).
|
void |
setNtpServers(List<String> value)
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDHCPOptions(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDHCPOptions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDHCPOptions(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnDHCPOptionsProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnDHCPOptions(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDhcpOptionsId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getDomainName()
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 ).
@Stability(value=Stable)
public void setDomainName(@Nullable
String value)
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 ).
@Stability(value=Stable) @Nullable public List<String> getDomainNameServers()
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.
@Stability(value=Stable)
public void setDomainNameServers(@Nullable
List<String> value)
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.
@Stability(value=Stable) @Nullable public List<String> getNetbiosNameServers()
@Stability(value=Stable)
public void setNetbiosNameServers(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public Number getNetbiosNodeType()
We recommend that you specify 2 (broadcast and multicast are not currently supported).
@Stability(value=Stable)
public void setNetbiosNodeType(@Nullable
Number value)
We recommend that you specify 2 (broadcast and multicast are not currently supported).
@Stability(value=Stable) @Nullable public List<String> getNtpServers()
Copyright © 2022. All rights reserved.