BackupPolicy
Provides an RDS instance backup policy resource and used to configure instance backup policy.
NOTE: Each DB instance has a backup policy and it will be set default values when destroying the resource.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var creation = config.Get("creation") ?? "Rds";
var name = config.Get("name") ?? "dbbackuppolicybasic";
var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
{
AvailableResourceCreation = creation,
}));
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
{
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
{
AvailabilityZone = defaultZones.Apply(defaultZones => defaultZones.Zones[0].Id),
CidrBlock = "172.16.0.0/24",
VpcId = defaultNetwork.Id,
});
var instance = new AliCloud.Rds.Instance("instance", new AliCloud.Rds.InstanceArgs
{
Engine = "MySQL",
EngineVersion = "5.6",
InstanceName = name,
InstanceStorage = 10,
InstanceType = "rds.mysql.s1.small",
VswitchId = defaultSwitch.Id,
});
var policy = new AliCloud.Rds.BackupPolicy("policy", new AliCloud.Rds.BackupPolicyArgs
{
InstanceId = instance.Id,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
creation = config.get("creation")
if creation is None:
creation = "Rds"
name = config.get("name")
if name is None:
name = "dbbackuppolicybasic"
default_zones = alicloud.get_zones(available_resource_creation=creation)
default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
availability_zone=default_zones.zones[0]["id"],
cidr_block="172.16.0.0/24",
vpc_id=default_network.id)
instance = alicloud.rds.Instance("instance",
engine="MySQL",
engine_version="5.6",
instance_name=name,
instance_storage="10",
instance_type="rds.mysql.s1.small",
vswitch_id=default_switch.id)
policy = alicloud.rds.BackupPolicy("policy", instance_id=instance.id)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const creation = config.get("creation") || "Rds";
const name = config.get("name") || "dbbackuppolicybasic";
const defaultZones = pulumi.output(alicloud.getZones({
availableResourceCreation: creation,
}, { async: true }));
const defaultNetwork = new alicloud.vpc.Network("default", {
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
availabilityZone: defaultZones.zones[0].id,
cidrBlock: "172.16.0.0/24",
vpcId: defaultNetwork.id,
});
const instance = new alicloud.rds.Instance("instance", {
engine: "MySQL",
engineVersion: "5.6",
instanceName: name,
instanceStorage: 10,
instanceType: "rds.mysql.s1.small",
vswitchId: defaultSwitch.id,
});
const policy = new alicloud.rds.BackupPolicy("policy", {
instanceId: instance.id,
});Create a BackupPolicy Resource
new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);def BackupPolicy(resource_name, opts=None, archive_backup_keep_count=None, archive_backup_keep_policy=None, archive_backup_retention_period=None, backup_periods=None, backup_retention_period=None, backup_time=None, compress_type=None, enable_backup_log=None, high_space_usage_protection=None, instance_id=None, local_log_retention_hours=None, local_log_retention_space=None, log_backup=None, log_backup_frequency=None, log_backup_retention_period=None, log_retention_period=None, preferred_backup_periods=None, preferred_backup_time=None, retention_period=None, __props__=None);func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
BackupPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BackupPolicy resource accepts the following input properties:
- Instance
Id string The Id of instance that can run database.
- Archive
Backup intKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- Archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- Archive
Backup intRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- Backup
Periods List<string> It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- Backup
Retention intPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- Backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- Compress
Type string The compress type of instance policy. Valid values are
1,4,8.- Enable
Backup boolLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- High
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- Local
Log intRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- Local
Log intRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- Log
Backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- Log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- Log
Retention intPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- Retention
Period int It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- Instance
Id string The Id of instance that can run database.
- Archive
Backup intKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- Archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- Archive
Backup intRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- Backup
Periods []string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- Backup
Retention intPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- Backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- Compress
Type string The compress type of instance policy. Valid values are
1,4,8.- Enable
Backup boolLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- High
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- Local
Log intRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- Local
Log intRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- Log
Backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- Log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- Log
Retention intPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- Retention
Period int It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- instance
Id string The Id of instance that can run database.
- archive
Backup numberKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- archive
Backup numberRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- backup
Periods string[] It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- backup
Retention numberPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- compress
Type string The compress type of instance policy. Valid values are
1,4,8.- enable
Backup booleanLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- high
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- local
Log numberRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- local
Log numberRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- log
Backup boolean It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- log
Backup numberRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- log
Retention numberPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- retention
Period number It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- instance_
id str The Id of instance that can run database.
- archive_
backup_ floatkeep_ count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- archive_
backup_ strkeep_ policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- archive_
backup_ floatretention_ period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- backup_
periods List[str] It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- backup_
retention_ floatperiod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- backup_
time str It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- compress_
type str The compress type of instance policy. Valid values are
1,4,8.- enable_
backup_ boollog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- high_
space_ strusage_ protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- local_
log_ floatretention_ hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- local_
log_ floatretention_ space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- log_
backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- log_
backup_ strfrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- log_
backup_ floatretention_ period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- log_
retention_ floatperiod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- preferred_
backup_ List[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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- retention_
period float It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupPolicy resource produces the following output properties:
Look up an 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): BackupPolicystatic get(resource_name, id, opts=None, archive_backup_keep_count=None, archive_backup_keep_policy=None, archive_backup_retention_period=None, backup_periods=None, backup_retention_period=None, backup_time=None, compress_type=None, enable_backup_log=None, high_space_usage_protection=None, instance_id=None, local_log_retention_hours=None, local_log_retention_space=None, log_backup=None, log_backup_frequency=None, log_backup_retention_period=None, log_retention_period=None, preferred_backup_periods=None, preferred_backup_time=None, retention_period=None, __props__=None);func 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)- 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.
The following state arguments are supported:
- Archive
Backup intKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- Archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- Archive
Backup intRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- Backup
Periods List<string> It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- Backup
Retention intPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- Backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- Compress
Type string The compress type of instance policy. Valid values are
1,4,8.- Enable
Backup boolLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- High
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- Instance
Id string The Id of instance that can run database.
- Local
Log intRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- Local
Log intRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- Log
Backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- Log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- Log
Retention intPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- Retention
Period int It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- Archive
Backup intKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- Archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- Archive
Backup intRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- Backup
Periods []string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- Backup
Retention intPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- Backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- Compress
Type string The compress type of instance policy. Valid values are
1,4,8.- Enable
Backup boolLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- High
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- Instance
Id string The Id of instance that can run database.
- Local
Log intRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- Local
Log intRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- Log
Backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- Log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- Log
Backup intRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- Log
Retention intPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- Retention
Period int It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- archive
Backup numberKeep Count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- archive
Backup stringKeep Policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- archive
Backup numberRetention Period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- backup
Periods string[] It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- backup
Retention numberPeriod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- backup
Time string It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- compress
Type string The compress type of instance policy. Valid values are
1,4,8.- enable
Backup booleanLog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- high
Space stringUsage Protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- instance
Id string The Id of instance that can run database.
- local
Log numberRetention Hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- local
Log numberRetention Space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- log
Backup boolean It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- log
Backup stringFrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- log
Backup numberRetention Period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- log
Retention numberPeriod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- 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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- retention
Period number It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
- archive_
backup_ floatkeep_ count Instance archive backup keep count. Valid when the
enable_backup_logistrueand instance is mysql local disk. Whenarchive_backup_keep_policyisByMonthValid values: [1-31]. Whenarchive_backup_keep_policyisByWeekValid values: [1-7].- archive_
backup_ strkeep_ policy Instance archive backup keep policy. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values areByMonth,Disable,KeepAll.- archive_
backup_ floatretention_ period Instance archive backup retention days. Valid when the
enable_backup_logistrueand instance is mysql local disk. Valid values: [30-1095], andarchive_backup_retention_periodmust larger thanbackup_retention_period730.- backup_
periods List[str] It has been deprecated from version 1.69.0, and use field ‘preferred_backup_period’ instead.
- backup_
retention_ floatperiod Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
- backup_
time str It has been deprecated from version 1.69.0, and use field ‘preferred_backup_time’ instead.
- compress_
type str The compress type of instance policy. Valid values are
1,4,8.- enable_
backup_ boollog Whether to backup instance log. Valid values are
true,false, Default totrue. Note: The ‘Basic Edition’ category Rds instance does not support setting log backup. What is Basic Edition.- high_
space_ strusage_ protection Instance high space usage protection policy. Valid when the
enable_backup_logistrue. Valid values areEnable,Disable.- instance_
id str The Id of instance that can run database.
- local_
log_ floatretention_ hours Instance log backup local retention hours. Valid when the
enable_backup_logistrue. Valid values: [0-7*24].- local_
log_ floatretention_ space Instance log backup local retention space. Valid when the
enable_backup_logistrue. Valid values: [5-50].- log_
backup bool It has been deprecated from version 1.68.0, and use field ‘enable_backup_log’ instead.
- log_
backup_ strfrequency Instance log backup frequency. Valid when the instance engine is
SQLServer. Valid values areLogInterval.- log_
backup_ floatretention_ period Instance log backup retention days. Valid when the
enable_backup_logis1. Valid values: [7-730]. Default to 7. It cannot be larger thanbackup_retention_period.- log_
retention_ floatperiod It has been deprecated from version 1.69.0, and use field ‘log_backup_retention_period’ instead.
- preferred_
backup_ List[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]. Default to [“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. Default to “02:00Z-03:00Z”. China time is 8 hours behind it.
- retention_
period float It has been deprecated from version 1.69.0, and use field ‘backup_retention_period’ instead.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.