Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (o ClusterOutput) ApiAccessId() pulumi.StringOutput
- func (o ClusterOutput) ApiAccessIp() pulumi.StringOutput
- func (o ClusterOutput) ApiAccessPort() pulumi.IntOutput
- func (o ClusterOutput) ClusterName() pulumi.StringOutput
- func (o ClusterOutput) CreateTime() pulumi.StringOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) IdlType() pulumi.StringOutput
- func (o ClusterOutput) NetworkType() pulumi.StringOutput
- func (o ClusterOutput) OldPasswordExpireLast() pulumi.IntPtrOutput
- func (o ClusterOutput) OldPasswordExpireTime() pulumi.StringOutput
- func (o ClusterOutput) Password() pulumi.StringOutput
- func (o ClusterOutput) PasswordStatus() pulumi.StringOutput
- func (o ClusterOutput) SubnetId() pulumi.StringOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) VpcId() pulumi.StringOutput
- type ClusterState
- type GetClustersArgs
- type GetClustersList
- type GetClustersListArgs
- type GetClustersListArray
- type GetClustersListArrayInput
- type GetClustersListArrayOutput
- func (GetClustersListArrayOutput) ElementType() reflect.Type
- func (o GetClustersListArrayOutput) Index(i pulumi.IntInput) GetClustersListOutput
- func (o GetClustersListArrayOutput) ToGetClustersListArrayOutput() GetClustersListArrayOutput
- func (o GetClustersListArrayOutput) ToGetClustersListArrayOutputWithContext(ctx context.Context) GetClustersListArrayOutput
- type GetClustersListInput
- type GetClustersListOutput
- func (o GetClustersListOutput) ApiAccessId() pulumi.StringOutput
- func (o GetClustersListOutput) ApiAccessIp() pulumi.StringOutput
- func (o GetClustersListOutput) ApiAccessPort() pulumi.IntOutput
- func (o GetClustersListOutput) ClusterId() pulumi.StringOutput
- func (o GetClustersListOutput) ClusterName() pulumi.StringOutput
- func (o GetClustersListOutput) CreateTime() pulumi.StringOutput
- func (GetClustersListOutput) ElementType() reflect.Type
- func (o GetClustersListOutput) IdlType() pulumi.StringOutput
- func (o GetClustersListOutput) NetworkType() pulumi.StringOutput
- func (o GetClustersListOutput) OldPasswordExpireTime() pulumi.StringOutput
- func (o GetClustersListOutput) Password() pulumi.StringOutput
- func (o GetClustersListOutput) PasswordStatus() pulumi.StringOutput
- func (o GetClustersListOutput) SubnetId() pulumi.StringOutput
- func (o GetClustersListOutput) ToGetClustersListOutput() GetClustersListOutput
- func (o GetClustersListOutput) ToGetClustersListOutputWithContext(ctx context.Context) GetClustersListOutput
- func (o GetClustersListOutput) VpcId() pulumi.StringOutput
- type GetClustersOutputArgs
- type GetClustersResult
- type GetClustersResultOutput
- func (o GetClustersResultOutput) ClusterId() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) ClusterName() pulumi.StringPtrOutput
- func (GetClustersResultOutput) ElementType() reflect.Type
- func (o GetClustersResultOutput) Id() pulumi.StringOutput
- func (o GetClustersResultOutput) Lists() GetClustersListArrayOutput
- func (o GetClustersResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput
- type GetIdlsArgs
- type GetIdlsList
- type GetIdlsListArgs
- type GetIdlsListArray
- type GetIdlsListArrayInput
- type GetIdlsListArrayOutput
- func (GetIdlsListArrayOutput) ElementType() reflect.Type
- func (o GetIdlsListArrayOutput) Index(i pulumi.IntInput) GetIdlsListOutput
- func (o GetIdlsListArrayOutput) ToGetIdlsListArrayOutput() GetIdlsListArrayOutput
- func (o GetIdlsListArrayOutput) ToGetIdlsListArrayOutputWithContext(ctx context.Context) GetIdlsListArrayOutput
- type GetIdlsListInput
- type GetIdlsListOutput
- type GetIdlsOutputArgs
- type GetIdlsResult
- type GetIdlsResultOutput
- func (o GetIdlsResultOutput) ClusterId() pulumi.StringOutput
- func (GetIdlsResultOutput) ElementType() reflect.Type
- func (o GetIdlsResultOutput) Id() pulumi.StringOutput
- func (o GetIdlsResultOutput) Lists() GetIdlsListArrayOutput
- func (o GetIdlsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetIdlsResultOutput) ToGetIdlsResultOutput() GetIdlsResultOutput
- func (o GetIdlsResultOutput) ToGetIdlsResultOutputWithContext(ctx context.Context) GetIdlsResultOutput
- type GetTablegroupsArgs
- type GetTablegroupsList
- type GetTablegroupsListArgs
- type GetTablegroupsListArray
- type GetTablegroupsListArrayInput
- type GetTablegroupsListArrayOutput
- func (GetTablegroupsListArrayOutput) ElementType() reflect.Type
- func (o GetTablegroupsListArrayOutput) Index(i pulumi.IntInput) GetTablegroupsListOutput
- func (o GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutput() GetTablegroupsListArrayOutput
- func (o GetTablegroupsListArrayOutput) ToGetTablegroupsListArrayOutputWithContext(ctx context.Context) GetTablegroupsListArrayOutput
- type GetTablegroupsListInput
- type GetTablegroupsListOutput
- func (o GetTablegroupsListOutput) CreateTime() pulumi.StringOutput
- func (GetTablegroupsListOutput) ElementType() reflect.Type
- func (o GetTablegroupsListOutput) TableCount() pulumi.IntOutput
- func (o GetTablegroupsListOutput) TablegroupId() pulumi.StringOutput
- func (o GetTablegroupsListOutput) TablegroupName() pulumi.StringOutput
- func (o GetTablegroupsListOutput) ToGetTablegroupsListOutput() GetTablegroupsListOutput
- func (o GetTablegroupsListOutput) ToGetTablegroupsListOutputWithContext(ctx context.Context) GetTablegroupsListOutput
- func (o GetTablegroupsListOutput) TotalSize() pulumi.IntOutput
- type GetTablegroupsOutputArgs
- type GetTablegroupsResult
- type GetTablegroupsResultOutput
- func (o GetTablegroupsResultOutput) ClusterId() pulumi.StringOutput
- func (GetTablegroupsResultOutput) ElementType() reflect.Type
- func (o GetTablegroupsResultOutput) Id() pulumi.StringOutput
- func (o GetTablegroupsResultOutput) Lists() GetTablegroupsListArrayOutput
- func (o GetTablegroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetTablegroupsResultOutput) TablegroupId() pulumi.StringPtrOutput
- func (o GetTablegroupsResultOutput) TablegroupName() pulumi.StringPtrOutput
- func (o GetTablegroupsResultOutput) ToGetTablegroupsResultOutput() GetTablegroupsResultOutput
- func (o GetTablegroupsResultOutput) ToGetTablegroupsResultOutputWithContext(ctx context.Context) GetTablegroupsResultOutput
- type GetTablesArgs
- type GetTablesList
- type GetTablesListArgs
- type GetTablesListArray
- type GetTablesListArrayInput
- type GetTablesListArrayOutput
- func (GetTablesListArrayOutput) ElementType() reflect.Type
- func (o GetTablesListArrayOutput) Index(i pulumi.IntInput) GetTablesListOutput
- func (o GetTablesListArrayOutput) ToGetTablesListArrayOutput() GetTablesListArrayOutput
- func (o GetTablesListArrayOutput) ToGetTablesListArrayOutputWithContext(ctx context.Context) GetTablesListArrayOutput
- type GetTablesListInput
- type GetTablesListOutput
- func (o GetTablesListOutput) CreateTime() pulumi.StringOutput
- func (o GetTablesListOutput) Description() pulumi.StringOutput
- func (GetTablesListOutput) ElementType() reflect.Type
- func (o GetTablesListOutput) Error() pulumi.StringOutput
- func (o GetTablesListOutput) IdlId() pulumi.StringOutput
- func (o GetTablesListOutput) ReservedReadCu() pulumi.IntOutput
- func (o GetTablesListOutput) ReservedVolume() pulumi.IntOutput
- func (o GetTablesListOutput) ReservedWriteCu() pulumi.IntOutput
- func (o GetTablesListOutput) Status() pulumi.StringOutput
- func (o GetTablesListOutput) TableId() pulumi.StringOutput
- func (o GetTablesListOutput) TableIdlType() pulumi.StringOutput
- func (o GetTablesListOutput) TableName() pulumi.StringOutput
- func (o GetTablesListOutput) TableSize() pulumi.IntOutput
- func (o GetTablesListOutput) TableType() pulumi.StringOutput
- func (o GetTablesListOutput) TablegroupId() pulumi.StringOutput
- func (o GetTablesListOutput) ToGetTablesListOutput() GetTablesListOutput
- func (o GetTablesListOutput) ToGetTablesListOutputWithContext(ctx context.Context) GetTablesListOutput
- type GetTablesOutputArgs
- type GetTablesResult
- type GetTablesResultOutput
- func (o GetTablesResultOutput) ClusterId() pulumi.StringOutput
- func (GetTablesResultOutput) ElementType() reflect.Type
- func (o GetTablesResultOutput) Id() pulumi.StringOutput
- func (o GetTablesResultOutput) Lists() GetTablesListArrayOutput
- func (o GetTablesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetTablesResultOutput) TableId() pulumi.StringPtrOutput
- func (o GetTablesResultOutput) TableName() pulumi.StringPtrOutput
- func (o GetTablesResultOutput) TablegroupId() pulumi.StringPtrOutput
- func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput
- func (o GetTablesResultOutput) ToGetTablesResultOutputWithContext(ctx context.Context) GetTablesResultOutput
- type Idl
- type IdlArgs
- type IdlArray
- type IdlArrayInput
- type IdlArrayOutput
- type IdlInput
- type IdlMap
- type IdlMapInput
- type IdlMapOutput
- type IdlOutput
- func (o IdlOutput) ClusterId() pulumi.StringOutput
- func (IdlOutput) ElementType() reflect.Type
- func (o IdlOutput) FileContent() pulumi.StringOutput
- func (o IdlOutput) FileExtType() pulumi.StringOutput
- func (o IdlOutput) FileName() pulumi.StringOutput
- func (o IdlOutput) FileType() pulumi.StringOutput
- func (o IdlOutput) TableInfos() IdlTableInfoArrayOutput
- func (o IdlOutput) TablegroupId() pulumi.StringOutput
- func (o IdlOutput) ToIdlOutput() IdlOutput
- func (o IdlOutput) ToIdlOutputWithContext(ctx context.Context) IdlOutput
- type IdlState
- type IdlTableInfo
- type IdlTableInfoArgs
- type IdlTableInfoArray
- type IdlTableInfoArrayInput
- type IdlTableInfoArrayOutput
- func (IdlTableInfoArrayOutput) ElementType() reflect.Type
- func (o IdlTableInfoArrayOutput) Index(i pulumi.IntInput) IdlTableInfoOutput
- func (o IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutput() IdlTableInfoArrayOutput
- func (o IdlTableInfoArrayOutput) ToIdlTableInfoArrayOutputWithContext(ctx context.Context) IdlTableInfoArrayOutput
- type IdlTableInfoInput
- type IdlTableInfoOutput
- func (IdlTableInfoOutput) ElementType() reflect.Type
- func (o IdlTableInfoOutput) Error() pulumi.StringPtrOutput
- func (o IdlTableInfoOutput) IndexKeySet() pulumi.StringPtrOutput
- func (o IdlTableInfoOutput) KeyFields() pulumi.StringPtrOutput
- func (o IdlTableInfoOutput) SumKeyFieldSize() pulumi.IntPtrOutput
- func (o IdlTableInfoOutput) SumValueFieldSize() pulumi.IntPtrOutput
- func (o IdlTableInfoOutput) TableName() pulumi.StringPtrOutput
- func (o IdlTableInfoOutput) ToIdlTableInfoOutput() IdlTableInfoOutput
- func (o IdlTableInfoOutput) ToIdlTableInfoOutputWithContext(ctx context.Context) IdlTableInfoOutput
- func (o IdlTableInfoOutput) ValueFields() pulumi.StringPtrOutput
- type Table
- type TableArgs
- type TableArray
- type TableArrayInput
- type TableArrayOutput
- type TableInput
- type TableMap
- type TableMapInput
- type TableMapOutput
- type TableOutput
- func (o TableOutput) ClusterId() pulumi.StringOutput
- func (o TableOutput) CreateTime() pulumi.StringOutput
- func (o TableOutput) Description() pulumi.StringPtrOutput
- func (TableOutput) ElementType() reflect.Type
- func (o TableOutput) Error() pulumi.StringOutput
- func (o TableOutput) IdlId() pulumi.StringOutput
- func (o TableOutput) ReservedReadCu() pulumi.IntOutput
- func (o TableOutput) ReservedVolume() pulumi.IntOutput
- func (o TableOutput) ReservedWriteCu() pulumi.IntOutput
- func (o TableOutput) Status() pulumi.StringOutput
- func (o TableOutput) TableIdlType() pulumi.StringOutput
- func (o TableOutput) TableName() pulumi.StringOutput
- func (o TableOutput) TableSize() pulumi.IntOutput
- func (o TableOutput) TableType() pulumi.StringOutput
- func (o TableOutput) TablegroupId() pulumi.StringOutput
- func (o TableOutput) ToTableOutput() TableOutput
- func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput
- type TableState
- type Tablegroup
- type TablegroupArgs
- type TablegroupArray
- type TablegroupArrayInput
- type TablegroupArrayOutput
- func (TablegroupArrayOutput) ElementType() reflect.Type
- func (o TablegroupArrayOutput) Index(i pulumi.IntInput) TablegroupOutput
- func (o TablegroupArrayOutput) ToTablegroupArrayOutput() TablegroupArrayOutput
- func (o TablegroupArrayOutput) ToTablegroupArrayOutputWithContext(ctx context.Context) TablegroupArrayOutput
- type TablegroupInput
- type TablegroupMap
- type TablegroupMapInput
- type TablegroupMapOutput
- func (TablegroupMapOutput) ElementType() reflect.Type
- func (o TablegroupMapOutput) MapIndex(k pulumi.StringInput) TablegroupOutput
- func (o TablegroupMapOutput) ToTablegroupMapOutput() TablegroupMapOutput
- func (o TablegroupMapOutput) ToTablegroupMapOutputWithContext(ctx context.Context) TablegroupMapOutput
- type TablegroupOutput
- func (o TablegroupOutput) ClusterId() pulumi.StringOutput
- func (o TablegroupOutput) CreateTime() pulumi.StringOutput
- func (TablegroupOutput) ElementType() reflect.Type
- func (o TablegroupOutput) TableCount() pulumi.IntOutput
- func (o TablegroupOutput) TablegroupName() pulumi.StringOutput
- func (o TablegroupOutput) ToTablegroupOutput() TablegroupOutput
- func (o TablegroupOutput) ToTablegroupOutputWithContext(ctx context.Context) TablegroupOutput
- func (o TablegroupOutput) TotalSize() pulumi.IntOutput
- type TablegroupState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.5
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
```go package main
import (
"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.NewCluster(ctx, "test", &Tcaplus.ClusterArgs{ ClusterName: pulumi.String("tf_tcaplus_cluster_test"), IdlType: pulumi.String("PROTO"), OldPasswordExpireLast: pulumi.Int(3600), Password: pulumi.String("1qaA2k1wgvfa3ZZZ"), SubnetId: pulumi.String("subnet-akwgvfa3"), VpcId: pulumi.String("vpc-7k6gzox6"), }) 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 test 26655801
```
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) 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 (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
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 (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
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 (o GetClustersListArrayOutput) Index(i pulumi.IntInput) GetClustersListOutput
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 ¶
func (o GetClustersListOutput) ClusterId() pulumi.StringOutput
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 ¶
func (o GetClustersListOutput) IdlType() pulumi.StringOutput
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 ¶
func (o GetClustersListOutput) Password() pulumi.StringOutput
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 ¶
func (o GetClustersListOutput) SubnetId() pulumi.StringOutput
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 ¶
func (o GetClustersListOutput) VpcId() pulumi.StringOutput
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 GetClustersOutput ¶
func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput
func (GetClustersResultOutput) ClusterId ¶
func (o GetClustersResultOutput) ClusterId() pulumi.StringPtrOutput
ID of the TcaplusDB cluster.
func (GetClustersResultOutput) ClusterName ¶
func (o GetClustersResultOutput) ClusterName() pulumi.StringPtrOutput
Name of the TcaplusDB cluster.
func (GetClustersResultOutput) ElementType ¶
func (GetClustersResultOutput) ElementType() reflect.Type
func (GetClustersResultOutput) Id ¶
func (o GetClustersResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetClustersResultOutput) Lists ¶
func (o GetClustersResultOutput) Lists() GetClustersListArrayOutput
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 (o GetIdlsListArrayOutput) Index(i pulumi.IntInput) GetIdlsListOutput
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 ¶
func (o GetIdlsListOutput) IdlId() pulumi.StringOutput
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 GetIdlsOutput ¶
func GetIdlsOutput(ctx *pulumi.Context, args GetIdlsOutputArgs, opts ...pulumi.InvokeOption) GetIdlsResultOutput
func (GetIdlsResultOutput) ClusterId ¶
func (o GetIdlsResultOutput) ClusterId() pulumi.StringOutput
func (GetIdlsResultOutput) ElementType ¶
func (GetIdlsResultOutput) ElementType() reflect.Type
func (GetIdlsResultOutput) Id ¶
func (o GetIdlsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetIdlsResultOutput) Lists ¶
func (o GetIdlsResultOutput) Lists() GetIdlsListArrayOutput
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) ElementType() reflect.Type
func (GetTablegroupsListArrayOutput) Index ¶
func (o GetTablegroupsListArrayOutput) Index(i pulumi.IntInput) GetTablegroupsListOutput
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 ¶
func (o GetTablegroupsListOutput) CreateTime() pulumi.StringOutput
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 ¶
func (o GetTablegroupsListOutput) TotalSize() pulumi.IntOutput
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 GetTablegroupsOutput ¶
func GetTablegroupsOutput(ctx *pulumi.Context, args GetTablegroupsOutputArgs, opts ...pulumi.InvokeOption) GetTablegroupsResultOutput
func (GetTablegroupsResultOutput) ClusterId ¶
func (o GetTablegroupsResultOutput) ClusterId() pulumi.StringOutput
func (GetTablegroupsResultOutput) ElementType ¶
func (GetTablegroupsResultOutput) ElementType() reflect.Type
func (GetTablegroupsResultOutput) Id ¶
func (o GetTablegroupsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetTablegroupsResultOutput) Lists ¶
func (o GetTablegroupsResultOutput) Lists() GetTablegroupsListArrayOutput
A list of table group. Each element contains the following attributes.
func (GetTablegroupsResultOutput) ResultOutputFile ¶
func (o GetTablegroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetTablegroupsResultOutput) TablegroupId ¶
func (o GetTablegroupsResultOutput) TablegroupId() pulumi.StringPtrOutput
Id of the table group.
func (GetTablegroupsResultOutput) TablegroupName ¶
func (o GetTablegroupsResultOutput) TablegroupName() pulumi.StringPtrOutput
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 (o GetTablesListArrayOutput) Index(i pulumi.IntInput) GetTablesListOutput
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 ¶
func (o GetTablesListOutput) Error() pulumi.StringOutput
Error message for creating TcaplusDB table.
func (GetTablesListOutput) IdlId ¶
func (o GetTablesListOutput) IdlId() pulumi.StringOutput
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 ¶
func (o GetTablesListOutput) Status() pulumi.StringOutput
Status of the TcaplusDB table.
func (GetTablesListOutput) TableId ¶
func (o GetTablesListOutput) TableId() pulumi.StringOutput
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 GetTablesOutput ¶
func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput
func (GetTablesResultOutput) ClusterId ¶
func (o GetTablesResultOutput) ClusterId() pulumi.StringOutput
func (GetTablesResultOutput) ElementType ¶
func (GetTablesResultOutput) ElementType() reflect.Type
func (GetTablesResultOutput) Id ¶
func (o GetTablesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetTablesResultOutput) Lists ¶
func (o GetTablesResultOutput) Lists() GetTablesListArrayOutput
A list of TcaplusDB tables. Each element contains the following attributes.
func (GetTablesResultOutput) ResultOutputFile ¶
func (o GetTablesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetTablesResultOutput) TableId ¶
func (o GetTablesResultOutput) TableId() pulumi.StringPtrOutput
ID of the TcaplusDB table.
func (GetTablesResultOutput) TableName ¶
func (o GetTablesResultOutput) TableName() pulumi.StringPtrOutput
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
```go package main
import (
"fmt" "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 { test, err := Tcaplus.NewCluster(ctx, "test", &Tcaplus.ClusterArgs{ IdlType: pulumi.String("PROTO"), ClusterName: pulumi.String("tf_tcaplus_cluster_test"), VpcId: pulumi.String("vpc-7k6gzox6"), SubnetId: pulumi.String("subnet-akwgvfa3"), Password: pulumi.String("1qaA2k1wgvfa3ZZZ"), OldPasswordExpireLast: pulumi.Int(3600), }) if err != nil { return err } tablegroup, err := Tcaplus.NewTablegroup(ctx, "tablegroup", &Tcaplus.TablegroupArgs{ ClusterId: test.ID(), TablegroupName: pulumi.String("tf_test_group_name"), }) if err != nil { return err } _, err = Tcaplus.NewIdl(ctx, "main", &Tcaplus.IdlArgs{ ClusterId: test.ID(), TablegroupId: tablegroup.ID(), FileName: pulumi.String("tf_idl_test"), 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) ToIdlOutput ¶
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 ¶
type IdlArray ¶
type IdlArray []IdlInput
func (IdlArray) ElementType ¶
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) ToIdlArrayOutput ¶
func (o IdlArrayOutput) ToIdlArrayOutput() IdlArrayOutput
func (IdlArrayOutput) ToIdlArrayOutputWithContext ¶
func (o IdlArrayOutput) ToIdlArrayOutputWithContext(ctx context.Context) IdlArrayOutput
type IdlMap ¶
func (IdlMap) ElementType ¶
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) 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) 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 ¶
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 ¶
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 (o IdlTableInfoArrayOutput) Index(i pulumi.IntInput) IdlTableInfoOutput
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 ¶
func (o IdlTableInfoOutput) Error() pulumi.StringPtrOutput
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 ¶
func (o IdlTableInfoOutput) KeyFields() pulumi.StringPtrOutput
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 ¶
func (o IdlTableInfoOutput) TableName() pulumi.StringPtrOutput
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
```go package main
import (
"fmt" "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 { test, err := Tcaplus.NewCluster(ctx, "test", &Tcaplus.ClusterArgs{ IdlType: pulumi.String("PROTO"), ClusterName: pulumi.String("tf_tcaplus_cluster_test"), VpcId: pulumi.String("vpc-7k6gzox6"), SubnetId: pulumi.String("subnet-akwgvfa3"), Password: pulumi.String("1qaA2k1wgvfa3ZZZ"), OldPasswordExpireLast: pulumi.Int(3600), }) if err != nil { return err } tablegroup, err := Tcaplus.NewTablegroup(ctx, "tablegroup", &Tcaplus.TablegroupArgs{ ClusterId: test.ID(), TablegroupName: pulumi.String("tf_test_group_name"), }) if err != nil { return err } main, err := Tcaplus.NewIdl(ctx, "main", &Tcaplus.IdlArgs{ ClusterId: test.ID(), TablegroupId: tablegroup.ID(), FileName: pulumi.String("tf_idl_test_2"), 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 } _, err = Tcaplus.NewTable(ctx, "table", &Tcaplus.TableArgs{ ClusterId: test.ID(), TablegroupId: tablegroup.ID(), TableName: pulumi.String("tb_online"), TableType: pulumi.String("GENERIC"), Description: pulumi.String("test"), IdlId: main.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) 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 ¶
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 (o TableArrayOutput) Index(i pulumi.IntInput) TableOutput
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) 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 (o TableMapOutput) MapIndex(k pulumi.StringInput) TableOutput
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) 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
```go package main
import (
"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 { test, err := Tcaplus.NewCluster(ctx, "test", &Tcaplus.ClusterArgs{ IdlType: pulumi.String("PROTO"), ClusterName: pulumi.String("tf_tcaplus_cluster_test"), VpcId: pulumi.String("vpc-7k6gzox6"), SubnetId: pulumi.String("subnet-akwgvfa3"), Password: pulumi.String("1qaA2k1wgvfa3ZZZ"), OldPasswordExpireLast: pulumi.Int(3600), }) if err != nil { return err } _, err = Tcaplus.NewTablegroup(ctx, "tablegroup", &Tcaplus.TablegroupArgs{ ClusterId: test.ID(), TablegroupName: pulumi.String("tf_test_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 (o TablegroupArrayOutput) Index(i pulumi.IntInput) TablegroupOutput
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 (o TablegroupMapOutput) MapIndex(k pulumi.StringInput) TablegroupOutput
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