VpcDhcpOptions

class VpcDhcpOptions : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the DHCP Options Set.

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

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

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 id: Output<String>
Link copied to clipboard

List of NETBIOS name servers.

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

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>>?

List of NTP servers to configure.

Link copied to clipboard
val ownerId: Output<String>

The ID of the AWS account that owns the DHCP options set.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>