tencentcloud.CynosdbBackupConfig
Explore with Pulumi AI
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 foo = new tencentcloud.CynosdbBackupConfig("foo", {
backupTimeBeg: 7200,
backupTimeEnd: 21600,
clusterId: "cynosdbmysql-bws8h88b",
logicBackupConfig: {
logicBackupEnable: "ON",
logicBackupTimeBeg: 7200,
logicBackupTimeEnd: 21600,
logicCrossRegions: ["ap-shanghai"],
logicCrossRegionsEnable: "ON",
logicReserveDuration: 259200,
},
reserveDuration: 604800,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CynosdbBackupConfig("foo",
backup_time_beg=7200,
backup_time_end=21600,
cluster_id="cynosdbmysql-bws8h88b",
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": 259200,
},
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 {
_, err := tencentcloud.NewCynosdbBackupConfig(ctx, "foo", &tencentcloud.CynosdbBackupConfigArgs{
BackupTimeBeg: pulumi.Float64(7200),
BackupTimeEnd: pulumi.Float64(21600),
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
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(259200),
},
ReserveDuration: 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 foo = new Tencentcloud.CynosdbBackupConfig("foo", new()
{
BackupTimeBeg = 7200,
BackupTimeEnd = 21600,
ClusterId = "cynosdbmysql-bws8h88b",
LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
{
LogicBackupEnable = "ON",
LogicBackupTimeBeg = 7200,
LogicBackupTimeEnd = 21600,
LogicCrossRegions = new[]
{
"ap-shanghai",
},
LogicCrossRegionsEnable = "ON",
LogicReserveDuration = 259200,
},
ReserveDuration = 604800,
});
});
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 foo = new CynosdbBackupConfig("foo", CynosdbBackupConfigArgs.builder()
.backupTimeBeg(7200)
.backupTimeEnd(21600)
.clusterId("cynosdbmysql-bws8h88b")
.logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
.logicBackupEnable("ON")
.logicBackupTimeBeg(7200)
.logicBackupTimeEnd(21600)
.logicCrossRegions("ap-shanghai")
.logicCrossRegionsEnable("ON")
.logicReserveDuration(259200)
.build())
.reserveDuration(604800)
.build());
}
}
resources:
foo:
type: tencentcloud:CynosdbBackupConfig
properties:
backupTimeBeg: 7200
backupTimeEnd: 21600
clusterId: cynosdbmysql-bws8h88b
logicBackupConfig:
logicBackupEnable: ON
logicBackupTimeBeg: 7200
logicBackupTimeEnd: 21600
logicCrossRegions:
- ap-shanghai
logicCrossRegionsEnable: ON
logicReserveDuration: 259200
reserveDuration: 604800
Disable logical backup configuration
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.CynosdbBackupConfig("foo", {
backupTimeBeg: 7200,
backupTimeEnd: 21600,
clusterId: "cynosdbmysql-bws8h88b",
logicBackupConfig: {
logicBackupEnable: "OFF",
},
reserveDuration: 604800,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CynosdbBackupConfig("foo",
backup_time_beg=7200,
backup_time_end=21600,
cluster_id="cynosdbmysql-bws8h88b",
logic_backup_config={
"logic_backup_enable": "OFF",
},
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 {
_, err := tencentcloud.NewCynosdbBackupConfig(ctx, "foo", &tencentcloud.CynosdbBackupConfigArgs{
BackupTimeBeg: pulumi.Float64(7200),
BackupTimeEnd: pulumi.Float64(21600),
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
LogicBackupConfig: &tencentcloud.CynosdbBackupConfigLogicBackupConfigArgs{
LogicBackupEnable: pulumi.String("OFF"),
},
ReserveDuration: 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 foo = new Tencentcloud.CynosdbBackupConfig("foo", new()
{
BackupTimeBeg = 7200,
BackupTimeEnd = 21600,
ClusterId = "cynosdbmysql-bws8h88b",
LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
{
LogicBackupEnable = "OFF",
},
ReserveDuration = 604800,
});
});
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 foo = new CynosdbBackupConfig("foo", CynosdbBackupConfigArgs.builder()
.backupTimeBeg(7200)
.backupTimeEnd(21600)
.clusterId("cynosdbmysql-bws8h88b")
.logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
.logicBackupEnable("OFF")
.build())
.reserveDuration(604800)
.build());
}
}
resources:
foo:
type: tencentcloud:CynosdbBackupConfig
properties:
backupTimeBeg: 7200
backupTimeEnd: 21600
clusterId: cynosdbmysql-bws8h88b
logicBackupConfig:
logicBackupEnable: OFF
reserveDuration: 604800
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)
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:
- Backup
Time doubleBeg - 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 doubleEnd - 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 string - Cluster ID.
- Reserve
Duration double - 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 stringConfig Id - ID of the resource.
- Logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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"]}].
- Backup
Time float64Beg - 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 float64End - 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 string - Cluster ID.
- Reserve
Duration float64 - 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 stringConfig Id - ID of the resource.
- Logic
Backup CynosdbConfig Backup Config Logic Backup Config Args - 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"]}].
- backup
Time DoubleBeg - 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 DoubleEnd - 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 String - Cluster ID.
- reserve
Duration Double - 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 StringConfig Id - ID of the resource.
- logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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"]}].
- backup
Time numberBeg - 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 numberEnd - 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 string - Cluster ID.
- reserve
Duration number - 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 stringConfig Id - ID of the resource.
- logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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"]}].
- backup_
time_ floatbeg - 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_ floatend - 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_ strconfig_ id - ID of the resource.
- logic_
backup_ Cynosdbconfig Backup Config Logic Backup Config Args - 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"]}].
- backup
Time NumberBeg - 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 NumberEnd - 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 String - Cluster ID.
- reserve
Duration Number - 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 StringConfig Id - ID of the resource.
- logic
Backup Property MapConfig - 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"]}].
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbBackupConfig resource produces the following output properties:
- Backup
Freqs 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.
- Backup
Type 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 []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.
- Backup
Type 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 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.
- backup
Type 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 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.
- backup
Type 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.
- backup
Freqs 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.
- backup
Type 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) -> 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.
- Backup
Freqs 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.
- Backup
Time doubleBeg - 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 doubleEnd - 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 string - Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
- Cluster
Id string - Cluster ID.
- Cynosdb
Backup stringConfig Id - ID of the resource.
- Logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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 double - Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
- Backup
Freqs []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.
- Backup
Time float64Beg - 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 float64End - 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 string - Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
- Cluster
Id string - Cluster ID.
- Cynosdb
Backup stringConfig Id - ID of the resource.
- Logic
Backup CynosdbConfig Backup Config Logic Backup Config Args - 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 float64 - Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
- backup
Freqs 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.
- backup
Time DoubleBeg - 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 DoubleEnd - 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 String - Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
- cluster
Id String - Cluster ID.
- cynosdb
Backup StringConfig Id - ID of the resource.
- logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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 Double - Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
- backup
Freqs 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.
- backup
Time numberBeg - 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 numberEnd - 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 string - Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
- cluster
Id string - Cluster ID.
- cynosdb
Backup stringConfig Id - ID of the resource.
- logic
Backup CynosdbConfig Backup Config Logic Backup Config - 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 number - Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
- 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_ floatbeg - 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_ floatend - 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_ strconfig_ id - ID of the resource.
- logic_
backup_ Cynosdbconfig Backup Config Logic Backup Config Args - 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.
- backup
Freqs 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.
- backup
Time NumberBeg - 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 NumberEnd - 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 String - Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
- cluster
Id String - Cluster ID.
- cynosdb
Backup StringConfig Id - ID of the resource.
- logic
Backup Property MapConfig - 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 Number - Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
Supporting Types
CynosdbBackupConfigLogicBackupConfig, CynosdbBackupConfigLogicBackupConfigArgs
- Logic
Backup stringEnable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - Logic
Backup doubleTime Beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - Logic
Backup doubleTime End - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - Logic
Cross List<string>Regions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - Logic
Cross stringRegions Enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - Logic
Reserve doubleDuration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
- Logic
Backup stringEnable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - Logic
Backup float64Time Beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - Logic
Backup float64Time End - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - Logic
Cross []stringRegions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - Logic
Cross stringRegions Enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - Logic
Reserve float64Duration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
- logic
Backup StringEnable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - logic
Backup DoubleTime Beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - logic
Backup DoubleTime End - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - logic
Cross List<String>Regions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - logic
Cross StringRegions Enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - logic
Reserve DoubleDuration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
- logic
Backup stringEnable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - logic
Backup numberTime Beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - logic
Backup numberTime End - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - logic
Cross string[]Regions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - logic
Cross stringRegions Enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - logic
Reserve numberDuration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
- logic_
backup_ strenable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - logic_
backup_ floattime_ beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - logic_
backup_ floattime_ end - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - logic_
cross_ Sequence[str]regions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - logic_
cross_ strregions_ enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - logic_
reserve_ floatduration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
- logic
Backup StringEnable - Whether to enable automatic logical backup. Value:
ON
,OFF
. - logic
Backup NumberTime Beg - Automatic logical backup start time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 2. - logic
Backup NumberTime End - Automatic logical backup end time. When
logic_backup_enable
isOFF
, it must be0
or not entered. Example value: 6. - logic
Cross List<String>Regions - Logical backup across regions. Example value: ["ap-guangzhou"]. When
logic_backup_enable
isOFF
, it must be[]
or not entered. - logic
Cross StringRegions Enable - Whether to enable cross-region logical backup. Cannot be input when
logic_backup_enable
isOFF
. Whenlogic_backup_enable
isON
,logic_cross_regions_enable
settingON
will take effect. Value:ON
,OFF
. - logic
Reserve NumberDuration - Automatic logical backup retention period. When
logic_backup_enable
isOFF
, it must be0
or not entered. Value range: [259200,158112000].logic_backup_enable
isOFF
,logic_reserve_duration
cannot be set when creating.
Import
cynosdb backup_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cynosdbBackupConfig:CynosdbBackupConfig foo 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.