github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/alicloud/r/vswitch.html.markdown (about) 1 --- 2 layout: "alicloud" 3 page_title: "Alicloud: alicloud_vswitch" 4 sidebar_current: "docs-alicloud-resource-vswitch" 5 description: |- 6 Provides a Alicloud VPC switch resource. 7 --- 8 9 # alicloud\_vswitch 10 11 Provides a VPC switch resource. 12 13 ## Example Usage 14 15 Basic Usage 16 17 ``` 18 resource "alicloud_vpc" "vpc" { 19 name = "tf_test_foo" 20 cidr_block = "172.16.0.0/12" 21 } 22 23 resource "alicloud_vswitch" "vsw" { 24 vpc_id = "${alicloud_vpc.vpc.id}" 25 cidr_block = "172.16.0.0/21" 26 availability_zone = "cn-beijing-b" 27 } 28 ``` 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `availability_zone` - (Required, Forces new resource) The AZ for the switch. 34 * `vpc_id` - (Required, Forces new resource) The VPC ID. 35 * `cidr_block` - (Required, Forces new resource) The CIDR block for the switch. 36 * `name` - (Optional) The name of the switch. Defaults to null. 37 * `description` - (Optional) The switch description. Defaults to null. 38 39 ## Attributes Reference 40 41 The following attributes are exported: 42 43 * `id` - The ID of the switch. 44 * `availability_zone` The AZ for the switch. 45 * `cidr_block` - The CIDR block for the switch. 46 * `vpc_id` - The VPC ID. 47 * `name` - The name of the switch. 48 * `description` - The description of the switch.