@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
96 lines (95 loc) • 2.57 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* A Backup and DR Backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.backupdisasterrecovery.getBackup({
* location: "us-central1",
* project: "project-test",
* dataSourceId: "ds-test",
* backupVaultId: "bv-test",
* });
* ```
*/
export declare function getBackup(args: GetBackupArgs, opts?: pulumi.InvokeOptions): Promise<GetBackupResult>;
/**
* A collection of arguments for invoking getBackup.
*/
export interface GetBackupArgs {
/**
* The ID of the Backup Vault of the Data Source in which the Backup belongs.
*/
backupVaultId: string;
/**
* The ID of the Data Source in which the Backup belongs.
*/
dataSourceId: string;
/**
* The location in which the Backup belongs.
*/
location: string;
/**
* The Google Cloud Project in which the Backup belongs.
*/
project: string;
}
/**
* A collection of values returned by getBackup.
*/
export interface GetBackupResult {
readonly backupVaultId: string;
readonly backups: outputs.backupdisasterrecovery.GetBackupBackup[];
readonly dataSourceId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly name: string;
readonly project: string;
}
/**
* A Backup and DR Backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.backupdisasterrecovery.getBackup({
* location: "us-central1",
* project: "project-test",
* dataSourceId: "ds-test",
* backupVaultId: "bv-test",
* });
* ```
*/
export declare function getBackupOutput(args: GetBackupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBackupResult>;
/**
* A collection of arguments for invoking getBackup.
*/
export interface GetBackupOutputArgs {
/**
* The ID of the Backup Vault of the Data Source in which the Backup belongs.
*/
backupVaultId: pulumi.Input<string>;
/**
* The ID of the Data Source in which the Backup belongs.
*/
dataSourceId: pulumi.Input<string>;
/**
* The location in which the Backup belongs.
*/
location: pulumi.Input<string>;
/**
* The Google Cloud Project in which the Backup belongs.
*/
project: pulumi.Input<string>;
}