import * as pulumi from "@pulumi/pulumi"; /** * The backup policy defines information such as backup cycle and backup type. Subsequently, backup plans associate the backup policy with backup storage space to achieve automatic backup * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@pulumi/volcenginecc"; * * const cBRBackupPolicyDemo = new volcenginecc.index.CbrBackuppolicy("CBRBackupPolicyDemo", { * backupType: "INCREMENTAL", * crontab: "0 2,1,0 * * 1,2", * enablePolicy: false, * name: "CBRBackupPolicyDemo", * retentionDay: 67, * retentionNumMax: -1, * retentionNumMin: 2, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:cbr/backupPolicy:BackupPolicy example "policy_id" * ``` */ export declare class BackupPolicy extends pulumi.CustomResource { /** * Get an existing BackupPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: BackupPolicyState, opts?: pulumi.CustomResourceOptions): BackupPolicy; /** * Returns true if the given object is an instance of BackupPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is BackupPolicy; /** * Account ID that created this policy */ readonly accountId: pulumi.Output; /** * Backup type. Values are as follows: FULL: full backup; INCREMENTAL: incremental backup */ readonly backupType: pulumi.Output; /** * Creation time */ readonly createdTime: pulumi.Output; /** * Backup cycle, using a crontab expression */ readonly crontab: pulumi.Output; /** * Whether the policy is enabled. Values are as follows: true: policy enabled; false: policy disabled */ readonly enablePolicy: pulumi.Output; /** * Policy Name */ readonly name: pulumi.Output; /** * Number of backup plans associated with this policy */ readonly planNumber: pulumi.Output; /** * Backup Policy ID */ readonly policyId: pulumi.Output; /** * Restore point retention period. -1 means retain indefinitely. Other valid values range from [1, 999999] */ readonly retentionDay: pulumi.Output; /** * Maximum number of restore points retained */ readonly retentionNumMax: pulumi.Output; /** * Minimum restore point retention limit */ readonly retentionNumMin: pulumi.Output; /** * Update time */ readonly updatedTime: pulumi.Output; /** * Create a BackupPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BackupPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackupPolicy resources. */ export interface BackupPolicyState { /** * Account ID that created this policy */ accountId?: pulumi.Input; /** * Backup type. Values are as follows: FULL: full backup; INCREMENTAL: incremental backup */ backupType?: pulumi.Input; /** * Creation time */ createdTime?: pulumi.Input; /** * Backup cycle, using a crontab expression */ crontab?: pulumi.Input; /** * Whether the policy is enabled. Values are as follows: true: policy enabled; false: policy disabled */ enablePolicy?: pulumi.Input; /** * Policy Name */ name?: pulumi.Input; /** * Number of backup plans associated with this policy */ planNumber?: pulumi.Input; /** * Backup Policy ID */ policyId?: pulumi.Input; /** * Restore point retention period. -1 means retain indefinitely. Other valid values range from [1, 999999] */ retentionDay?: pulumi.Input; /** * Maximum number of restore points retained */ retentionNumMax?: pulumi.Input; /** * Minimum restore point retention limit */ retentionNumMin?: pulumi.Input; /** * Update time */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a BackupPolicy resource. */ export interface BackupPolicyArgs { /** * Backup type. Values are as follows: FULL: full backup; INCREMENTAL: incremental backup */ backupType: pulumi.Input; /** * Backup cycle, using a crontab expression */ crontab: pulumi.Input; /** * Whether the policy is enabled. Values are as follows: true: policy enabled; false: policy disabled */ enablePolicy: pulumi.Input; /** * Policy Name */ name: pulumi.Input; /** * Restore point retention period. -1 means retain indefinitely. Other valid values range from [1, 999999] */ retentionDay: pulumi.Input; /** * Maximum number of restore points retained */ retentionNumMax: pulumi.Input; /** * Minimum restore point retention limit */ retentionNumMin: pulumi.Input; }