Class CfnDHCPOptions
Specifies a set of DHCP options for your VPC.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDHCPOptions : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnDHCPOptions
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
You must specify at least one of the following properties: DomainNameServers
, NetbiosNameServers
, NtpServers
. If you specify NetbiosNameServers
, you must specify NetbiosNodeType
.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html
CloudformationResource: AWS::EC2::DHCPOptions
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 cfnDHCPOptions = new CfnDHCPOptions(this, "MyCfnDHCPOptions", 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
CfnDHCPOptions(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDHCPOptions(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnDHCPOptions(Construct, String, ICfnDHCPOptionsProps) |
Properties
AttrDhcpOptionsId | The ID of the DHCP options set. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | Any tags assigned to the DHCP options set. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDHCPOptions(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDHCPOptions(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDHCPOptions(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDHCPOptions(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnDHCPOptions(Construct, String, ICfnDHCPOptionsProps)
public CfnDHCPOptions(Construct scope, string id, ICfnDHCPOptionsProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnDHCPOptionsProps
Resource properties.
Properties
AttrDhcpOptionsId
The ID of the DHCP options set.
public virtual string AttrDhcpOptionsId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: DhcpOptionsId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DomainName
This value is used to complete unqualified DNS hostnames.
public virtual string DomainName { get; set; }
Property Value
System.String
DomainNameServers
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS
.
public virtual string[] DomainNameServers { get; set; }
Property Value
System.String[]
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 virtual Nullable<double> Ipv6AddressPreferredLeaseTime { get; set; }
Property Value
System.Nullable<System.Double>
NetbiosNameServers
The IPv4 addresses of up to four NetBIOS name servers.
public virtual string[] NetbiosNameServers { get; set; }
Property Value
System.String[]
NetbiosNodeType
The NetBIOS node type (1, 2, 4, or 8).
public virtual Nullable<double> NetbiosNodeType { get; set; }
Property Value
System.Nullable<System.Double>
NtpServers
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
public virtual string[] NtpServers { get; set; }
Property Value
System.String[]
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Any tags assigned to the DHCP options set.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>