tcaplus

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// Access ID of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessId pulumi.StringOutput `pulumi:"apiAccessId"`
	// Access IP of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessIp pulumi.StringOutput `pulumi:"apiAccessIp"`
	// Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessPort pulumi.IntOutput `pulumi:"apiAccessPort"`
	// Name of the TcaplusDB cluster. Name length should be between 1 and 30.
	ClusterName pulumi.StringOutput `pulumi:"clusterName"`
	// Create time of the TcaplusDB cluster.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// IDL type of the TcaplusDB cluster. Valid values: `PROTO` and `TDR`.
	IdlType pulumi.StringOutput `pulumi:"idlType"`
	// Network type of the TcaplusDB cluster.
	NetworkType pulumi.StringOutput `pulumi:"networkType"`
	// Expiration time of old password after password update, unit: second.
	OldPasswordExpireLast pulumi.IntPtrOutput `pulumi:"oldPasswordExpireLast"`
	// Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.
	OldPasswordExpireTime pulumi.StringOutput `pulumi:"oldPasswordExpireTime"`
	// Password of the TcaplusDB cluster. Password length should be between 12 and 16. The password must be a *mix* of uppercase letters (A-Z), lowercase *letters* (a-z) and *numbers* (0-9).
	Password pulumi.StringOutput `pulumi:"password"`
	// Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable`. which means the password can not be changed in this moment; `modifiable`, which means the password can be changed in this moment.
	PasswordStatus pulumi.StringOutput `pulumi:"passwordStatus"`
	// Subnet id of the TcaplusDB cluster.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// VPC id of the TcaplusDB cluster.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

Use this resource to create TcaplusDB cluster.

> **NOTE:** TcaplusDB now only supports the following regions: `ap-shanghai,ap-hongkong,na-siliconvalley,ap-singapore,ap-seoul,ap-tokyo,eu-frankfurt, and na-ashburn`.

