Skip to content

VPCProps

Properties for defining a VPC.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-vpc

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.VPCProps {
    CidrBlock: interface{},
    Description: interface{},
    EnableIpv6: interface{},
    Ipv6CidrBlock: interface{},
    Ipv6Isp: interface{},
    ResourceGroupId: interface{},
    SecondaryCidrBlocks: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosVPC.TagsProperty,
    UserCidr: interface{},
    VpcName: interface{},
}

Properties

Name Type Description
CidrBlock interface{} Property cidrBlock: The IP address range of the VPC in the CIDR block form.
Description interface{} Property description: Description of the vpc, [2, 256] characters.
EnableIpv6 interface{} Property enableIpv6: Whether to enable an IPv6 network cidr, the value is:False (default): not turned on.True: On.
Ipv6CidrBlock interface{} Property ipv6CidrBlock: IPv6 network cidr of the VPC.
Ipv6Isp interface{} Property ipv6Isp: The Internet service provider (ISP) for IPv6 addresses of the VPC.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
SecondaryCidrBlocks interface{} Property secondaryCidrBlocks: The secondary IPv4 CIDR blocks.
Tags *[]TagsProperty Property tags: Tags to attach to vpc.
UserCidr interface{} Property userCidr: The user CIDR block.
VpcName interface{} Property vpcName: Display name of the vpc instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.

CidrBlockOptional

CidrBlock interface{}
  • Type: interface{}

Property cidrBlock: The IP address range of the VPC in the CIDR block form.

You can use the following IP address ranges and their subnets: 10.0.0.0/8 172.16.0.0/12 (Default) 192.168.0.0/16


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: Description of the vpc, [2, 256] characters.

Do not fill or empty, the default is empty.


EnableIpv6Optional

EnableIpv6 interface{}
  • Type: interface{}

Property enableIpv6: Whether to enable an IPv6 network cidr, the value is:False (default): not turned on.True: On.


Ipv6CidrBlockOptional

Ipv6CidrBlock interface{}
  • Type: interface{}

Property ipv6CidrBlock: IPv6 network cidr of the VPC.


Ipv6IspOptional

Ipv6Isp interface{}
  • Type: interface{}

Property ipv6Isp: The Internet service provider (ISP) for IPv6 addresses of the VPC.

Valid values: BGP(default): Alibaba Cloud BGP IPv6 ChinaMobile: China Mobile (single line) ChinaUnicom: China Unicom (single line) ChinaTelecom: China Telecom (single line) Note If your Alibaba Cloud account is allowed to activate single-ISP bandwidth, you can set the parameter to ChinaTelecom, ChinaUnicom, and ChinaMobile.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


SecondaryCidrBlocksOptional

SecondaryCidrBlocks interface{}
  • Type: interface{}

Property secondaryCidrBlocks: The secondary IPv4 CIDR blocks.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to vpc.

Max support 20 tags to add during create vpc. Each tag with two properties Key and Value, and Key is required.


UserCidrOptional

UserCidr interface{}
  • Type: interface{}

Property userCidr: The user CIDR block.

Separate multiple CIDR blocks with commas (,). At most three CIDR blocks are supported.


VpcNameOptional

VpcName interface{}
  • Type: interface{}

Property vpcName: Display name of the vpc instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.