published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
Provides an RDS instance backup policy resource and used to configure instance backup policy, see What is DB Backup Policy.
NOTE: Each DB instance has a backup policy and it will be set default values when destroying the resource.
NOTE: Available since v1.5.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = alicloud.rds.getZones({
engine: "MySQL",
engineVersion: "5.6",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchName: name,
});
const instance = new alicloud.rds.Instance("instance", {
engine: "MySQL",
engineVersion: "5.6",
instanceType: "rds.mysql.s1.small",
instanceStorage: 10,
vswitchId: defaultSwitch.id,
instanceName: name,
});
const policy = new alicloud.rds.BackupPolicy("policy", {instanceId: instance.id});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.rds.get_zones(engine="MySQL",
engine_version="5.6")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default.zones[0].id,
vswitch_name=name)
instance = alicloud.rds.Instance("instance",
engine="MySQL",
engine_version="5.6",
instance_type="rds.mysql.s1.small",
instance_storage=10,
vswitch_id=default_switch.id,
instance_name=name)
policy = alicloud.rds.BackupPolicy("policy", instance_id=instance.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := rds.GetZones(ctx, &rds.GetZonesArgs{
Engine: pulumi.StringRef("MySQL"),
EngineVersion: pulumi.StringRef("5.6"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID().ToIDOutput().ToStringOutput(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
instance, err := rds.NewInstance(ctx, "instance", &rds.InstanceArgs{
Engine: pulumi.String("MySQL"),
EngineVersion: pulumi.String("5.6"),
InstanceType: pulumi.String("rds.mysql.s1.small"),
InstanceStorage: pulumi.Int(10),
VswitchId: defaultSwitch.ID().ToIDOutput().ToStringOutput(),
InstanceName: pulumi.String(name),
})
if err != nil {
return err
}
_, err = rds.NewBackupPolicy(ctx, "policy", &rds.BackupPolicyArgs{
InstanceId: instance.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.Rds.GetZones.Invoke(new()
{
Engine = "MySQL",
EngineVersion = "5.6",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchName = name,
});
var instance = new AliCloud.Rds.Instance("instance", new()
{
Engine = "MySQL",
EngineVersion = "5.6",
InstanceType = "rds.mysql.s1.small",
InstanceStorage = 10,
VswitchId = defaultSwitch.Id,
InstanceName = name,
});
var policy = new AliCloud.Rds.BackupPolicy("policy", new()
{
InstanceId = instance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.rds.Instance;
import com.pulumi.alicloud.rds.InstanceArgs;
import com.pulumi.alicloud.rds.BackupPolicy;
import com.pulumi.alicloud.rds.BackupPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = RdsFunctions.getZones(GetZonesArgs.builder()
.engine("MySQL")
.engineVersion("5.6")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(default_.zones()[0].id())
.vswitchName(name)
.build());
var instance = new Instance("instance", InstanceArgs.builder()
.engine("MySQL")
.engineVersion("5.6")
.instanceType("rds.mysql.s1.small")
.instanceStorage(10)
.vswitchId(defaultSwitch.id())
.instanceName(name)
.build());
var policy = new BackupPolicy("policy", BackupPolicyArgs.builder()
.instanceId(instance.id())
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${default.zones[0].id}
vswitchName: ${name}
instance:
type: alicloud:rds:Instance
properties:
engine: MySQL
engineVersion: '5.6'
instanceType: rds.mysql.s1.small
instanceStorage: '10'
vswitchId: ${defaultSwitch.id}
instanceName: ${name}
policy:
type: alicloud:rds:BackupPolicy
properties:
instanceId: ${instance.id}
variables:
default:
fn::invoke:
function: alicloud:rds:getZones
arguments:
engine: MySQL
engineVersion: '5.6'
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_rds_getzones" "default" {
engine = "MySQL"
engine_version = "5.6"
}
resource "alicloud_vpc_network" "default" {
vpc_name = var.name
cidr_block = "172.16.0.0/16"
}
resource "alicloud_vpc_switch" "default" {
vpc_id = alicloud_vpc_network.default.id
cidr_block = "172.16.0.0/24"
zone_id = data.alicloud_rds_getzones.default.zones[0].id
vswitch_name = var.name
}
resource "alicloud_rds_instance" "instance" {
engine = "MySQL"
engine_version = "5.6"
instance_type = "rds.mysql.s1.small"
instance_storage = "10"
vswitch_id = alicloud_vpc_switch.default.id
instance_name = var.name
}
resource "alicloud_rds_backuppolicy" "policy" {
instance_id = alicloud_rds_instance.instance.id
}
variable "name" {
type = string
default = "tf-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create BackupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);@overload
def BackupPolicy(resource_name: str,
args: BackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
high_space_usage_protection: Optional[str] = None,
preferred_backup_time: Optional[str] = None,
backup_interval: Optional[str] = None,
backup_method: Optional[str] = None,
backup_periods: Optional[Sequence[str]] = None,
backup_priority: Optional[int] = None,
backup_retention_period: Optional[int] = None,
backup_time: Optional[str] = None,
category: Optional[str] = None,
compress_type: Optional[str] = None,
enable_backup_log: Optional[bool] = None,
inc_backup_interval: Optional[int] = None,
archive_backup_retention_period: Optional[int] = None,
enable_pitr_protection: Optional[bool] = None,
enable_increment_data_backup: Optional[bool] = None,
archive_backup_keep_policy: Optional[str] = None,
local_log_retention_hours: Optional[int] = None,
local_log_retention_space: Optional[int] = None,
log_backup: Optional[bool] = None,
log_backup_frequency: Optional[str] = None,
log_backup_local_retention_number: Optional[int] = None,
log_backup_retention_period: Optional[int] = None,
log_retention_period: Optional[int] = None,
preferred_backup_periods: Optional[Sequence[str]] = None,
archive_backup_keep_count: Optional[int] = None,
released_keep_policy: Optional[str] = None,
retention_period: Optional[int] = None)func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
public BackupPolicy(String name, BackupPolicyArgs args)
public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
type: alicloud:rds:BackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_rds_backup_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BackupPolicyArgs
- 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 BackupPolicyArgs
- 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 BackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplebackupPolicyResourceResourceFromRdsbackupPolicy = new AliCloud.Rds.BackupPolicy("examplebackupPolicyResourceResourceFromRdsbackupPolicy", new()
{
InstanceId = "string",
HighSpaceUsageProtection = "string",
PreferredBackupTime = "string",
BackupInterval = "string",
BackupMethod = "string",
BackupPriority = 0,
BackupRetentionPeriod = 0,
Category = "string",
CompressType = "string",
EnableBackupLog = false,
IncBackupInterval = 0,
ArchiveBackupRetentionPeriod = 0,
EnablePitrProtection = false,
EnableIncrementDataBackup = false,
ArchiveBackupKeepPolicy = "string",
LocalLogRetentionHours = 0,
LocalLogRetentionSpace = 0,
LogBackupFrequency = "string",
LogBackupLocalRetentionNumber = 0,
LogBackupRetentionPeriod = 0,
PreferredBackupPeriods = new[]
{
"string",
},
ArchiveBackupKeepCount = 0,
ReleasedKeepPolicy = "string",
});
example, err := rds.NewBackupPolicy(ctx, "examplebackupPolicyResourceResourceFromRdsbackupPolicy", &rds.BackupPolicyArgs{
InstanceId: pulumi.String("string"),
HighSpaceUsageProtection: pulumi.String("string"),
PreferredBackupTime: pulumi.String("string"),
BackupInterval: pulumi.String("string"),
BackupMethod: pulumi.String("string"),
BackupPriority: pulumi.Int(0),
BackupRetentionPeriod: pulumi.Int(0),
Category: pulumi.String("string"),
CompressType: pulumi.String("string"),
EnableBackupLog: pulumi.Bool(false),
IncBackupInterval: pulumi.Int(0),
ArchiveBackupRetentionPeriod: pulumi.Int(0),
EnablePitrProtection: pulumi.Bool(false),
EnableIncrementDataBackup: pulumi.Bool(false),
ArchiveBackupKeepPolicy: pulumi.String("string"),
LocalLogRetentionHours: pulumi.Int(0),
LocalLogRetentionSpace: pulumi.Int(0),
LogBackupFrequency: pulumi.String("string"),
LogBackupLocalRetentionNumber: pulumi.Int(0),
LogBackupRetentionPeriod: pulumi.Int(0),
PreferredBackupPeriods: pulumi.StringArray{
pulumi.String("string"),
},
ArchiveBackupKeepCount: pulumi.Int(0),
ReleasedKeepPolicy: pulumi.String("string"),
})
resource "alicloud_rds_backup_policy" "examplebackupPolicyResourceResourceFromRdsbackupPolicy" {
lifecycle {
create_before_destroy = true
}
instance_id = "string"
high_space_usage_protection = "string"
preferred_backup_time = "string"
backup_interval = "string"
backup_method = "string"
backup_priority = 0
backup_retention_period = 0
category = "string"
compress_type = "string"
enable_backup_log = false
inc_backup_interval = 0
archive_backup_retention_period = 0
enable_pitr_protection = false
enable_increment_data_backup = false
archive_backup_keep_policy = "string"
local_log_retention_hours = 0
local_log_retention_space = 0
log_backup_frequency = "string"
log_backup_local_retention_number = 0
log_backup_retention_period = 0
preferred_backup_periods = ["string"]
archive_backup_keep_count = 0
released_keep_policy = "string"
}
var examplebackupPolicyResourceResourceFromRdsbackupPolicy = new com.pulumi.alicloud.rds.BackupPolicy("examplebackupPolicyResourceResourceFromRdsbackupPolicy", com.pulumi.alicloud.rds.BackupPolicyArgs.builder()
.instanceId("string")
.highSpaceUsageProtection("string")
.preferredBackupTime("string")
.backupInterval("string")
.backupMethod("string")
.backupPriority(0)
.backupRetentionPeriod(0)
.category("string")
.compressType("string")
.enableBackupLog(false)
.incBackupInterval(0)
.archiveBackupRetentionPeriod(0)
.enablePitrProtection(false)
.enableIncrementDataBackup(false)
.archiveBackupKeepPolicy("string")
.localLogRetentionHours(0)
.localLogRetentionSpace(0)
.logBackupFrequency("string")
.logBackupLocalRetentionNumber(0)
.logBackupRetentionPeriod(0)
.preferredBackupPeriods("string")
.archiveBackupKeepCount(0)
.releasedKeepPolicy("string")
.build());
examplebackup_policy_resource_resource_from_rdsbackup_policy = alicloud.rds.BackupPolicy("examplebackupPolicyResourceResourceFromRdsbackupPolicy",
instance_id="string",
high_space_usage_protection="string",
preferred_backup_time="string",
backup_interval="string",
backup_method="string",
backup_priority=0,
backup_retention_period=0,
category="string",
compress_type="string",
enable_backup_log=False,
inc_backup_interval=0,
archive_backup_retention_period=0,
enable_pitr_protection=False,
enable_increment_data_backup=False,
archive_backup_keep_policy="string",
local_log_retention_hours=0,
local_log_retention_space=0,
log_backup_frequency="string",
log_backup_local_retention_number=0,
log_backup_retention_period=0,
preferred_backup_periods=["string"],
archive_backup_keep_count=0,
released_keep_policy="string")
const examplebackupPolicyResourceResourceFromRdsbackupPolicy = new alicloud.rds.BackupPolicy("examplebackupPolicyResourceResourceFromRdsbackupPolicy", {
instanceId: "string",
highSpaceUsageProtection: "string",
preferredBackupTime: "string",
backupInterval: "string",
backupMethod: "string",
backupPriority: 0,
backupRetentionPeriod: 0,
category: "string",
compressType: "string",
enableBackupLog: false,
incBackupInterval: 0,
archiveBackupRetentionPeriod: 0,
enablePitrProtection: false,
enableIncrementDataBackup: false,
archiveBackupKeepPolicy: "string",
localLogRetentionHours: 0,
localLogRetentionSpace: 0,
logBackupFrequency: "string",
logBackupLocalRetentionNumber: 0,
logBackupRetentionPeriod: 0,
preferredBackupPeriods: ["string"],
archiveBackupKeepCount: 0,
releasedKeepPolicy: "string",
});
type: alicloud:rds:BackupPolicy
properties:
archiveBackupKeepCount: 0
archiveBackupKeepPolicy: string
archiveBackupRetentionPeriod: 0
backupInterval: string
backupMethod: string
backupPriority: 0
backupRetentionPeriod: 0
category: string
compressType: string
enableBackupLog: false
enableIncrementDataBackup: false
enablePitrProtection: false
highSpaceUsageProtection: string
incBackupInterval: 0
instanceId: string
localLogRetentionHours: 0
localLogRetentionSpace: 0
logBackupFrequency: string
logBackupLocalRetentionNumber: 0
logBackupRetentionPeriod: 0
preferredBackupPeriods:
- string
preferredBackupTime: string
releasedKeepPolicy: string
BackupPolicy 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 BackupPolicy resource accepts the following input properties:
- Instance
Id string - The ID of the instance that can run database.
- Archive
Backup intKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - Archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - Archive
Backup intRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - Backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- Backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- Backup
Periods List<string> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - Backup
Priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- Backup
Retention intPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - Backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - Category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- Compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - Enable
Backup boolLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - Enable
Increment boolData Backup - Specifies whether to enable incremental backup. Valid values:
- Enable
Pitr boolProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - High
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - Inc
Backup intInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - Local
Log intRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - Local
Log intRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - Log
Backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - Log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - Log
Backup intLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- Log
Retention intPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - Preferred
Backup List<string>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - Preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - Released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- Retention
Period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- Instance
Id string - The ID of the instance that can run database.
- Archive
Backup intKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - Archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - Archive
Backup intRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - Backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- Backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- Backup
Periods []string - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - Backup
Priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- Backup
Retention intPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - Backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - Category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- Compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - Enable
Backup boolLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - Enable
Increment boolData Backup - Specifies whether to enable incremental backup. Valid values:
- Enable
Pitr boolProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - High
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - Inc
Backup intInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - Local
Log intRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - Local
Log intRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - Log
Backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - Log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - Log
Backup intLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- Log
Retention intPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - Preferred
Backup []stringPeriods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - Preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - Released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- Retention
Period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- instance_
id string - The ID of the instance that can run database.
- archive_
backup_ numberkeep_ count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive_
backup_ stringkeep_ policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive_
backup_ numberretention_ period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup_
interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup_
method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup_
periods list(string) - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup_
priority number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup_
retention_ numberperiod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup_
time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress_
type string - The compress type of instance policy. Valid values:
1,4,8. - enable_
backup_ boollog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable_
increment_ booldata_ backup - Specifies whether to enable incremental backup. Valid values:
- enable_
pitr_ boolprotection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high_
space_ stringusage_ protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc_
backup_ numberinterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - local_
log_ numberretention_ hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local_
log_ numberretention_ space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log_
backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log_
backup_ stringfrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log_
backup_ numberlocal_ retention_ number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log_
backup_ numberretention_ period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log_
retention_ numberperiod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred_
backup_ list(string)periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred_
backup_ stringtime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released_
keep_ stringpolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention_
period number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- instance
Id String - The ID of the instance that can run database.
- archive
Backup IntegerKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup StringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup IntegerRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval String - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method String The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods List<String> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority Integer - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention IntegerPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time String - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category String
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type String - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup BooleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment BooleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr BooleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space StringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup IntegerInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - local
Log IntegerRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log IntegerRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup Boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup StringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup IntegerLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup IntegerRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention IntegerPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup List<String>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup StringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep StringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period Integer - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- instance
Id string - The ID of the instance that can run database.
- archive
Backup numberKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup numberRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods string[] - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention numberPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup booleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment booleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr booleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup numberInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - local
Log numberRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log numberRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup numberLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup numberRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention numberPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup string[]Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- instance_
id str - The ID of the instance that can run database.
- archive_
backup_ intkeep_ count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive_
backup_ strkeep_ policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive_
backup_ intretention_ period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup_
interval str - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup_
method str The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup_
periods Sequence[str] - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup_
priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup_
retention_ intperiod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup_
time str - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category str
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress_
type str - The compress type of instance policy. Valid values:
1,4,8. - enable_
backup_ boollog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable_
increment_ booldata_ backup - Specifies whether to enable incremental backup. Valid values:
- enable_
pitr_ boolprotection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high_
space_ strusage_ protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc_
backup_ intinterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - local_
log_ intretention_ hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local_
log_ intretention_ space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log_
backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log_
backup_ strfrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log_
backup_ intlocal_ retention_ number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log_
backup_ intretention_ period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log_
retention_ intperiod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred_
backup_ Sequence[str]periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred_
backup_ strtime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released_
keep_ strpolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention_
period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- instance
Id String - The ID of the instance that can run database.
- archive
Backup NumberKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup StringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup NumberRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval String - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method String The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods List<String> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority Number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention NumberPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time String - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category String
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type String - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup BooleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment BooleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr BooleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space StringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup NumberInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - local
Log NumberRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log NumberRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup Boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup StringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup NumberLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup NumberRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention NumberPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup List<String>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup StringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep StringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period Number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BackupPolicy Resource
Get an existing BackupPolicy 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?: BackupPolicyState, opts?: CustomResourceOptions): BackupPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
archive_backup_keep_count: Optional[int] = None,
archive_backup_keep_policy: Optional[str] = None,
archive_backup_retention_period: Optional[int] = None,
backup_interval: Optional[str] = None,
backup_method: Optional[str] = None,
backup_periods: Optional[Sequence[str]] = None,
backup_priority: Optional[int] = None,
backup_retention_period: Optional[int] = None,
backup_time: Optional[str] = None,
category: Optional[str] = None,
compress_type: Optional[str] = None,
enable_backup_log: Optional[bool] = None,
enable_increment_data_backup: Optional[bool] = None,
enable_pitr_protection: Optional[bool] = None,
high_space_usage_protection: Optional[str] = None,
inc_backup_interval: Optional[int] = None,
instance_id: Optional[str] = None,
local_log_retention_hours: Optional[int] = None,
local_log_retention_space: Optional[int] = None,
log_backup: Optional[bool] = None,
log_backup_frequency: Optional[str] = None,
log_backup_local_retention_number: Optional[int] = None,
log_backup_retention_period: Optional[int] = None,
log_retention_period: Optional[int] = None,
preferred_backup_periods: Optional[Sequence[str]] = None,
preferred_backup_time: Optional[str] = None,
released_keep_policy: Optional[str] = None,
retention_period: Optional[int] = None) -> BackupPolicyfunc GetBackupPolicy(ctx *Context, name string, id IDInput, state *BackupPolicyState, opts ...ResourceOption) (*BackupPolicy, error)public static BackupPolicy Get(string name, Input<string> id, BackupPolicyState? state, CustomResourceOptions? opts = null)public static BackupPolicy get(String name, Output<String> id, BackupPolicyState state, CustomResourceOptions options)resources: _: type: alicloud:rds:BackupPolicy get: id: ${id}import {
to = alicloud_rds_backup_policy.example
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.
- Archive
Backup intKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - Archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - Archive
Backup intRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - Backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- Backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- Backup
Periods List<string> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - Backup
Priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- Backup
Retention intPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - Backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - Category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- Compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - Enable
Backup boolLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - Enable
Increment boolData Backup - Specifies whether to enable incremental backup. Valid values:
- Enable
Pitr boolProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - High
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - Inc
Backup intInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - Instance
Id string - The ID of the instance that can run database.
- Local
Log intRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - Local
Log intRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - Log
Backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - Log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - Log
Backup intLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- Log
Retention intPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - Preferred
Backup List<string>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - Preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - Released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- Retention
Period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- Archive
Backup intKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - Archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - Archive
Backup intRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - Backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- Backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- Backup
Periods []string - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - Backup
Priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- Backup
Retention intPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - Backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - Category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- Compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - Enable
Backup boolLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - Enable
Increment boolData Backup - Specifies whether to enable incremental backup. Valid values:
- Enable
Pitr boolProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - High
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - Inc
Backup intInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - Instance
Id string - The ID of the instance that can run database.
- Local
Log intRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - Local
Log intRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - Log
Backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - Log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - Log
Backup intLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- Log
Retention intPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - Preferred
Backup []stringPeriods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - Preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - Released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- Retention
Period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- archive_
backup_ numberkeep_ count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive_
backup_ stringkeep_ policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive_
backup_ numberretention_ period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup_
interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup_
method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup_
periods list(string) - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup_
priority number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup_
retention_ numberperiod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup_
time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress_
type string - The compress type of instance policy. Valid values:
1,4,8. - enable_
backup_ boollog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable_
increment_ booldata_ backup - Specifies whether to enable incremental backup. Valid values:
- enable_
pitr_ boolprotection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high_
space_ stringusage_ protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc_
backup_ numberinterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - instance_
id string - The ID of the instance that can run database.
- local_
log_ numberretention_ hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local_
log_ numberretention_ space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log_
backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log_
backup_ stringfrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log_
backup_ numberlocal_ retention_ number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log_
backup_ numberretention_ period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log_
retention_ numberperiod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred_
backup_ list(string)periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred_
backup_ stringtime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released_
keep_ stringpolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention_
period number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- archive
Backup IntegerKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup StringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup IntegerRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval String - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method String The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods List<String> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority Integer - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention IntegerPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time String - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category String
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type String - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup BooleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment BooleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr BooleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space StringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup IntegerInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - instance
Id String - The ID of the instance that can run database.
- local
Log IntegerRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log IntegerRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup Boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup StringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup IntegerLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup IntegerRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention IntegerPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup List<String>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup StringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep StringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period Integer - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- archive
Backup numberKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup stringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup numberRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval string - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method string The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods string[] - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention numberPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time string - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category string
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type string - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup booleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment booleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr booleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space stringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup numberInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - instance
Id string - The ID of the instance that can run database.
- local
Log numberRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log numberRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup stringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup numberLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup numberRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention numberPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup string[]Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup stringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep stringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- archive_
backup_ intkeep_ count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive_
backup_ strkeep_ policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive_
backup_ intretention_ period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup_
interval str - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup_
method str The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup_
periods Sequence[str] - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup_
priority int - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup_
retention_ intperiod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup_
time str - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category str
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress_
type str - The compress type of instance policy. Valid values:
1,4,8. - enable_
backup_ boollog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable_
increment_ booldata_ backup - Specifies whether to enable incremental backup. Valid values:
- enable_
pitr_ boolprotection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high_
space_ strusage_ protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc_
backup_ intinterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - instance_
id str - The ID of the instance that can run database.
- local_
log_ intretention_ hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local_
log_ intretention_ space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log_
backup bool - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log_
backup_ strfrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log_
backup_ intlocal_ retention_ number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log_
backup_ intretention_ period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log_
retention_ intperiod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred_
backup_ Sequence[str]periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred_
backup_ strtime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released_
keep_ strpolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention_
period int - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
- archive
Backup NumberKeep Count - Instance archive backup keep count. Valid when the
enableBackupLogistrueand instance is MySQL local disk. WhenarchiveBackupKeepPolicyisByMonth, valid values:1-31. WhenarchiveBackupKeepPolicyisByWeek, valid values:1-7. - archive
Backup StringKeep Policy - Instance archive backup keep policy. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:ByMonth,ByWeek,KeepAll. - archive
Backup NumberRetention Period - Instance archive backup retention days. Valid when the
enableBackupLogistrueand instance is MySQL local disk. Valid values:30-1095, andarchiveBackupRetentionPeriodmust larger thanbackupRetentionPeriod730. - backup
Interval String - The frequency at which you want to perform a snapshot backup on the instance. Valid values:
-1: No backup frequencies are specified.
- backup
Method String The backup method of the instance. Valid values:
Physical: physical backupSnapshot: snapshot backup
NOTE: This parameter takes effect only on instances that run SQL Server with cloud disks. This parameter takes effect only when BackupPolicyMode is set to DataBackupPolicy.
NOTE: Currently, the SQLServer instance does not support to modify
logBackupRetentionPeriod.- backup
Periods List<String> - It has been deprecated from version 1.69.0, and use field
preferredBackupPeriodinstead. - backup
Priority Number - Specifies whether the backup settings of a secondary instance are configured. Valid values:
- backup
Retention NumberPeriod - Instance backup retention days. Valid values:
7-730. Defaults to7. But MySQL local disk is unlimited. - backup
Time String - It has been deprecated from version 1.69.0, and use field
preferredBackupTimeinstead. - category String
Whether to enable second level backup. Valid values:
Flash,Standard. Note: It only takes effect when the BackupPolicyMode parameter is DataBackupPolicy.NOTE: You can configure a backup policy by using this parameter and the PreferredBackupPeriod parameter. For example, if you set the PreferredBackupPeriod parameter to Saturday,Sunday and the BackupInterval parameter to -1, a snapshot backup is performed on every Saturday and Sunday.If the instance runs PostgreSQL, the BackupInterval parameter is supported only when the instance is equipped with standard SSDs or enhanced SSDs (ESSDs).This parameter takes effect only when you set the BackupPolicyMode parameter to DataBackupPolicy.
- compress
Type String - The compress type of instance policy. Valid values:
1,4,8. - enable
Backup BooleanLog - Whether to backup instance log. Valid values:
true,false. Defaults totrue. Note: TheBasic Editioncategory RDS instance does not support setting log backup. What is Basic Edition. - enable
Increment BooleanData Backup - Specifies whether to enable incremental backup. Valid values:
- enable
Pitr BooleanProtection - Specifies whether to enable PITR (Point-in-Time Recovery) on the MySQL instance. Valid values:
true,false. This parameter takes effect only whenenableBackupLogistrueand BackupPolicyMode is set to DataBackupPolicy. - high
Space StringUsage Protection - Instance high space usage protection policy. Valid when the
enableBackupLogistrue. Valid values:Enable,Disable. Defaults toEnable. - inc
Backup NumberInterval - The frequency at which you want to perform incremental backup on the MySQL instance. Valid when the
enableIncrementDataBackupistrueand instance is MySQL local disk. Valid values:60,120,240,360,720. - instance
Id String - The ID of the instance that can run database.
- local
Log NumberRetention Hours - Instance log backup local retention hours. Valid when the
enableBackupLogistrue. Valid values:0-168. - local
Log NumberRetention Space - Instance log backup local retention space. Valid when the
enableBackupLogistrue. Valid values:0-50. - log
Backup Boolean - It has been deprecated from version 1.68.0, and use field
enableBackupLoginstead. - log
Backup StringFrequency - Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values:LogInterval. - log
Backup NumberLocal Retention Number The number of binary log files that you want to retain on the instance. Defaults to
60. Valid values:6-100.NOTE: This parameter takes effect only when you set the BackupPolicyMode parameter to LogBackupPolicy. If the instance runs MySQL, you can set this parameter to -1. The value -1 specifies that an unlimited number of binary log files can be retained on the instance.
- log
Backup NumberRetention Period Instance log backup retention days. Valid when the
enableBackupLogistrue. Valid values:7-730. Defaults to7. It cannot be larger thanbackupRetentionPeriod.NOTE: A value larger than
backupRetentionPeriodis not rejected with an error. Instead, wheneverlogBackupRetentionPeriodis created or changed, the provider replaces the configured value withbackupRetentionPeriodin the API request. For example, withbackupRetentionPeriod = 7andlogBackupRetentionPeriod = 30, the request carries 7 and the refreshed state records 7, while the configuration still asks for 30. As a result,pulumi upreports success without applying 30, and every laterpulumi previewshows the same pending change for this attribute. To avoid this, setlogBackupRetentionPeriodto a value less than or equal tobackupRetentionPeriod.- log
Retention NumberPeriod - It has been deprecated from version 1.69.0, and use field
logBackupRetentionPeriodinstead. - preferred
Backup List<String>Periods - DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday. - preferred
Backup StringTime - DB instance backup time, in the format of
HH:mmZ-HH:mmZ. Time setting interval is one hour. Defaults to02:00Z-03:00Z. China time is 8 hours behind it. - released
Keep StringPolicy - The policy based on which ApsaraDB RDS retains archived backup files if the instance is released. Defaults to
None. Valid values:None: No archived backup files are retained.Lastest: Only the most recent archived backup file is retained.All: All archived backup files are retained.
- retention
Period Number - It has been deprecated from version 1.69.0, and use field
backupRetentionPeriodinstead.
Import
RDS backup policy can be imported using the id or instance id, e.g.
$ pulumi import alicloud:rds/backupPolicy:BackupPolicy example "rm-12345678"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Monday, Aug 24, 2026 by Pulumi