DhcpOptionsSet

Provides a VPC Dhcp Options Set resource. For information about VPC Dhcp Options Set and how to use it, see What is Dhcp Options Set.

NOTE: Available in v1.134.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.DhcpOptionsSet;
import com.pulumi.alicloud.vpc.DhcpOptionsSetArgs;
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 example = new DhcpOptionsSet("example", DhcpOptionsSetArgs.builder()
.dhcpOptionsSetDescription("example_value")
.dhcpOptionsSetName("example_value")
.domainName("example.com")
.domainNameServers("100.100.2.136")
.build());
}
}

Import

VPC Dhcp Options Set can be imported using the id, e.g.

$ pulumi import alicloud:vpc/dhcpOptionsSet:DhcpOptionsSet example <id>

Properties

Link copied to clipboard

AssociateVpcs. Number of VPCs that can be associated with each DHCP options set is 10. Field associate_vpcs has been deprecated from provider version 1.153.0. It will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc.

Link copied to clipboard

The description of the DHCP options set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Link copied to clipboard

The name of the DHCP options set. The name must be 2 to 128 characters in length and can contain letters, Chinese characters, digits, underscores (_), and hyphens (-). It must start with a letter or a Chinese character.

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

The root domain, for example, example.com. After a DHCP options set is associated with a Virtual Private Cloud (VPC) network, the root domain in the DHCP options set is automatically synchronized to the ECS instances in the VPC network.

Link copied to clipboard

The DNS server IP addresses. Up to four DNS server IP addresses can be specified. IP addresses must be separated with commas (,).Before you specify any DNS server IP address, all ECS instances in the associated VPC network use the IP addresses of the Alibaba Cloud DNS servers, which are 100.100.2.136 and 100.100.2.138.

Link copied to clipboard
val dryRun: Output<Boolean>?

Specifies whether to precheck this request only. Valid values: true or false.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ownerId: Output<String>

The ID of the account to which the DHCP options set belongs.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the DHCP options set. Valid values: Available, InUse or Pending. Available: The DHCP options set is available for use. InUse: The DHCP options set is in use. Pending: The DHCP options set is being configured.

Link copied to clipboard
val urn: Output<String>