Documentation ¶
Index ¶
- type DataStoreIndex
- func (*DataStoreIndex) ElementType() reflect.Type
- func (i *DataStoreIndex) ToDataStoreIndexOutput() DataStoreIndexOutput
- func (i *DataStoreIndex) ToDataStoreIndexOutputWithContext(ctx context.Context) DataStoreIndexOutput
- func (i *DataStoreIndex) ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput
- func (i *DataStoreIndex) ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput
- type DataStoreIndexArgs
- type DataStoreIndexArray
- type DataStoreIndexArrayInput
- type DataStoreIndexArrayOutput
- func (DataStoreIndexArrayOutput) ElementType() reflect.Type
- func (o DataStoreIndexArrayOutput) Index(i pulumi.IntInput) DataStoreIndexOutput
- func (o DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutput() DataStoreIndexArrayOutput
- func (o DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutputWithContext(ctx context.Context) DataStoreIndexArrayOutput
- type DataStoreIndexInput
- type DataStoreIndexMap
- type DataStoreIndexMapInput
- type DataStoreIndexMapOutput
- func (DataStoreIndexMapOutput) ElementType() reflect.Type
- func (o DataStoreIndexMapOutput) MapIndex(k pulumi.StringInput) DataStoreIndexOutput
- func (o DataStoreIndexMapOutput) ToDataStoreIndexMapOutput() DataStoreIndexMapOutput
- func (o DataStoreIndexMapOutput) ToDataStoreIndexMapOutputWithContext(ctx context.Context) DataStoreIndexMapOutput
- type DataStoreIndexOutput
- func (DataStoreIndexOutput) ElementType() reflect.Type
- func (o DataStoreIndexOutput) ToDataStoreIndexOutput() DataStoreIndexOutput
- func (o DataStoreIndexOutput) ToDataStoreIndexOutputWithContext(ctx context.Context) DataStoreIndexOutput
- func (o DataStoreIndexOutput) ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput
- func (o DataStoreIndexOutput) ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput
- type DataStoreIndexProperty
- type DataStoreIndexPropertyArgs
- type DataStoreIndexPropertyArray
- func (DataStoreIndexPropertyArray) ElementType() reflect.Type
- func (i DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutput() DataStoreIndexPropertyArrayOutput
- func (i DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutputWithContext(ctx context.Context) DataStoreIndexPropertyArrayOutput
- type DataStoreIndexPropertyArrayInput
- type DataStoreIndexPropertyArrayOutput
- func (DataStoreIndexPropertyArrayOutput) ElementType() reflect.Type
- func (o DataStoreIndexPropertyArrayOutput) Index(i pulumi.IntInput) DataStoreIndexPropertyOutput
- func (o DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutput() DataStoreIndexPropertyArrayOutput
- func (o DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutputWithContext(ctx context.Context) DataStoreIndexPropertyArrayOutput
- type DataStoreIndexPropertyInput
- type DataStoreIndexPropertyOutput
- func (o DataStoreIndexPropertyOutput) Direction() pulumi.StringOutput
- func (DataStoreIndexPropertyOutput) ElementType() reflect.Type
- func (o DataStoreIndexPropertyOutput) Name() pulumi.StringOutput
- func (o DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutput() DataStoreIndexPropertyOutput
- func (o DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutputWithContext(ctx context.Context) DataStoreIndexPropertyOutput
- type DataStoreIndexPtrInput
- type DataStoreIndexPtrOutput
- type DataStoreIndexState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStoreIndex ¶
type DataStoreIndex struct { pulumi.CustomResourceState // Policy for including ancestors in the index. // Default value is `NONE`. // Possible values are `NONE` and `ALL_ANCESTORS`. Ancestor pulumi.StringPtrOutput `pulumi:"ancestor"` // The index id. IndexId pulumi.StringOutput `pulumi:"indexId"` // The entity kind which the index applies to. Kind pulumi.StringOutput `pulumi:"kind"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // An ordered list of properties to index on. // Structure is documented below. Properties DataStoreIndexPropertyArrayOutput `pulumi:"properties"` }
Describes a composite index for Cloud Datastore.
To get more information about Index, see:
* [API documentation](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects.indexes) * How-to Guides
- [Official Documentation](https://cloud.google.com/datastore/docs/concepts/indexes)
> **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 `appengine.Application` resource with `databaseType` 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
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/datastore" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := datastore.NewDataStoreIndex(ctx, "_default", &datastore.DataStoreIndexArgs{ Kind: pulumi.String("foo"), Properties: datastore.DataStoreIndexPropertyArray{ &datastore.DataStoreIndexPropertyArgs{ Direction: pulumi.String("ASCENDING"), Name: pulumi.String("property_a"), }, &datastore.DataStoreIndexPropertyArgs{ Direction: pulumi.String("ASCENDING"), Name: pulumi.String("property_b"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Index can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}
```
func GetDataStoreIndex ¶
func GetDataStoreIndex(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DataStoreIndexState, opts ...pulumi.ResourceOption) (*DataStoreIndex, error)
GetDataStoreIndex gets an existing DataStoreIndex resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDataStoreIndex ¶
func NewDataStoreIndex(ctx *pulumi.Context, name string, args *DataStoreIndexArgs, opts ...pulumi.ResourceOption) (*DataStoreIndex, error)
NewDataStoreIndex registers a new resource with the given unique name, arguments, and options.
func (*DataStoreIndex) ElementType ¶
func (*DataStoreIndex) ElementType() reflect.Type
func (*DataStoreIndex) ToDataStoreIndexOutput ¶
func (i *DataStoreIndex) ToDataStoreIndexOutput() DataStoreIndexOutput
func (*DataStoreIndex) ToDataStoreIndexOutputWithContext ¶
func (i *DataStoreIndex) ToDataStoreIndexOutputWithContext(ctx context.Context) DataStoreIndexOutput
func (*DataStoreIndex) ToDataStoreIndexPtrOutput ¶
func (i *DataStoreIndex) ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput
func (*DataStoreIndex) ToDataStoreIndexPtrOutputWithContext ¶
func (i *DataStoreIndex) ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput
type DataStoreIndexArgs ¶
type DataStoreIndexArgs struct { // Policy for including ancestors in the index. // Default value is `NONE`. // Possible values are `NONE` and `ALL_ANCESTORS`. Ancestor pulumi.StringPtrInput // The entity kind which the index applies to. Kind pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // An ordered list of properties to index on. // Structure is documented below. Properties DataStoreIndexPropertyArrayInput }
The set of arguments for constructing a DataStoreIndex resource.
func (DataStoreIndexArgs) ElementType ¶
func (DataStoreIndexArgs) ElementType() reflect.Type
type DataStoreIndexArray ¶
type DataStoreIndexArray []DataStoreIndexInput
func (DataStoreIndexArray) ElementType ¶
func (DataStoreIndexArray) ElementType() reflect.Type
func (DataStoreIndexArray) ToDataStoreIndexArrayOutput ¶
func (i DataStoreIndexArray) ToDataStoreIndexArrayOutput() DataStoreIndexArrayOutput
func (DataStoreIndexArray) ToDataStoreIndexArrayOutputWithContext ¶
func (i DataStoreIndexArray) ToDataStoreIndexArrayOutputWithContext(ctx context.Context) DataStoreIndexArrayOutput
type DataStoreIndexArrayInput ¶
type DataStoreIndexArrayInput interface { pulumi.Input ToDataStoreIndexArrayOutput() DataStoreIndexArrayOutput ToDataStoreIndexArrayOutputWithContext(context.Context) DataStoreIndexArrayOutput }
DataStoreIndexArrayInput is an input type that accepts DataStoreIndexArray and DataStoreIndexArrayOutput values. You can construct a concrete instance of `DataStoreIndexArrayInput` via:
DataStoreIndexArray{ DataStoreIndexArgs{...} }
type DataStoreIndexArrayOutput ¶
type DataStoreIndexArrayOutput struct{ *pulumi.OutputState }
func (DataStoreIndexArrayOutput) ElementType ¶
func (DataStoreIndexArrayOutput) ElementType() reflect.Type
func (DataStoreIndexArrayOutput) Index ¶
func (o DataStoreIndexArrayOutput) Index(i pulumi.IntInput) DataStoreIndexOutput
func (DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutput ¶
func (o DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutput() DataStoreIndexArrayOutput
func (DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutputWithContext ¶
func (o DataStoreIndexArrayOutput) ToDataStoreIndexArrayOutputWithContext(ctx context.Context) DataStoreIndexArrayOutput
type DataStoreIndexInput ¶
type DataStoreIndexInput interface { pulumi.Input ToDataStoreIndexOutput() DataStoreIndexOutput ToDataStoreIndexOutputWithContext(ctx context.Context) DataStoreIndexOutput }
type DataStoreIndexMap ¶
type DataStoreIndexMap map[string]DataStoreIndexInput
func (DataStoreIndexMap) ElementType ¶
func (DataStoreIndexMap) ElementType() reflect.Type
func (DataStoreIndexMap) ToDataStoreIndexMapOutput ¶
func (i DataStoreIndexMap) ToDataStoreIndexMapOutput() DataStoreIndexMapOutput
func (DataStoreIndexMap) ToDataStoreIndexMapOutputWithContext ¶
func (i DataStoreIndexMap) ToDataStoreIndexMapOutputWithContext(ctx context.Context) DataStoreIndexMapOutput
type DataStoreIndexMapInput ¶
type DataStoreIndexMapInput interface { pulumi.Input ToDataStoreIndexMapOutput() DataStoreIndexMapOutput ToDataStoreIndexMapOutputWithContext(context.Context) DataStoreIndexMapOutput }
DataStoreIndexMapInput is an input type that accepts DataStoreIndexMap and DataStoreIndexMapOutput values. You can construct a concrete instance of `DataStoreIndexMapInput` via:
DataStoreIndexMap{ "key": DataStoreIndexArgs{...} }
type DataStoreIndexMapOutput ¶
type DataStoreIndexMapOutput struct{ *pulumi.OutputState }
func (DataStoreIndexMapOutput) ElementType ¶
func (DataStoreIndexMapOutput) ElementType() reflect.Type
func (DataStoreIndexMapOutput) MapIndex ¶
func (o DataStoreIndexMapOutput) MapIndex(k pulumi.StringInput) DataStoreIndexOutput
func (DataStoreIndexMapOutput) ToDataStoreIndexMapOutput ¶
func (o DataStoreIndexMapOutput) ToDataStoreIndexMapOutput() DataStoreIndexMapOutput
func (DataStoreIndexMapOutput) ToDataStoreIndexMapOutputWithContext ¶
func (o DataStoreIndexMapOutput) ToDataStoreIndexMapOutputWithContext(ctx context.Context) DataStoreIndexMapOutput
type DataStoreIndexOutput ¶
type DataStoreIndexOutput struct {
*pulumi.OutputState
}
func (DataStoreIndexOutput) ElementType ¶
func (DataStoreIndexOutput) ElementType() reflect.Type
func (DataStoreIndexOutput) ToDataStoreIndexOutput ¶
func (o DataStoreIndexOutput) ToDataStoreIndexOutput() DataStoreIndexOutput
func (DataStoreIndexOutput) ToDataStoreIndexOutputWithContext ¶
func (o DataStoreIndexOutput) ToDataStoreIndexOutputWithContext(ctx context.Context) DataStoreIndexOutput
func (DataStoreIndexOutput) ToDataStoreIndexPtrOutput ¶
func (o DataStoreIndexOutput) ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput
func (DataStoreIndexOutput) ToDataStoreIndexPtrOutputWithContext ¶
func (o DataStoreIndexOutput) ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput
type DataStoreIndexProperty ¶
type DataStoreIndexPropertyArgs ¶
type DataStoreIndexPropertyArgs struct { // The direction the index should optimize for sorting. // Possible values are `ASCENDING` and `DESCENDING`. Direction pulumi.StringInput `pulumi:"direction"` // The property name to index. Name pulumi.StringInput `pulumi:"name"` }
func (DataStoreIndexPropertyArgs) ElementType ¶
func (DataStoreIndexPropertyArgs) ElementType() reflect.Type
func (DataStoreIndexPropertyArgs) ToDataStoreIndexPropertyOutput ¶
func (i DataStoreIndexPropertyArgs) ToDataStoreIndexPropertyOutput() DataStoreIndexPropertyOutput
func (DataStoreIndexPropertyArgs) ToDataStoreIndexPropertyOutputWithContext ¶
func (i DataStoreIndexPropertyArgs) ToDataStoreIndexPropertyOutputWithContext(ctx context.Context) DataStoreIndexPropertyOutput
type DataStoreIndexPropertyArray ¶
type DataStoreIndexPropertyArray []DataStoreIndexPropertyInput
func (DataStoreIndexPropertyArray) ElementType ¶
func (DataStoreIndexPropertyArray) ElementType() reflect.Type
func (DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutput ¶
func (i DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutput() DataStoreIndexPropertyArrayOutput
func (DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutputWithContext ¶
func (i DataStoreIndexPropertyArray) ToDataStoreIndexPropertyArrayOutputWithContext(ctx context.Context) DataStoreIndexPropertyArrayOutput
type DataStoreIndexPropertyArrayInput ¶
type DataStoreIndexPropertyArrayInput interface { pulumi.Input ToDataStoreIndexPropertyArrayOutput() DataStoreIndexPropertyArrayOutput ToDataStoreIndexPropertyArrayOutputWithContext(context.Context) DataStoreIndexPropertyArrayOutput }
DataStoreIndexPropertyArrayInput is an input type that accepts DataStoreIndexPropertyArray and DataStoreIndexPropertyArrayOutput values. You can construct a concrete instance of `DataStoreIndexPropertyArrayInput` via:
DataStoreIndexPropertyArray{ DataStoreIndexPropertyArgs{...} }
type DataStoreIndexPropertyArrayOutput ¶
type DataStoreIndexPropertyArrayOutput struct{ *pulumi.OutputState }
func (DataStoreIndexPropertyArrayOutput) ElementType ¶
func (DataStoreIndexPropertyArrayOutput) ElementType() reflect.Type
func (DataStoreIndexPropertyArrayOutput) Index ¶
func (o DataStoreIndexPropertyArrayOutput) Index(i pulumi.IntInput) DataStoreIndexPropertyOutput
func (DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutput ¶
func (o DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutput() DataStoreIndexPropertyArrayOutput
func (DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutputWithContext ¶
func (o DataStoreIndexPropertyArrayOutput) ToDataStoreIndexPropertyArrayOutputWithContext(ctx context.Context) DataStoreIndexPropertyArrayOutput
type DataStoreIndexPropertyInput ¶
type DataStoreIndexPropertyInput interface { pulumi.Input ToDataStoreIndexPropertyOutput() DataStoreIndexPropertyOutput ToDataStoreIndexPropertyOutputWithContext(context.Context) DataStoreIndexPropertyOutput }
DataStoreIndexPropertyInput is an input type that accepts DataStoreIndexPropertyArgs and DataStoreIndexPropertyOutput values. You can construct a concrete instance of `DataStoreIndexPropertyInput` via:
DataStoreIndexPropertyArgs{...}
type DataStoreIndexPropertyOutput ¶
type DataStoreIndexPropertyOutput struct{ *pulumi.OutputState }
func (DataStoreIndexPropertyOutput) Direction ¶
func (o DataStoreIndexPropertyOutput) Direction() pulumi.StringOutput
The direction the index should optimize for sorting. Possible values are `ASCENDING` and `DESCENDING`.
func (DataStoreIndexPropertyOutput) ElementType ¶
func (DataStoreIndexPropertyOutput) ElementType() reflect.Type
func (DataStoreIndexPropertyOutput) Name ¶
func (o DataStoreIndexPropertyOutput) Name() pulumi.StringOutput
The property name to index.
func (DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutput ¶
func (o DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutput() DataStoreIndexPropertyOutput
func (DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutputWithContext ¶
func (o DataStoreIndexPropertyOutput) ToDataStoreIndexPropertyOutputWithContext(ctx context.Context) DataStoreIndexPropertyOutput
type DataStoreIndexPtrInput ¶
type DataStoreIndexPtrInput interface { pulumi.Input ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput }
type DataStoreIndexPtrOutput ¶
type DataStoreIndexPtrOutput struct {
*pulumi.OutputState
}
func (DataStoreIndexPtrOutput) ElementType ¶
func (DataStoreIndexPtrOutput) ElementType() reflect.Type
func (DataStoreIndexPtrOutput) ToDataStoreIndexPtrOutput ¶
func (o DataStoreIndexPtrOutput) ToDataStoreIndexPtrOutput() DataStoreIndexPtrOutput
func (DataStoreIndexPtrOutput) ToDataStoreIndexPtrOutputWithContext ¶
func (o DataStoreIndexPtrOutput) ToDataStoreIndexPtrOutputWithContext(ctx context.Context) DataStoreIndexPtrOutput
type DataStoreIndexState ¶
type DataStoreIndexState struct { // Policy for including ancestors in the index. // Default value is `NONE`. // Possible values are `NONE` and `ALL_ANCESTORS`. Ancestor pulumi.StringPtrInput // The index id. IndexId pulumi.StringPtrInput // The entity kind which the index applies to. Kind pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // An ordered list of properties to index on. // Structure is documented below. Properties DataStoreIndexPropertyArrayInput }
func (DataStoreIndexState) ElementType ¶
func (DataStoreIndexState) ElementType() reflect.Type