import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new backup run on demand. * Auto-naming is currently not supported for this resource. */ export declare class BackupRun extends pulumi.CustomResource { /** * Get an existing BackupRun 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): BackupRun; /** * Returns true if the given object is an instance of BackupRun. 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 BackupRun; /** * Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. */ readonly backupKind: pulumi.Output; /** * The description of this run, only applicable to on-demand backups. */ readonly description: pulumi.Output; /** * Encryption configuration specific to a backup. */ readonly diskEncryptionConfiguration: pulumi.Output; /** * Encryption status specific to a backup. */ readonly diskEncryptionStatus: pulumi.Output; /** * The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ readonly endTime: pulumi.Output; /** * The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ readonly enqueuedTime: pulumi.Output; /** * Information about why the backup operation failed. This is only present if the run has the FAILED status. */ readonly error: pulumi.Output; readonly instance: pulumi.Output; /** * This is always `sql#backupRun`. */ readonly kind: pulumi.Output; /** * Location of the backups. */ readonly location: pulumi.Output; readonly project: pulumi.Output; /** * The URI of this resource. */ readonly selfLink: pulumi.Output; /** * The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ readonly startTime: pulumi.Output; /** * The status of this run. */ readonly status: pulumi.Output; /** * Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. */ readonly timeZone: pulumi.Output; /** * The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. */ readonly type: pulumi.Output; /** * The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ readonly windowStartTime: pulumi.Output; /** * Create a BackupRun 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: BackupRunArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a BackupRun resource. */ export interface BackupRunArgs { /** * Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. */ backupKind?: pulumi.Input; /** * The description of this run, only applicable to on-demand backups. */ description?: pulumi.Input; /** * Encryption configuration specific to a backup. */ diskEncryptionConfiguration?: pulumi.Input; /** * Encryption status specific to a backup. */ diskEncryptionStatus?: pulumi.Input; /** * The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ endTime?: pulumi.Input; /** * The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ enqueuedTime?: pulumi.Input; /** * Information about why the backup operation failed. This is only present if the run has the FAILED status. */ error?: pulumi.Input; /** * The identifier for this backup run. Unique only for a specific Cloud SQL instance. */ id?: pulumi.Input; /** * Name of the database instance. */ instance: pulumi.Input; /** * This is always `sql#backupRun`. */ kind?: pulumi.Input; /** * Location of the backups. */ location?: pulumi.Input; project?: pulumi.Input; /** * The URI of this resource. */ selfLink?: pulumi.Input; /** * The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ startTime?: pulumi.Input; /** * Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. */ timeZone?: pulumi.Input; /** * The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. */ type?: pulumi.Input; /** * The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */ windowStartTime?: pulumi.Input; }