tencentcloud.CynosdbIsolateInstance
Explore with Pulumi AI
Provides a resource to create a cynosdb isolate_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const account = new tencentcloud.CynosdbAccount("account", {
accountName: "terraform_test",
accountPassword: "Password@1234",
clusterId: "cynosdbmysql-bws8h88b",
description: "testx",
host: "%",
maxUserConnections: 2,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
account = tencentcloud.CynosdbAccount("account",
account_name="terraform_test",
account_password="Password@1234",
cluster_id="cynosdbmysql-bws8h88b",
description="testx",
host="%",
max_user_connections=2)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbAccount(ctx, "account", &tencentcloud.CynosdbAccountArgs{
AccountName: pulumi.String("terraform_test"),
AccountPassword: pulumi.String("Password@1234"),
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
Description: pulumi.String("testx"),
Host: pulumi.String("%"),
MaxUserConnections: pulumi.Float64(2),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var account = new Tencentcloud.CynosdbAccount("account", new()
{
AccountName = "terraform_test",
AccountPassword = "Password@1234",
ClusterId = "cynosdbmysql-bws8h88b",
Description = "testx",
Host = "%",
MaxUserConnections = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbAccount;
import com.pulumi.tencentcloud.CynosdbAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var account = new CynosdbAccount("account", CynosdbAccountArgs.builder()
.accountName("terraform_test")
.accountPassword("Password@1234")
.clusterId("cynosdbmysql-bws8h88b")
.description("testx")
.host("%")
.maxUserConnections(2)
.build());
}
}
resources:
account:
type: tencentcloud:CynosdbAccount
properties:
accountName: terraform_test
accountPassword: Password@1234
clusterId: cynosdbmysql-bws8h88b
description: testx
host: '%'
maxUserConnections: 2
Create CynosdbIsolateInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbIsolateInstance(name: string, args: CynosdbIsolateInstanceArgs, opts?: CustomResourceOptions);
@overload
def CynosdbIsolateInstance(resource_name: str,
args: CynosdbIsolateInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbIsolateInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_id: Optional[str] = None,
operate: Optional[str] = None,
cynosdb_isolate_instance_id: Optional[str] = None)
func NewCynosdbIsolateInstance(ctx *Context, name string, args CynosdbIsolateInstanceArgs, opts ...ResourceOption) (*CynosdbIsolateInstance, error)
public CynosdbIsolateInstance(string name, CynosdbIsolateInstanceArgs args, CustomResourceOptions? opts = null)
public CynosdbIsolateInstance(String name, CynosdbIsolateInstanceArgs args)
public CynosdbIsolateInstance(String name, CynosdbIsolateInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbIsolateInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CynosdbIsolateInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CynosdbIsolateInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CynosdbIsolateInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbIsolateInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbIsolateInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbIsolateInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CynosdbIsolateInstance resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Instance
Id string - Instance ID.
- Operate string
- isolate, activate.
- Cynosdb
Isolate stringInstance Id - ID of the resource.
- Cluster
Id string - Cluster ID.
- Instance
Id string - Instance ID.
- Operate string
- isolate, activate.
- Cynosdb
Isolate stringInstance Id - ID of the resource.
- cluster
Id String - Cluster ID.
- instance
Id String - Instance ID.
- operate String
- isolate, activate.
- cynosdb
Isolate StringInstance Id - ID of the resource.
- cluster
Id string - Cluster ID.
- instance
Id string - Instance ID.
- operate string
- isolate, activate.
- cynosdb
Isolate stringInstance Id - ID of the resource.
- cluster_
id str - Cluster ID.
- instance_
id str - Instance ID.
- operate str
- isolate, activate.
- cynosdb_
isolate_ strinstance_ id - ID of the resource.
- cluster
Id String - Cluster ID.
- instance
Id String - Instance ID.
- operate String
- isolate, activate.
- cynosdb
Isolate StringInstance Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbIsolateInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CynosdbIsolateInstance Resource
Get an existing CynosdbIsolateInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CynosdbIsolateInstanceState, opts?: CustomResourceOptions): CynosdbIsolateInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cynosdb_isolate_instance_id: Optional[str] = None,
instance_id: Optional[str] = None,
operate: Optional[str] = None) -> CynosdbIsolateInstance
func GetCynosdbIsolateInstance(ctx *Context, name string, id IDInput, state *CynosdbIsolateInstanceState, opts ...ResourceOption) (*CynosdbIsolateInstance, error)
public static CynosdbIsolateInstance Get(string name, Input<string> id, CynosdbIsolateInstanceState? state, CustomResourceOptions? opts = null)
public static CynosdbIsolateInstance get(String name, Output<String> id, CynosdbIsolateInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbIsolateInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - Cluster ID.
- Cynosdb
Isolate stringInstance Id - ID of the resource.
- Instance
Id string - Instance ID.
- Operate string
- isolate, activate.
- Cluster
Id string - Cluster ID.
- Cynosdb
Isolate stringInstance Id - ID of the resource.
- Instance
Id string - Instance ID.
- Operate string
- isolate, activate.
- cluster
Id String - Cluster ID.
- cynosdb
Isolate StringInstance Id - ID of the resource.
- instance
Id String - Instance ID.
- operate String
- isolate, activate.
- cluster
Id string - Cluster ID.
- cynosdb
Isolate stringInstance Id - ID of the resource.
- instance
Id string - Instance ID.
- operate string
- isolate, activate.
- cluster_
id str - Cluster ID.
- cynosdb_
isolate_ strinstance_ id - ID of the resource.
- instance_
id str - Instance ID.
- operate str
- isolate, activate.
- cluster
Id String - Cluster ID.
- cynosdb
Isolate StringInstance Id - ID of the resource.
- instance
Id String - Instance ID.
- operate String
- isolate, activate.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.