alicloud.vpc.Network
Import
VPC can be imported using the id, e.g.
$ pulumi import alicloud:vpc/network:Network example vpc-abc123456
Create Network Resource
new Network(name: string, args?: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr_block: Optional[str] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_ipv6: Optional[bool] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
secondary_cidr_blocks: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, Any]] = None,
user_cidrs: Optional[Sequence[str]] = None,
vpc_name: Optional[str] = None)
@overload
def Network(resource_name: str,
args: Optional[NetworkArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewNetwork(ctx *Context, name string, args *NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs? args = null, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: alicloud:vpc:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- 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 NetworkArgs
- 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 NetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Network Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Network resource accepts the following input properties:
- Cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- Description string
The VPC description. Defaults to null.
- Dry
Run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- Enable
Ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- Name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of resource group which the VPC belongs.
- Secondary
Cidr List<string>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- User
Cidrs List<string> The user cidr blocks of the VPC.
- Vpc
Name string The name of the VPC. Defaults to null.
- Cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- Description string
The VPC description. Defaults to null.
- Dry
Run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- Enable
Ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- Name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of resource group which the VPC belongs.
- Secondary
Cidr []stringBlocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- map[string]interface{}
A mapping of tags to assign to the resource.
- User
Cidrs []string The user cidr blocks of the VPC.
- Vpc
Name string The name of the VPC. Defaults to null.
- cidr
Block String The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description String
The VPC description. Defaults to null.
- dry
Run Boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 Boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- name String
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of resource group which the VPC belongs.
- secondary
Cidr List<String>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Map<String,Object>
A mapping of tags to assign to the resource.
- user
Cidrs List<String> The user cidr blocks of the VPC.
- vpc
Name String The name of the VPC. Defaults to null.
- cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description string
The VPC description. Defaults to null.
- dry
Run boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group stringId The ID of resource group which the VPC belongs.
- secondary
Cidr string[]Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- {[key: string]: any}
A mapping of tags to assign to the resource.
- user
Cidrs string[] The user cidr blocks of the VPC.
- vpc
Name string The name of the VPC. Defaults to null.
- cidr_
block str The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description str
The VPC description. Defaults to null.
- dry_
run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable_
ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- name str
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource_
group_ strid The ID of resource group which the VPC belongs.
- secondary_
cidr_ Sequence[str]blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Mapping[str, Any]
A mapping of tags to assign to the resource.
- user_
cidrs Sequence[str] The user cidr blocks of the VPC.
- vpc_
name str The name of the VPC. Defaults to null.
- cidr
Block String The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description String
The VPC description. Defaults to null.
- dry
Run Boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 Boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- name String
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of resource group which the VPC belongs.
- secondary
Cidr List<String>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Map<Any>
A mapping of tags to assign to the resource.
- user
Cidrs List<String> The user cidr blocks of the VPC.
- vpc
Name String The name of the VPC. Defaults to null.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- Route
Table stringId The route table ID of the router created by default on VPC creation.
- Router
Id string The ID of the router created by default on VPC creation.
- Router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- Status string
The status of the VPC.
- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- Route
Table stringId The route table ID of the router created by default on VPC creation.
- Router
Id string The ID of the router created by default on VPC creation.
- Router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- Status string
The status of the VPC.
- id String
The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block String (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- route
Table StringId The route table ID of the router created by default on VPC creation.
- router
Id String The ID of the router created by default on VPC creation.
- router
Table StringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- status String
The status of the VPC.
- id string
The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- route
Table stringId The route table ID of the router created by default on VPC creation.
- router
Id string The ID of the router created by default on VPC creation.
- router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- status string
The status of the VPC.
- id str
The provider-assigned unique ID for this managed resource.
- ipv6_
cidr_ strblock (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- route_
table_ strid The route table ID of the router created by default on VPC creation.
- router_
id str The ID of the router created by default on VPC creation.
- router_
table_ strid (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- status str
The status of the VPC.
- id String
The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block String (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- route
Table StringId The route table ID of the router created by default on VPC creation.
- router
Id String The ID of the router created by default on VPC creation.
- router
Table StringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- status String
The status of the VPC.
Look up Existing Network Resource
Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr_block: Optional[str] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_ipv6: Optional[bool] = None,
ipv6_cidr_block: Optional[str] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
route_table_id: Optional[str] = None,
router_id: Optional[str] = None,
router_table_id: Optional[str] = None,
secondary_cidr_blocks: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
user_cidrs: Optional[Sequence[str]] = None,
vpc_name: Optional[str] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- Description string
The VPC description. Defaults to null.
- Dry
Run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- Enable
Ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- Ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- Name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of resource group which the VPC belongs.
- Route
Table stringId The route table ID of the router created by default on VPC creation.
- Router
Id string The ID of the router created by default on VPC creation.
- Router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- Secondary
Cidr List<string>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Status string
The status of the VPC.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- User
Cidrs List<string> The user cidr blocks of the VPC.
- Vpc
Name string The name of the VPC. Defaults to null.
- Cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- Description string
The VPC description. Defaults to null.
- Dry
Run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- Enable
Ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- Ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- Name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of resource group which the VPC belongs.
- Route
Table stringId The route table ID of the router created by default on VPC creation.
- Router
Id string The ID of the router created by default on VPC creation.
- Router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- Secondary
Cidr []stringBlocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- Status string
The status of the VPC.
- map[string]interface{}
A mapping of tags to assign to the resource.
- User
Cidrs []string The user cidr blocks of the VPC.
- Vpc
Name string The name of the VPC. Defaults to null.
- cidr
Block String The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description String
The VPC description. Defaults to null.
- dry
Run Boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 Boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- ipv6Cidr
Block String (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- name String
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of resource group which the VPC belongs.
- route
Table StringId The route table ID of the router created by default on VPC creation.
- router
Id String The ID of the router created by default on VPC creation.
- router
Table StringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- secondary
Cidr List<String>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- status String
The status of the VPC.
- Map<String,Object>
A mapping of tags to assign to the resource.
- user
Cidrs List<String> The user cidr blocks of the VPC.
- vpc
Name String The name of the VPC. Defaults to null.
- cidr
Block string The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description string
The VPC description. Defaults to null.
- dry
Run boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- ipv6Cidr
Block string (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- name string
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group stringId The ID of resource group which the VPC belongs.
- route
Table stringId The route table ID of the router created by default on VPC creation.
- router
Id string The ID of the router created by default on VPC creation.
- router
Table stringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- secondary
Cidr string[]Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- status string
The status of the VPC.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- user
Cidrs string[] The user cidr blocks of the VPC.
- vpc
Name string The name of the VPC. Defaults to null.
- cidr_
block str The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description str
The VPC description. Defaults to null.
- dry_
run bool Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable_
ipv6 bool Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- ipv6_
cidr_ strblock (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- name str
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource_
group_ strid The ID of resource group which the VPC belongs.
- route_
table_ strid The route table ID of the router created by default on VPC creation.
- router_
id str The ID of the router created by default on VPC creation.
- router_
table_ strid (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- secondary_
cidr_ Sequence[str]blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- status str
The status of the VPC.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- user_
cidrs Sequence[str] The user cidr blocks of the VPC.
- vpc_
name str The name of the VPC. Defaults to null.
- cidr
Block String The CIDR block for the VPC. The
cidr_block
is Optional and default value is172.16.0.0/12
after v1.119.0+.- description String
The VPC description. Defaults to null.
- dry
Run Boolean Specifies whether to pre-check this request only. Valid values:
true
andfalse
.- enable
Ipv6 Boolean Specifies whether to enable the IPv6 CIDR block. Valid values:
false
(Default): disables IPv6 CIDR blocks.true
: enables IPv6 CIDR blocks. If theenable_ipv6
istrue
, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.- ipv6Cidr
Block String (Available in v1.119.0+) ) The ipv6 cidr block of VPC.
- name String
Field
name
has been deprecated from provider version 1.119.0. New fieldvpc_name
instead.Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of resource group which the VPC belongs.
- route
Table StringId The route table ID of the router created by default on VPC creation.
- router
Id String The ID of the router created by default on VPC creation.
- router
Table StringId (Deprecated) It has been deprecated and replaced with
route_table_id
.Attribute router_table_id has been deprecated and replaced with route_table_id.
- secondary
Cidr List<String>Blocks Field
secondary_cidr_blocks
has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.secondary_cidr_blocks
attributes andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time.Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'.
secondary_cidr_blocks
attributes andalicloud_vpc_ipv4_cidr_block
resource cannot be used at the same time.- status String
The status of the VPC.
- Map<Any>
A mapping of tags to assign to the resource.
- user
Cidrs List<String> The user cidr blocks of the VPC.
- vpc
Name String The name of the VPC. Defaults to null.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.