1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TcaplusTable
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TcaplusTable

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this resource to create TcaplusDB table.

    Example Usage

    Create a tcaplus database table

    The tcaplus database table should be pre-defined in the idl file.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3";
    const vpc = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZone,
    });
    const vpcId = vpc.then(vpc => vpc.instanceLists?.[0]?.vpcId);
    const subnetId = vpc.then(vpc => vpc.instanceLists?.[0]?.subnetId);
    const exampleTcaplusCluster = new tencentcloud.TcaplusCluster("exampleTcaplusCluster", {
        idlType: "PROTO",
        clusterName: "tf_example_tcaplus_cluster",
        vpcId: vpcId,
        subnetId: subnetId,
        password: "your_pw_123111",
        oldPasswordExpireLast: 3600,
    });
    const exampleTcaplusTablegroup = new tencentcloud.TcaplusTablegroup("exampleTcaplusTablegroup", {
        clusterId: exampleTcaplusCluster.tcaplusClusterId,
        tablegroupName: "tf_example_group_name",
    });
    const exampleTcaplusIdl = new tencentcloud.TcaplusIdl("exampleTcaplusIdl", {
        clusterId: exampleTcaplusCluster.tcaplusClusterId,
        tablegroupId: exampleTcaplusTablegroup.tcaplusTablegroupId,
        fileName: "tf_example_tcaplus_idl",
        fileType: "PROTO",
        fileExtType: "proto",
        fileContent: `    syntax = "proto2";
        package myTcaplusTable;
        import "tcaplusservice.optionv1.proto";
        message example_table { # refer the table name
            option(tcaplusservice.tcaplus_primary_key) = "uin,name,region";
            required int64 uin = 1;
            required string name = 2;
            required int32 region = 3;
            required int32 gamesvrid = 4;
            optional int32 logintime = 5 [default = 1];
            repeated int64 lockid = 6 [packed = true];
            optional bool is_available = 7 [default = false];
            optional pay_info pay = 8;
        }
    
        message pay_info {
            required int64 pay_id = 1;
            optional uint64 total_money = 2;
            optional uint64 pay_times = 3;
            optional pay_auth_info auth = 4;
            message pay_auth_info {
                required string pay_keys = 1;
                optional int64 update_time = 2;
            }
        }
    `,
    });
    const exampleTcaplusTable = new tencentcloud.TcaplusTable("exampleTcaplusTable", {
        clusterId: exampleTcaplusCluster.tcaplusClusterId,
        tablegroupId: exampleTcaplusTablegroup.tcaplusTablegroupId,
        tableName: "example_table",
        tableType: "GENERIC",
        description: "test",
        idlId: exampleTcaplusIdl.tcaplusIdlId,
        tableIdlType: "PROTO",
        reservedReadCu: 1000,
        reservedWriteCu: 20,
        reservedVolume: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-3"
    vpc = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone)
    vpc_id = vpc.instance_lists[0].vpc_id
    subnet_id = vpc.instance_lists[0].subnet_id
    example_tcaplus_cluster = tencentcloud.TcaplusCluster("exampleTcaplusCluster",
        idl_type="PROTO",
        cluster_name="tf_example_tcaplus_cluster",
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        password="your_pw_123111",
        old_password_expire_last=3600)
    example_tcaplus_tablegroup = tencentcloud.TcaplusTablegroup("exampleTcaplusTablegroup",
        cluster_id=example_tcaplus_cluster.tcaplus_cluster_id,
        tablegroup_name="tf_example_group_name")
    example_tcaplus_idl = tencentcloud.TcaplusIdl("exampleTcaplusIdl",
        cluster_id=example_tcaplus_cluster.tcaplus_cluster_id,
        tablegroup_id=example_tcaplus_tablegroup.tcaplus_tablegroup_id,
        file_name="tf_example_tcaplus_idl",
        file_type="PROTO",
        file_ext_type="proto",
        file_content="""    syntax = "proto2";
        package myTcaplusTable;
        import "tcaplusservice.optionv1.proto";
        message example_table { # refer the table name
            option(tcaplusservice.tcaplus_primary_key) = "uin,name,region";
            required int64 uin = 1;
            required string name = 2;
            required int32 region = 3;
            required int32 gamesvrid = 4;
            optional int32 logintime = 5 [default = 1];
            repeated int64 lockid = 6 [packed = true];
            optional bool is_available = 7 [default = false];
            optional pay_info pay = 8;
        }
    
        message pay_info {
            required int64 pay_id = 1;
            optional uint64 total_money = 2;
            optional uint64 pay_times = 3;
            optional pay_auth_info auth = 4;
            message pay_auth_info {
                required string pay_keys = 1;
                optional int64 update_time = 2;
            }
        }
    """)
    example_tcaplus_table = tencentcloud.TcaplusTable("exampleTcaplusTable",
        cluster_id=example_tcaplus_cluster.tcaplus_cluster_id,
        tablegroup_id=example_tcaplus_tablegroup.tcaplus_tablegroup_id,
        table_name="example_table",
        table_type="GENERIC",
        description="test",
        idl_id=example_tcaplus_idl.tcaplus_idl_id,
        table_idl_type="PROTO",
        reserved_read_cu=1000,
        reserved_write_cu=20,
        reserved_volume=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZone),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpcId := vpc.InstanceLists[0].VpcId
    		subnetId := vpc.InstanceLists[0].SubnetId
    		exampleTcaplusCluster, err := tencentcloud.NewTcaplusCluster(ctx, "exampleTcaplusCluster", &tencentcloud.TcaplusClusterArgs{
    			IdlType:               pulumi.String("PROTO"),
    			ClusterName:           pulumi.String("tf_example_tcaplus_cluster"),
    			VpcId:                 pulumi.String(vpcId),
    			SubnetId:              pulumi.String(subnetId),
    			Password:              pulumi.String("your_pw_123111"),
    			OldPasswordExpireLast: pulumi.Float64(3600),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTcaplusTablegroup, err := tencentcloud.NewTcaplusTablegroup(ctx, "exampleTcaplusTablegroup", &tencentcloud.TcaplusTablegroupArgs{
    			ClusterId:      exampleTcaplusCluster.TcaplusClusterId,
    			TablegroupName: pulumi.String("tf_example_group_name"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTcaplusIdl, err := tencentcloud.NewTcaplusIdl(ctx, "exampleTcaplusIdl", &tencentcloud.TcaplusIdlArgs{
    			ClusterId:    exampleTcaplusCluster.TcaplusClusterId,
    			TablegroupId: exampleTcaplusTablegroup.TcaplusTablegroupId,
    			FileName:     pulumi.String("tf_example_tcaplus_idl"),
    			FileType:     pulumi.String("PROTO"),
    			FileExtType:  pulumi.String("proto"),
    			FileContent: pulumi.String(`    syntax = "proto2";
        package myTcaplusTable;
        import "tcaplusservice.optionv1.proto";
        message example_table { # refer the table name
            option(tcaplusservice.tcaplus_primary_key) = "uin,name,region";
            required int64 uin = 1;
            required string name = 2;
            required int32 region = 3;
            required int32 gamesvrid = 4;
            optional int32 logintime = 5 [default = 1];
            repeated int64 lockid = 6 [packed = true];
            optional bool is_available = 7 [default = false];
            optional pay_info pay = 8;
        }
    
        message pay_info {
            required int64 pay_id = 1;
            optional uint64 total_money = 2;
            optional uint64 pay_times = 3;
            optional pay_auth_info auth = 4;
            message pay_auth_info {
                required string pay_keys = 1;
                optional int64 update_time = 2;
            }
        }
    `),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewTcaplusTable(ctx, "exampleTcaplusTable", &tencentcloud.TcaplusTableArgs{
    			ClusterId:       exampleTcaplusCluster.TcaplusClusterId,
    			TablegroupId:    exampleTcaplusTablegroup.TcaplusTablegroupId,
    			TableName:       pulumi.String("example_table"),
    			TableType:       pulumi.String("GENERIC"),
    			Description:     pulumi.String("test"),
    			IdlId:           exampleTcaplusIdl.TcaplusIdlId,
    			TableIdlType:    pulumi.String("PROTO"),
    			ReservedReadCu:  pulumi.Float64(1000),
    			ReservedWriteCu: pulumi.Float64(20),
    			ReservedVolume:  pulumi.Float64(1),
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3";
        var vpc = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZone,
        });
    
        var vpcId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var subnetId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var exampleTcaplusCluster = new Tencentcloud.TcaplusCluster("exampleTcaplusCluster", new()
        {
            IdlType = "PROTO",
            ClusterName = "tf_example_tcaplus_cluster",
            VpcId = vpcId,
            SubnetId = subnetId,
            Password = "your_pw_123111",
            OldPasswordExpireLast = 3600,
        });
    
        var exampleTcaplusTablegroup = new Tencentcloud.TcaplusTablegroup("exampleTcaplusTablegroup", new()
        {
            ClusterId = exampleTcaplusCluster.TcaplusClusterId,
            TablegroupName = "tf_example_group_name",
        });
    
        var exampleTcaplusIdl = new Tencentcloud.TcaplusIdl("exampleTcaplusIdl", new()
        {
            ClusterId = exampleTcaplusCluster.TcaplusClusterId,
            TablegroupId = exampleTcaplusTablegroup.TcaplusTablegroupId,
            FileName = "tf_example_tcaplus_idl",
            FileType = "PROTO",
            FileExtType = "proto",
            FileContent = @"    syntax = ""proto2"";
        package myTcaplusTable;
        import ""tcaplusservice.optionv1.proto"";
        message example_table { # refer the table name
            option(tcaplusservice.tcaplus_primary_key) = ""uin,name,region"";
            required int64 uin = 1;
            required string name = 2;
            required int32 region = 3;
            required int32 gamesvrid = 4;
            optional int32 logintime = 5 [default = 1];
            repeated int64 lockid = 6 [packed = true];
            optional bool is_available = 7 [default = false];
            optional pay_info pay = 8;
        }
    
        message pay_info {
            required int64 pay_id = 1;
            optional uint64 total_money = 2;
            optional uint64 pay_times = 3;
            optional pay_auth_info auth = 4;
            message pay_auth_info {
                required string pay_keys = 1;
                optional int64 update_time = 2;
            }
        }
    ",
        });
    
        var exampleTcaplusTable = new Tencentcloud.TcaplusTable("exampleTcaplusTable", new()
        {
            ClusterId = exampleTcaplusCluster.TcaplusClusterId,
            TablegroupId = exampleTcaplusTablegroup.TcaplusTablegroupId,
            TableName = "example_table",
            TableType = "GENERIC",
            Description = "test",
            IdlId = exampleTcaplusIdl.TcaplusIdlId,
            TableIdlType = "PROTO",
            ReservedReadCu = 1000,
            ReservedWriteCu = 20,
            ReservedVolume = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.TcaplusCluster;
    import com.pulumi.tencentcloud.TcaplusClusterArgs;
    import com.pulumi.tencentcloud.TcaplusTablegroup;
    import com.pulumi.tencentcloud.TcaplusTablegroupArgs;
    import com.pulumi.tencentcloud.TcaplusIdl;
    import com.pulumi.tencentcloud.TcaplusIdlArgs;
    import com.pulumi.tencentcloud.TcaplusTable;
    import com.pulumi.tencentcloud.TcaplusTableArgs;
    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) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-3");
            final var vpc = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZone)
                .build());
    
            final var vpcId = vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var subnetId = vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            var exampleTcaplusCluster = new TcaplusCluster("exampleTcaplusCluster", TcaplusClusterArgs.builder()
                .idlType("PROTO")
                .clusterName("tf_example_tcaplus_cluster")
                .vpcId(vpcId)
                .subnetId(subnetId)
                .password("your_pw_123111")
                .oldPasswordExpireLast(3600)
                .build());
    
            var exampleTcaplusTablegroup = new TcaplusTablegroup("exampleTcaplusTablegroup", TcaplusTablegroupArgs.builder()
                .clusterId(exampleTcaplusCluster.tcaplusClusterId())
                .tablegroupName("tf_example_group_name")
                .build());
    
            var exampleTcaplusIdl = new TcaplusIdl("exampleTcaplusIdl", TcaplusIdlArgs.builder()
                .clusterId(exampleTcaplusCluster.tcaplusClusterId())
                .tablegroupId(exampleTcaplusTablegroup.tcaplusTablegroupId())
                .fileName("tf_example_tcaplus_idl")
                .fileType("PROTO")
                .fileExtType("proto")
                .fileContent("""
        syntax = "proto2";
        package myTcaplusTable;
        import "tcaplusservice.optionv1.proto";
        message example_table { # refer the table name
            option(tcaplusservice.tcaplus_primary_key) = "uin,name,region";
            required int64 uin = 1;
            required string name = 2;
            required int32 region = 3;
            required int32 gamesvrid = 4;
            optional int32 logintime = 5 [default = 1];
            repeated int64 lockid = 6 [packed = true];
            optional bool is_available = 7 [default = false];
            optional pay_info pay = 8;
        }
    
        message pay_info {
            required int64 pay_id = 1;
            optional uint64 total_money = 2;
            optional uint64 pay_times = 3;
            optional pay_auth_info auth = 4;
            message pay_auth_info {
                required string pay_keys = 1;
                optional int64 update_time = 2;
            }
        }
                """)
                .build());
    
            var exampleTcaplusTable = new TcaplusTable("exampleTcaplusTable", TcaplusTableArgs.builder()
                .clusterId(exampleTcaplusCluster.tcaplusClusterId())
                .tablegroupId(exampleTcaplusTablegroup.tcaplusTablegroupId())
                .tableName("example_table")
                .tableType("GENERIC")
                .description("test")
                .idlId(exampleTcaplusIdl.tcaplusIdlId())
                .tableIdlType("PROTO")
                .reservedReadCu(1000)
                .reservedWriteCu(20)
                .reservedVolume(1)
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-3
    resources:
      exampleTcaplusCluster:
        type: tencentcloud:TcaplusCluster
        properties:
          idlType: PROTO
          clusterName: tf_example_tcaplus_cluster
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          password: your_pw_123111
          oldPasswordExpireLast: 3600
      exampleTcaplusTablegroup:
        type: tencentcloud:TcaplusTablegroup
        properties:
          clusterId: ${exampleTcaplusCluster.tcaplusClusterId}
          tablegroupName: tf_example_group_name
      exampleTcaplusIdl:
        type: tencentcloud:TcaplusIdl
        properties:
          clusterId: ${exampleTcaplusCluster.tcaplusClusterId}
          tablegroupId: ${exampleTcaplusTablegroup.tcaplusTablegroupId}
          fileName: tf_example_tcaplus_idl
          fileType: PROTO
          fileExtType: proto
          fileContent: |2
                syntax = "proto2";
                package myTcaplusTable;
                import "tcaplusservice.optionv1.proto";
                message example_table { # refer the table name
                    option(tcaplusservice.tcaplus_primary_key) = "uin,name,region";
                    required int64 uin = 1;
                    required string name = 2;
                    required int32 region = 3;
                    required int32 gamesvrid = 4;
                    optional int32 logintime = 5 [default = 1];
                    repeated int64 lockid = 6 [packed = true];
                    optional bool is_available = 7 [default = false];
                    optional pay_info pay = 8;
                }
    
                message pay_info {
                    required int64 pay_id = 1;
                    optional uint64 total_money = 2;
                    optional uint64 pay_times = 3;
                    optional pay_auth_info auth = 4;
                    message pay_auth_info {
                        required string pay_keys = 1;
                        optional int64 update_time = 2;
                    }
                }
      exampleTcaplusTable:
        type: tencentcloud:TcaplusTable
        properties:
          clusterId: ${exampleTcaplusCluster.tcaplusClusterId}
          tablegroupId: ${exampleTcaplusTablegroup.tcaplusTablegroupId}
          tableName: example_table
          tableType: GENERIC
          description: test
          idlId: ${exampleTcaplusIdl.tcaplusIdlId}
          tableIdlType: PROTO
          reservedReadCu: 1000
          reservedWriteCu: 20
          reservedVolume: 1
    variables:
      vpcId: ${vpc.instanceLists[0].vpcId}
      subnetId: ${vpc.instanceLists[0].subnetId}
      vpc:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZone}
    

    Create TcaplusTable Resource

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

    Constructor syntax

    new TcaplusTable(name: string, args: TcaplusTableArgs, opts?: CustomResourceOptions);
    @overload
    def TcaplusTable(resource_name: str,
                     args: TcaplusTableArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TcaplusTable(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cluster_id: Optional[str] = None,
                     idl_id: Optional[str] = None,
                     reserved_read_cu: Optional[float] = None,
                     reserved_volume: Optional[float] = None,
                     reserved_write_cu: Optional[float] = None,
                     table_idl_type: Optional[str] = None,
                     table_name: Optional[str] = None,
                     table_type: Optional[str] = None,
                     tablegroup_id: Optional[str] = None,
                     description: Optional[str] = None,
                     tcaplus_table_id: Optional[str] = None)
    func NewTcaplusTable(ctx *Context, name string, args TcaplusTableArgs, opts ...ResourceOption) (*TcaplusTable, error)
    public TcaplusTable(string name, TcaplusTableArgs args, CustomResourceOptions? opts = null)
    public TcaplusTable(String name, TcaplusTableArgs args)
    public TcaplusTable(String name, TcaplusTableArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TcaplusTable
    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 TcaplusTableArgs
    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 TcaplusTableArgs
    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 TcaplusTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TcaplusTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TcaplusTableArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TcaplusTable 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 TcaplusTable resource accepts the following input properties:

    ClusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    IdlId string
    ID of the IDL File.
    ReservedReadCu double
    Reserved read capacity units of the TcaplusDB table.
    ReservedVolume double
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    ReservedWriteCu double
    Reserved write capacity units of the TcaplusDB table.
    TableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    TableName string
    Name of the TcaplusDB table.
    TableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    TablegroupId string
    ID of the table group to which the table belongs.
    Description string
    Description of the TcaplusDB table.
    TcaplusTableId string
    ID of the resource.
    ClusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    IdlId string
    ID of the IDL File.
    ReservedReadCu float64
    Reserved read capacity units of the TcaplusDB table.
    ReservedVolume float64
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    ReservedWriteCu float64
    Reserved write capacity units of the TcaplusDB table.
    TableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    TableName string
    Name of the TcaplusDB table.
    TableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    TablegroupId string
    ID of the table group to which the table belongs.
    Description string
    Description of the TcaplusDB table.
    TcaplusTableId string
    ID of the resource.
    clusterId String
    ID of the TcaplusDB cluster to which the table belongs.
    idlId String
    ID of the IDL File.
    reservedReadCu Double
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume Double
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu Double
    Reserved write capacity units of the TcaplusDB table.
    tableIdlType String
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName String
    Name of the TcaplusDB table.
    tableType String
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId String
    ID of the table group to which the table belongs.
    description String
    Description of the TcaplusDB table.
    tcaplusTableId String
    ID of the resource.
    clusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    idlId string
    ID of the IDL File.
    reservedReadCu number
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume number
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu number
    Reserved write capacity units of the TcaplusDB table.
    tableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName string
    Name of the TcaplusDB table.
    tableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId string
    ID of the table group to which the table belongs.
    description string
    Description of the TcaplusDB table.
    tcaplusTableId string
    ID of the resource.
    cluster_id str
    ID of the TcaplusDB cluster to which the table belongs.
    idl_id str
    ID of the IDL File.
    reserved_read_cu float
    Reserved read capacity units of the TcaplusDB table.
    reserved_volume float
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reserved_write_cu float
    Reserved write capacity units of the TcaplusDB table.
    table_idl_type str
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    table_name str
    Name of the TcaplusDB table.
    table_type str
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroup_id str
    ID of the table group to which the table belongs.
    description str
    Description of the TcaplusDB table.
    tcaplus_table_id str
    ID of the resource.
    clusterId String
    ID of the TcaplusDB cluster to which the table belongs.
    idlId String
    ID of the IDL File.
    reservedReadCu Number
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume Number
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu Number
    Reserved write capacity units of the TcaplusDB table.
    tableIdlType String
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName String
    Name of the TcaplusDB table.
    tableType String
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId String
    ID of the table group to which the table belongs.
    description String
    Description of the TcaplusDB table.
    tcaplusTableId String
    ID of the resource.

    Outputs

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

    CreateTime string
    Create time of the TcaplusDB table.
    Error string
    Error messages for creating TcaplusDB table.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the TcaplusDB table.
    TableSize double
    Size of the TcaplusDB table.
    CreateTime string
    Create time of the TcaplusDB table.
    Error string
    Error messages for creating TcaplusDB table.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the TcaplusDB table.
    TableSize float64
    Size of the TcaplusDB table.
    createTime String
    Create time of the TcaplusDB table.
    error String
    Error messages for creating TcaplusDB table.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the TcaplusDB table.
    tableSize Double
    Size of the TcaplusDB table.
    createTime string
    Create time of the TcaplusDB table.
    error string
    Error messages for creating TcaplusDB table.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the TcaplusDB table.
    tableSize number
    Size of the TcaplusDB table.
    create_time str
    Create time of the TcaplusDB table.
    error str
    Error messages for creating TcaplusDB table.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the TcaplusDB table.
    table_size float
    Size of the TcaplusDB table.
    createTime String
    Create time of the TcaplusDB table.
    error String
    Error messages for creating TcaplusDB table.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the TcaplusDB table.
    tableSize Number
    Size of the TcaplusDB table.

    Look up Existing TcaplusTable Resource

    Get an existing TcaplusTable 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?: TcaplusTableState, opts?: CustomResourceOptions): TcaplusTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            error: Optional[str] = None,
            idl_id: Optional[str] = None,
            reserved_read_cu: Optional[float] = None,
            reserved_volume: Optional[float] = None,
            reserved_write_cu: Optional[float] = None,
            status: Optional[str] = None,
            table_idl_type: Optional[str] = None,
            table_name: Optional[str] = None,
            table_size: Optional[float] = None,
            table_type: Optional[str] = None,
            tablegroup_id: Optional[str] = None,
            tcaplus_table_id: Optional[str] = None) -> TcaplusTable
    func GetTcaplusTable(ctx *Context, name string, id IDInput, state *TcaplusTableState, opts ...ResourceOption) (*TcaplusTable, error)
    public static TcaplusTable Get(string name, Input<string> id, TcaplusTableState? state, CustomResourceOptions? opts = null)
    public static TcaplusTable get(String name, Output<String> id, TcaplusTableState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TcaplusTable    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.
    The following state arguments are supported:
    ClusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    CreateTime string
    Create time of the TcaplusDB table.
    Description string
    Description of the TcaplusDB table.
    Error string
    Error messages for creating TcaplusDB table.
    IdlId string
    ID of the IDL File.
    ReservedReadCu double
    Reserved read capacity units of the TcaplusDB table.
    ReservedVolume double
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    ReservedWriteCu double
    Reserved write capacity units of the TcaplusDB table.
    Status string
    Status of the TcaplusDB table.
    TableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    TableName string
    Name of the TcaplusDB table.
    TableSize double
    Size of the TcaplusDB table.
    TableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    TablegroupId string
    ID of the table group to which the table belongs.
    TcaplusTableId string
    ID of the resource.
    ClusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    CreateTime string
    Create time of the TcaplusDB table.
    Description string
    Description of the TcaplusDB table.
    Error string
    Error messages for creating TcaplusDB table.
    IdlId string
    ID of the IDL File.
    ReservedReadCu float64
    Reserved read capacity units of the TcaplusDB table.
    ReservedVolume float64
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    ReservedWriteCu float64
    Reserved write capacity units of the TcaplusDB table.
    Status string
    Status of the TcaplusDB table.
    TableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    TableName string
    Name of the TcaplusDB table.
    TableSize float64
    Size of the TcaplusDB table.
    TableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    TablegroupId string
    ID of the table group to which the table belongs.
    TcaplusTableId string
    ID of the resource.
    clusterId String
    ID of the TcaplusDB cluster to which the table belongs.
    createTime String
    Create time of the TcaplusDB table.
    description String
    Description of the TcaplusDB table.
    error String
    Error messages for creating TcaplusDB table.
    idlId String
    ID of the IDL File.
    reservedReadCu Double
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume Double
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu Double
    Reserved write capacity units of the TcaplusDB table.
    status String
    Status of the TcaplusDB table.
    tableIdlType String
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName String
    Name of the TcaplusDB table.
    tableSize Double
    Size of the TcaplusDB table.
    tableType String
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId String
    ID of the table group to which the table belongs.
    tcaplusTableId String
    ID of the resource.
    clusterId string
    ID of the TcaplusDB cluster to which the table belongs.
    createTime string
    Create time of the TcaplusDB table.
    description string
    Description of the TcaplusDB table.
    error string
    Error messages for creating TcaplusDB table.
    idlId string
    ID of the IDL File.
    reservedReadCu number
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume number
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu number
    Reserved write capacity units of the TcaplusDB table.
    status string
    Status of the TcaplusDB table.
    tableIdlType string
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName string
    Name of the TcaplusDB table.
    tableSize number
    Size of the TcaplusDB table.
    tableType string
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId string
    ID of the table group to which the table belongs.
    tcaplusTableId string
    ID of the resource.
    cluster_id str
    ID of the TcaplusDB cluster to which the table belongs.
    create_time str
    Create time of the TcaplusDB table.
    description str
    Description of the TcaplusDB table.
    error str
    Error messages for creating TcaplusDB table.
    idl_id str
    ID of the IDL File.
    reserved_read_cu float
    Reserved read capacity units of the TcaplusDB table.
    reserved_volume float
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reserved_write_cu float
    Reserved write capacity units of the TcaplusDB table.
    status str
    Status of the TcaplusDB table.
    table_idl_type str
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    table_name str
    Name of the TcaplusDB table.
    table_size float
    Size of the TcaplusDB table.
    table_type str
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroup_id str
    ID of the table group to which the table belongs.
    tcaplus_table_id str
    ID of the resource.
    clusterId String
    ID of the TcaplusDB cluster to which the table belongs.
    createTime String
    Create time of the TcaplusDB table.
    description String
    Description of the TcaplusDB table.
    error String
    Error messages for creating TcaplusDB table.
    idlId String
    ID of the IDL File.
    reservedReadCu Number
    Reserved read capacity units of the TcaplusDB table.
    reservedVolume Number
    Reserved storage capacity of the TcaplusDB table (unit: GB).
    reservedWriteCu Number
    Reserved write capacity units of the TcaplusDB table.
    status String
    Status of the TcaplusDB table.
    tableIdlType String
    IDL type of the TcaplusDB table. Valid values: PROTO and TDR.
    tableName String
    Name of the TcaplusDB table.
    tableSize Number
    Size of the TcaplusDB table.
    tableType String
    Type of the TcaplusDB table. Valid values are GENERIC and LIST.
    tablegroupId String
    ID of the table group to which the table belongs.
    tcaplusTableId String
    ID of the resource.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack