import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a new backup run on demand. This method is applicable only to Second Generation instances. */ 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. Applies only to Second Generation instances. */ readonly diskEncryptionConfiguration: pulumi.Output; /** * Encryption status specific to a backup. Applies only to Second Generation instances. */ readonly diskEncryptionStatus: pulumi.Output; /** * The time the backup operation completed in UTC timezone in RFC 3339 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 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; /** * Name of the database instance. */ readonly instance: pulumi.Output; /** * This is always *sql#backupRun*. */ readonly kind: pulumi.Output; /** * Location of the backups. */ readonly location: pulumi.Output; /** * The URI of this resource. */ readonly selfLink: pulumi.Output; /** * The time the backup operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. */ readonly startTime: pulumi.Output; /** * The status of this run. */ readonly status: pulumi.Output; /** * The type of this run; can be either "AUTOMATED" or "ON_DEMAND". 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 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. */ readonly backupKind?: pulumi.Input; /** * The description of this run, only applicable to on-demand backups. */ readonly description?: pulumi.Input; /** * Encryption configuration specific to a backup. Applies only to Second Generation instances. */ readonly diskEncryptionConfiguration?: pulumi.Input; /** * Encryption status specific to a backup. Applies only to Second Generation instances. */ readonly diskEncryptionStatus?: pulumi.Input; /** * The time the backup operation completed in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. */ readonly endTime?: pulumi.Input; /** * The time the run was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. */ readonly enqueuedTime?: pulumi.Input; /** * Information about why the backup operation failed. This is only present if the run has the FAILED status. */ readonly error?: pulumi.Input; /** * The identifier for this backup run. Unique only for a specific Cloud SQL instance. */ readonly id: pulumi.Input; /** * Name of the database instance. */ readonly instance: pulumi.Input; /** * This is always *sql#backupRun*. */ readonly kind?: pulumi.Input; /** * Location of the backups. */ readonly location?: pulumi.Input; readonly project: pulumi.Input; /** * The URI of this resource. */ readonly selfLink?: pulumi.Input; /** * The time the backup operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. */ readonly startTime?: pulumi.Input; /** * The status of this run. */ readonly status?: pulumi.Input; /** * The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. */ readonly type?: pulumi.Input; /** * The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. */ readonly windowStartTime?: pulumi.Input; }