日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_vpc_dhcp_options_set_attachment

更新時間:

Provides a VPC Dhcp Options Set Attachment resource.

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

-> NOTE: Available since v1.153.0.

Example Usage

Basic Usage


variable "name" {
  default = "tf-example"
}
resource "alicloud_vpc" "example" {
  vpc_name   = var.name
  cidr_block = "10.4.0.0/16"
}

resource "alicloud_vpc_dhcp_options_set" "example" {
  dhcp_options_set_name        = var.name
  dhcp_options_set_description = var.name
  domain_name                  = "example.com"
  domain_name_servers          = "100.100.2.136"
}
resource "alicloud_vpc_dhcp_options_set_attachment" "example" {
  vpc_id              = alicloud_vpc.example.id
  dhcp_options_set_id = alicloud_vpc_dhcp_options_set.example.id
}

Argument Reference

The following arguments are supported:

  • dhcp_options_set_id - (Required, ForceNew) The ID of the DHCP options set.
  • vpc_id - (Required, ForceNew) The ID of the VPC network that is to be associated with the DHCP options set..
  • dry_run - (Optional) Specifies whether to precheck this request only. Default values: false. Valid values:
    • true - Runs a precheck without associating the DHCP options set with the VPC network. The system checks whether your AccessKey pair is valid, whether the RAM user is authorized, and whether required parameters are specified. An error message is returned if the request fails the precheck. If the request passes the precheck, the DryRunOperation error code is returned.
    • false - Runs a precheck and returns a 2XX HTTP status code. After the request passes the precheck, the DHCP options set is associated with the VPC network.

Attributes Reference

The following attributes are exported:

  • id - The Disk Attachment ID and it formats as <vpc_id>:<dhcp_options_set_id>.
  • status -The status of the VPC network that is associated with the DHCP options set. Valid values: InUse or Pending.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 2 mins) Used when create the Dhcp Options Set.
  • delete - (Defaults to 1 mins) Used when delete the Dhcp Options Set.

Import

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

$ terraform import alicloud_vpc_dhcp_options_set_attachment.example <id>