DhcpOptionsSetArgs

data class DhcpOptionsSetArgs(val associateVpcs: Output<List<DhcpOptionsSetAssociateVpcArgs>>? = null, val dhcpOptionsSetDescription: Output<String>? = null, val dhcpOptionsSetName: Output<String>? = null, val domainName: Output<String>? = null, val domainNameServers: Output<String>? = null, val dryRun: Output<Boolean>? = null) : ConvertibleToJava<DhcpOptionsSetArgs>

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>

Constructors

Link copied to clipboard
fun DhcpOptionsSetArgs(associateVpcs: Output<List<DhcpOptionsSetAssociateVpcArgs>>? = null, dhcpOptionsSetDescription: Output<String>? = null, dhcpOptionsSetName: Output<String>? = null, domainName: Output<String>? = null, domainNameServers: Output<String>? = null, dryRun: Output<Boolean>? = null)

Functions

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

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
val dhcpOptionsSetDescription: Output<String>? = null

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
val dhcpOptionsSetName: Output<String>? = null

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

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
val domainNameServers: Output<String>? = null

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

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