import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets details of a single Backup. */ export declare function getBackup(args: GetBackupArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetBackupArgs { backupId: string; location: string; project?: string; } export interface GetBackupResult { /** * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ readonly annotations: { [key: string]: string; }; /** * The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). */ readonly clusterName: string; /** * The system-generated UID of the cluster which was used to create this resource. */ readonly clusterUid: string; /** * Create time stamp */ readonly createTime: string; /** * The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version. */ readonly databaseVersion: string; /** * Delete time stamp */ readonly deleteTime: string; /** * User-provided description of the backup. */ readonly description: string; /** * User-settable and human-readable display name for the Backup. */ readonly displayName: string; /** * Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data. */ readonly encryptionConfig: outputs.alloydb.v1alpha.EncryptionConfigResponse; /** * The encryption information for the backup. */ readonly encryptionInfo: outputs.alloydb.v1alpha.EncryptionInfoResponse; /** * For Resource freshness validation (https://google.aip.dev/154) */ readonly etag: string; /** * The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. */ readonly expiryQuantity: outputs.alloydb.v1alpha.QuantityBasedExpiryResponse; /** * The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time. */ readonly expiryTime: string; /** * Labels as key value pairs */ readonly labels: { [key: string]: string; }; /** * The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region} */ readonly name: string; /** * Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance. */ readonly reconciling: boolean; /** * Reserved for future use. */ readonly satisfiesPzs: boolean; /** * The size of the backup in bytes. */ readonly sizeBytes: string; /** * The current state of the backup. */ readonly state: string; /** * The backup type, which suggests the trigger for the backup. */ readonly type: string; /** * The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ readonly uid: string; /** * Update time stamp */ readonly updateTime: string; } /** * Gets details of a single Backup. */ export declare function getBackupOutput(args: GetBackupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetBackupOutputArgs { backupId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }