NetworkArgs

data class NetworkArgs(val cidrBlock: Output<String>? = null, val description: Output<String>? = null, val dryRun: Output<Boolean>? = null, val enableIpv6: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupId: Output<String>? = null, val secondaryCidrBlocks: Output<List<String>>? = null, val tags: Output<Map<String, Any>>? = null, val userCidrs: Output<List<String>>? = null, val vpcName: Output<String>? = null) : ConvertibleToJava<NetworkArgs>

Import

VPC can be imported using the id, e.g.

$ pulumi import alicloud:vpc/network:Network example vpc-abc123456

Constructors

Link copied to clipboard
fun NetworkArgs(cidrBlock: Output<String>? = null, description: Output<String>? = null, dryRun: Output<Boolean>? = null, enableIpv6: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupId: Output<String>? = null, secondaryCidrBlocks: Output<List<String>>? = null, tags: Output<Map<String, Any>>? = null, userCidrs: Output<List<String>>? = null, vpcName: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val cidrBlock: Output<String>? = null

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

Link copied to clipboard
val description: Output<String>? = null

The VPC description. Defaults to null.

Link copied to clipboard
val dryRun: Output<Boolean>? = null

Specifies whether to pre-check this request only. Valid values: true and false.

Link copied to clipboard
val enableIpv6: Output<Boolean>? = null

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, 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.

Link copied to clipboard
val name: Output<String>? = null

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

The ID of resource group which the VPC belongs.

Link copied to clipboard
val secondaryCidrBlocks: Output<List<String>>? = null

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 and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val userCidrs: Output<List<String>>? = null

The user cidr blocks of the VPC.

Link copied to clipboard
val vpcName: Output<String>? = null

The name of the VPC. Defaults to null.