## Example Usage ### Create a new tcaplus cluster instance

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

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 := Vpc.GetSubnets(ctx, &vpc.GetSubnetsArgs{
			IsDefault:        pulumi.BoolRef(true),
			AvailabilityZone: pulumi.StringRef(availabilityZone),
		}, nil)
		if err != nil {
			return err
		}
		vpcId := vpc.InstanceLists[0].VpcId
		subnetId := vpc.InstanceLists[0].SubnetId
		_, err = Tcaplus.NewCluster(ctx, "example", &Tcaplus.ClusterArgs{
			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.Int(3600),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

tcaplus cluster can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Tcaplus/cluster:Cluster example cluster_id

```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	// Name of the TcaplusDB cluster. Name length should be between 1 and 30.
	ClusterName pulumi.StringInput
	// IDL type of the TcaplusDB cluster. Valid values: `PROTO` and `TDR`.
	IdlType pulumi.StringInput
	// Expiration time of old password after password update, unit: second.
	OldPasswordExpireLast pulumi.IntPtrInput
	// Password of the TcaplusDB cluster. Password length should be between 12 and 16. The password must be a *mix* of uppercase letters (A-Z), lowercase *letters* (a-z) and *numbers* (0-9).
	Password pulumi.StringInput
	// Subnet id of the TcaplusDB cluster.
	SubnetId pulumi.StringInput
	// VPC id of the TcaplusDB cluster.
	VpcId pulumi.StringInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) ApiAccessId

func (o ClusterOutput) ApiAccessId() pulumi.StringOutput

Access ID of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (ClusterOutput) ApiAccessIp

func (o ClusterOutput) ApiAccessIp() pulumi.StringOutput

Access IP of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (ClusterOutput) ApiAccessPort

func (o ClusterOutput) ApiAccessPort() pulumi.IntOutput

Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (ClusterOutput) ClusterName

func (o ClusterOutput) ClusterName() pulumi.StringOutput

Name of the TcaplusDB cluster. Name length should be between 1 and 30.

func (ClusterOutput) CreateTime

func (o ClusterOutput) CreateTime() pulumi.StringOutput

Create time of the TcaplusDB cluster.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) IdlType

func (o ClusterOutput) IdlType() pulumi.StringOutput

IDL type of the TcaplusDB cluster. Valid values: `PROTO` and `TDR`.

func (ClusterOutput) NetworkType

func (o ClusterOutput) NetworkType() pulumi.StringOutput

Network type of the TcaplusDB cluster.

func (ClusterOutput) OldPasswordExpireLast

func (o ClusterOutput) OldPasswordExpireLast() pulumi.IntPtrOutput

Expiration time of old password after password update, unit: second.

func (ClusterOutput) OldPasswordExpireTime

func (o ClusterOutput) OldPasswordExpireTime() pulumi.StringOutput

Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.

func (ClusterOutput) Password

func (o ClusterOutput) Password() pulumi.StringOutput

Password of the TcaplusDB cluster. Password length should be between 12 and 16. The password must be a *mix* of uppercase letters (A-Z), lowercase *letters* (a-z) and *numbers* (0-9).

func (ClusterOutput) PasswordStatus

func (o ClusterOutput) PasswordStatus() pulumi.StringOutput

Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable`. which means the password can not be changed in this moment; `modifiable`, which means the password can be changed in this moment.

func (ClusterOutput) SubnetId

func (o ClusterOutput) SubnetId() pulumi.StringOutput

Subnet id of the TcaplusDB cluster.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (ClusterOutput) VpcId

func (o ClusterOutput) VpcId() pulumi.StringOutput

VPC id of the TcaplusDB cluster.

type ClusterState

type ClusterState struct {
	// Access ID of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessId pulumi.StringPtrInput
	// Access IP of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessIp pulumi.StringPtrInput
	// Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessPort pulumi.IntPtrInput
	// Name of the TcaplusDB cluster. Name length should be between 1 and 30.
	ClusterName pulumi.StringPtrInput
	// Create time of the TcaplusDB cluster.
	CreateTime pulumi.StringPtrInput
	// IDL type of the TcaplusDB cluster. Valid values: `PROTO` and `TDR`.
	IdlType pulumi.StringPtrInput
	// Network type of the TcaplusDB cluster.
	NetworkType pulumi.StringPtrInput
	// Expiration time of old password after password update, unit: second.
	OldPasswordExpireLast pulumi.IntPtrInput
	// Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.
	OldPasswordExpireTime pulumi.StringPtrInput
	// Password of the TcaplusDB cluster. Password length should be between 12 and 16. The password must be a *mix* of uppercase letters (A-Z), lowercase *letters* (a-z) and *numbers* (0-9).
	Password pulumi.StringPtrInput
	// Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable`. which means the password can not be changed in this moment; `modifiable`, which means the password can be changed in this moment.
	PasswordStatus pulumi.StringPtrInput
	// Subnet id of the TcaplusDB cluster.
	SubnetId pulumi.StringPtrInput
	// VPC id of the TcaplusDB cluster.
	VpcId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type GetClustersArgs

type GetClustersArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId *string `pulumi:"clusterId"`
	// Name of the TcaplusDB cluster to be query.
	ClusterName *string `pulumi:"clusterName"`
	// File for saving results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getClusters.

type GetClustersList

type GetClustersList struct {
	// Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessId string `pulumi:"apiAccessId"`
	// Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessIp string `pulumi:"apiAccessIp"`
	// Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessPort int `pulumi:"apiAccessPort"`
	// ID of the TcaplusDB cluster to be query.
	ClusterId string `pulumi:"clusterId"`
	// Name of the TcaplusDB cluster to be query.
	ClusterName string `pulumi:"clusterName"`
	// Create time of the TcaplusDB cluster.
	CreateTime string `pulumi:"createTime"`
	// IDL type of the TcaplusDB cluster.
	IdlType string `pulumi:"idlType"`
	// Network type of the TcaplusDB cluster.
	NetworkType string `pulumi:"networkType"`
	// Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.
	OldPasswordExpireTime string `pulumi:"oldPasswordExpireTime"`
	// Access password of the TcaplusDB cluster.
	Password string `pulumi:"password"`
	// Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable` means the password can not be changed in this moment; `modifiable` means the password can be changed in this moment.
	PasswordStatus string `pulumi:"passwordStatus"`
	// Subnet ID of the TcaplusDB cluster.
	SubnetId string `pulumi:"subnetId"`
	// VPC ID of the TcaplusDB cluster.
	VpcId string `pulumi:"vpcId"`
}

type GetClustersListArgs

type GetClustersListArgs struct {
	// Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessId pulumi.StringInput `pulumi:"apiAccessId"`
	// Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessIp pulumi.StringInput `pulumi:"apiAccessIp"`
	// Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
	ApiAccessPort pulumi.IntInput `pulumi:"apiAccessPort"`
	// ID of the TcaplusDB cluster to be query.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// Name of the TcaplusDB cluster to be query.
	ClusterName pulumi.StringInput `pulumi:"clusterName"`
	// Create time of the TcaplusDB cluster.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// IDL type of the TcaplusDB cluster.
	IdlType pulumi.StringInput `pulumi:"idlType"`
	// Network type of the TcaplusDB cluster.
	NetworkType pulumi.StringInput `pulumi:"networkType"`
	// Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.
	OldPasswordExpireTime pulumi.StringInput `pulumi:"oldPasswordExpireTime"`
	// Access password of the TcaplusDB cluster.
	Password pulumi.StringInput `pulumi:"password"`
	// Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable` means the password can not be changed in this moment; `modifiable` means the password can be changed in this moment.
	PasswordStatus pulumi.StringInput `pulumi:"passwordStatus"`
	// Subnet ID of the TcaplusDB cluster.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
	// VPC ID of the TcaplusDB cluster.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (GetClustersListArgs) ElementType

func (GetClustersListArgs) ElementType() reflect.Type

func (GetClustersListArgs) ToGetClustersListOutput

func (i GetClustersListArgs) ToGetClustersListOutput() GetClustersListOutput

func (GetClustersListArgs) ToGetClustersListOutputWithContext

func (i GetClustersListArgs) ToGetClustersListOutputWithContext(ctx context.Context) GetClustersListOutput

type GetClustersListArray

type GetClustersListArray []GetClustersListInput

func (GetClustersListArray) ElementType

func (GetClustersListArray) ElementType() reflect.Type

func (GetClustersListArray) ToGetClustersListArrayOutput

func (i GetClustersListArray) ToGetClustersListArrayOutput() GetClustersListArrayOutput

func (GetClustersListArray) ToGetClustersListArrayOutputWithContext

func (i GetClustersListArray) ToGetClustersListArrayOutputWithContext(ctx context.Context) GetClustersListArrayOutput

type GetClustersListArrayInput

type GetClustersListArrayInput interface {
	pulumi.Input

	ToGetClustersListArrayOutput() GetClustersListArrayOutput
	ToGetClustersListArrayOutputWithContext(context.Context) GetClustersListArrayOutput
}

GetClustersListArrayInput is an input type that accepts GetClustersListArray and GetClustersListArrayOutput values. You can construct a concrete instance of `GetClustersListArrayInput` via:

GetClustersListArray{ GetClustersListArgs{...} }

type GetClustersListArrayOutput

type GetClustersListArrayOutput struct{ *pulumi.OutputState }

func (GetClustersListArrayOutput) ElementType

func (GetClustersListArrayOutput) ElementType() reflect.Type

func (GetClustersListArrayOutput) Index

func (GetClustersListArrayOutput) ToGetClustersListArrayOutput

func (o GetClustersListArrayOutput) ToGetClustersListArrayOutput() GetClustersListArrayOutput

func (GetClustersListArrayOutput) ToGetClustersListArrayOutputWithContext

func (o GetClustersListArrayOutput) ToGetClustersListArrayOutputWithContext(ctx context.Context) GetClustersListArrayOutput

type GetClustersListInput

type GetClustersListInput interface {
	pulumi.Input

	ToGetClustersListOutput() GetClustersListOutput
	ToGetClustersListOutputWithContext(context.Context) GetClustersListOutput
}

GetClustersListInput is an input type that accepts GetClustersListArgs and GetClustersListOutput values. You can construct a concrete instance of `GetClustersListInput` via:

GetClustersListArgs{...}

type GetClustersListOutput

type GetClustersListOutput struct{ *pulumi.OutputState }

func (GetClustersListOutput) ApiAccessId

func (o GetClustersListOutput) ApiAccessId() pulumi.StringOutput

Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (GetClustersListOutput) ApiAccessIp

func (o GetClustersListOutput) ApiAccessIp() pulumi.StringOutput

Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (GetClustersListOutput) ApiAccessPort

func (o GetClustersListOutput) ApiAccessPort() pulumi.IntOutput

Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.

func (GetClustersListOutput) ClusterId

ID of the TcaplusDB cluster to be query.

func (GetClustersListOutput) ClusterName

func (o GetClustersListOutput) ClusterName() pulumi.StringOutput

Name of the TcaplusDB cluster to be query.

func (GetClustersListOutput) CreateTime

func (o GetClustersListOutput) CreateTime() pulumi.StringOutput

Create time of the TcaplusDB cluster.

func (GetClustersListOutput) ElementType

func (GetClustersListOutput) ElementType() reflect.Type

func (GetClustersListOutput) IdlType

IDL type of the TcaplusDB cluster.

func (GetClustersListOutput) NetworkType

func (o GetClustersListOutput) NetworkType() pulumi.StringOutput

Network type of the TcaplusDB cluster.

func (GetClustersListOutput) OldPasswordExpireTime

func (o GetClustersListOutput) OldPasswordExpireTime() pulumi.StringOutput

Expiration time of the old password. If `passwordStatus` is `unmodifiable`, it means the old password has not yet expired.

func (GetClustersListOutput) Password

Access password of the TcaplusDB cluster.

func (GetClustersListOutput) PasswordStatus

func (o GetClustersListOutput) PasswordStatus() pulumi.StringOutput

Password status of the TcaplusDB cluster. Valid values: `unmodifiable`, `modifiable`. `unmodifiable` means the password can not be changed in this moment; `modifiable` means the password can be changed in this moment.

func (GetClustersListOutput) SubnetId

Subnet ID of the TcaplusDB cluster.

func (GetClustersListOutput) ToGetClustersListOutput

func (o GetClustersListOutput) ToGetClustersListOutput() GetClustersListOutput

func (GetClustersListOutput) ToGetClustersListOutputWithContext

func (o GetClustersListOutput) ToGetClustersListOutputWithContext(ctx context.Context) GetClustersListOutput

func (GetClustersListOutput) VpcId

VPC ID of the TcaplusDB cluster.

type GetClustersOutputArgs

type GetClustersOutputArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId pulumi.StringPtrInput `pulumi:"clusterId"`
	// Name of the TcaplusDB cluster to be query.
	ClusterName pulumi.StringPtrInput `pulumi:"clusterName"`
	// File for saving results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getClusters.

func (GetClustersOutputArgs) ElementType

func (GetClustersOutputArgs) ElementType() reflect.Type

type GetClustersResult

type GetClustersResult struct {
	// ID of the TcaplusDB cluster.
	ClusterId *string `pulumi:"clusterId"`
	// Name of the TcaplusDB cluster.
	ClusterName *string `pulumi:"clusterName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of TcaplusDB cluster. Each element contains the following attributes.
	Lists            []GetClustersList `pulumi:"lists"`
	ResultOutputFile *string           `pulumi:"resultOutputFile"`
}

A collection of values returned by getClusters.

func GetClusters

func GetClusters(ctx *pulumi.Context, args *GetClustersArgs, opts ...pulumi.InvokeOption) (*GetClustersResult, error)

Use this data source to query TcaplusDB clusters.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Tcaplus.GetClusters(ctx, &tcaplus.GetClustersArgs{
			ClusterName: pulumi.StringRef("cluster"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Tcaplus.GetClusters(ctx, &tcaplus.GetClustersArgs{
			ClusterId: pulumi.StringRef(tencentcloud_tcaplus_cluster.Test.Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Tcaplus.GetClusters(ctx, &tcaplus.GetClustersArgs{
			ClusterId:   pulumi.StringRef(tencentcloud_tcaplus_cluster.Test.Id),
			ClusterName: pulumi.StringRef("cluster"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetClustersResultOutput

type GetClustersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusters.

func (GetClustersResultOutput) ClusterId

ID of the TcaplusDB cluster.

func (GetClustersResultOutput) ClusterName

Name of the TcaplusDB cluster.

func (GetClustersResultOutput) ElementType

func (GetClustersResultOutput) ElementType() reflect.Type

func (GetClustersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetClustersResultOutput) Lists

A list of TcaplusDB cluster. Each element contains the following attributes.

func (GetClustersResultOutput) ResultOutputFile

func (o GetClustersResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetClustersResultOutput) ToGetClustersResultOutput

func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput

func (GetClustersResultOutput) ToGetClustersResultOutputWithContext

func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput

type GetIdlsArgs

type GetIdlsArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId string `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getIdls.

type GetIdlsList

type GetIdlsList struct {
	// ID of the IDL.
	IdlId string `pulumi:"idlId"`
}

type GetIdlsListArgs

type GetIdlsListArgs struct {
	// ID of the IDL.
	IdlId pulumi.StringInput `pulumi:"idlId"`
}

func (GetIdlsListArgs) ElementType

func (GetIdlsListArgs) ElementType() reflect.Type

func (GetIdlsListArgs) ToGetIdlsListOutput

func (i GetIdlsListArgs) ToGetIdlsListOutput() GetIdlsListOutput

func (GetIdlsListArgs) ToGetIdlsListOutputWithContext

func (i GetIdlsListArgs) ToGetIdlsListOutputWithContext(ctx context.Context) GetIdlsListOutput

type GetIdlsListArray

type GetIdlsListArray []GetIdlsListInput

func (GetIdlsListArray) ElementType

func (GetIdlsListArray) ElementType() reflect.Type

func (GetIdlsListArray) ToGetIdlsListArrayOutput

func (i GetIdlsListArray) ToGetIdlsListArrayOutput() GetIdlsListArrayOutput

func (GetIdlsListArray) ToGetIdlsListArrayOutputWithContext

func (i GetIdlsListArray) ToGetIdlsListArrayOutputWithContext(ctx context.Context) GetIdlsListArrayOutput

type GetIdlsListArrayInput

type GetIdlsListArrayInput interface {
	pulumi.Input

	ToGetIdlsListArrayOutput() GetIdlsListArrayOutput
	ToGetIdlsListArrayOutputWithContext(context.Context) GetIdlsListArrayOutput
}

GetIdlsListArrayInput is an input type that accepts GetIdlsListArray and GetIdlsListArrayOutput values. You can construct a concrete instance of `GetIdlsListArrayInput` via:

GetIdlsListArray{ GetIdlsListArgs{...} }

type GetIdlsListArrayOutput

type GetIdlsListArrayOutput struct{ *pulumi.OutputState }

func (GetIdlsListArrayOutput) ElementType

func (GetIdlsListArrayOutput) ElementType() reflect.Type

func (GetIdlsListArrayOutput) Index

func (GetIdlsListArrayOutput) ToGetIdlsListArrayOutput

func (o GetIdlsListArrayOutput) ToGetIdlsListArrayOutput() GetIdlsListArrayOutput

func (GetIdlsListArrayOutput) ToGetIdlsListArrayOutputWithContext

func (o GetIdlsListArrayOutput) ToGetIdlsListArrayOutputWithContext(ctx context.Context) GetIdlsListArrayOutput

type GetIdlsListInput

type GetIdlsListInput interface {
	pulumi.Input

	ToGetIdlsListOutput() GetIdlsListOutput
	ToGetIdlsListOutputWithContext(context.Context) GetIdlsListOutput
}

GetIdlsListInput is an input type that accepts GetIdlsListArgs and GetIdlsListOutput values. You can construct a concrete instance of `GetIdlsListInput` via:

GetIdlsListArgs{...}

type GetIdlsListOutput

type GetIdlsListOutput struct{ *pulumi.OutputState }

func (GetIdlsListOutput) ElementType

func (GetIdlsListOutput) ElementType() reflect.Type

func (GetIdlsListOutput) IdlId

ID of the IDL.

func (GetIdlsListOutput) ToGetIdlsListOutput

func (o GetIdlsListOutput) ToGetIdlsListOutput() GetIdlsListOutput

func (GetIdlsListOutput) ToGetIdlsListOutputWithContext

func (o GetIdlsListOutput) ToGetIdlsListOutputWithContext(ctx context.Context) GetIdlsListOutput

type GetIdlsOutputArgs

type GetIdlsOutputArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getIdls.

func (GetIdlsOutputArgs) ElementType

func (GetIdlsOutputArgs) ElementType() reflect.Type

type GetIdlsResult

type GetIdlsResult struct {
	ClusterId string `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of TcaplusDB table IDL. Each element contains the following attributes.
	Lists            []GetIdlsList `pulumi:"lists"`
	ResultOutputFile *string       `pulumi:"resultOutputFile"`
}

A collection of values returned by getIdls.

func GetIdls

func GetIdls(ctx *pulumi.Context, args *GetIdlsArgs, opts ...pulumi.InvokeOption) (*GetIdlsResult, error)

Use this data source to query IDL information of the TcaplusDB table.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Tcaplus.GetIdls(ctx, &tcaplus.GetIdlsArgs{
			ClusterId: "19162256624",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetIdlsResultOutput

type GetIdlsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getIdls.

func (GetIdlsResultOutput) ClusterId

func (o GetIdlsResultOutput) ClusterId() pulumi.StringOutput

func (GetIdlsResultOutput) ElementType

func (GetIdlsResultOutput) ElementType() reflect.Type

func (GetIdlsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetIdlsResultOutput) Lists

A list of TcaplusDB table IDL. Each element contains the following attributes.

func (GetIdlsResultOutput) ResultOutputFile

func (o GetIdlsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetIdlsResultOutput) ToGetIdlsResultOutput

func (o GetIdlsResultOutput) ToGetIdlsResultOutput() GetIdlsResultOutput

func (GetIdlsResultOutput) ToGetIdlsResultOutputWithContext

func (o GetIdlsResultOutput) ToGetIdlsResultOutputWithContext(ctx context.Context) GetIdlsResultOutput

type GetTablegroupsArgs

type GetTablegroupsArgs struct {
	// Id of the TcaplusDB cluster to be query.
	ClusterId string `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Id of the table group to be query.
	TablegroupId *string `pulumi:"tablegroupId"`
	// Name of the table group to be query.
	TablegroupName *string `pulumi:"tablegroupName"`
}

A collection of arguments for invoking getTablegroups.

type GetTablegroupsList

type GetTablegroupsList struct {
	// Create time of the table group..
	CreateTime string `pulumi:"createTime"`
	// Number of tables.
	TableCount int `pulumi:"tableCount"`
	// Id of the table group to be query.
	TablegroupId string `pulumi:"tablegroupId"`
	// Name of the table group to be query.
	TablegroupName string `pulumi:"tablegroupName"`
	// Total storage size (MB).
	TotalSize int `pulumi:"totalSize"`
}

type GetTablegroupsListArgs

type GetTablegroupsListArgs struct {
	// Create time of the table group..
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Number of tables.
	TableCount pulumi.IntInput `pulumi:"tableCount"`
	// Id of the table group to be query.
	TablegroupId pulumi.StringInput `pulumi:"tablegroupId"`
	// Name of the table group to be query.
	TablegroupName pulumi.StringInput `pulumi:"tablegroupName"`
	// Total storage size (MB).
	TotalSize pulumi.IntInput `pulumi:"totalSize"`
}

func (GetTablegroupsListArgs) ElementType

func (GetTablegroupsListArgs) ElementType() reflect.Type

func (GetTablegroupsListArgs) ToGetTablegroupsListOutput

func (i GetTablegroupsListArgs) ToGetTablegroupsListOutput() GetTablegroupsListOutput

func (GetTablegroupsListArgs) ToGetTablegroupsListOutputWithContext

func (i GetTablegroupsListArgs) ToGetTablegroupsListOutputWithContext(ctx context.Context) GetTablegroupsListOutput

type GetTablegroupsListArray

type GetTablegroupsListArray []GetTablegroupsListInput

func (GetTablegroupsListArray) ElementType

func (GetTablegroupsListArray) ElementType() reflect.Type

func (GetTablegroupsListArray) ToGetTablegroupsListArrayOutput

func (i GetTablegroupsListArray) ToGetTablegroupsListArrayOutput() GetTablegroupsListArrayOutput

func (GetTablegroupsListArray) ToGetTablegroupsListArrayOutputWithContext

func (i GetTablegroupsListArray) ToGetTablegroupsListArrayOutputWithContext(ctx context.Context) GetTablegroupsListArrayOutput

type GetTablegroupsListArrayInput

type GetTablegroupsListArrayInput interface {
	pulumi.Input

	ToGetTablegroupsListArrayOutput() GetTablegroupsListArrayOutput
	ToGetTablegroupsListArrayOutputWithContext(context.Context) GetTablegroupsListArrayOutput
}

GetTablegroupsListArrayInput is an input type that accepts GetTablegroupsListArray and GetTablegroupsListArrayOutput values. You can construct a concrete instance of `GetTablegroupsListArrayInput` via:

GetTablegroupsListArray{ GetTablegroupsListArgs{...} }

type GetTablegroupsListArrayOutput

type GetTablegroupsListArrayOutput struct{ *pulumi.OutputState }

func (GetTablegroupsListArrayOutput) ElementType

func (GetTablegroupsListArrayOutput) Index

func (GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutput

func (o GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutput() GetTablegroupsListArrayOutput

func (GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutputWithContext

func (o GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutputWithContext(ctx context.Context) GetTablegroupsListArrayOutput

type GetTablegroupsListInput

type GetTablegroupsListInput interface {
	pulumi.Input

	ToGetTablegroupsListOutput() GetTablegroupsListOutput
	ToGetTablegroupsListOutputWithContext(context.Context) GetTablegroupsListOutput
}

GetTablegroupsListInput is an input type that accepts GetTablegroupsListArgs and GetTablegroupsListOutput values. You can construct a concrete instance of `GetTablegroupsListInput` via:

GetTablegroupsListArgs{...}

type GetTablegroupsListOutput

type GetTablegroupsListOutput struct{ *pulumi.OutputState }

func (GetTablegroupsListOutput) CreateTime

Create time of the table group..

func (GetTablegroupsListOutput) ElementType

func (GetTablegroupsListOutput) ElementType() reflect.Type

func (GetTablegroupsListOutput) TableCount

func (o GetTablegroupsListOutput) TableCount() pulumi.IntOutput

Number of tables.

func (GetTablegroupsListOutput) TablegroupId

func (o GetTablegroupsListOutput) TablegroupId() pulumi.StringOutput

Id of the table group to be query.

func (GetTablegroupsListOutput) TablegroupName

func (o GetTablegroupsListOutput) TablegroupName() pulumi.StringOutput

Name of the table group to be query.

func (GetTablegroupsListOutput) ToGetTablegroupsListOutput

func (o GetTablegroupsListOutput) ToGetTablegroupsListOutput() GetTablegroupsListOutput

func (GetTablegroupsListOutput) ToGetTablegroupsListOutputWithContext

func (o GetTablegroupsListOutput) ToGetTablegroupsListOutputWithContext(ctx context.Context) GetTablegroupsListOutput

func (GetTablegroupsListOutput) TotalSize

Total storage size (MB).

type GetTablegroupsOutputArgs

type GetTablegroupsOutputArgs struct {
	// Id of the TcaplusDB cluster to be query.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Id of the table group to be query.
	TablegroupId pulumi.StringPtrInput `pulumi:"tablegroupId"`
	// Name of the table group to be query.
	TablegroupName pulumi.StringPtrInput `pulumi:"tablegroupName"`
}

A collection of arguments for invoking getTablegroups.

func (GetTablegroupsOutputArgs) ElementType

func (GetTablegroupsOutputArgs) ElementType() reflect.Type

type GetTablegroupsResult

type GetTablegroupsResult struct {
	ClusterId string `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of table group. Each element contains the following attributes.
	Lists            []GetTablegroupsList `pulumi:"lists"`
	ResultOutputFile *string              `pulumi:"resultOutputFile"`
	// Id of the table group.
	TablegroupId *string `pulumi:"tablegroupId"`
	// Name of the table group.
	TablegroupName *string `pulumi:"tablegroupName"`
}

A collection of values returned by getTablegroups.

func GetTablegroups

func GetTablegroups(ctx *pulumi.Context, args *GetTablegroupsArgs, opts ...pulumi.InvokeOption) (*GetTablegroupsResult, error)

Use this data source to query table groups of the TcaplusDB cluster.

type GetTablegroupsResultOutput

type GetTablegroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTablegroups.

func (GetTablegroupsResultOutput) ClusterId

func (GetTablegroupsResultOutput) ElementType

func (GetTablegroupsResultOutput) ElementType() reflect.Type

func (GetTablegroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTablegroupsResultOutput) Lists

A list of table group. Each element contains the following attributes.

func (GetTablegroupsResultOutput) ResultOutputFile

func (o GetTablegroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetTablegroupsResultOutput) TablegroupId

Id of the table group.

func (GetTablegroupsResultOutput) TablegroupName

Name of the table group.

func (GetTablegroupsResultOutput) ToGetTablegroupsResultOutput

func (o GetTablegroupsResultOutput) ToGetTablegroupsResultOutput() GetTablegroupsResultOutput

func (GetTablegroupsResultOutput) ToGetTablegroupsResultOutputWithContext

func (o GetTablegroupsResultOutput) ToGetTablegroupsResultOutputWithContext(ctx context.Context) GetTablegroupsResultOutput

type GetTablesArgs

type GetTablesArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId string `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Table ID to be query.
	TableId *string `pulumi:"tableId"`
	// Table name to be query.
	TableName *string `pulumi:"tableName"`
	// ID of the table group to be query.
	TablegroupId *string `pulumi:"tablegroupId"`
}

A collection of arguments for invoking getTables.

type GetTablesList

type GetTablesList struct {
	// Create time of the TcaplusDB table.
	CreateTime string `pulumi:"createTime"`
	// Description of the TcaplusDB table.
	Description string `pulumi:"description"`
	// Error message for creating TcaplusDB table.
	Error string `pulumi:"error"`
	// IDL file id of the TcaplusDB table.
	IdlId string `pulumi:"idlId"`
	// Reserved read capacity units of the TcaplusDB table.
	ReservedReadCu int `pulumi:"reservedReadCu"`
	// Reserved storage capacity of the TcaplusDB table (unit:GB).
	ReservedVolume int `pulumi:"reservedVolume"`
	// Reserved write capacity units of the TcaplusDB table.
	ReservedWriteCu int `pulumi:"reservedWriteCu"`
	// Status of the TcaplusDB table.
	Status string `pulumi:"status"`
	// Table ID to be query.
	TableId string `pulumi:"tableId"`
	// IDL type of  the TcaplusDB table.
	TableIdlType string `pulumi:"tableIdlType"`
	// Table name to be query.
	TableName string `pulumi:"tableName"`
	// Size of the TcaplusDB table.
	TableSize int `pulumi:"tableSize"`
	// Type of the TcaplusDB table.
	TableType string `pulumi:"tableType"`
	// ID of the table group to be query.
	TablegroupId string `pulumi:"tablegroupId"`
}

type GetTablesListArgs

type GetTablesListArgs struct {
	// Create time of the TcaplusDB table.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Description of the TcaplusDB table.
	Description pulumi.StringInput `pulumi:"description"`
	// Error message for creating TcaplusDB table.
	Error pulumi.StringInput `pulumi:"error"`
	// IDL file id of the TcaplusDB table.
	IdlId pulumi.StringInput `pulumi:"idlId"`
	// Reserved read capacity units of the TcaplusDB table.
	ReservedReadCu pulumi.IntInput `pulumi:"reservedReadCu"`
	// Reserved storage capacity of the TcaplusDB table (unit:GB).
	ReservedVolume pulumi.IntInput `pulumi:"reservedVolume"`
	// Reserved write capacity units of the TcaplusDB table.
	ReservedWriteCu pulumi.IntInput `pulumi:"reservedWriteCu"`
	// Status of the TcaplusDB table.
	Status pulumi.StringInput `pulumi:"status"`
	// Table ID to be query.
	TableId pulumi.StringInput `pulumi:"tableId"`
	// IDL type of  the TcaplusDB table.
	TableIdlType pulumi.StringInput `pulumi:"tableIdlType"`
	// Table name to be query.
	TableName pulumi.StringInput `pulumi:"tableName"`
	// Size of the TcaplusDB table.
	TableSize pulumi.IntInput `pulumi:"tableSize"`
	// Type of the TcaplusDB table.
	TableType pulumi.StringInput `pulumi:"tableType"`
	// ID of the table group to be query.
	TablegroupId pulumi.StringInput `pulumi:"tablegroupId"`
}

func (GetTablesListArgs) ElementType

func (GetTablesListArgs) ElementType() reflect.Type

func (GetTablesListArgs) ToGetTablesListOutput

func (i GetTablesListArgs) ToGetTablesListOutput() GetTablesListOutput

func (GetTablesListArgs) ToGetTablesListOutputWithContext

func (i GetTablesListArgs) ToGetTablesListOutputWithContext(ctx context.Context) GetTablesListOutput

type GetTablesListArray

type GetTablesListArray []GetTablesListInput

func (GetTablesListArray) ElementType

func (GetTablesListArray) ElementType() reflect.Type

func (GetTablesListArray) ToGetTablesListArrayOutput

func (i GetTablesListArray) ToGetTablesListArrayOutput() GetTablesListArrayOutput

func (GetTablesListArray) ToGetTablesListArrayOutputWithContext

func (i GetTablesListArray) ToGetTablesListArrayOutputWithContext(ctx context.Context) GetTablesListArrayOutput

type GetTablesListArrayInput

type GetTablesListArrayInput interface {
	pulumi.Input

	ToGetTablesListArrayOutput() GetTablesListArrayOutput
	ToGetTablesListArrayOutputWithContext(context.Context) GetTablesListArrayOutput
}

GetTablesListArrayInput is an input type that accepts GetTablesListArray and GetTablesListArrayOutput values. You can construct a concrete instance of `GetTablesListArrayInput` via:

GetTablesListArray{ GetTablesListArgs{...} }

type GetTablesListArrayOutput

type GetTablesListArrayOutput struct{ *pulumi.OutputState }

func (GetTablesListArrayOutput) ElementType

func (GetTablesListArrayOutput) ElementType() reflect.Type

func (GetTablesListArrayOutput) Index

func (GetTablesListArrayOutput) ToGetTablesListArrayOutput

func (o GetTablesListArrayOutput) ToGetTablesListArrayOutput() GetTablesListArrayOutput

func (GetTablesListArrayOutput) ToGetTablesListArrayOutputWithContext

func (o GetTablesListArrayOutput) ToGetTablesListArrayOutputWithContext(ctx context.Context) GetTablesListArrayOutput

type GetTablesListInput

type GetTablesListInput interface {
	pulumi.Input

	ToGetTablesListOutput() GetTablesListOutput
	ToGetTablesListOutputWithContext(context.Context) GetTablesListOutput
}

GetTablesListInput is an input type that accepts GetTablesListArgs and GetTablesListOutput values. You can construct a concrete instance of `GetTablesListInput` via:

GetTablesListArgs{...}

type GetTablesListOutput

type GetTablesListOutput struct{ *pulumi.OutputState }

func (GetTablesListOutput) CreateTime

func (o GetTablesListOutput) CreateTime() pulumi.StringOutput

Create time of the TcaplusDB table.

func (GetTablesListOutput) Description

func (o GetTablesListOutput) Description() pulumi.StringOutput

Description of the TcaplusDB table.

func (GetTablesListOutput) ElementType

func (GetTablesListOutput) ElementType() reflect.Type

func (GetTablesListOutput) Error

Error message for creating TcaplusDB table.

func (GetTablesListOutput) IdlId

IDL file id of the TcaplusDB table.

func (GetTablesListOutput) ReservedReadCu

func (o GetTablesListOutput) ReservedReadCu() pulumi.IntOutput

Reserved read capacity units of the TcaplusDB table.

func (GetTablesListOutput) ReservedVolume

func (o GetTablesListOutput) ReservedVolume() pulumi.IntOutput

Reserved storage capacity of the TcaplusDB table (unit:GB).

func (GetTablesListOutput) ReservedWriteCu

func (o GetTablesListOutput) ReservedWriteCu() pulumi.IntOutput

Reserved write capacity units of the TcaplusDB table.

func (GetTablesListOutput) Status

Status of the TcaplusDB table.

func (GetTablesListOutput) TableId

Table ID to be query.

func (GetTablesListOutput) TableIdlType

func (o GetTablesListOutput) TableIdlType() pulumi.StringOutput

IDL type of the TcaplusDB table.

func (GetTablesListOutput) TableName

func (o GetTablesListOutput) TableName() pulumi.StringOutput

Table name to be query.

func (GetTablesListOutput) TableSize

func (o GetTablesListOutput) TableSize() pulumi.IntOutput

Size of the TcaplusDB table.

func (GetTablesListOutput) TableType

func (o GetTablesListOutput) TableType() pulumi.StringOutput

Type of the TcaplusDB table.

func (GetTablesListOutput) TablegroupId

func (o GetTablesListOutput) TablegroupId() pulumi.StringOutput

ID of the table group to be query.

func (GetTablesListOutput) ToGetTablesListOutput

func (o GetTablesListOutput) ToGetTablesListOutput() GetTablesListOutput

func (GetTablesListOutput) ToGetTablesListOutputWithContext

func (o GetTablesListOutput) ToGetTablesListOutputWithContext(ctx context.Context) GetTablesListOutput

type GetTablesOutputArgs

type GetTablesOutputArgs struct {
	// ID of the TcaplusDB cluster to be query.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// File for saving results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Table ID to be query.
	TableId pulumi.StringPtrInput `pulumi:"tableId"`
	// Table name to be query.
	TableName pulumi.StringPtrInput `pulumi:"tableName"`
	// ID of the table group to be query.
	TablegroupId pulumi.StringPtrInput `pulumi:"tablegroupId"`
}

A collection of arguments for invoking getTables.

func (GetTablesOutputArgs) ElementType

func (GetTablesOutputArgs) ElementType() reflect.Type

type GetTablesResult

type GetTablesResult struct {
	ClusterId string `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of TcaplusDB tables. Each element contains the following attributes.
	Lists            []GetTablesList `pulumi:"lists"`
	ResultOutputFile *string         `pulumi:"resultOutputFile"`
	// ID of the TcaplusDB table.
	TableId *string `pulumi:"tableId"`
	// Name of the TcaplusDB table.
	TableName *string `pulumi:"tableName"`
	// Table group id of the TcaplusDB table.
	TablegroupId *string `pulumi:"tablegroupId"`
}

A collection of values returned by getTables.

func GetTables

func GetTables(ctx *pulumi.Context, args *GetTablesArgs, opts ...pulumi.InvokeOption) (*GetTablesResult, error)

Use this data source to query TcaplusDB tables.

type GetTablesResultOutput

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func (GetTablesResultOutput) ClusterId

func (GetTablesResultOutput) ElementType

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Lists

A list of TcaplusDB tables. Each element contains the following attributes.

func (GetTablesResultOutput) ResultOutputFile

func (o GetTablesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetTablesResultOutput) TableId

ID of the TcaplusDB table.

func (GetTablesResultOutput) TableName

Name of the TcaplusDB table.

func (GetTablesResultOutput) TablegroupId

func (o GetTablesResultOutput) TablegroupId() pulumi.StringPtrOutput

Table group id of the TcaplusDB table.

func (GetTablesResultOutput) ToGetTablesResultOutput

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext

func (o GetTablesResultOutput) ToGetTablesResultOutputWithContext(ctx context.Context) GetTablesResultOutput

type Idl

type Idl struct {
	pulumi.CustomResourceState

	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// IDL file content of the TcaplusDB table.
	FileContent pulumi.StringOutput `pulumi:"fileContent"`
	// File ext type of the IDL file. If `fileType` is `PROTO`, `fileExtType` must be 'proto'; If `fileType` is `TDR`, `fileExtType` must be 'xml'.
	FileExtType pulumi.StringOutput `pulumi:"fileExtType"`
	// Name of the IDL file.
	FileName pulumi.StringOutput `pulumi:"fileName"`
	// Type of the IDL file. Valid values are PROTO and TDR.
	FileType pulumi.StringOutput `pulumi:"fileType"`
	// Table info of the IDL.
	TableInfos IdlTableInfoArrayOutput `pulumi:"tableInfos"`
	// ID of the table group to which the IDL file belongs.
	TablegroupId pulumi.StringOutput `pulumi:"tablegroupId"`
}

Use this resource to create TcaplusDB IDL file.

## Example Usage ### Create a tcaplus database idl file

The file will be with a specified cluster and tablegroup.

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

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 := Vpc.GetSubnets(ctx, &vpc.GetSubnetsArgs{
			IsDefault:        pulumi.BoolRef(true),
			AvailabilityZone: pulumi.StringRef(availabilityZone),
		}, nil)
		if err != nil {
			return err
		}
		vpcId := vpc.InstanceLists[0].VpcId
		subnetId := vpc.InstanceLists[0].SubnetId
		exampleCluster, err := Tcaplus.NewCluster(ctx, "exampleCluster", &Tcaplus.ClusterArgs{
			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.Int(3600),
		})
		if err != nil {
			return err
		}
		exampleTablegroup, err := Tcaplus.NewTablegroup(ctx, "exampleTablegroup", &Tcaplus.TablegroupArgs{
			ClusterId:      exampleCluster.ID(),
			TablegroupName: pulumi.String("tf_example_group_name"),
		})
		if err != nil {
			return err
		}
		_, err = Tcaplus.NewIdl(ctx, "main", &Tcaplus.IdlArgs{
			ClusterId:    exampleCluster.ID(),
			TablegroupId: exampleTablegroup.ID(),
			FileName:     pulumi.String("tf_example_tcaplus_idl"),
			FileType:     pulumi.String("PROTO"),
			FileExtType:  pulumi.String("proto"),
			FileContent:  pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "    syntax = \"proto2\";\n", "    package myTcaplusTable;\n", "    import \"tcaplusservice.optionv1.proto\";\n", "    message tb_online {\n", "        option(tcaplusservice.tcaplus_primary_key) = \"uin,name,region\";\n", "        required int64 uin = 1;\n", "        required string name = 2;\n", "        required int32 region = 3;\n", "        required int32 gamesvrid = 4;\n", "        optional int32 logintime = 5 [default = 1];\n", "        repeated int64 lockid = 6 [packed = true];\n", "        optional bool is_available = 7 [default = false];\n", "        optional pay_info pay = 8;\n", "    }\n", "\n", "    message pay_info {\n", "        required int64 pay_id = 1;\n", "        optional uint64 total_money = 2;\n", "        optional uint64 pay_times = 3;\n", "        optional pay_auth_info auth = 4;\n", "        message pay_auth_info {\n", "            required string pay_keys = 1;\n", "            optional int64 update_time = 2;\n", "        }\n", "    }\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetIdl

func GetIdl(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IdlState, opts ...pulumi.ResourceOption) (*Idl, error)

GetIdl gets an existing Idl resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIdl

func NewIdl(ctx *pulumi.Context,
	name string, args *IdlArgs, opts ...pulumi.ResourceOption) (*Idl, error)

NewIdl registers a new resource with the given unique name, arguments, and options.

func (*Idl) ElementType

func (*Idl) ElementType() reflect.Type

func (*Idl) ToIdlOutput

func (i *Idl) ToIdlOutput() IdlOutput

func (*Idl) ToIdlOutputWithContext

func (i *Idl) ToIdlOutputWithContext(ctx context.Context) IdlOutput

type IdlArgs

type IdlArgs struct {
	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringInput
	// IDL file content of the TcaplusDB table.
	FileContent pulumi.StringInput
	// File ext type of the IDL file. If `fileType` is `PROTO`, `fileExtType` must be 'proto'; If `fileType` is `TDR`, `fileExtType` must be 'xml'.
	FileExtType pulumi.StringInput
	// Name of the IDL file.
	FileName pulumi.StringInput
	// Type of the IDL file. Valid values are PROTO and TDR.
	FileType pulumi.StringInput
	// ID of the table group to which the IDL file belongs.
	TablegroupId pulumi.StringInput
}

The set of arguments for constructing a Idl resource.

func (IdlArgs) ElementType

func (IdlArgs) ElementType() reflect.Type

type IdlArray

type IdlArray []IdlInput

func (IdlArray) ElementType

func (IdlArray) ElementType() reflect.Type

func (IdlArray) ToIdlArrayOutput

func (i IdlArray) ToIdlArrayOutput() IdlArrayOutput

func (IdlArray) ToIdlArrayOutputWithContext

func (i IdlArray) ToIdlArrayOutputWithContext(ctx context.Context) IdlArrayOutput

type IdlArrayInput

type IdlArrayInput interface {
	pulumi.Input

	ToIdlArrayOutput() IdlArrayOutput
	ToIdlArrayOutputWithContext(context.Context) IdlArrayOutput
}

IdlArrayInput is an input type that accepts IdlArray and IdlArrayOutput values. You can construct a concrete instance of `IdlArrayInput` via:

IdlArray{ IdlArgs{...} }

type IdlArrayOutput

type IdlArrayOutput struct{ *pulumi.OutputState }

func (IdlArrayOutput) ElementType

func (IdlArrayOutput) ElementType() reflect.Type

func (IdlArrayOutput) Index

func (IdlArrayOutput) ToIdlArrayOutput

func (o IdlArrayOutput) ToIdlArrayOutput() IdlArrayOutput

func (IdlArrayOutput) ToIdlArrayOutputWithContext

func (o IdlArrayOutput) ToIdlArrayOutputWithContext(ctx context.Context) IdlArrayOutput

type IdlInput

type IdlInput interface {
	pulumi.Input

	ToIdlOutput() IdlOutput
	ToIdlOutputWithContext(ctx context.Context) IdlOutput
}

type IdlMap

type IdlMap map[string]IdlInput

func (IdlMap) ElementType

func (IdlMap) ElementType() reflect.Type

func (IdlMap) ToIdlMapOutput

func (i IdlMap) ToIdlMapOutput() IdlMapOutput

func (IdlMap) ToIdlMapOutputWithContext

func (i IdlMap) ToIdlMapOutputWithContext(ctx context.Context) IdlMapOutput

type IdlMapInput

type IdlMapInput interface {
	pulumi.Input

	ToIdlMapOutput() IdlMapOutput
	ToIdlMapOutputWithContext(context.Context) IdlMapOutput
}

IdlMapInput is an input type that accepts IdlMap and IdlMapOutput values. You can construct a concrete instance of `IdlMapInput` via:

IdlMap{ "key": IdlArgs{...} }

type IdlMapOutput

type IdlMapOutput struct{ *pulumi.OutputState }

func (IdlMapOutput) ElementType

func (IdlMapOutput) ElementType() reflect.Type

func (IdlMapOutput) MapIndex

func (o IdlMapOutput) MapIndex(k pulumi.StringInput) IdlOutput

func (IdlMapOutput) ToIdlMapOutput

func (o IdlMapOutput) ToIdlMapOutput() IdlMapOutput

func (IdlMapOutput) ToIdlMapOutputWithContext

func (o IdlMapOutput) ToIdlMapOutputWithContext(ctx context.Context) IdlMapOutput

type IdlOutput

type IdlOutput struct{ *pulumi.OutputState }

func (IdlOutput) ClusterId

func (o IdlOutput) ClusterId() pulumi.StringOutput

ID of the TcaplusDB cluster to which the table group belongs.

func (IdlOutput) ElementType

func (IdlOutput) ElementType() reflect.Type

func (IdlOutput) FileContent

func (o IdlOutput) FileContent() pulumi.StringOutput

IDL file content of the TcaplusDB table.

func (IdlOutput) FileExtType

func (o IdlOutput) FileExtType() pulumi.StringOutput

File ext type of the IDL file. If `fileType` is `PROTO`, `fileExtType` must be 'proto'; If `fileType` is `TDR`, `fileExtType` must be 'xml'.

func (IdlOutput) FileName

func (o IdlOutput) FileName() pulumi.StringOutput

Name of the IDL file.

func (IdlOutput) FileType

func (o IdlOutput) FileType() pulumi.StringOutput

Type of the IDL file. Valid values are PROTO and TDR.

func (IdlOutput) TableInfos

func (o IdlOutput) TableInfos() IdlTableInfoArrayOutput

Table info of the IDL.

func (IdlOutput) TablegroupId

func (o IdlOutput) TablegroupId() pulumi.StringOutput

ID of the table group to which the IDL file belongs.

func (IdlOutput) ToIdlOutput

func (o IdlOutput) ToIdlOutput() IdlOutput

func (IdlOutput) ToIdlOutputWithContext

func (o IdlOutput) ToIdlOutputWithContext(ctx context.Context) IdlOutput

type IdlState

type IdlState struct {
	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringPtrInput
	// IDL file content of the TcaplusDB table.
	FileContent pulumi.StringPtrInput
	// File ext type of the IDL file. If `fileType` is `PROTO`, `fileExtType` must be 'proto'; If `fileType` is `TDR`, `fileExtType` must be 'xml'.
	FileExtType pulumi.StringPtrInput
	// Name of the IDL file.
	FileName pulumi.StringPtrInput
	// Type of the IDL file. Valid values are PROTO and TDR.
	FileType pulumi.StringPtrInput
	// Table info of the IDL.
	TableInfos IdlTableInfoArrayInput
	// ID of the table group to which the IDL file belongs.
	TablegroupId pulumi.StringPtrInput
}

func (IdlState) ElementType

func (IdlState) ElementType() reflect.Type

type IdlTableInfo

type IdlTableInfo struct {
	// Error messages for creating IDL file.
	Error *string `pulumi:"error"`
	// Index key set of the TcaplusDB table.
	IndexKeySet *string `pulumi:"indexKeySet"`
	// Primary key fields of the TcaplusDB table.
	KeyFields *string `pulumi:"keyFields"`
	// Total size of primary key field of the TcaplusDB table.
	SumKeyFieldSize *int `pulumi:"sumKeyFieldSize"`
	// Total size of non-primary key fields of the TcaplusDB table.
	SumValueFieldSize *int `pulumi:"sumValueFieldSize"`
	// Name of the TcaplusDB table.
	TableName *string `pulumi:"tableName"`
	// Non-primary key fields of the TcaplusDB table.
	ValueFields *string `pulumi:"valueFields"`
}

type IdlTableInfoArgs

type IdlTableInfoArgs struct {
	// Error messages for creating IDL file.
	Error pulumi.StringPtrInput `pulumi:"error"`
	// Index key set of the TcaplusDB table.
	IndexKeySet pulumi.StringPtrInput `pulumi:"indexKeySet"`
	// Primary key fields of the TcaplusDB table.
	KeyFields pulumi.StringPtrInput `pulumi:"keyFields"`
	// Total size of primary key field of the TcaplusDB table.
	SumKeyFieldSize pulumi.IntPtrInput `pulumi:"sumKeyFieldSize"`
	// Total size of non-primary key fields of the TcaplusDB table.
	SumValueFieldSize pulumi.IntPtrInput `pulumi:"sumValueFieldSize"`
	// Name of the TcaplusDB table.
	TableName pulumi.StringPtrInput `pulumi:"tableName"`
	// Non-primary key fields of the TcaplusDB table.
	ValueFields pulumi.StringPtrInput `pulumi:"valueFields"`
}

func (IdlTableInfoArgs) ElementType

func (IdlTableInfoArgs) ElementType() reflect.Type

func (IdlTableInfoArgs) ToIdlTableInfoOutput

func (i IdlTableInfoArgs) ToIdlTableInfoOutput() IdlTableInfoOutput

func (IdlTableInfoArgs) ToIdlTableInfoOutputWithContext

func (i IdlTableInfoArgs) ToIdlTableInfoOutputWithContext(ctx context.Context) IdlTableInfoOutput

type IdlTableInfoArray

type IdlTableInfoArray []IdlTableInfoInput

func (IdlTableInfoArray) ElementType

func (IdlTableInfoArray) ElementType() reflect.Type

func (IdlTableInfoArray) ToIdlTableInfoArrayOutput

func (i IdlTableInfoArray) ToIdlTableInfoArrayOutput() IdlTableInfoArrayOutput

func (IdlTableInfoArray) ToIdlTableInfoArrayOutputWithContext

func (i IdlTableInfoArray) ToIdlTableInfoArrayOutputWithContext(ctx context.Context) IdlTableInfoArrayOutput

type IdlTableInfoArrayInput

type IdlTableInfoArrayInput interface {
	pulumi.Input

	ToIdlTableInfoArrayOutput() IdlTableInfoArrayOutput
	ToIdlTableInfoArrayOutputWithContext(context.Context) IdlTableInfoArrayOutput
}

IdlTableInfoArrayInput is an input type that accepts IdlTableInfoArray and IdlTableInfoArrayOutput values. You can construct a concrete instance of `IdlTableInfoArrayInput` via:

IdlTableInfoArray{ IdlTableInfoArgs{...} }

type IdlTableInfoArrayOutput

type IdlTableInfoArrayOutput struct{ *pulumi.OutputState }

func (IdlTableInfoArrayOutput) ElementType

func (IdlTableInfoArrayOutput) ElementType() reflect.Type

func (IdlTableInfoArrayOutput) Index

func (IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutput

func (o IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutput() IdlTableInfoArrayOutput

func (IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutputWithContext

func (o IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutputWithContext(ctx context.Context) IdlTableInfoArrayOutput

type IdlTableInfoInput

type IdlTableInfoInput interface {
	pulumi.Input

	ToIdlTableInfoOutput() IdlTableInfoOutput
	ToIdlTableInfoOutputWithContext(context.Context) IdlTableInfoOutput
}

IdlTableInfoInput is an input type that accepts IdlTableInfoArgs and IdlTableInfoOutput values. You can construct a concrete instance of `IdlTableInfoInput` via:

IdlTableInfoArgs{...}

type IdlTableInfoOutput

type IdlTableInfoOutput struct{ *pulumi.OutputState }

func (IdlTableInfoOutput) ElementType

func (IdlTableInfoOutput) ElementType() reflect.Type

func (IdlTableInfoOutput) Error

Error messages for creating IDL file.

func (IdlTableInfoOutput) IndexKeySet

func (o IdlTableInfoOutput) IndexKeySet() pulumi.StringPtrOutput

Index key set of the TcaplusDB table.

func (IdlTableInfoOutput) KeyFields

Primary key fields of the TcaplusDB table.

func (IdlTableInfoOutput) SumKeyFieldSize

func (o IdlTableInfoOutput) SumKeyFieldSize() pulumi.IntPtrOutput

Total size of primary key field of the TcaplusDB table.

func (IdlTableInfoOutput) SumValueFieldSize

func (o IdlTableInfoOutput) SumValueFieldSize() pulumi.IntPtrOutput

Total size of non-primary key fields of the TcaplusDB table.

func (IdlTableInfoOutput) TableName

Name of the TcaplusDB table.

func (IdlTableInfoOutput) ToIdlTableInfoOutput

func (o IdlTableInfoOutput) ToIdlTableInfoOutput() IdlTableInfoOutput

func (IdlTableInfoOutput) ToIdlTableInfoOutputWithContext

func (o IdlTableInfoOutput) ToIdlTableInfoOutputWithContext(ctx context.Context) IdlTableInfoOutput

func (IdlTableInfoOutput) ValueFields

func (o IdlTableInfoOutput) ValueFields() pulumi.StringPtrOutput

Non-primary key fields of the TcaplusDB table.

type Table

type Table struct {
	pulumi.CustomResourceState

	// ID of the TcaplusDB cluster to which the table belongs.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// Create time of the TcaplusDB table.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Description of the TcaplusDB table.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Error messages for creating TcaplusDB table.
	Error pulumi.StringOutput `pulumi:"error"`
	// ID of the IDL File.
	IdlId pulumi.StringOutput `pulumi:"idlId"`
	// Reserved read capacity units of the TcaplusDB table.
	ReservedReadCu pulumi.IntOutput `pulumi:"reservedReadCu"`
	// Reserved storage capacity of the TcaplusDB table (unit: GB).
	ReservedVolume pulumi.IntOutput `pulumi:"reservedVolume"`
	// Reserved write capacity units of the TcaplusDB table.
	ReservedWriteCu pulumi.IntOutput `pulumi:"reservedWriteCu"`
	// Status of the TcaplusDB table.
	Status pulumi.StringOutput `pulumi:"status"`
	// IDL type of the TcaplusDB table. Valid values: `PROTO` and `TDR`.
	TableIdlType pulumi.StringOutput `pulumi:"tableIdlType"`
	// Name of the TcaplusDB table.
	TableName pulumi.StringOutput `pulumi:"tableName"`
	// Size of the TcaplusDB table.
	TableSize pulumi.IntOutput `pulumi:"tableSize"`
	// Type of the TcaplusDB table. Valid values are `GENERIC` and `LIST`.
	TableType pulumi.StringOutput `pulumi:"tableType"`
	// ID of the table group to which the table belongs.
	TablegroupId pulumi.StringOutput `pulumi:"tablegroupId"`
}

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.

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

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 := Vpc.GetSubnets(ctx, &vpc.GetSubnetsArgs{
			IsDefault:        pulumi.BoolRef(true),
			AvailabilityZone: pulumi.StringRef(availabilityZone),
		}, nil)
		if err != nil {
			return err
		}
		vpcId := vpc.InstanceLists[0].VpcId
		subnetId := vpc.InstanceLists[0].SubnetId
		exampleCluster, err := Tcaplus.NewCluster(ctx, "exampleCluster", &Tcaplus.ClusterArgs{
			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.Int(3600),
		})
		if err != nil {
			return err
		}
		exampleTablegroup, err := Tcaplus.NewTablegroup(ctx, "exampleTablegroup", &Tcaplus.TablegroupArgs{
			ClusterId:      exampleCluster.ID(),
			TablegroupName: pulumi.String("tf_example_group_name"),
		})
		if err != nil {
			return err
		}
		exampleIdl, err := Tcaplus.NewIdl(ctx, "exampleIdl", &Tcaplus.IdlArgs{
			ClusterId:    exampleCluster.ID(),
			TablegroupId: exampleTablegroup.ID(),
			FileName:     pulumi.String("tf_example_tcaplus_idl"),
			FileType:     pulumi.String("PROTO"),
			FileExtType:  pulumi.String("proto"),
			FileContent:  pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "    syntax = \"proto2\";\n", "    package myTcaplusTable;\n", "    import \"tcaplusservice.optionv1.proto\";\n", "    message example_table { # refer the table name\n", "        option(tcaplusservice.tcaplus_primary_key) = \"uin,name,region\";\n", "        required int64 uin = 1;\n", "        required string name = 2;\n", "        required int32 region = 3;\n", "        required int32 gamesvrid = 4;\n", "        optional int32 logintime = 5 [default = 1];\n", "        repeated int64 lockid = 6 [packed = true];\n", "        optional bool is_available = 7 [default = false];\n", "        optional pay_info pay = 8;\n", "    }\n", "\n", "    message pay_info {\n", "        required int64 pay_id = 1;\n", "        optional uint64 total_money = 2;\n", "        optional uint64 pay_times = 3;\n", "        optional pay_auth_info auth = 4;\n", "        message pay_auth_info {\n", "            required string pay_keys = 1;\n", "            optional int64 update_time = 2;\n", "        }\n", "    }\n")),
		})
		if err != nil {
			return err
		}
		_, err = Tcaplus.NewTable(ctx, "exampleTable", &Tcaplus.TableArgs{
			ClusterId:       exampleCluster.ID(),
			TablegroupId:    exampleTablegroup.ID(),
			TableName:       pulumi.String("example_table"),
			TableType:       pulumi.String("GENERIC"),
			Description:     pulumi.String("test"),
			IdlId:           exampleIdl.ID(),
			TableIdlType:    pulumi.String("PROTO"),
			ReservedReadCu:  pulumi.Int(1000),
			ReservedWriteCu: pulumi.Int(20),
			ReservedVolume:  pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetTable

func GetTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)

GetTable gets an existing Table resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTable

func NewTable(ctx *pulumi.Context,
	name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)

NewTable registers a new resource with the given unique name, arguments, and options.

func (*Table) ElementType

func (*Table) ElementType() reflect.Type

func (*Table) ToTableOutput

func (i *Table) ToTableOutput() TableOutput

func (*Table) ToTableOutputWithContext

func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput

type TableArgs

type TableArgs struct {
	// ID of the TcaplusDB cluster to which the table belongs.
	ClusterId pulumi.StringInput
	// Description of the TcaplusDB table.
	Description pulumi.StringPtrInput
	// ID of the IDL File.
	IdlId pulumi.StringInput
	// Reserved read capacity units of the TcaplusDB table.
	ReservedReadCu pulumi.IntInput
	// Reserved storage capacity of the TcaplusDB table (unit: GB).
	ReservedVolume pulumi.IntInput
	// Reserved write capacity units of the TcaplusDB table.
	ReservedWriteCu pulumi.IntInput
	// IDL type of the TcaplusDB table. Valid values: `PROTO` and `TDR`.
	TableIdlType pulumi.StringInput
	// Name of the TcaplusDB table.
	TableName pulumi.StringInput
	// Type of the TcaplusDB table. Valid values are `GENERIC` and `LIST`.
	TableType pulumi.StringInput
	// ID of the table group to which the table belongs.
	TablegroupId pulumi.StringInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray

type TableArray []TableInput

func (TableArray) ElementType

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext

func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableArrayInput

type TableArrayInput interface {
	pulumi.Input

	ToTableArrayOutput() TableArrayOutput
	ToTableArrayOutputWithContext(context.Context) TableArrayOutput
}

TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:

TableArray{ TableArgs{...} }

type TableArrayOutput

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index

func (TableArrayOutput) ToTableArrayOutput

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext

func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableInput

type TableInput interface {
	pulumi.Input

	ToTableOutput() TableOutput
	ToTableOutputWithContext(ctx context.Context) TableOutput
}

type TableMap

type TableMap map[string]TableInput

func (TableMap) ElementType

func (TableMap) ElementType() reflect.Type

func (TableMap) ToTableMapOutput

func (i TableMap) ToTableMapOutput() TableMapOutput

func (TableMap) ToTableMapOutputWithContext

func (i TableMap) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableMapInput

type TableMapInput interface {
	pulumi.Input

	ToTableMapOutput() TableMapOutput
	ToTableMapOutputWithContext(context.Context) TableMapOutput
}

TableMapInput is an input type that accepts TableMap and TableMapOutput values. You can construct a concrete instance of `TableMapInput` via:

TableMap{ "key": TableArgs{...} }

type TableMapOutput

type TableMapOutput struct{ *pulumi.OutputState }

func (TableMapOutput) ElementType

func (TableMapOutput) ElementType() reflect.Type

func (TableMapOutput) MapIndex

func (TableMapOutput) ToTableMapOutput

func (o TableMapOutput) ToTableMapOutput() TableMapOutput

func (TableMapOutput) ToTableMapOutputWithContext

func (o TableMapOutput) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableOutput

type TableOutput struct{ *pulumi.OutputState }

func (TableOutput) ClusterId

func (o TableOutput) ClusterId() pulumi.StringOutput

ID of the TcaplusDB cluster to which the table belongs.

func (TableOutput) CreateTime

func (o TableOutput) CreateTime() pulumi.StringOutput

Create time of the TcaplusDB table.

func (TableOutput) Description

func (o TableOutput) Description() pulumi.StringPtrOutput

Description of the TcaplusDB table.

func (TableOutput) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) Error

func (o TableOutput) Error() pulumi.StringOutput

Error messages for creating TcaplusDB table.

func (TableOutput) IdlId

func (o TableOutput) IdlId() pulumi.StringOutput

ID of the IDL File.

func (TableOutput) ReservedReadCu

func (o TableOutput) ReservedReadCu() pulumi.IntOutput

Reserved read capacity units of the TcaplusDB table.

func (TableOutput) ReservedVolume

func (o TableOutput) ReservedVolume() pulumi.IntOutput

Reserved storage capacity of the TcaplusDB table (unit: GB).

func (TableOutput) ReservedWriteCu

func (o TableOutput) ReservedWriteCu() pulumi.IntOutput

Reserved write capacity units of the TcaplusDB table.

func (TableOutput) Status

func (o TableOutput) Status() pulumi.StringOutput

Status of the TcaplusDB table.

func (TableOutput) TableIdlType

func (o TableOutput) TableIdlType() pulumi.StringOutput

IDL type of the TcaplusDB table. Valid values: `PROTO` and `TDR`.

func (TableOutput) TableName

func (o TableOutput) TableName() pulumi.StringOutput

Name of the TcaplusDB table.

func (TableOutput) TableSize

func (o TableOutput) TableSize() pulumi.IntOutput

Size of the TcaplusDB table.

func (TableOutput) TableType

func (o TableOutput) TableType() pulumi.StringOutput

Type of the TcaplusDB table. Valid values are `GENERIC` and `LIST`.

func (TableOutput) TablegroupId

func (o TableOutput) TablegroupId() pulumi.StringOutput

ID of the table group to which the table belongs.

func (TableOutput) ToTableOutput

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext

func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput

type TableState

type TableState struct {
	// ID of the TcaplusDB cluster to which the table belongs.
	ClusterId pulumi.StringPtrInput
	// Create time of the TcaplusDB table.
	CreateTime pulumi.StringPtrInput
	// Description of the TcaplusDB table.
	Description pulumi.StringPtrInput
	// Error messages for creating TcaplusDB table.
	Error pulumi.StringPtrInput
	// ID of the IDL File.
	IdlId pulumi.StringPtrInput
	// Reserved read capacity units of the TcaplusDB table.
	ReservedReadCu pulumi.IntPtrInput
	// Reserved storage capacity of the TcaplusDB table (unit: GB).
	ReservedVolume pulumi.IntPtrInput
	// Reserved write capacity units of the TcaplusDB table.
	ReservedWriteCu pulumi.IntPtrInput
	// Status of the TcaplusDB table.
	Status pulumi.StringPtrInput
	// IDL type of the TcaplusDB table. Valid values: `PROTO` and `TDR`.
	TableIdlType pulumi.StringPtrInput
	// Name of the TcaplusDB table.
	TableName pulumi.StringPtrInput
	// Size of the TcaplusDB table.
	TableSize pulumi.IntPtrInput
	// Type of the TcaplusDB table. Valid values are `GENERIC` and `LIST`.
	TableType pulumi.StringPtrInput
	// ID of the table group to which the table belongs.
	TablegroupId pulumi.StringPtrInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

type Tablegroup

type Tablegroup struct {
	pulumi.CustomResourceState

	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// Create time of the TcaplusDB table group.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Number of tables.
	TableCount pulumi.IntOutput `pulumi:"tableCount"`
	// Name of the TcaplusDB table group. Name length should be between 1 and 30.
	TablegroupName pulumi.StringOutput `pulumi:"tablegroupName"`
	// Total storage size (MB).
	TotalSize pulumi.IntOutput `pulumi:"totalSize"`
}

Use this resource to create TcaplusDB table group.

## Example Usage ### Create a tcaplusdb table group

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Tcaplus"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

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 := Vpc.GetSubnets(ctx, &vpc.GetSubnetsArgs{
			IsDefault:        pulumi.BoolRef(true),
			AvailabilityZone: pulumi.StringRef(availabilityZone),
		}, nil)
		if err != nil {
			return err
		}
		vpcId := vpc.InstanceLists[0].VpcId
		subnetId := vpc.InstanceLists[0].SubnetId
		exampleCluster, err := Tcaplus.NewCluster(ctx, "exampleCluster", &Tcaplus.ClusterArgs{
			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.Int(3600),
		})
		if err != nil {
			return err
		}
		_, err = Tcaplus.NewTablegroup(ctx, "exampleTablegroup", &Tcaplus.TablegroupArgs{
			ClusterId:      exampleCluster.ID(),
			TablegroupName: pulumi.String("tf_example_group_name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetTablegroup

func GetTablegroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TablegroupState, opts ...pulumi.ResourceOption) (*Tablegroup, error)

GetTablegroup gets an existing Tablegroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTablegroup

func NewTablegroup(ctx *pulumi.Context,
	name string, args *TablegroupArgs, opts ...pulumi.ResourceOption) (*Tablegroup, error)

NewTablegroup registers a new resource with the given unique name, arguments, and options.

func (*Tablegroup) ElementType

func (*Tablegroup) ElementType() reflect.Type

func (*Tablegroup) ToTablegroupOutput

func (i *Tablegroup) ToTablegroupOutput() TablegroupOutput

func (*Tablegroup) ToTablegroupOutputWithContext

func (i *Tablegroup) ToTablegroupOutputWithContext(ctx context.Context) TablegroupOutput

type TablegroupArgs

type TablegroupArgs struct {
	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringInput
	// Name of the TcaplusDB table group. Name length should be between 1 and 30.
	TablegroupName pulumi.StringInput
}

The set of arguments for constructing a Tablegroup resource.

func (TablegroupArgs) ElementType

func (TablegroupArgs) ElementType() reflect.Type

type TablegroupArray

type TablegroupArray []TablegroupInput

func (TablegroupArray) ElementType

func (TablegroupArray) ElementType() reflect.Type

func (TablegroupArray) ToTablegroupArrayOutput

func (i TablegroupArray) ToTablegroupArrayOutput() TablegroupArrayOutput

func (TablegroupArray) ToTablegroupArrayOutputWithContext

func (i TablegroupArray) ToTablegroupArrayOutputWithContext(ctx context.Context) TablegroupArrayOutput

type TablegroupArrayInput

type TablegroupArrayInput interface {
	pulumi.Input

	ToTablegroupArrayOutput() TablegroupArrayOutput
	ToTablegroupArrayOutputWithContext(context.Context) TablegroupArrayOutput
}

TablegroupArrayInput is an input type that accepts TablegroupArray and TablegroupArrayOutput values. You can construct a concrete instance of `TablegroupArrayInput` via:

TablegroupArray{ TablegroupArgs{...} }

type TablegroupArrayOutput

type TablegroupArrayOutput struct{ *pulumi.OutputState }

func (TablegroupArrayOutput) ElementType

func (TablegroupArrayOutput) ElementType() reflect.Type

func (TablegroupArrayOutput) Index

func (TablegroupArrayOutput) ToTablegroupArrayOutput

func (o TablegroupArrayOutput) ToTablegroupArrayOutput() TablegroupArrayOutput

func (TablegroupArrayOutput) ToTablegroupArrayOutputWithContext

func (o TablegroupArrayOutput) ToTablegroupArrayOutputWithContext(ctx context.Context) TablegroupArrayOutput

type TablegroupInput

type TablegroupInput interface {
	pulumi.Input

	ToTablegroupOutput() TablegroupOutput
	ToTablegroupOutputWithContext(ctx context.Context) TablegroupOutput
}

type TablegroupMap

type TablegroupMap map[string]TablegroupInput

func (TablegroupMap) ElementType

func (TablegroupMap) ElementType() reflect.Type

func (TablegroupMap) ToTablegroupMapOutput

func (i TablegroupMap) ToTablegroupMapOutput() TablegroupMapOutput

func (TablegroupMap) ToTablegroupMapOutputWithContext

func (i TablegroupMap) ToTablegroupMapOutputWithContext(ctx context.Context) TablegroupMapOutput

type TablegroupMapInput

type TablegroupMapInput interface {
	pulumi.Input

	ToTablegroupMapOutput() TablegroupMapOutput
	ToTablegroupMapOutputWithContext(context.Context) TablegroupMapOutput
}

TablegroupMapInput is an input type that accepts TablegroupMap and TablegroupMapOutput values. You can construct a concrete instance of `TablegroupMapInput` via:

TablegroupMap{ "key": TablegroupArgs{...} }

type TablegroupMapOutput

type TablegroupMapOutput struct{ *pulumi.OutputState }

func (TablegroupMapOutput) ElementType

func (TablegroupMapOutput) ElementType() reflect.Type

func (TablegroupMapOutput) MapIndex

func (TablegroupMapOutput) ToTablegroupMapOutput

func (o TablegroupMapOutput) ToTablegroupMapOutput() TablegroupMapOutput

func (TablegroupMapOutput) ToTablegroupMapOutputWithContext

func (o TablegroupMapOutput) ToTablegroupMapOutputWithContext(ctx context.Context) TablegroupMapOutput

type TablegroupOutput

type TablegroupOutput struct{ *pulumi.OutputState }

func (TablegroupOutput) ClusterId

func (o TablegroupOutput) ClusterId() pulumi.StringOutput

ID of the TcaplusDB cluster to which the table group belongs.

func (TablegroupOutput) CreateTime

func (o TablegroupOutput) CreateTime() pulumi.StringOutput

Create time of the TcaplusDB table group.

func (TablegroupOutput) ElementType

func (TablegroupOutput) ElementType() reflect.Type

func (TablegroupOutput) TableCount

func (o TablegroupOutput) TableCount() pulumi.IntOutput

Number of tables.

func (TablegroupOutput) TablegroupName

func (o TablegroupOutput) TablegroupName() pulumi.StringOutput

Name of the TcaplusDB table group. Name length should be between 1 and 30.

func (TablegroupOutput) ToTablegroupOutput

func (o TablegroupOutput) ToTablegroupOutput() TablegroupOutput

func (TablegroupOutput) ToTablegroupOutputWithContext

func (o TablegroupOutput) ToTablegroupOutputWithContext(ctx context.Context) TablegroupOutput

func (TablegroupOutput) TotalSize

func (o TablegroupOutput) TotalSize() pulumi.IntOutput

Total storage size (MB).

type TablegroupState

type TablegroupState struct {
	// ID of the TcaplusDB cluster to which the table group belongs.
	ClusterId pulumi.StringPtrInput
	// Create time of the TcaplusDB table group.
	CreateTime pulumi.StringPtrInput
	// Number of tables.
	TableCount pulumi.IntPtrInput
	// Name of the TcaplusDB table group. Name length should be between 1 and 30.
	TablegroupName pulumi.StringPtrInput
	// Total storage size (MB).
	TotalSize pulumi.IntPtrInput
}

func (TablegroupState) ElementType

func (TablegroupState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL