alicloud.vpc.DhcpOptionsSet
Explore with Pulumi AI
Provides a VPC Dhcp Options Set resource.
DHCP option set.
For information about VPC Dhcp Options Set and how to use it, see What is Dhcp Options Set.
NOTE: Available since v1.134.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const domain = config.get("domain") || "terraform-example.com";
const example = new alicloud.vpc.DhcpOptionsSet("example", {
dhcpOptionsSetName: name,
dhcpOptionsSetDescription: name,
domainName: domain,
domainNameServers: "100.100.2.136",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
domain = config.get("domain")
if domain is None:
domain = "terraform-example.com"
example = alicloud.vpc.DhcpOptionsSet("example",
dhcp_options_set_name=name,
dhcp_options_set_description=name,
domain_name=domain,
domain_name_servers="100.100.2.136")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
domain := "terraform-example.com"
if param := cfg.Get("domain"); param != "" {
domain = param
}
_, err := vpc.NewDhcpOptionsSet(ctx, "example", &vpc.DhcpOptionsSetArgs{
DhcpOptionsSetName: pulumi.String(name),
DhcpOptionsSetDescription: pulumi.String(name),
DomainName: pulumi.String(domain),
DomainNameServers: pulumi.String("100.100.2.136"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var domain = config.Get("domain") ?? "terraform-example.com";
var example = new AliCloud.Vpc.DhcpOptionsSet("example", new()
{
DhcpOptionsSetName = name,
DhcpOptionsSetDescription = name,
DomainName = domain,
DomainNameServers = "100.100.2.136",
});
});
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var domain = config.get("domain").orElse("terraform-example.com");
var example = new DhcpOptionsSet("example", DhcpOptionsSetArgs.builder()
.dhcpOptionsSetName(name)
.dhcpOptionsSetDescription(name)
.domainName(domain)
.domainNameServers("100.100.2.136")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
domain:
type: string
default: terraform-example.com
resources:
example:
type: alicloud:vpc:DhcpOptionsSet
properties:
dhcpOptionsSetName: ${name}
dhcpOptionsSetDescription: ${name}
domainName: ${domain}
domainNameServers: 100.100.2.136
Create DhcpOptionsSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DhcpOptionsSet(name: string, args?: DhcpOptionsSetArgs, opts?: CustomResourceOptions);
@overload
def DhcpOptionsSet(resource_name: str,
args: Optional[DhcpOptionsSetArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DhcpOptionsSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
associate_vpcs: Optional[Sequence[DhcpOptionsSetAssociateVpcArgs]] = None,
dhcp_options_set_description: Optional[str] = None,
dhcp_options_set_name: Optional[str] = None,
domain_name: Optional[str] = None,
domain_name_servers: Optional[str] = None,
dry_run: Optional[bool] = None,
ipv6_lease_time: Optional[str] = None,
lease_time: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDhcpOptionsSet(ctx *Context, name string, args *DhcpOptionsSetArgs, opts ...ResourceOption) (*DhcpOptionsSet, error)
public DhcpOptionsSet(string name, DhcpOptionsSetArgs? args = null, CustomResourceOptions? opts = null)
public DhcpOptionsSet(String name, DhcpOptionsSetArgs args)
public DhcpOptionsSet(String name, DhcpOptionsSetArgs args, CustomResourceOptions options)
type: alicloud:vpc:DhcpOptionsSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DhcpOptionsSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DhcpOptionsSetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DhcpOptionsSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DhcpOptionsSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DhcpOptionsSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dhcpOptionsSetResource = new AliCloud.Vpc.DhcpOptionsSet("dhcpOptionsSetResource", new()
{
DhcpOptionsSetDescription = "string",
DhcpOptionsSetName = "string",
DomainName = "string",
DomainNameServers = "string",
DryRun = false,
Ipv6LeaseTime = "string",
LeaseTime = "string",
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := vpc.NewDhcpOptionsSet(ctx, "dhcpOptionsSetResource", &vpc.DhcpOptionsSetArgs{
DhcpOptionsSetDescription: pulumi.String("string"),
DhcpOptionsSetName: pulumi.String("string"),
DomainName: pulumi.String("string"),
DomainNameServers: pulumi.String("string"),
DryRun: pulumi.Bool(false),
Ipv6LeaseTime: pulumi.String("string"),
LeaseTime: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dhcpOptionsSetResource = new DhcpOptionsSet("dhcpOptionsSetResource", DhcpOptionsSetArgs.builder()
.dhcpOptionsSetDescription("string")
.dhcpOptionsSetName("string")
.domainName("string")
.domainNameServers("string")
.dryRun(false)
.ipv6LeaseTime("string")
.leaseTime("string")
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.build());
dhcp_options_set_resource = alicloud.vpc.DhcpOptionsSet("dhcpOptionsSetResource",
dhcp_options_set_description="string",
dhcp_options_set_name="string",
domain_name="string",
domain_name_servers="string",
dry_run=False,
ipv6_lease_time="string",
lease_time="string",
resource_group_id="string",
tags={
"string": "string",
})
const dhcpOptionsSetResource = new alicloud.vpc.DhcpOptionsSet("dhcpOptionsSetResource", {
dhcpOptionsSetDescription: "string",
dhcpOptionsSetName: "string",
domainName: "string",
domainNameServers: "string",
dryRun: false,
ipv6LeaseTime: "string",
leaseTime: "string",
resourceGroupId: "string",
tags: {
string: "string",
},
});
type: alicloud:vpc:DhcpOptionsSet
properties:
dhcpOptionsSetDescription: string
dhcpOptionsSetName: string
domainName: string
domainNameServers: string
dryRun: false
ipv6LeaseTime: string
leaseTime: string
resourceGroupId: string
tags:
string: string
DhcpOptionsSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DhcpOptionsSet resource accepts the following input properties:
- Associate
Vpcs List<Pulumi.Ali Cloud. Vpc. Inputs. Dhcp Options Set Associate Vpc> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - Dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- Dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- Domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- Domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- Dry
Run bool - Whether to PreCheck only this request, value:
- Ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- Lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- Resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- Dictionary<string, string>
- Tags of the current resource.
- Associate
Vpcs []DhcpOptions Set Associate Vpc Args - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - Dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- Dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- Domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- Domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- Dry
Run bool - Whether to PreCheck only this request, value:
- Ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- Lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- Resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- map[string]string
- Tags of the current resource.
- associate
Vpcs List<DhcpOptions Set Associate Vpc> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options StringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options StringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name String - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name StringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run Boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time String - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time String - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- resource
Group StringId - The ID of the resource group to which the DHCP options set belongs.
- Map<String,String>
- Tags of the current resource.
- associate
Vpcs DhcpOptions Set Associate Vpc[] - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- {[key: string]: string}
- Tags of the current resource.
- associate_
vpcs Sequence[DhcpOptions Set Associate Vpc Args] - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp_
options_ strset_ description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp_
options_ strset_ name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain_
name str - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain_
name_ strservers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry_
run bool - Whether to PreCheck only this request, value:
- ipv6_
lease_ strtime - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease_
time str - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- resource_
group_ strid - The ID of the resource group to which the DHCP options set belongs.
- Mapping[str, str]
- Tags of the current resource.
- associate
Vpcs List<Property Map> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options StringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options StringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name String - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name StringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run Boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time String - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time String - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- resource
Group StringId - The ID of the resource group to which the DHCP options set belongs.
- Map<String>
- Tags of the current resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DhcpOptionsSet resource produces the following output properties:
Look up Existing DhcpOptionsSet Resource
Get an existing DhcpOptionsSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DhcpOptionsSetState, opts?: CustomResourceOptions): DhcpOptionsSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associate_vpcs: Optional[Sequence[DhcpOptionsSetAssociateVpcArgs]] = None,
dhcp_options_set_description: Optional[str] = None,
dhcp_options_set_name: Optional[str] = None,
domain_name: Optional[str] = None,
domain_name_servers: Optional[str] = None,
dry_run: Optional[bool] = None,
ipv6_lease_time: Optional[str] = None,
lease_time: Optional[str] = None,
owner_id: Optional[int] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> DhcpOptionsSet
func GetDhcpOptionsSet(ctx *Context, name string, id IDInput, state *DhcpOptionsSetState, opts ...ResourceOption) (*DhcpOptionsSet, error)
public static DhcpOptionsSet Get(string name, Input<string> id, DhcpOptionsSetState? state, CustomResourceOptions? opts = null)
public static DhcpOptionsSet get(String name, Output<String> id, DhcpOptionsSetState state, CustomResourceOptions options)
resources: _: type: alicloud:vpc:DhcpOptionsSet get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Associate
Vpcs List<Pulumi.Ali Cloud. Vpc. Inputs. Dhcp Options Set Associate Vpc> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - Dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- Dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- Domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- Domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- Dry
Run bool - Whether to PreCheck only this request, value:
- Ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- Lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- Owner
Id int - The ID of the account to which the DHCP options set belongs.
- Resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- Status string
- The status of the resource.
- Dictionary<string, string>
- Tags of the current resource.
- Associate
Vpcs []DhcpOptions Set Associate Vpc Args - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - Dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- Dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- Domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- Domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- Dry
Run bool - Whether to PreCheck only this request, value:
- Ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- Lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- Owner
Id int - The ID of the account to which the DHCP options set belongs.
- Resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- Status string
- The status of the resource.
- map[string]string
- Tags of the current resource.
- associate
Vpcs List<DhcpOptions Set Associate Vpc> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options StringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options StringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name String - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name StringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run Boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time String - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time String - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- owner
Id Integer - The ID of the account to which the DHCP options set belongs.
- resource
Group StringId - The ID of the resource group to which the DHCP options set belongs.
- status String
- The status of the resource.
- Map<String,String>
- Tags of the current resource.
- associate
Vpcs DhcpOptions Set Associate Vpc[] - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options stringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options stringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name string - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name stringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time string - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time string - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- owner
Id number - The ID of the account to which the DHCP options set belongs.
- resource
Group stringId - The ID of the resource group to which the DHCP options set belongs.
- status string
- The status of the resource.
- {[key: string]: string}
- Tags of the current resource.
- associate_
vpcs Sequence[DhcpOptions Set Associate Vpc Args] - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp_
options_ strset_ description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp_
options_ strset_ name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain_
name str - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain_
name_ strservers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry_
run bool - Whether to PreCheck only this request, value:
- ipv6_
lease_ strtime - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease_
time str - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- owner_
id int - The ID of the account to which the DHCP options set belongs.
- resource_
group_ strid - The ID of the resource group to which the DHCP options set belongs.
- status str
- The status of the resource.
- Mapping[str, str]
- Tags of the current resource.
- associate
Vpcs List<Property Map> - Field 'associate_vpcs' has been deprecated from provider version 1.153.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_dhcp_options_set_attachment' to attach DhcpOptionsSet and Vpc. See
associate_vpcs
below. - dhcp
Options StringSet Description - The description can be blank or contain 1 to 256 characters. It must start with a letter or Chinese character but cannot start with http:// or https://.
- dhcp
Options StringSet Name - The name of the DHCP options set. The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
- domain
Name String - The root domain. For example, you can set the value to example.com. After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.
- domain
Name StringServers - The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,). If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.
- dry
Run Boolean - Whether to PreCheck only this request, value:
- ipv6Lease
Time String - The lease time of the IPv6 DHCP option set. When the lease time is set to hours: Unit: h. Value range: 24h ~ 1176h,87600h ~ 175200h. Default value: 87600h. When the lease time is set to day: Unit: d. Value range: 1d ~ 49d,3650d ~ 7300d. Default value: 1d.
- lease
Time String - The lease time of the IPv4 addresses for the DHCP options set. If you use hours as the unit, valid values are 24h to 1176h and 87600h to 175200h. Default value: 87600h. If you use days as the unit, valid values are 1d to 49d and 3650d to 7300d. Default value: 3650d.
- owner
Id Number - The ID of the account to which the DHCP options set belongs.
- resource
Group StringId - The ID of the resource group to which the DHCP options set belongs.
- status String
- The status of the resource.
- Map<String>
- Tags of the current resource.
Supporting Types
DhcpOptionsSetAssociateVpc, DhcpOptionsSetAssociateVpcArgs
- Vpc
Id string - The ID of the VPC network that is associated with the DHCP options set.
- Associate
Status string - The status of the VPC associated with the DHCP option set.
- Vpc
Id string - The ID of the VPC network that is associated with the DHCP options set.
- Associate
Status string - The status of the VPC associated with the DHCP option set.
- vpc
Id String - The ID of the VPC network that is associated with the DHCP options set.
- associate
Status String - The status of the VPC associated with the DHCP option set.
- vpc
Id string - The ID of the VPC network that is associated with the DHCP options set.
- associate
Status string - The status of the VPC associated with the DHCP option set.
- vpc_
id str - The ID of the VPC network that is associated with the DHCP options set.
- associate_
status str - The status of the VPC associated with the DHCP option set.
- vpc
Id String - The ID of the VPC network that is associated with the DHCP options set.
- associate
Status String - The status of the VPC associated with the DHCP option set.
Import
VPC Dhcp Options Set can be imported using the id, e.g.
$ pulumi import alicloud:vpc/dhcpOptionsSet:DhcpOptionsSet example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.