UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

108 lines 3.14 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * A Backup and DR Data Sources. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.backupdisasterrecovery.getDataSources({ * location: "us-central1", * project: "project-test", * backupVaultId: "bv-test", * }); * ``` */ export declare function getDataSources(args: GetDataSourcesArgs, opts?: pulumi.InvokeOptions): Promise<GetDataSourcesResult>; /** * A collection of arguments for invoking getDataSources. */ export interface GetDataSourcesArgs { /** * The ID of the Backup Vault in which the Data Source belongs. */ backupVaultId: string; /** * An expression to filter the results. For example, data_source_gcp_resource.type="compute.googleapis.com/Instance" */ filter?: string; /** * The location in which the Data Source belongs. */ location: string; /** * An expression to order the results. For example, createTime desc */ orderBy?: string; /** * The Google Cloud Project in which the Data Source belongs. */ project?: string; } /** * A collection of values returned by getDataSources. */ export interface GetDataSourcesResult { readonly backupVaultId: string; /** * A list of Data Sources matching the criteria. */ readonly dataSources: outputs.backupdisasterrecovery.GetDataSourcesDataSource[]; readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The location of the GCP resource. */ readonly location: string; readonly orderBy?: string; readonly project: string; } /** * A Backup and DR Data Sources. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.backupdisasterrecovery.getDataSources({ * location: "us-central1", * project: "project-test", * backupVaultId: "bv-test", * }); * ``` */ export declare function getDataSourcesOutput(args: GetDataSourcesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDataSourcesResult>; /** * A collection of arguments for invoking getDataSources. */ export interface GetDataSourcesOutputArgs { /** * The ID of the Backup Vault in which the Data Source belongs. */ backupVaultId: pulumi.Input<string>; /** * An expression to filter the results. For example, data_source_gcp_resource.type="compute.googleapis.com/Instance" */ filter?: pulumi.Input<string | undefined>; /** * The location in which the Data Source belongs. */ location: pulumi.Input<string>; /** * An expression to order the results. For example, createTime desc */ orderBy?: pulumi.Input<string | undefined>; /** * The Google Cloud Project in which the Data Source belongs. */ project?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getDataSources.d.ts.map