1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. CynosdbBackupConfig
Viewing docs for tencentcloud 1.82.91
published on Friday, May 1, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.91
published on Friday, May 1, 2026 by tencentcloudstack

    Provides a resource to create a CynosDB backup config

    Example Usage

    Enable logical backup configuration and cross-region logical backup

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CynosdbCluster("example", {
        availableZone: "ap-guangzhou-6",
        vpcId: "vpc-i5yyodl9",
        subnetId: "subnet-hhi88a58",
        dbMode: "NORMAL",
        dbType: "MYSQL",
        dbVersion: "5.7",
        port: 3306,
        clusterName: "tf-example",
        password: "cynosDB@123",
        instanceMaintainDuration: 7200,
        instanceMaintainStartTime: 10800,
        instanceCpuCore: 2,
        instanceMemorySize: 4,
        forceDelete: true,
        instanceMaintainWeekdays: [
            "Fri",
            "Mon",
            "Sat",
            "Sun",
            "Thu",
            "Wed",
            "Tue",
        ],
        paramItems: [
            {
                name: "character_set_server",
                currentValue: "utf8mb4",
            },
            {
                name: "lower_case_table_names",
                currentValue: "1",
            },
        ],
        tags: {
            createBy: "terraform",
        },
    });
    const exampleCynosdbBackupConfig = new tencentcloud.CynosdbBackupConfig("example", {
        clusterId: example.cynosdbClusterId,
        backupTimeBeg: 7200,
        backupTimeEnd: 21600,
        reserveDuration: 604800,
        logicBackupConfig: {
            logicBackupEnable: "ON",
            logicBackupTimeBeg: 7200,
            logicBackupTimeEnd: 21600,
            logicCrossRegions: ["ap-shanghai"],
            logicCrossRegionsEnable: "ON",
            logicReserveDuration: 604800,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CynosdbCluster("example",
        available_zone="ap-guangzhou-6",
        vpc_id="vpc-i5yyodl9",
        subnet_id="subnet-hhi88a58",
        db_mode="NORMAL",
        db_type="MYSQL",
        db_version="5.7",
        port=3306,
        cluster_name="tf-example",
        password="cynosDB@123",
        instance_maintain_duration=7200,
        instance_maintain_start_time=10800,
        instance_cpu_core=2,
        instance_memory_size=4,
        force_delete=True,
        instance_maintain_weekdays=[
            "Fri",
            "Mon",
            "Sat",
            "Sun",
            "Thu",
            "Wed",
            "Tue",
        ],
        param_items=[
            {
                "name": "character_set_server",
                "current_value": "utf8mb4",
            },
            {
                "name": "lower_case_table_names",
                "current_value": "1",
            },
        ],
        tags={
            "createBy": "terraform",
        })
    example_cynosdb_backup_config = tencentcloud.CynosdbBackupConfig("example",
        cluster_id=example.cynosdb_cluster_id,
        backup_time_beg=7200,
        backup_time_end=21600,
        reserve_duration=604800,
        logic_backup_config={
            "logic_backup_enable": "ON",
            "logic_backup_time_beg": 7200,
            "logic_backup_time_end": 21600,
            "logic_cross_regions": ["ap-shanghai"],
            "logic_cross_regions_enable": "ON",
            "logic_reserve_duration": 604800,
        })
    
    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 {
    		example, err := tencentcloud.NewCynosdbCluster(ctx, "example", &tencentcloud.CynosdbClusterArgs{
    			AvailableZone:             pulumi.String("ap-guangzhou-6"),
    			VpcId:                     pulumi.String("vpc-i5yyodl9"),
    			SubnetId:                  pulumi.String("subnet-hhi88a58"),
    			DbMode:                    pulumi.String("NORMAL"),
    			DbType:                    pulumi.String("MYSQL"),
    			DbVersion:                 pulumi.String("5.7"),
    			Port:                      pulumi.Float64(3306),
    			ClusterName:               pulumi.String("tf-example"),
    			Password:                  pulumi.String("cynosDB@123"),
    			InstanceMaintainDuration:  pulumi.Float64(7200),
    			InstanceMaintainStartTime: pulumi.Float64(10800),
    			InstanceCpuCore:           pulumi.Float64(2),
    			InstanceMemorySize:        pulumi.Float64(4),
    			ForceDelete:               pulumi.Bool(true),
    			InstanceMaintainWeekdays: pulumi.StringArray{
    				pulumi.String("Fri"),
    				pulumi.String("Mon"),
    				pulumi.String("Sat"),
    				pulumi.String("Sun"),
    				pulumi.String("Thu"),
    				pulumi.String("Wed"),
    				pulumi.String("Tue"),
    			},
    			ParamItems: tencentcloud.CynosdbClusterParamItemArray{
    				&tencentcloud.CynosdbClusterParamItemArgs{
    					Name:         pulumi.String("character_set_server"),
    					CurrentValue: pulumi.String("utf8mb4"),
    				},
    				&tencentcloud.CynosdbClusterParamItemArgs{
    					Name:         pulumi.String("lower_case_table_names"),
    					CurrentValue: pulumi.String("1"),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewCynosdbBackupConfig(ctx, "example", &tencentcloud.CynosdbBackupConfigArgs{
    			ClusterId:       example.CynosdbClusterId,
    			BackupTimeBeg:   pulumi.Float64(7200),
    			BackupTimeEnd:   pulumi.Float64(21600),
    			ReserveDuration: pulumi.Float64(604800),
    			LogicBackupConfig: &tencentcloud.CynosdbBackupConfigLogicBackupConfigArgs{
    				LogicBackupEnable:  pulumi.String("ON"),
    				LogicBackupTimeBeg: pulumi.Float64(7200),
    				LogicBackupTimeEnd: pulumi.Float64(21600),
    				LogicCrossRegions: pulumi.StringArray{
    					pulumi.String("ap-shanghai"),
    				},
    				LogicCrossRegionsEnable: pulumi.String("ON"),
    				LogicReserveDuration:    pulumi.Float64(604800),
    			},
    		})
    		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 example = new Tencentcloud.CynosdbCluster("example", new()
        {
            AvailableZone = "ap-guangzhou-6",
            VpcId = "vpc-i5yyodl9",
            SubnetId = "subnet-hhi88a58",
            DbMode = "NORMAL",
            DbType = "MYSQL",
            DbVersion = "5.7",
            Port = 3306,
            ClusterName = "tf-example",
            Password = "cynosDB@123",
            InstanceMaintainDuration = 7200,
            InstanceMaintainStartTime = 10800,
            InstanceCpuCore = 2,
            InstanceMemorySize = 4,
            ForceDelete = true,
            InstanceMaintainWeekdays = new[]
            {
                "Fri",
                "Mon",
                "Sat",
                "Sun",
                "Thu",
                "Wed",
                "Tue",
            },
            ParamItems = new[]
            {
                new Tencentcloud.Inputs.CynosdbClusterParamItemArgs
                {
                    Name = "character_set_server",
                    CurrentValue = "utf8mb4",
                },
                new Tencentcloud.Inputs.CynosdbClusterParamItemArgs
                {
                    Name = "lower_case_table_names",
                    CurrentValue = "1",
                },
            },
            Tags = 
            {
                { "createBy", "terraform" },
            },
        });
    
        var exampleCynosdbBackupConfig = new Tencentcloud.CynosdbBackupConfig("example", new()
        {
            ClusterId = example.CynosdbClusterId,
            BackupTimeBeg = 7200,
            BackupTimeEnd = 21600,
            ReserveDuration = 604800,
            LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
            {
                LogicBackupEnable = "ON",
                LogicBackupTimeBeg = 7200,
                LogicBackupTimeEnd = 21600,
                LogicCrossRegions = new[]
                {
                    "ap-shanghai",
                },
                LogicCrossRegionsEnable = "ON",
                LogicReserveDuration = 604800,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbCluster;
    import com.pulumi.tencentcloud.CynosdbClusterArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbClusterParamItemArgs;
    import com.pulumi.tencentcloud.CynosdbBackupConfig;
    import com.pulumi.tencentcloud.CynosdbBackupConfigArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbBackupConfigLogicBackupConfigArgs;
    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 example = new CynosdbCluster("example", CynosdbClusterArgs.builder()
                .availableZone("ap-guangzhou-6")
                .vpcId("vpc-i5yyodl9")
                .subnetId("subnet-hhi88a58")
                .dbMode("NORMAL")
                .dbType("MYSQL")
                .dbVersion("5.7")
                .port(3306.0)
                .clusterName("tf-example")
                .password("cynosDB@123")
                .instanceMaintainDuration(7200.0)
                .instanceMaintainStartTime(10800.0)
                .instanceCpuCore(2.0)
                .instanceMemorySize(4.0)
                .forceDelete(true)
                .instanceMaintainWeekdays(            
                    "Fri",
                    "Mon",
                    "Sat",
                    "Sun",
                    "Thu",
                    "Wed",
                    "Tue")
                .paramItems(            
                    CynosdbClusterParamItemArgs.builder()
                        .name("character_set_server")
                        .currentValue("utf8mb4")
                        .build(),
                    CynosdbClusterParamItemArgs.builder()
                        .name("lower_case_table_names")
                        .currentValue("1")
                        .build())
                .tags(Map.of("createBy", "terraform"))
                .build());
    
            var exampleCynosdbBackupConfig = new CynosdbBackupConfig("exampleCynosdbBackupConfig", CynosdbBackupConfigArgs.builder()
                .clusterId(example.cynosdbClusterId())
                .backupTimeBeg(7200.0)
                .backupTimeEnd(21600.0)
                .reserveDuration(604800.0)
                .logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
                    .logicBackupEnable("ON")
                    .logicBackupTimeBeg(7200.0)
                    .logicBackupTimeEnd(21600.0)
                    .logicCrossRegions("ap-shanghai")
                    .logicCrossRegionsEnable("ON")
                    .logicReserveDuration(604800.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CynosdbCluster
        properties:
          availableZone: ap-guangzhou-6
          vpcId: vpc-i5yyodl9
          subnetId: subnet-hhi88a58
          dbMode: NORMAL
          dbType: MYSQL
          dbVersion: '5.7'
          port: 3306
          clusterName: tf-example
          password: cynosDB@123
          instanceMaintainDuration: 7200
          instanceMaintainStartTime: 10800
          instanceCpuCore: 2
          instanceMemorySize: 4
          forceDelete: true
          instanceMaintainWeekdays:
            - Fri
            - Mon
            - Sat
            - Sun
            - Thu
            - Wed
            - Tue
          paramItems:
            - name: character_set_server
              currentValue: utf8mb4
            - name: lower_case_table_names
              currentValue: '1'
          tags:
            createBy: terraform
      exampleCynosdbBackupConfig:
        type: tencentcloud:CynosdbBackupConfig
        name: example
        properties:
          clusterId: ${example.cynosdbClusterId}
          backupTimeBeg: 7200
          backupTimeEnd: 21600
          reserveDuration: 604800
          logicBackupConfig:
            logicBackupEnable: ON
            logicBackupTimeBeg: 7200
            logicBackupTimeEnd: 21600
            logicCrossRegions:
              - ap-shanghai
            logicCrossRegionsEnable: ON
            logicReserveDuration: 604800
    

    Disable logical backup configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CynosdbBackupConfig("example", {
        clusterId: exampleTencentcloudCynosdbCluster.id,
        backupTimeBeg: 7200,
        backupTimeEnd: 21600,
        reserveDuration: 604800,
        logicBackupConfig: {
            logicBackupEnable: "OFF",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CynosdbBackupConfig("example",
        cluster_id=example_tencentcloud_cynosdb_cluster["id"],
        backup_time_beg=7200,
        backup_time_end=21600,
        reserve_duration=604800,
        logic_backup_config={
            "logic_backup_enable": "OFF",
        })
    
    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.NewCynosdbBackupConfig(ctx, "example", &tencentcloud.CynosdbBackupConfigArgs{
    			ClusterId:       pulumi.Any(exampleTencentcloudCynosdbCluster.Id),
    			BackupTimeBeg:   pulumi.Float64(7200),
    			BackupTimeEnd:   pulumi.Float64(21600),
    			ReserveDuration: pulumi.Float64(604800),
    			LogicBackupConfig: &tencentcloud.CynosdbBackupConfigLogicBackupConfigArgs{
    				LogicBackupEnable: pulumi.String("OFF"),
    			},
    		})
    		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 example = new Tencentcloud.CynosdbBackupConfig("example", new()
        {
            ClusterId = exampleTencentcloudCynosdbCluster.Id,
            BackupTimeBeg = 7200,
            BackupTimeEnd = 21600,
            ReserveDuration = 604800,
            LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
            {
                LogicBackupEnable = "OFF",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbBackupConfig;
    import com.pulumi.tencentcloud.CynosdbBackupConfigArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbBackupConfigLogicBackupConfigArgs;
    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 example = new CynosdbBackupConfig("example", CynosdbBackupConfigArgs.builder()
                .clusterId(exampleTencentcloudCynosdbCluster.id())
                .backupTimeBeg(7200.0)
                .backupTimeEnd(21600.0)
                .reserveDuration(604800.0)
                .logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
                    .logicBackupEnable("OFF")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CynosdbBackupConfig
        properties:
          clusterId: ${exampleTencentcloudCynosdbCluster.id}
          backupTimeBeg: 7200
          backupTimeEnd: 21600
          reserveDuration: 604800
          logicBackupConfig:
            logicBackupEnable: OFF
    

    Enable secondary snapshot backup configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CynosdbBackupConfig("example", {
        clusterId: exampleTencentcloudCynosdbCluster.id,
        backupTimeBeg: 7200,
        backupTimeEnd: 21600,
        reserveDuration: 604800,
        snapshotSecondaryBackupConfig: {
            backupTimeBeg: 7200,
            backupTimeEnd: 21600,
            reserveDuration: 604800,
            backupTriggerStrategy: "periodically",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CynosdbBackupConfig("example",
        cluster_id=example_tencentcloud_cynosdb_cluster["id"],
        backup_time_beg=7200,
        backup_time_end=21600,
        reserve_duration=604800,
        snapshot_secondary_backup_config={
            "backup_time_beg": 7200,
            "backup_time_end": 21600,
            "reserve_duration": 604800,
            "backup_trigger_strategy": "periodically",
        })
    
    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.NewCynosdbBackupConfig(ctx, "example", &tencentcloud.CynosdbBackupConfigArgs{
    			ClusterId:       pulumi.Any(exampleTencentcloudCynosdbCluster.Id),
    			BackupTimeBeg:   pulumi.Float64(7200),
    			BackupTimeEnd:   pulumi.Float64(21600),
    			ReserveDuration: pulumi.Float64(604800),
    			SnapshotSecondaryBackupConfig: &tencentcloud.CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs{
    				BackupTimeBeg:         pulumi.Float64(7200),
    				BackupTimeEnd:         pulumi.Float64(21600),
    				ReserveDuration:       pulumi.Float64(604800),
    				BackupTriggerStrategy: pulumi.String("periodically"),
    			},
    		})
    		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 example = new Tencentcloud.CynosdbBackupConfig("example", new()
        {
            ClusterId = exampleTencentcloudCynosdbCluster.Id,
            BackupTimeBeg = 7200,
            BackupTimeEnd = 21600,
            ReserveDuration = 604800,
            SnapshotSecondaryBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs
            {
                BackupTimeBeg = 7200,
                BackupTimeEnd = 21600,
                ReserveDuration = 604800,
                BackupTriggerStrategy = "periodically",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbBackupConfig;
    import com.pulumi.tencentcloud.CynosdbBackupConfigArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs;
    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 example = new CynosdbBackupConfig("example", CynosdbBackupConfigArgs.builder()
                .clusterId(exampleTencentcloudCynosdbCluster.id())
                .backupTimeBeg(7200.0)
                .backupTimeEnd(21600.0)
                .reserveDuration(604800.0)
                .snapshotSecondaryBackupConfig(CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs.builder()
                    .backupTimeBeg(7200.0)
                    .backupTimeEnd(21600.0)
                    .reserveDuration(604800.0)
                    .backupTriggerStrategy("periodically")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CynosdbBackupConfig
        properties:
          clusterId: ${exampleTencentcloudCynosdbCluster.id}
          backupTimeBeg: 7200
          backupTimeEnd: 21600
          reserveDuration: 604800
          snapshotSecondaryBackupConfig:
            backupTimeBeg: 7200
            backupTimeEnd: 21600
            reserveDuration: 604800
            backupTriggerStrategy: periodically
    

    Create CynosdbBackupConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CynosdbBackupConfig(name: string, args: CynosdbBackupConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CynosdbBackupConfig(resource_name: str,
                            args: CynosdbBackupConfigArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CynosdbBackupConfig(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            backup_time_beg: Optional[float] = None,
                            backup_time_end: Optional[float] = None,
                            cluster_id: Optional[str] = None,
                            reserve_duration: Optional[float] = None,
                            cynosdb_backup_config_id: Optional[str] = None,
                            logic_backup_config: Optional[CynosdbBackupConfigLogicBackupConfigArgs] = None,
                            snapshot_secondary_backup_config: Optional[CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs] = None)
    func NewCynosdbBackupConfig(ctx *Context, name string, args CynosdbBackupConfigArgs, opts ...ResourceOption) (*CynosdbBackupConfig, error)
    public CynosdbBackupConfig(string name, CynosdbBackupConfigArgs args, CustomResourceOptions? opts = null)
    public CynosdbBackupConfig(String name, CynosdbBackupConfigArgs args)
    public CynosdbBackupConfig(String name, CynosdbBackupConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CynosdbBackupConfig
    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 CynosdbBackupConfigArgs
    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 CynosdbBackupConfigArgs
    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 CynosdbBackupConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CynosdbBackupConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CynosdbBackupConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CynosdbBackupConfig 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 CynosdbBackupConfig resource accepts the following input properties:

    BackupTimeBeg double
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupTimeEnd double
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    ClusterId string
    Cluster ID.
    ReserveDuration double
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    CynosdbBackupConfigId string
    ID of the resource.
    LogicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    SnapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    BackupTimeBeg float64
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupTimeEnd float64
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    ClusterId string
    Cluster ID.
    ReserveDuration float64
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    CynosdbBackupConfigId string
    ID of the resource.
    LogicBackupConfig CynosdbBackupConfigLogicBackupConfigArgs
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    SnapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs
    Secondary snapshot backup configuration.
    backupTimeBeg Double
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd Double
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    clusterId String
    Cluster ID.
    reserveDuration Double
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    cynosdbBackupConfigId String
    ID of the resource.
    logicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    snapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    backupTimeBeg number
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd number
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    clusterId string
    Cluster ID.
    reserveDuration number
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    cynosdbBackupConfigId string
    ID of the resource.
    logicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    snapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    backup_time_beg float
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backup_time_end float
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    cluster_id str
    Cluster ID.
    reserve_duration float
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    cynosdb_backup_config_id str
    ID of the resource.
    logic_backup_config CynosdbBackupConfigLogicBackupConfigArgs
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    snapshot_secondary_backup_config CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs
    Secondary snapshot backup configuration.
    backupTimeBeg Number
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd Number
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    clusterId String
    Cluster ID.
    reserveDuration Number
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    cynosdbBackupConfigId String
    ID of the resource.
    logicBackupConfig Property Map
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    snapshotSecondaryBackupConfig Property Map
    Secondary snapshot backup configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CynosdbBackupConfig resource produces the following output properties:

    BackupFreqs List<string>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    BackupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    Id string
    The provider-assigned unique ID for this managed resource.
    BackupFreqs []string
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    BackupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    Id string
    The provider-assigned unique ID for this managed resource.
    backupFreqs List<String>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupType String
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    id String
    The provider-assigned unique ID for this managed resource.
    backupFreqs string[]
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    id string
    The provider-assigned unique ID for this managed resource.
    backup_freqs Sequence[str]
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backup_type str
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    id str
    The provider-assigned unique ID for this managed resource.
    backupFreqs List<String>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupType String
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CynosdbBackupConfig Resource

    Get an existing CynosdbBackupConfig 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?: CynosdbBackupConfigState, opts?: CustomResourceOptions): CynosdbBackupConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_freqs: Optional[Sequence[str]] = None,
            backup_time_beg: Optional[float] = None,
            backup_time_end: Optional[float] = None,
            backup_type: Optional[str] = None,
            cluster_id: Optional[str] = None,
            cynosdb_backup_config_id: Optional[str] = None,
            logic_backup_config: Optional[CynosdbBackupConfigLogicBackupConfigArgs] = None,
            reserve_duration: Optional[float] = None,
            snapshot_secondary_backup_config: Optional[CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs] = None) -> CynosdbBackupConfig
    func GetCynosdbBackupConfig(ctx *Context, name string, id IDInput, state *CynosdbBackupConfigState, opts ...ResourceOption) (*CynosdbBackupConfig, error)
    public static CynosdbBackupConfig Get(string name, Input<string> id, CynosdbBackupConfigState? state, CustomResourceOptions? opts = null)
    public static CynosdbBackupConfig get(String name, Output<String> id, CynosdbBackupConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbBackupConfig    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:
    BackupFreqs List<string>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    BackupTimeBeg double
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupTimeEnd double
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    ClusterId string
    Cluster ID.
    CynosdbBackupConfigId string
    ID of the resource.
    LogicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    ReserveDuration double
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    SnapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    BackupFreqs []string
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    BackupTimeBeg float64
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupTimeEnd float64
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    BackupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    ClusterId string
    Cluster ID.
    CynosdbBackupConfigId string
    ID of the resource.
    LogicBackupConfig CynosdbBackupConfigLogicBackupConfigArgs
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    ReserveDuration float64
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    SnapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs
    Secondary snapshot backup configuration.
    backupFreqs List<String>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupTimeBeg Double
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd Double
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupType String
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    clusterId String
    Cluster ID.
    cynosdbBackupConfigId String
    ID of the resource.
    logicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    reserveDuration Double
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    snapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    backupFreqs string[]
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupTimeBeg number
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd number
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupType string
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    clusterId string
    Cluster ID.
    cynosdbBackupConfigId string
    ID of the resource.
    logicBackupConfig CynosdbBackupConfigLogicBackupConfig
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    reserveDuration number
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    snapshotSecondaryBackupConfig CynosdbBackupConfigSnapshotSecondaryBackupConfig
    Secondary snapshot backup configuration.
    backup_freqs Sequence[str]
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backup_time_beg float
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backup_time_end float
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backup_type str
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    cluster_id str
    Cluster ID.
    cynosdb_backup_config_id str
    ID of the resource.
    logic_backup_config CynosdbBackupConfigLogicBackupConfigArgs
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    reserve_duration float
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    snapshot_secondary_backup_config CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs
    Secondary snapshot backup configuration.
    backupFreqs List<String>
    Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
    backupTimeBeg Number
    Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupTimeEnd Number
    Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
    backupType String
    Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
    clusterId String
    Cluster ID.
    cynosdbBackupConfigId String
    ID of the resource.
    logicBackupConfig Property Map
    Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
    reserveDuration Number
    Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
    snapshotSecondaryBackupConfig Property Map
    Secondary snapshot backup configuration.

    Supporting Types

    CynosdbBackupConfigLogicBackupConfig, CynosdbBackupConfigLogicBackupConfigArgs

    LogicBackupEnable string
    Whether to enable automatic logical backup. Value: ON, OFF.
    LogicBackupTimeBeg double
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    LogicBackupTimeEnd double
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    LogicCrossRegions List<string>
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    LogicCrossRegionsEnable string
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    LogicReserveDuration double
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
    LogicBackupEnable string
    Whether to enable automatic logical backup. Value: ON, OFF.
    LogicBackupTimeBeg float64
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    LogicBackupTimeEnd float64
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    LogicCrossRegions []string
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    LogicCrossRegionsEnable string
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    LogicReserveDuration float64
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
    logicBackupEnable String
    Whether to enable automatic logical backup. Value: ON, OFF.
    logicBackupTimeBeg Double
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    logicBackupTimeEnd Double
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    logicCrossRegions List<String>
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    logicCrossRegionsEnable String
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    logicReserveDuration Double
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
    logicBackupEnable string
    Whether to enable automatic logical backup. Value: ON, OFF.
    logicBackupTimeBeg number
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    logicBackupTimeEnd number
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    logicCrossRegions string[]
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    logicCrossRegionsEnable string
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    logicReserveDuration number
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
    logic_backup_enable str
    Whether to enable automatic logical backup. Value: ON, OFF.
    logic_backup_time_beg float
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    logic_backup_time_end float
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    logic_cross_regions Sequence[str]
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    logic_cross_regions_enable str
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    logic_reserve_duration float
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
    logicBackupEnable String
    Whether to enable automatic logical backup. Value: ON, OFF.
    logicBackupTimeBeg Number
    Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
    logicBackupTimeEnd Number
    Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
    logicCrossRegions List<String>
    Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
    logicCrossRegionsEnable String
    Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
    logicReserveDuration Number
    Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.

    CynosdbBackupConfigSnapshotSecondaryBackupConfig, CynosdbBackupConfigSnapshotSecondaryBackupConfigArgs

    AutoCopyVaults List<CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault>
    Auto copy vault configuration list.
    BackupCustomAutoTime bool
    Whether to use system auto time.
    BackupIntervalTime double
    Backup interval time.
    BackupTimeBeg double
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    BackupTimeEnd double
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    BackupTriggerStrategy string
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    BackupWeekDays List<string>
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    CrossRegions List<string>
    Cross-region backup target regions.
    CrossRegionsEnable string
    Whether cross-region backup is enabled. Values: yes, no.
    ReserveDuration double
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.
    AutoCopyVaults []CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault
    Auto copy vault configuration list.
    BackupCustomAutoTime bool
    Whether to use system auto time.
    BackupIntervalTime float64
    Backup interval time.
    BackupTimeBeg float64
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    BackupTimeEnd float64
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    BackupTriggerStrategy string
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    BackupWeekDays []string
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    CrossRegions []string
    Cross-region backup target regions.
    CrossRegionsEnable string
    Whether cross-region backup is enabled. Values: yes, no.
    ReserveDuration float64
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.
    autoCopyVaults List<CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault>
    Auto copy vault configuration list.
    backupCustomAutoTime Boolean
    Whether to use system auto time.
    backupIntervalTime Double
    Backup interval time.
    backupTimeBeg Double
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTimeEnd Double
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTriggerStrategy String
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    backupWeekDays List<String>
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    crossRegions List<String>
    Cross-region backup target regions.
    crossRegionsEnable String
    Whether cross-region backup is enabled. Values: yes, no.
    reserveDuration Double
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.
    autoCopyVaults CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault[]
    Auto copy vault configuration list.
    backupCustomAutoTime boolean
    Whether to use system auto time.
    backupIntervalTime number
    Backup interval time.
    backupTimeBeg number
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTimeEnd number
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTriggerStrategy string
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    backupWeekDays string[]
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    crossRegions string[]
    Cross-region backup target regions.
    crossRegionsEnable string
    Whether cross-region backup is enabled. Values: yes, no.
    reserveDuration number
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.
    auto_copy_vaults Sequence[CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault]
    Auto copy vault configuration list.
    backup_custom_auto_time bool
    Whether to use system auto time.
    backup_interval_time float
    Backup interval time.
    backup_time_beg float
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backup_time_end float
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backup_trigger_strategy str
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    backup_week_days Sequence[str]
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    cross_regions Sequence[str]
    Cross-region backup target regions.
    cross_regions_enable str
    Whether cross-region backup is enabled. Values: yes, no.
    reserve_duration float
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.
    autoCopyVaults List<Property Map>
    Auto copy vault configuration list.
    backupCustomAutoTime Boolean
    Whether to use system auto time.
    backupIntervalTime Number
    Backup interval time.
    backupTimeBeg Number
    Backup start time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTimeEnd Number
    Backup end time. Range: [0-24*3600]. E.g. 0:00, 1:00, 2:00 are 0, 3600, 7200.
    backupTriggerStrategy String
    Backup trigger strategy. Values: periodically (periodic auto backup), frequent (high-frequency backup).
    backupWeekDays List<String>
    Backup week days array (length 7, Sunday to Saturday). Values: full, increment, none.
    crossRegions List<String>
    Cross-region backup target regions.
    crossRegionsEnable String
    Whether cross-region backup is enabled. Values: yes, no.
    reserveDuration Number
    Backup retention period in seconds. 7 days = 604800. Max: 158112000.

    CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVault, CynosdbBackupConfigSnapshotSecondaryBackupConfigAutoCopyVaultArgs

    VaultId string
    Vault ID.
    VaultRegion string
    Vault region.
    VaultId string
    Vault ID.
    VaultRegion string
    Vault region.
    vaultId String
    Vault ID.
    vaultRegion String
    Vault region.
    vaultId string
    Vault ID.
    vaultRegion string
    Vault region.
    vault_id str
    Vault ID.
    vault_region str
    Vault region.
    vaultId String
    Vault ID.
    vaultRegion String
    Vault region.

    Import

    CynosDB backup config can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cynosdbBackupConfig:CynosdbBackupConfig example cynosdbmysql-bws8h88b
    

    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.
    Viewing docs for tencentcloud 1.82.91
    published on Friday, May 1, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.