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 index 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 property cannot be created. */ export declare class Index extends pulumi.CustomResource { /** * Get an existing Index 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): Index; /** * Returns true if the given object is an instance of Index. 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 Index; /** * Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. */ readonly ancestor: pulumi.Output; /** * The resource ID of the index. */ readonly indexId: pulumi.Output; /** * Required. The entity kind to which this index applies. */ readonly kind: pulumi.Output; /** * Project ID. */ readonly projectId: pulumi.Output; /** * Required. An ordered sequence of property names and their index attributes. */ readonly properties: pulumi.Output; /** * The state of the index. */ readonly state: pulumi.Output; /** * Create a Index 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: IndexArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Index resource. */ export interface IndexArgs { /** * Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. */ readonly ancestor?: pulumi.Input; readonly indexId: pulumi.Input; /** * Required. The entity kind to which this index applies. */ readonly kind?: pulumi.Input; readonly projectId: pulumi.Input; /** * Required. An ordered sequence of property names and their index attributes. */ readonly properties?: pulumi.Input[]>; }