import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned google.longrunning.Operation, the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with delete, then re-creating the index with create. Indexes with a single field cannot be created. */ export declare class DatabaseIndex extends pulumi.CustomResource { /** * Get an existing DatabaseIndex 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): DatabaseIndex; /** * Returns true if the given object is an instance of DatabaseIndex. 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 DatabaseIndex; /** * The collection ID to which this index applies. Required. */ readonly collectionId: pulumi.Output; /** * The fields to index. */ readonly fields: pulumi.Output; /** * The resource name of the index. Output only. */ readonly name: pulumi.Output; /** * The state of the index. Output only. */ readonly state: pulumi.Output; /** * Create a DatabaseIndex 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: DatabaseIndexArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a DatabaseIndex resource. */ export interface DatabaseIndexArgs { /** * The collection ID to which this index applies. Required. */ readonly collectionId?: pulumi.Input; readonly databasesId: pulumi.Input; /** * The fields to index. */ readonly fields?: pulumi.Input[]>; readonly indexesId: pulumi.Input; /** * The resource name of the index. Output only. */ readonly name?: pulumi.Input; readonly projectsId: pulumi.Input; /** * The state of the index. Output only. */ readonly state?: pulumi.Input; }