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}
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 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
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr StringBlock Id - ID of the resource.
- vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- vpc_
id str VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc_
ipv6_ strcidr_ block_ id - ID of the resource.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Block string - ipv6 cidr block.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block String - ipv6 cidr block.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block string - ipv6 cidr block.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_
cidr_ strblock - ipv6 cidr block.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Block 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
- 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.
- Ipv6Cidr
Block string - ipv6 cidr block.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- Ipv6Cidr
Block string - ipv6 cidr block.
- Vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- Vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- ipv6Cidr
Block String - ipv6 cidr block.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr StringBlock Id - ID of the resource.
- ipv6Cidr
Block string - ipv6 cidr block.
- vpc
Id string VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr stringBlock Id - ID of the resource.
- ipv6_
cidr_ strblock - ipv6 cidr block.
- vpc_
id str VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc_
ipv6_ strcidr_ block_ id - ID of the resource.
- ipv6Cidr
Block String - ipv6 cidr block.
- vpc
Id String VPC
instanceID
, in the form ofvpc-f49l6u0z
.- vpc
Ipv6Cidr StringBlock Id - 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
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.