import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a backup schedule on a database. At most two backup schedules can be configured on a database, one daily backup schedule with retention up to 7 days and one weekly backup schedule with retention up to 14 weeks. * Auto-naming is currently not supported for this resource. */ export declare class BackupSchedule extends pulumi.CustomResource { /** * Get an existing BackupSchedule 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): BackupSchedule; /** * Returns true if the given object is an instance of BackupSchedule. 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 BackupSchedule; /** * The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time. */ readonly createTime: pulumi.Output; /** * For a schedule that runs daily at a specified time. */ readonly dailyRecurrence: pulumi.Output; readonly databaseId: pulumi.Output; /** * The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}` */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. */ readonly retention: pulumi.Output; /** * The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time. */ readonly updateTime: pulumi.Output; /** * For a schedule that runs weekly on a specific day and time. */ readonly weeklyRecurrence: pulumi.Output; /** * Create a BackupSchedule 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: BackupScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a BackupSchedule resource. */ export interface BackupScheduleArgs { /** * For a schedule that runs daily at a specified time. */ dailyRecurrence?: pulumi.Input; databaseId: pulumi.Input; project?: pulumi.Input; /** * At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. */ retention?: pulumi.Input; /** * For a schedule that runs weekly on a specific day and time. */ weeklyRecurrence?: pulumi.Input; }