VpcDhcpOptionsArgs

data class VpcDhcpOptionsArgs(val domainName: Output<String>? = null, val domainNameServers: Output<List<String>>? = null, val netbiosNameServers: Output<List<String>>? = null, val netbiosNodeType: Output<String>? = null, val ntpServers: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<VpcDhcpOptionsArgs>

Provides a VPC DHCP Options resource.

Example Usage

Basic usage:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcDhcpOptions;
import com.pulumi.aws.ec2.VpcDhcpOptionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dnsResolver = new VpcDhcpOptions("dnsResolver", VpcDhcpOptionsArgs.builder()
.domainNameServers(
"8.8.8.8",
"8.8.4.4")
.build());
}
}

Remarks

  • Notice that all arguments are optional but you have to specify at least one argument.

  • domain_name_servers, netbios_name_servers, ntp_servers are 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 default DHCP Option Set.

  • In most cases unless you're configuring your own DNS you'll want to set domain_name_servers to AmazonProvidedDNS.

Import

VPC DHCP Options can be imported using the dhcp options id, e.g.,

$ pulumi import aws:ec2/vpcDhcpOptions:VpcDhcpOptions my_options dopt-d9070ebb

Constructors

Link copied to clipboard
constructor(domainName: Output<String>? = null, domainNameServers: Output<List<String>>? = null, netbiosNameServers: Output<List<String>>? = null, netbiosNodeType: Output<String>? = null, ntpServers: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val domainName: Output<String>? = null

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.

Link copied to clipboard
val domainNameServers: Output<List<String>>? = null

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.

Link copied to clipboard
val netbiosNameServers: Output<List<String>>? = null

List of NETBIOS name servers.

Link copied to clipboard
val netbiosNodeType: Output<String>? = null

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.

Link copied to clipboard
val ntpServers: Output<List<String>>? = null

List of NTP servers to configure.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): VpcDhcpOptionsArgs