Class VpcDhcpOptions
Provides a VPC DHCP Options resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var dnsResolver = new Aws.Ec2.VpcDhcpOptions("dnsResolver", new Aws.Ec2.VpcDhcpOptionsArgs
{
DomainNameServers =
{
"8.8.8.8",
"8.8.4.4",
},
});
}
}
Remarks
- Notice that all arguments are optional but you have to specify at least one argument.
domain_name_servers,netbios_name_servers,ntp_serversare limited by AWS to maximum four servers only.- To actually use the DHCP Options Set you need to associate it to a VPC using
aws.ec2.VpcDhcpOptionsAssociation. - If you delete a DHCP Options Set, all VPCs using it will be associated to AWS's
defaultDHCP Option Set. - In most cases unless you're configuring your own DNS you'll want to set
domain_name_serverstoAmazonProvidedDNS.
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpcDhcpOptions : CustomResource
Constructors
View SourceVpcDhcpOptions(String, VpcDhcpOptionsArgs, CustomResourceOptions)
Create a VpcDhcpOptions resource with the given unique name, arguments, and options.
Declaration
public VpcDhcpOptions(string name, VpcDhcpOptionsArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcDhcpOptionsArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDomainName
the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the search value in the /etc/resolv.conf file.
Declaration
public Output<string> DomainName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DomainNameServers
List of name servers to configure in /etc/resolv.conf. If you want to use the default AWS nameservers you should set this to AmazonProvidedDNS.
Declaration
public Output<ImmutableArray<string>> DomainNameServers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
NetbiosNameServers
List of NETBIOS name servers.
Declaration
public Output<ImmutableArray<string>> NetbiosNameServers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
NetbiosNodeType
The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
Declaration
public Output<string> NetbiosNodeType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NtpServers
List of NTP servers to configure.
Declaration
public Output<ImmutableArray<string>> NtpServers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
OwnerId
The ID of the AWS account that owns the DHCP options set.
Declaration
public Output<string> OwnerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, VpcDhcpOptionsState, CustomResourceOptions)
Get an existing VpcDhcpOptions resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcDhcpOptions Get(string name, Input<string> id, VpcDhcpOptionsState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VpcDhcpOptionsState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcDhcpOptions |