1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcIpv6CidrBlock
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.VpcIpv6CidrBlock

Explore with Pulumi AI

Provides a resource to create a vpc ipv6_cidr_block

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const example = new tencentcloud.VpcIpv6CidrBlock("example", {vpcId: vpc.vpcId});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
example = tencentcloud.VpcIpv6CidrBlock("example", vpc_id=vpc.vpc_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
			CidrBlock: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewVpcIpv6CidrBlock(ctx, "example", &tencentcloud.VpcIpv6CidrBlockArgs{
			VpcId: vpc.VpcId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var vpc = new Tencentcloud.Vpc("vpc", new()
    {
        CidrBlock = "10.0.0.0/16",
    });

    var example = new Tencentcloud.VpcIpv6CidrBlock("example", new()
    {
        VpcId = vpc.VpcId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.VpcIpv6CidrBlock;
import com.pulumi.tencentcloud.VpcIpv6CidrBlockArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var vpc = new Vpc("vpc", VpcArgs.builder()
            .cidrBlock("10.0.0.0/16")
            .build());

        var example = new VpcIpv6CidrBlock("example", VpcIpv6CidrBlockArgs.builder()
            .vpcId(vpc.vpcId())
            .build());

    }
}
Copy
resources:
  vpc:
    type: tencentcloud:Vpc
    properties:
      cidrBlock: 10.0.0.0/16
  example:
    type: tencentcloud:VpcIpv6CidrBlock
    properties:
      vpcId: ${vpc.vpcId}
Copy

Create VpcIpv6CidrBlock Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VpcIpv6CidrBlock(name: string, args: VpcIpv6CidrBlockArgs, opts?: CustomResourceOptions);
@overload
def VpcIpv6CidrBlock(resource_name: str,
                     args: VpcIpv6CidrBlockArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def VpcIpv6CidrBlock(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     vpc_id: Optional[str] = None,
                     vpc_ipv6_cidr_block_id: Optional[str] = None)
func NewVpcIpv6CidrBlock(ctx *Context, name string, args VpcIpv6CidrBlockArgs, opts ...ResourceOption) (*VpcIpv6CidrBlock, error)
public VpcIpv6CidrBlock(string name, VpcIpv6CidrBlockArgs args, CustomResourceOptions? opts = null)
public VpcIpv6CidrBlock(String name, VpcIpv6CidrBlockArgs args)
public VpcIpv6CidrBlock(String name, VpcIpv6CidrBlockArgs args, CustomResourceOptions options)
type: tencentcloud:VpcIpv6CidrBlock
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VpcIpv6CidrBlockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VpcIpv6CidrBlockArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VpcIpv6CidrBlockArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VpcIpv6CidrBlockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VpcIpv6CidrBlockArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VpcIpv6CidrBlock Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VpcIpv6CidrBlock resource accepts the following input properties:

VpcId This property is required. string
VPC instance ID, in the form of vpc-f49l6u0z.
VpcIpv6CidrBlockId string
ID of the resource.
VpcId This property is required. string
VPC instance ID, in the form of vpc-f49l6u0z.
VpcIpv6CidrBlockId string
ID of the resource.
vpcId This property is required. String
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId String
ID of the resource.
vpcId This property is required. string
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId string
ID of the resource.
vpc_id This property is required. str
VPC instance ID, in the form of vpc-f49l6u0z.
vpc_ipv6_cidr_block_id str
ID of the resource.
vpcId This property is required. String
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the VpcIpv6CidrBlock resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Ipv6CidrBlock string
ipv6 cidr block.
Id string
The provider-assigned unique ID for this managed resource.
Ipv6CidrBlock string
ipv6 cidr block.
id String
The provider-assigned unique ID for this managed resource.
ipv6CidrBlock String
ipv6 cidr block.
id string
The provider-assigned unique ID for this managed resource.
ipv6CidrBlock string
ipv6 cidr block.
id str
The provider-assigned unique ID for this managed resource.
ipv6_cidr_block str
ipv6 cidr block.
id String
The provider-assigned unique ID for this managed resource.
ipv6CidrBlock String
ipv6 cidr block.

Look up Existing VpcIpv6CidrBlock Resource

Get an existing VpcIpv6CidrBlock 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?: VpcIpv6CidrBlockState, opts?: CustomResourceOptions): VpcIpv6CidrBlock
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ipv6_cidr_block: Optional[str] = None,
        vpc_id: Optional[str] = None,
        vpc_ipv6_cidr_block_id: Optional[str] = None) -> VpcIpv6CidrBlock
func GetVpcIpv6CidrBlock(ctx *Context, name string, id IDInput, state *VpcIpv6CidrBlockState, opts ...ResourceOption) (*VpcIpv6CidrBlock, error)
public static VpcIpv6CidrBlock Get(string name, Input<string> id, VpcIpv6CidrBlockState? state, CustomResourceOptions? opts = null)
public static VpcIpv6CidrBlock get(String name, Output<String> id, VpcIpv6CidrBlockState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:VpcIpv6CidrBlock    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Ipv6CidrBlock string
ipv6 cidr block.
VpcId string
VPC instance ID, in the form of vpc-f49l6u0z.
VpcIpv6CidrBlockId string
ID of the resource.
Ipv6CidrBlock string
ipv6 cidr block.
VpcId string
VPC instance ID, in the form of vpc-f49l6u0z.
VpcIpv6CidrBlockId string
ID of the resource.
ipv6CidrBlock String
ipv6 cidr block.
vpcId String
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId String
ID of the resource.
ipv6CidrBlock string
ipv6 cidr block.
vpcId string
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId string
ID of the resource.
ipv6_cidr_block str
ipv6 cidr block.
vpc_id str
VPC instance ID, in the form of vpc-f49l6u0z.
vpc_ipv6_cidr_block_id str
ID of the resource.
ipv6CidrBlock String
ipv6 cidr block.
vpcId String
VPC instance ID, in the form of vpc-f49l6u0z.
vpcIpv6CidrBlockId String
ID of the resource.

Import

vpc ipv6_cidr_block can be imported using the id, e.g.

$ pulumi import tencentcloud:index/vpcIpv6CidrBlock:VpcIpv6CidrBlock ipv6_cidr_block vpc_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.