UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

308 lines (307 loc) 15.8 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface FirestoreIndexConfig extends cdktf.TerraformMetaArguments { /** * The API scope at which a query is run. Default value: "ANY_API" Possible values: ["ANY_API", "DATASTORE_MODE_API", "MONGODB_COMPATIBLE_API"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#api_scope FirestoreIndex#api_scope} */ readonly apiScope?: string; /** * The collection being indexed. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#collection FirestoreIndex#collection} */ readonly collection: string; /** * The Firestore database id. Defaults to '"(default)"'. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#database FirestoreIndex#database} */ readonly database?: string; /** * The density configuration for this index. Possible values: ["SPARSE_ALL", "SPARSE_ANY", "DENSE"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#density FirestoreIndex#density} */ readonly density?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#id FirestoreIndex#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Optional. Whether the index is multikey. By default, the index is not multikey. For non-multikey indexes, none of the paths in the index definition reach or traverse an array, except via an explicit array index. For multikey indexes, at most one of the paths in the index definition reach or traverse an array, except via an explicit array index. Violations will result in errors. Note this field only applies to indexes with MONGODB_COMPATIBLE_API ApiScope. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#multikey FirestoreIndex#multikey} */ readonly multikey?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#project FirestoreIndex#project} */ readonly project?: string; /** * The scope at which a query is run. Default value: "COLLECTION" Possible values: ["COLLECTION", "COLLECTION_GROUP", "COLLECTION_RECURSIVE"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#query_scope FirestoreIndex#query_scope} */ readonly queryScope?: string; /** * fields block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#fields FirestoreIndex#fields} */ readonly fields: FirestoreIndexFields[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#timeouts FirestoreIndex#timeouts} */ readonly timeouts?: FirestoreIndexTimeouts; } export interface FirestoreIndexFieldsVectorConfigFlat { } export declare function firestoreIndexFieldsVectorConfigFlatToTerraform(struct?: FirestoreIndexFieldsVectorConfigFlatOutputReference | FirestoreIndexFieldsVectorConfigFlat): any; export declare function firestoreIndexFieldsVectorConfigFlatToHclTerraform(struct?: FirestoreIndexFieldsVectorConfigFlatOutputReference | FirestoreIndexFieldsVectorConfigFlat): any; export declare class FirestoreIndexFieldsVectorConfigFlatOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): FirestoreIndexFieldsVectorConfigFlat | undefined; set internalValue(value: FirestoreIndexFieldsVectorConfigFlat | undefined); } export interface FirestoreIndexFieldsVectorConfig { /** * The resulting index will only include vectors of this dimension, and can be used for vector search * with the same dimension. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#dimension FirestoreIndex#dimension} */ readonly dimension?: number; /** * flat block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#flat FirestoreIndex#flat} */ readonly flat?: FirestoreIndexFieldsVectorConfigFlat; } export declare function firestoreIndexFieldsVectorConfigToTerraform(struct?: FirestoreIndexFieldsVectorConfigOutputReference | FirestoreIndexFieldsVectorConfig): any; export declare function firestoreIndexFieldsVectorConfigToHclTerraform(struct?: FirestoreIndexFieldsVectorConfigOutputReference | FirestoreIndexFieldsVectorConfig): any; export declare class FirestoreIndexFieldsVectorConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): FirestoreIndexFieldsVectorConfig | undefined; set internalValue(value: FirestoreIndexFieldsVectorConfig | undefined); private _dimension?; get dimension(): number; set dimension(value: number); resetDimension(): void; get dimensionInput(): number | undefined; private _flat; get flat(): FirestoreIndexFieldsVectorConfigFlatOutputReference; putFlat(value: FirestoreIndexFieldsVectorConfigFlat): void; resetFlat(): void; get flatInput(): FirestoreIndexFieldsVectorConfigFlat | undefined; } export interface FirestoreIndexFields { /** * Indicates that this field supports operations on arrayValues. Only one of 'order', 'arrayConfig', and * 'vectorConfig' can be specified. Possible values: ["CONTAINS"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#array_config FirestoreIndex#array_config} */ readonly arrayConfig?: string; /** * Name of the field. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#field_path FirestoreIndex#field_path} */ readonly fieldPath?: string; /** * Indicates that this field supports ordering by the specified order or comparing using =, <, <=, >, >=. * Only one of 'order', 'arrayConfig', and 'vectorConfig' can be specified. Possible values: ["ASCENDING", "DESCENDING"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#order FirestoreIndex#order} */ readonly order?: string; /** * vector_config block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#vector_config FirestoreIndex#vector_config} */ readonly vectorConfig?: FirestoreIndexFieldsVectorConfig; } export declare function firestoreIndexFieldsToTerraform(struct?: FirestoreIndexFields | cdktf.IResolvable): any; export declare function firestoreIndexFieldsToHclTerraform(struct?: FirestoreIndexFields | cdktf.IResolvable): any; export declare class FirestoreIndexFieldsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): FirestoreIndexFields | cdktf.IResolvable | undefined; set internalValue(value: FirestoreIndexFields | cdktf.IResolvable | undefined); private _arrayConfig?; get arrayConfig(): string; set arrayConfig(value: string); resetArrayConfig(): void; get arrayConfigInput(): string | undefined; private _fieldPath?; get fieldPath(): string; set fieldPath(value: string); resetFieldPath(): void; get fieldPathInput(): string | undefined; private _order?; get order(): string; set order(value: string); resetOrder(): void; get orderInput(): string | undefined; private _vectorConfig; get vectorConfig(): FirestoreIndexFieldsVectorConfigOutputReference; putVectorConfig(value: FirestoreIndexFieldsVectorConfig): void; resetVectorConfig(): void; get vectorConfigInput(): FirestoreIndexFieldsVectorConfig | undefined; } export declare class FirestoreIndexFieldsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: FirestoreIndexFields[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): FirestoreIndexFieldsOutputReference; } export interface FirestoreIndexTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#create FirestoreIndex#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#delete FirestoreIndex#delete} */ readonly delete?: string; } export declare function firestoreIndexTimeoutsToTerraform(struct?: FirestoreIndexTimeouts | cdktf.IResolvable): any; export declare function firestoreIndexTimeoutsToHclTerraform(struct?: FirestoreIndexTimeouts | cdktf.IResolvable): any; export declare class FirestoreIndexTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): FirestoreIndexTimeouts | cdktf.IResolvable | undefined; set internalValue(value: FirestoreIndexTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string | undefined; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index google_firestore_index} */ export declare class FirestoreIndex extends cdktf.TerraformResource { static readonly tfResourceType = "google_firestore_index"; /** * Generates CDKTF code for importing a FirestoreIndex resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the FirestoreIndex to import * @param importFromId The id of the existing FirestoreIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the FirestoreIndex to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource; /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/firestore_index google_firestore_index} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options FirestoreIndexConfig */ constructor(scope: Construct, id: string, config: FirestoreIndexConfig); private _apiScope?; get apiScope(): string; set apiScope(value: string); resetApiScope(): void; get apiScopeInput(): string | undefined; private _collection?; get collection(): string; set collection(value: string); get collectionInput(): string | undefined; private _database?; get database(): string; set database(value: string); resetDatabase(): void; get databaseInput(): string | undefined; private _density?; get density(): string; set density(value: string); resetDensity(): void; get densityInput(): string | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _multikey?; get multikey(): boolean | cdktf.IResolvable; set multikey(value: boolean | cdktf.IResolvable); resetMultikey(): void; get multikeyInput(): boolean | cdktf.IResolvable | undefined; get name(): string; private _project?; get project(): string; set project(value: string); resetProject(): void; get projectInput(): string | undefined; private _queryScope?; get queryScope(): string; set queryScope(value: string); resetQueryScope(): void; get queryScopeInput(): string | undefined; private _fields; get fields(): FirestoreIndexFieldsList; putFields(value: FirestoreIndexFields[] | cdktf.IResolvable): void; get fieldsInput(): cdktf.IResolvable | FirestoreIndexFields[] | undefined; private _timeouts; get timeouts(): FirestoreIndexTimeoutsOutputReference; putTimeouts(value: FirestoreIndexTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | FirestoreIndexTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }