UNPKG

@pulumi/gcp

Version:

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

78 lines 2.85 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a list of existing Discovery Engine data stores. * See [the official documentation](https://cloud.google.com/generative-ai-app-builder/docs/manage-data-stores) * and [API](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.dataStores/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.discoveryengine.getDataStores({ * location: "global", * }); * ``` */ export declare function getDataStores(args?: GetDataStoresArgs, opts?: pulumi.InvokeOptions): Promise<GetDataStoresResult>; /** * A collection of arguments for invoking getDataStores. */ export interface GetDataStoresArgs { /** * The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to `global`. */ location?: string; /** * The ID of the project in which the resource belongs. If it is not provided, the provider project is used. */ project?: string; } /** * A collection of values returned by getDataStores. */ export interface GetDataStoresResult { /** * A list of all retrieved Discovery Engine data stores. Structure is defined below. */ readonly dataStores: outputs.discoveryengine.GetDataStoresDataStore[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly location?: string; readonly project?: string; } /** * Gets a list of existing Discovery Engine data stores. * See [the official documentation](https://cloud.google.com/generative-ai-app-builder/docs/manage-data-stores) * and [API](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.dataStores/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.discoveryengine.getDataStores({ * location: "global", * }); * ``` */ export declare function getDataStoresOutput(args?: GetDataStoresOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDataStoresResult>; /** * A collection of arguments for invoking getDataStores. */ export interface GetDataStoresOutputArgs { /** * The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to `global`. */ location?: pulumi.Input<string | undefined>; /** * The ID of the project in which the resource belongs. If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getDataStores.d.ts.map