tencentcloud.VpcIpv6CidrBlock
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});
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)
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
	})
}
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,
    });
});
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());
    }
}
resources:
  vpc:
    type: tencentcloud:Vpc
    properties:
      cidrBlock: 10.0.0.0/16
  example:
    type: tencentcloud:VpcIpv6CidrBlock
    properties:
      vpcId: ${vpc.vpcId}
Or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VpcIpv6CidrBlock("example", {
    vpcId: tencentcloud_vpc.vpc.id,
    addressType: "ULA",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VpcIpv6CidrBlock("example",
    vpc_id=tencentcloud_vpc["vpc"]["id"],
    address_type="ULA")
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 {
		_, err := tencentcloud.NewVpcIpv6CidrBlock(ctx, "example", &tencentcloud.VpcIpv6CidrBlockArgs{
			VpcId:       pulumi.Any(tencentcloud_vpc.Vpc.Id),
			AddressType: pulumi.String("ULA"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.VpcIpv6CidrBlock("example", new()
    {
        VpcId = tencentcloud_vpc.Vpc.Id,
        AddressType = "ULA",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 example = new VpcIpv6CidrBlock("example", VpcIpv6CidrBlockArgs.builder()
            .vpcId(tencentcloud_vpc.vpc().id())
            .addressType("ULA")
            .build());
    }
}
resources:
  example:
    type: tencentcloud:VpcIpv6CidrBlock
    properties:
      vpcId: ${tencentcloud_vpc.vpc.id}
      addressType: ULA
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,
                     address_type: 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 string
- The unique name of the resource.
- args VpcIpv6CidrBlockArgs
- 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 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 string
- The unique name of the resource.
- args VpcIpv6CidrBlockArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcIpv6CidrBlockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- VpcIpv6Cidr stringBlock Id 
- ID of the resource.
- VpcId string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- VpcIpv6Cidr stringBlock Id 
- ID of the resource.
- vpcId String
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpcIpv6Cidr StringBlock Id 
- ID of the resource.
- vpcId string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- addressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpcIpv6Cidr stringBlock Id 
- ID of the resource.
- vpc_id str
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- address_type str
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpc_ipv6_ strcidr_ block_ id 
- ID of the resource.
- vpcId String
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpcIpv6Cidr StringBlock Id 
- 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.
- Ipv6CidrBlock List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> 
- Ipv6 cidr block set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6CidrBlock string
- Ipv6 cidr block.
- Ipv6CidrBlock []VpcSets Ipv6Cidr Block Ipv6Cidr Block Set 
- Ipv6 cidr block set.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlock String
- Ipv6 cidr block.
- ipv6CidrBlock List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> 
- Ipv6 cidr block set.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlock string
- Ipv6 cidr block.
- ipv6CidrBlock VpcSets Ipv6Cidr Block Ipv6Cidr Block Set[] 
- Ipv6 cidr block set.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_cidr_ strblock 
- Ipv6 cidr block.
- ipv6_cidr_ Sequence[Vpcblock_ sets Ipv6Cidr Block Ipv6Cidr Block Set] 
- Ipv6 cidr block set.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlock String
- Ipv6 cidr block.
- ipv6CidrBlock List<Property Map>Sets 
- Ipv6 cidr block set.
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,
        address_type: Optional[str] = None,
        ipv6_cidr_block: Optional[str] = None,
        ipv6_cidr_block_sets: Optional[Sequence[VpcIpv6CidrBlockIpv6CidrBlockSetArgs]] = None,
        vpc_id: Optional[str] = None,
        vpc_ipv6_cidr_block_id: Optional[str] = None) -> VpcIpv6CidrBlockfunc 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
- 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.
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6CidrBlock string
- Ipv6 cidr block.
- Ipv6CidrBlock List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> 
- Ipv6 cidr block set.
- VpcId string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- VpcIpv6Cidr stringBlock Id 
- ID of the resource.
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6CidrBlock string
- Ipv6 cidr block.
- Ipv6CidrBlock []VpcSets Ipv6Cidr Block Ipv6Cidr Block Set Args 
- Ipv6 cidr block set.
- VpcId string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- VpcIpv6Cidr stringBlock Id 
- ID of the resource.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock String
- Ipv6 cidr block.
- ipv6CidrBlock List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> 
- Ipv6 cidr block set.
- vpcId String
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- vpcIpv6Cidr StringBlock Id 
- ID of the resource.
- addressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock string
- Ipv6 cidr block.
- ipv6CidrBlock VpcSets Ipv6Cidr Block Ipv6Cidr Block Set[] 
- Ipv6 cidr block set.
- vpcId string
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- vpcIpv6Cidr stringBlock Id 
- ID of the resource.
- address_type str
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6_cidr_ strblock 
- Ipv6 cidr block.
- ipv6_cidr_ Sequence[Vpcblock_ sets Ipv6Cidr Block Ipv6Cidr Block Set Args] 
- Ipv6 cidr block set.
- vpc_id str
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- vpc_ipv6_ strcidr_ block_ id 
- ID of the resource.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock String
- Ipv6 cidr block.
- ipv6CidrBlock List<Property Map>Sets 
- Ipv6 cidr block set.
- vpcId String
- VPCinstance- ID, in the form of- vpc-f49l6u0z.
- vpcIpv6Cidr StringBlock Id 
- ID of the resource.
Supporting Types
VpcIpv6CidrBlockIpv6CidrBlockSet, VpcIpv6CidrBlockIpv6CidrBlockSetArgs            
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6CidrBlock string
- Ipv6 cidr block.
- IspType string
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- AddressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6CidrBlock string
- Ipv6 cidr block.
- IspType string
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock String
- Ipv6 cidr block.
- ispType String
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- addressType string
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock string
- Ipv6 cidr block.
- ispType string
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- address_type str
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6_cidr_ strblock 
- Ipv6 cidr block.
- isp_type str
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- addressType String
- Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6CidrBlock String
- Ipv6 cidr block.
- ispType String
- Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
Import
vpc ipv6_cidr_block can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vpcIpv6CidrBlock:VpcIpv6CidrBlock example vpc-826mi3hd
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 tencentcloudTerraform Provider.
