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});
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:
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpc
Ipv6Cidr StringBlock Id - ID of the resource.
- vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- vpc_
id str VPC
instanceID
, in the form ofvpc-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.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- vpc
Ipv6Cidr 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.
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Ipv6Cidr
Block List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> - Ipv6 cidr block set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Ipv6Cidr
Block []VpcSets Ipv6Cidr Block Ipv6Cidr Block Set - Ipv6 cidr block set.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block String - Ipv6 cidr block.
- ipv6Cidr
Block List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> - Ipv6 cidr block set.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block string - Ipv6 cidr block.
- ipv6Cidr
Block 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.
- ipv6Cidr
Block String - Ipv6 cidr block.
- ipv6Cidr
Block 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) -> 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
- 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.
- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Ipv6Cidr
Block List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> - Ipv6 cidr block set.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Ipv6Cidr
Block []VpcSets Ipv6Cidr Block Ipv6Cidr Block Set Args - Ipv6 cidr block set.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block String - Ipv6 cidr block.
- ipv6Cidr
Block List<VpcSets Ipv6Cidr Block Ipv6Cidr Block Set> - Ipv6 cidr block set.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr StringBlock Id - ID of the resource.
- address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block string - Ipv6 cidr block.
- ipv6Cidr
Block VpcSets Ipv6Cidr Block Ipv6Cidr Block Set[] - Ipv6 cidr block set.
- vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr 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 VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc_
ipv6_ strcidr_ block_ id - ID of the resource.
- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block String - Ipv6 cidr block.
- ipv6Cidr
Block List<Property Map>Sets - Ipv6 cidr block set.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr StringBlock Id - ID of the resource.
Supporting Types
VpcIpv6CidrBlockIpv6CidrBlockSet, VpcIpv6CidrBlockIpv6CidrBlockSetArgs
- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Isp
Type string - Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- Address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- Ipv6Cidr
Block string - Ipv6 cidr block.
- Isp
Type string - Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block String - Ipv6 cidr block.
- isp
Type String - Range of network operator types: 'BGP' - default, 'CMCC' - China Mobile, 'CTCC' - China Telecom, 'CUCC' - China Joint Debugging.
- address
Type string - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block string - Ipv6 cidr block.
- isp
Type 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.
- address
Type String - Apply for the type of IPv6 Cidr, GUA (Global Unicast Address), ULA (Unique Local Address).
- ipv6Cidr
Block String - Ipv6 cidr block.
- isp
Type 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
tencentcloud
Terraform Provider.