tencentcloud.CynosdbReadonlyInstance
Explore with Pulumi AI
Provide a resource to create a CynosDB readonly instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.CynosdbReadonlyInstance("foo", {
clusterId: cynosdbmysql_dzj5l8gz,
instanceName: "tf-cynosdb-readonly-instance",
forceDelete: true,
instanceCpuCore: 2,
instanceMemorySize: 4,
instanceMaintainDuration: 7200,
instanceMaintainStartTime: 21600,
instanceMaintainWeekdays: [
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CynosdbReadonlyInstance("foo",
cluster_id=cynosdbmysql_dzj5l8gz,
instance_name="tf-cynosdb-readonly-instance",
force_delete=True,
instance_cpu_core=2,
instance_memory_size=4,
instance_maintain_duration=7200,
instance_maintain_start_time=21600,
instance_maintain_weekdays=[
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
])
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.NewCynosdbReadonlyInstance(ctx, "foo", &tencentcloud.CynosdbReadonlyInstanceArgs{
ClusterId: pulumi.Any(cynosdbmysql_dzj5l8gz),
InstanceName: pulumi.String("tf-cynosdb-readonly-instance"),
ForceDelete: pulumi.Bool(true),
InstanceCpuCore: pulumi.Float64(2),
InstanceMemorySize: pulumi.Float64(4),
InstanceMaintainDuration: pulumi.Float64(7200),
InstanceMaintainStartTime: pulumi.Float64(21600),
InstanceMaintainWeekdays: pulumi.StringArray{
pulumi.String("Fri"),
pulumi.String("Mon"),
pulumi.String("Sat"),
pulumi.String("Sun"),
pulumi.String("Thu"),
pulumi.String("Wed"),
pulumi.String("Tue"),
},
})
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 foo = new Tencentcloud.CynosdbReadonlyInstance("foo", new()
{
ClusterId = cynosdbmysql_dzj5l8gz,
InstanceName = "tf-cynosdb-readonly-instance",
ForceDelete = true,
InstanceCpuCore = 2,
InstanceMemorySize = 4,
InstanceMaintainDuration = 7200,
InstanceMaintainStartTime = 21600,
InstanceMaintainWeekdays = new[]
{
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbReadonlyInstance;
import com.pulumi.tencentcloud.CynosdbReadonlyInstanceArgs;
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 foo = new CynosdbReadonlyInstance("foo", CynosdbReadonlyInstanceArgs.builder()
.clusterId(cynosdbmysql_dzj5l8gz)
.instanceName("tf-cynosdb-readonly-instance")
.forceDelete(true)
.instanceCpuCore(2)
.instanceMemorySize(4)
.instanceMaintainDuration(7200)
.instanceMaintainStartTime(21600)
.instanceMaintainWeekdays(
"Fri",
"Mon",
"Sat",
"Sun",
"Thu",
"Wed",
"Tue")
.build());
}
}
resources:
foo:
type: tencentcloud:CynosdbReadonlyInstance
properties:
clusterId: ${["cynosdbmysql-dzj5l8gz"]}
instanceName: tf-cynosdb-readonly-instance
forceDelete: true
instanceCpuCore: 2
instanceMemorySize: 4
instanceMaintainDuration: 7200
instanceMaintainStartTime: 21600
instanceMaintainWeekdays:
- Fri
- Mon
- Sat
- Sun
- Thu
- Wed
- Tue
Create CynosdbReadonlyInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbReadonlyInstance(name: string, args: CynosdbReadonlyInstanceArgs, opts?: CustomResourceOptions);
@overload
def CynosdbReadonlyInstance(resource_name: str,
args: CynosdbReadonlyInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbReadonlyInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_name: Optional[str] = None,
cynosdb_readonly_instance_id: Optional[str] = None,
force_delete: Optional[bool] = None,
instance_cpu_core: Optional[float] = None,
instance_maintain_duration: Optional[float] = None,
instance_maintain_start_time: Optional[float] = None,
instance_maintain_weekdays: Optional[Sequence[str]] = None,
instance_memory_size: Optional[float] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewCynosdbReadonlyInstance(ctx *Context, name string, args CynosdbReadonlyInstanceArgs, opts ...ResourceOption) (*CynosdbReadonlyInstance, error)
public CynosdbReadonlyInstance(string name, CynosdbReadonlyInstanceArgs args, CustomResourceOptions? opts = null)
public CynosdbReadonlyInstance(String name, CynosdbReadonlyInstanceArgs args)
public CynosdbReadonlyInstance(String name, CynosdbReadonlyInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbReadonlyInstance
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 CynosdbReadonlyInstanceArgs
- 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 CynosdbReadonlyInstanceArgs
- 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 CynosdbReadonlyInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbReadonlyInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbReadonlyInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbReadonlyInstance 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 CynosdbReadonlyInstance resource accepts the following input properties:
- Cluster
Id string - Cluster ID which the readonly instance belongs to.
- Instance
Name string - Name of instance.
- Cynosdb
Readonly stringInstance Id - ID of the resource.
- Force
Delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - Instance
Cpu doubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Maintain doubleDuration - Duration time for maintenance, unit in second.
3600
by default. - Instance
Maintain doubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - Instance
Maintain List<string>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - Instance
Memory doubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- Cluster
Id string - Cluster ID which the readonly instance belongs to.
- Instance
Name string - Name of instance.
- Cynosdb
Readonly stringInstance Id - ID of the resource.
- Force
Delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - Instance
Cpu float64Core - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Maintain float64Duration - Duration time for maintenance, unit in second.
3600
by default. - Instance
Maintain float64Start Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - Instance
Maintain []stringWeekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - Instance
Memory float64Size - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- cluster
Id String - Cluster ID which the readonly instance belongs to.
- instance
Name String - Name of instance.
- cynosdb
Readonly StringInstance Id - ID of the resource.
- force
Delete Boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu DoubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain DoubleDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain DoubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory DoubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
- cluster
Id string - Cluster ID which the readonly instance belongs to.
- instance
Name string - Name of instance.
- cynosdb
Readonly stringInstance Id - ID of the resource.
- force
Delete boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu numberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain numberDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain numberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain string[]Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory numberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- subnet
Id string - ID of the subnet within this VPC.
- vpc
Id string - ID of the VPC.
- cluster_
id str - Cluster ID which the readonly instance belongs to.
- instance_
name str - Name of instance.
- cynosdb_
readonly_ strinstance_ id - ID of the resource.
- force_
delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance_
cpu_ floatcore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
maintain_ floatduration - Duration time for maintenance, unit in second.
3600
by default. - instance_
maintain_ floatstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance_
maintain_ Sequence[str]weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance_
memory_ floatsize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- subnet_
id str - ID of the subnet within this VPC.
- vpc_
id str - ID of the VPC.
- cluster
Id String - Cluster ID which the readonly instance belongs to.
- instance
Name String - Name of instance.
- cynosdb
Readonly StringInstance Id - ID of the resource.
- force
Delete Boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu NumberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain NumberDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain NumberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory NumberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbReadonlyInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status string - Status of the instance.
- Instance
Storage doubleSize - Storage size of the instance, unit in GB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status string - Status of the instance.
- Instance
Storage float64Size - Storage size of the instance, unit in GB.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status String - Status of the instance.
- instance
Storage DoubleSize - Storage size of the instance, unit in GB.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Status string - Status of the instance.
- instance
Storage numberSize - Storage size of the instance, unit in GB.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
status str - Status of the instance.
- instance_
storage_ floatsize - Storage size of the instance, unit in GB.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status String - Status of the instance.
- instance
Storage NumberSize - Storage size of the instance, unit in GB.
Look up Existing CynosdbReadonlyInstance Resource
Get an existing CynosdbReadonlyInstance 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?: CynosdbReadonlyInstanceState, opts?: CustomResourceOptions): CynosdbReadonlyInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cynosdb_readonly_instance_id: Optional[str] = None,
force_delete: Optional[bool] = None,
instance_cpu_core: Optional[float] = None,
instance_maintain_duration: Optional[float] = None,
instance_maintain_start_time: Optional[float] = None,
instance_maintain_weekdays: Optional[Sequence[str]] = None,
instance_memory_size: Optional[float] = None,
instance_name: Optional[str] = None,
instance_status: Optional[str] = None,
instance_storage_size: Optional[float] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> CynosdbReadonlyInstance
func GetCynosdbReadonlyInstance(ctx *Context, name string, id IDInput, state *CynosdbReadonlyInstanceState, opts ...ResourceOption) (*CynosdbReadonlyInstance, error)
public static CynosdbReadonlyInstance Get(string name, Input<string> id, CynosdbReadonlyInstanceState? state, CustomResourceOptions? opts = null)
public static CynosdbReadonlyInstance get(String name, Output<String> id, CynosdbReadonlyInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbReadonlyInstance 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 which the readonly instance belongs to.
- Cynosdb
Readonly stringInstance Id - ID of the resource.
- Force
Delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - Instance
Cpu doubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Maintain doubleDuration - Duration time for maintenance, unit in second.
3600
by default. - Instance
Maintain doubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - Instance
Maintain List<string>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - Instance
Memory doubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance.
- Instance
Status string - Status of the instance.
- Instance
Storage doubleSize - Storage size of the instance, unit in GB.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- Cluster
Id string - Cluster ID which the readonly instance belongs to.
- Cynosdb
Readonly stringInstance Id - ID of the resource.
- Force
Delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - Instance
Cpu float64Core - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Maintain float64Duration - Duration time for maintenance, unit in second.
3600
by default. - Instance
Maintain float64Start Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - Instance
Maintain []stringWeekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - Instance
Memory float64Size - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- Instance
Name string - Name of instance.
- Instance
Status string - Status of the instance.
- Instance
Storage float64Size - Storage size of the instance, unit in GB.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- cluster
Id String - Cluster ID which the readonly instance belongs to.
- cynosdb
Readonly StringInstance Id - ID of the resource.
- force
Delete Boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu DoubleCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain DoubleDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain DoubleStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory DoubleSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance.
- instance
Status String - Status of the instance.
- instance
Storage DoubleSize - Storage size of the instance, unit in GB.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
- cluster
Id string - Cluster ID which the readonly instance belongs to.
- cynosdb
Readonly stringInstance Id - ID of the resource.
- force
Delete boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu numberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain numberDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain numberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain string[]Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory numberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name string - Name of instance.
- instance
Status string - Status of the instance.
- instance
Storage numberSize - Storage size of the instance, unit in GB.
- subnet
Id string - ID of the subnet within this VPC.
- vpc
Id string - ID of the VPC.
- cluster_
id str - Cluster ID which the readonly instance belongs to.
- cynosdb_
readonly_ strinstance_ id - ID of the resource.
- force_
delete bool - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance_
cpu_ floatcore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
maintain_ floatduration - Duration time for maintenance, unit in second.
3600
by default. - instance_
maintain_ floatstart_ time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance_
maintain_ Sequence[str]weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance_
memory_ floatsize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance_
name str - Name of instance.
- instance_
status str - Status of the instance.
- instance_
storage_ floatsize - Storage size of the instance, unit in GB.
- subnet_
id str - ID of the subnet within this VPC.
- vpc_
id str - ID of the VPC.
- cluster
Id String - Cluster ID which the readonly instance belongs to.
- cynosdb
Readonly StringInstance Id - ID of the resource.
- force
Delete Boolean - Indicate whether to delete readonly instance directly or not. Default is false. If set true, instance will be deleted instead of staying recycle bin. Note: works for both
PREPAID
andPOSTPAID_BY_HOUR
cluster. - instance
Cpu NumberCore - The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Maintain NumberDuration - Duration time for maintenance, unit in second.
3600
by default. - instance
Maintain NumberStart Time - Offset time from 00:00, unit in second. For example, 03:00am should be
10800
.10800
by default. - instance
Maintain List<String>Weekdays - Weekdays for maintenance.
["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
by default. - instance
Memory NumberSize - Memory capacity of read-write type instance, unit in GB. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
- instance
Name String - Name of instance.
- instance
Status String - Status of the instance.
- instance
Storage NumberSize - Storage size of the instance, unit in GB.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
Import
CynosDB readonly instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cynosdbReadonlyInstance:CynosdbReadonlyInstance foo cynosdbmysql-ins-dhwynib6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.