DataStoreIndex

class DataStoreIndex : KotlinCustomResource

Describes a composite index for Cloud Datastore. To get more information about Index, see:

Warning: This resource creates a Datastore Index on a project that has already enabled a Datastore-compatible database. If you haven't already enabled one, you can create a gcp.appengine.Application resource with database_type set to "CLOUD_DATASTORE_COMPATIBILITY" to do so. Your Datastore location will be the same as the App Engine location specified.

Example Usage

Datastore Index

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.datastore.DataStoreIndex;
import com.pulumi.gcp.datastore.DataStoreIndexArgs;
import com.pulumi.gcp.datastore.inputs.DataStoreIndexPropertyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new DataStoreIndex("default", DataStoreIndexArgs.builder()
.kind("foo")
.properties(
DataStoreIndexPropertyArgs.builder()
.direction("ASCENDING")
.name("property_a")
.build(),
DataStoreIndexPropertyArgs.builder()
.direction("ASCENDING")
.name("property_b")
.build())
.build());
}
}

Import

Index can be imported using any of these accepted formats

$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}

Properties

Link copied to clipboard
val ancestor: Output<String>?

Policy for including ancestors in the index. Default value is NONE. Possible values are: NONE, ALL_ANCESTORS.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val indexId: Output<String>

The index id.

Link copied to clipboard
val kind: Output<String>

The entity kind which the index applies to.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard

An ordered list of properties to index on. Structure is documented below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>