Provides a resource to manage rds postgresql backup policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const example = new volcengine.rds_postgresql.BackupPolicy("example", {
backupRetentionPeriod: 7,
dataIncrBackupPeriods: "Tuesday,Sunday",
fullBackupPeriod: "Monday,Wednesday,Friday",
fullBackupTime: "18:00Z-19:00Z",
hourlyIncrBackupEnable: true,
incrementBackupFrequency: 12,
instanceId: "postgres-72715e0d9f58",
walLogSpaceLimitEnable: false,
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.rds_postgresql.BackupPolicy("example",
backup_retention_period=7,
data_incr_backup_periods="Tuesday,Sunday",
full_backup_period="Monday,Wednesday,Friday",
full_backup_time="18:00Z-19:00Z",
hourly_incr_backup_enable=True,
increment_backup_frequency=12,
instance_id="postgres-72715e0d9f58",
wal_log_space_limit_enable=False)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.NewBackupPolicy(ctx, "example", &rds_postgresql.BackupPolicyArgs{
BackupRetentionPeriod: pulumi.Int(7),
DataIncrBackupPeriods: pulumi.String("Tuesday,Sunday"),
FullBackupPeriod: pulumi.String("Monday,Wednesday,Friday"),
FullBackupTime: pulumi.String("18:00Z-19:00Z"),
HourlyIncrBackupEnable: pulumi.Bool(true),
IncrementBackupFrequency: pulumi.Int(12),
InstanceId: pulumi.String("postgres-72715e0d9f58"),
WalLogSpaceLimitEnable: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = new Volcengine.Rds_postgresql.BackupPolicy("example", new()
{
BackupRetentionPeriod = 7,
DataIncrBackupPeriods = "Tuesday,Sunday",
FullBackupPeriod = "Monday,Wednesday,Friday",
FullBackupTime = "18:00Z-19:00Z",
HourlyIncrBackupEnable = true,
IncrementBackupFrequency = 12,
InstanceId = "postgres-72715e0d9f58",
WalLogSpaceLimitEnable = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.BackupPolicy;
import com.pulumi.volcengine.rds_postgresql.BackupPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new BackupPolicy("example", BackupPolicyArgs.builder()
.backupRetentionPeriod(7)
.dataIncrBackupPeriods("Tuesday,Sunday")
.fullBackupPeriod("Monday,Wednesday,Friday")
.fullBackupTime("18:00Z-19:00Z")
.hourlyIncrBackupEnable(true)
.incrementBackupFrequency(12)
.instanceId("postgres-72715e0d9f58")
.walLogSpaceLimitEnable(false)
.build());
}
}
resources:
example:
type: volcengine:rds_postgresql:BackupPolicy
properties:
backupRetentionPeriod: 7
dataIncrBackupPeriods: Tuesday,Sunday
fullBackupPeriod: Monday,Wednesday,Friday
fullBackupTime: 18:00Z-19:00Z
hourlyIncrBackupEnable: true
incrementBackupFrequency: 12
instanceId: postgres-72715e0d9f58
walLogSpaceLimitEnable: false
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,
backup_retention_period: Optional[int] = None,
data_incr_backup_periods: Optional[str] = None,
full_backup_period: Optional[str] = None,
full_backup_time: Optional[str] = None,
hourly_incr_backup_enable: Optional[bool] = None,
increment_backup_frequency: Optional[int] = None,
wal_log_space_limit_enable: Optional[bool] = 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: volcengine:rds_postgresql:BackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args 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 volcengineBackupPolicyResource = new Volcengine.Rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", new()
{
InstanceId = "string",
BackupRetentionPeriod = 0,
DataIncrBackupPeriods = "string",
FullBackupPeriod = "string",
FullBackupTime = "string",
HourlyIncrBackupEnable = false,
IncrementBackupFrequency = 0,
WalLogSpaceLimitEnable = false,
});
example, err := rds_postgresql.NewBackupPolicy(ctx, "volcengineBackupPolicyResource", &rds_postgresql.BackupPolicyArgs{
InstanceId: pulumi.String("string"),
BackupRetentionPeriod: pulumi.Int(0),
DataIncrBackupPeriods: pulumi.String("string"),
FullBackupPeriod: pulumi.String("string"),
FullBackupTime: pulumi.String("string"),
HourlyIncrBackupEnable: pulumi.Bool(false),
IncrementBackupFrequency: pulumi.Int(0),
WalLogSpaceLimitEnable: pulumi.Bool(false),
})
var volcengineBackupPolicyResource = new com.pulumi.volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", com.pulumi.volcengine.rds_postgresql.BackupPolicyArgs.builder()
.instanceId("string")
.backupRetentionPeriod(0)
.dataIncrBackupPeriods("string")
.fullBackupPeriod("string")
.fullBackupTime("string")
.hourlyIncrBackupEnable(false)
.incrementBackupFrequency(0)
.walLogSpaceLimitEnable(false)
.build());
volcengine_backup_policy_resource = volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource",
instance_id="string",
backup_retention_period=0,
data_incr_backup_periods="string",
full_backup_period="string",
full_backup_time="string",
hourly_incr_backup_enable=False,
increment_backup_frequency=0,
wal_log_space_limit_enable=False)
const volcengineBackupPolicyResource = new volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", {
instanceId: "string",
backupRetentionPeriod: 0,
dataIncrBackupPeriods: "string",
fullBackupPeriod: "string",
fullBackupTime: "string",
hourlyIncrBackupEnable: false,
incrementBackupFrequency: 0,
walLogSpaceLimitEnable: false,
});
type: volcengine:rds_postgresql:BackupPolicy
properties:
backupRetentionPeriod: 0
dataIncrBackupPeriods: string
fullBackupPeriod: string
fullBackupTime: string
hourlyIncrBackupEnable: false
incrementBackupFrequency: 0
instanceId: string
walLogSpaceLimitEnable: false
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 PostgreSQL instance.
- Backup
Retention intPeriod - The number of days to retain backups, with a value range of 7 to 365.
- Data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- Full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- Full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- Hourly
Incr boolBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- Increment
Backup intFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- Wal
Log boolSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- Instance
Id string - The id of the PostgreSQL instance.
- Backup
Retention intPeriod - The number of days to retain backups, with a value range of 7 to 365.
- Data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- Full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- Full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- Hourly
Incr boolBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- Increment
Backup intFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- Wal
Log boolSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- instance
Id String - The id of the PostgreSQL instance.
- backup
Retention IntegerPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr StringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup StringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup StringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr BooleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup IntegerFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- wal
Log BooleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- instance
Id string - The id of the PostgreSQL instance.
- backup
Retention numberPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr booleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup numberFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- wal
Log booleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- instance_
id str - The id of the PostgreSQL instance.
- backup_
retention_ intperiod - The number of days to retain backups, with a value range of 7 to 365.
- data_
incr_ strbackup_ periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full_
backup_ strperiod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full_
backup_ strtime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly_
incr_ boolbackup_ enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment_
backup_ intfrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- wal_
log_ boolspace_ limit_ enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- instance
Id String - The id of the PostgreSQL instance.
- backup
Retention NumberPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr StringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup StringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup StringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr BooleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup NumberFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- wal
Log BooleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
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 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,
backup_retention_period: Optional[int] = None,
data_incr_backup_periods: Optional[str] = None,
full_backup_period: Optional[str] = None,
full_backup_time: Optional[str] = None,
hourly_incr_backup_enable: Optional[bool] = None,
increment_backup_frequency: Optional[int] = None,
instance_id: Optional[str] = None,
wal_log_space_limit_enable: Optional[bool] = 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: volcengine:rds_postgresql:BackupPolicy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Retention intPeriod - The number of days to retain backups, with a value range of 7 to 365.
- Data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- Full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- Full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- Hourly
Incr boolBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- Increment
Backup intFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- Instance
Id string - The id of the PostgreSQL instance.
- Wal
Log boolSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- Backup
Retention intPeriod - The number of days to retain backups, with a value range of 7 to 365.
- Data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- Full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- Full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- Hourly
Incr boolBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- Increment
Backup intFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- Instance
Id string - The id of the PostgreSQL instance.
- Wal
Log boolSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- backup
Retention IntegerPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr StringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup StringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup StringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr BooleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup IntegerFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- instance
Id String - The id of the PostgreSQL instance.
- wal
Log BooleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- backup
Retention numberPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr stringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup stringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup stringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr booleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup numberFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- instance
Id string - The id of the PostgreSQL instance.
- wal
Log booleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- backup_
retention_ intperiod - The number of days to retain backups, with a value range of 7 to 365.
- data_
incr_ strbackup_ periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full_
backup_ strperiod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full_
backup_ strtime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly_
incr_ boolbackup_ enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment_
backup_ intfrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- instance_
id str - The id of the PostgreSQL instance.
- wal_
log_ boolspace_ limit_ enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
- backup
Retention NumberPeriod - The number of days to retain backups, with a value range of 7 to 365.
- data
Incr StringBackup Periods - The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
- full
Backup StringPeriod - Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
- full
Backup StringTime - The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
- hourly
Incr BooleanBackup Enable - Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
- increment
Backup NumberFrequency - The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
- instance
Id String - The id of the PostgreSQL instance.
- wal
Log BooleanSpace Limit Enable - Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
Import
RdsPostgresqlBackupPolicy can be imported using the id, e.g.
$ pulumi import volcengine:rds_postgresql/backupPolicy:BackupPolicy default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
