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

tencentcloud.CynosdbReadonlyInstance

Explore with Pulumi AI

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

    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:

    ClusterId string
    Cluster ID which the readonly instance belongs to.
    InstanceName string
    Name of instance.
    CynosdbReadonlyInstanceId string
    ID of the resource.
    ForceDelete 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 and POSTPAID_BY_HOUR cluster.
    InstanceCpuCore double
    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.
    InstanceMaintainDuration double
    Duration time for maintenance, unit in second. 3600 by default.
    InstanceMaintainStartTime double
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    InstanceMaintainWeekdays List<string>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    InstanceMemorySize double
    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.
    SubnetId string
    ID of the subnet within this VPC.
    VpcId string
    ID of the VPC.
    ClusterId string
    Cluster ID which the readonly instance belongs to.
    InstanceName string
    Name of instance.
    CynosdbReadonlyInstanceId string
    ID of the resource.
    ForceDelete 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 and POSTPAID_BY_HOUR cluster.
    InstanceCpuCore float64
    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.
    InstanceMaintainDuration float64
    Duration time for maintenance, unit in second. 3600 by default.
    InstanceMaintainStartTime float64
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    InstanceMaintainWeekdays []string
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    InstanceMemorySize float64
    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.
    SubnetId string
    ID of the subnet within this VPC.
    VpcId string
    ID of the VPC.
    clusterId String
    Cluster ID which the readonly instance belongs to.
    instanceName String
    Name of instance.
    cynosdbReadonlyInstanceId String
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore Double
    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.
    instanceMaintainDuration Double
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime Double
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays List<String>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize Double
    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.
    subnetId String
    ID of the subnet within this VPC.
    vpcId String
    ID of the VPC.
    clusterId string
    Cluster ID which the readonly instance belongs to.
    instanceName string
    Name of instance.
    cynosdbReadonlyInstanceId string
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore number
    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.
    instanceMaintainDuration number
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime number
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays string[]
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize number
    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.
    subnetId string
    ID of the subnet within this VPC.
    vpcId string
    ID of the VPC.
    cluster_id str
    Cluster ID which the readonly instance belongs to.
    instance_name str
    Name of instance.
    cynosdb_readonly_instance_id str
    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 and POSTPAID_BY_HOUR cluster.
    instance_cpu_core float
    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_duration float
    Duration time for maintenance, unit in second. 3600 by default.
    instance_maintain_start_time float
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instance_maintain_weekdays Sequence[str]
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instance_memory_size float
    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.
    clusterId String
    Cluster ID which the readonly instance belongs to.
    instanceName String
    Name of instance.
    cynosdbReadonlyInstanceId String
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore Number
    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.
    instanceMaintainDuration Number
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime Number
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays List<String>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize Number
    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.
    subnetId String
    ID of the subnet within this VPC.
    vpcId 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.
    InstanceStatus string
    Status of the instance.
    InstanceStorageSize double
    Storage size of the instance, unit in GB.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceStatus string
    Status of the instance.
    InstanceStorageSize float64
    Storage size of the instance, unit in GB.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceStatus String
    Status of the instance.
    instanceStorageSize Double
    Storage size of the instance, unit in GB.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceStatus string
    Status of the instance.
    instanceStorageSize number
    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_size float
    Storage size of the instance, unit in GB.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceStatus String
    Status of the instance.
    instanceStorageSize Number
    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.
    The following state arguments are supported:
    ClusterId string
    Cluster ID which the readonly instance belongs to.
    CynosdbReadonlyInstanceId string
    ID of the resource.
    ForceDelete 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 and POSTPAID_BY_HOUR cluster.
    InstanceCpuCore double
    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.
    InstanceMaintainDuration double
    Duration time for maintenance, unit in second. 3600 by default.
    InstanceMaintainStartTime double
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    InstanceMaintainWeekdays List<string>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    InstanceMemorySize double
    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.
    InstanceName string
    Name of instance.
    InstanceStatus string
    Status of the instance.
    InstanceStorageSize double
    Storage size of the instance, unit in GB.
    SubnetId string
    ID of the subnet within this VPC.
    VpcId string
    ID of the VPC.
    ClusterId string
    Cluster ID which the readonly instance belongs to.
    CynosdbReadonlyInstanceId string
    ID of the resource.
    ForceDelete 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 and POSTPAID_BY_HOUR cluster.
    InstanceCpuCore float64
    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.
    InstanceMaintainDuration float64
    Duration time for maintenance, unit in second. 3600 by default.
    InstanceMaintainStartTime float64
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    InstanceMaintainWeekdays []string
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    InstanceMemorySize float64
    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.
    InstanceName string
    Name of instance.
    InstanceStatus string
    Status of the instance.
    InstanceStorageSize float64
    Storage size of the instance, unit in GB.
    SubnetId string
    ID of the subnet within this VPC.
    VpcId string
    ID of the VPC.
    clusterId String
    Cluster ID which the readonly instance belongs to.
    cynosdbReadonlyInstanceId String
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore Double
    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.
    instanceMaintainDuration Double
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime Double
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays List<String>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize Double
    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.
    instanceName String
    Name of instance.
    instanceStatus String
    Status of the instance.
    instanceStorageSize Double
    Storage size of the instance, unit in GB.
    subnetId String
    ID of the subnet within this VPC.
    vpcId String
    ID of the VPC.
    clusterId string
    Cluster ID which the readonly instance belongs to.
    cynosdbReadonlyInstanceId string
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore number
    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.
    instanceMaintainDuration number
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime number
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays string[]
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize number
    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.
    instanceName string
    Name of instance.
    instanceStatus string
    Status of the instance.
    instanceStorageSize number
    Storage size of the instance, unit in GB.
    subnetId string
    ID of the subnet within this VPC.
    vpcId string
    ID of the VPC.
    cluster_id str
    Cluster ID which the readonly instance belongs to.
    cynosdb_readonly_instance_id str
    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 and POSTPAID_BY_HOUR cluster.
    instance_cpu_core float
    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_duration float
    Duration time for maintenance, unit in second. 3600 by default.
    instance_maintain_start_time float
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instance_maintain_weekdays Sequence[str]
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instance_memory_size float
    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_size float
    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.
    clusterId String
    Cluster ID which the readonly instance belongs to.
    cynosdbReadonlyInstanceId String
    ID of the resource.
    forceDelete 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 and POSTPAID_BY_HOUR cluster.
    instanceCpuCore Number
    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.
    instanceMaintainDuration Number
    Duration time for maintenance, unit in second. 3600 by default.
    instanceMaintainStartTime Number
    Offset time from 00:00, unit in second. For example, 03:00am should be 10800. 10800 by default.
    instanceMaintainWeekdays List<String>
    Weekdays for maintenance. ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] by default.
    instanceMemorySize Number
    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.
    instanceName String
    Name of instance.
    instanceStatus String
    Status of the instance.
    instanceStorageSize Number
    Storage size of the instance, unit in GB.
    subnetId String
    ID of the subnet within this VPC.
    vpcId 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack