UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

358 lines (357 loc) 18.7 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface BigtableInstanceConfig extends cdktf.TerraformMetaArguments { /** * When the field is set to true or unset in Terraform state, a terraform apply or terraform destroy that would delete the instance will fail. When the field is set to false, deleting the instance is allowed. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#deletion_protection BigtableInstance#deletion_protection} */ readonly deletionProtection?: boolean | cdktf.IResolvable; /** * The human-readable display name of the Bigtable instance. Defaults to the instance name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#display_name BigtableInstance#display_name} */ readonly displayName?: string; /** * When deleting a BigTable instance, this boolean option will delete all backups within the instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#force_destroy BigtableInstance#force_destroy} */ readonly forceDestroy?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#id BigtableInstance#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; /** * The instance type to create. One of "DEVELOPMENT" or "PRODUCTION". Defaults to "PRODUCTION". * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#instance_type BigtableInstance#instance_type} */ readonly instanceType?: string; /** * A mapping of labels to assign to the resource. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field 'effective_labels' for all of the labels present on the resource. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#labels BigtableInstance#labels} */ readonly labels?: { [key: string]: string; }; /** * The name (also called Instance Id in the Cloud Console) of the Cloud Bigtable instance. Must be 6-33 characters and must only contain hyphens, lowercase letters and numbers. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#name BigtableInstance#name} */ readonly name: string; /** * The ID of the project in which the resource belongs. If it is not provided, the provider project is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#project BigtableInstance#project} */ readonly project?: string; /** * cluster block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#cluster BigtableInstance#cluster} */ readonly cluster?: BigtableInstanceCluster[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#timeouts BigtableInstance#timeouts} */ readonly timeouts?: BigtableInstanceTimeouts; } export interface BigtableInstanceClusterAutoscalingConfig { /** * The target CPU utilization for autoscaling. Value must be between 10 and 80. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#cpu_target BigtableInstance#cpu_target} */ readonly cpuTarget: number; /** * The maximum number of nodes for autoscaling. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#max_nodes BigtableInstance#max_nodes} */ readonly maxNodes: number; /** * The minimum number of nodes for autoscaling. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#min_nodes BigtableInstance#min_nodes} */ readonly minNodes: number; /** * The target storage utilization for autoscaling, in GB, for each node in a cluster. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16 TiB) for an HDD cluster. If not set, whatever is already set for the cluster will not change, or if the cluster is just being created, it will use the default value of 2560 for SSD clusters and 8192 for HDD clusters. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#storage_target BigtableInstance#storage_target} */ readonly storageTarget?: number; } export declare function bigtableInstanceClusterAutoscalingConfigToTerraform(struct?: BigtableInstanceClusterAutoscalingConfigOutputReference | BigtableInstanceClusterAutoscalingConfig): any; export declare function bigtableInstanceClusterAutoscalingConfigToHclTerraform(struct?: BigtableInstanceClusterAutoscalingConfigOutputReference | BigtableInstanceClusterAutoscalingConfig): any; export declare class BigtableInstanceClusterAutoscalingConfigOutputReference 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(): BigtableInstanceClusterAutoscalingConfig | undefined; set internalValue(value: BigtableInstanceClusterAutoscalingConfig | undefined); private _cpuTarget?; get cpuTarget(): number; set cpuTarget(value: number); get cpuTargetInput(): number | undefined; private _maxNodes?; get maxNodes(): number; set maxNodes(value: number); get maxNodesInput(): number | undefined; private _minNodes?; get minNodes(): number; set minNodes(value: number); get minNodesInput(): number | undefined; private _storageTarget?; get storageTarget(): number; set storageTarget(value: number); resetStorageTarget(): void; get storageTargetInput(): number | undefined; } export interface BigtableInstanceCluster { /** * The ID of the Cloud Bigtable cluster. Must be 6-30 characters and must only contain hyphens, lowercase letters and numbers. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#cluster_id BigtableInstance#cluster_id} */ readonly clusterId: string; /** * Describes the Cloud KMS encryption key that will be used to protect the destination Bigtable cluster. The requirements for this key are: 1) The Cloud Bigtable service account associated with the project that contains this cluster must be granted the cloudkms.cryptoKeyEncrypterDecrypter role on the CMEK key. 2) Only regional keys can be used and the region of the CMEK key must match the region of the cluster. 3) All clusters within an instance must use the same CMEK key. Values are of the form projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#kms_key_name BigtableInstance#kms_key_name} */ readonly kmsKeyName?: string; /** * The number of nodes in the cluster. If no value is set, Cloud Bigtable automatically allocates nodes based on your data footprint and optimized for 50% storage utilization. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#num_nodes BigtableInstance#num_nodes} */ readonly numNodes?: number; /** * The storage type to use. One of "SSD" or "HDD". Defaults to "SSD". * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#storage_type BigtableInstance#storage_type} */ readonly storageType?: string; /** * The zone to create the Cloud Bigtable cluster in. Each cluster must have a different zone in the same region. Zones that support Bigtable instances are noted on the Cloud Bigtable locations page. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#zone BigtableInstance#zone} */ readonly zone?: string; /** * autoscaling_config block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#autoscaling_config BigtableInstance#autoscaling_config} */ readonly autoscalingConfig?: BigtableInstanceClusterAutoscalingConfig; } export declare function bigtableInstanceClusterToTerraform(struct?: BigtableInstanceCluster | cdktf.IResolvable): any; export declare function bigtableInstanceClusterToHclTerraform(struct?: BigtableInstanceCluster | cdktf.IResolvable): any; export declare class BigtableInstanceClusterOutputReference 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(): BigtableInstanceCluster | cdktf.IResolvable | undefined; set internalValue(value: BigtableInstanceCluster | cdktf.IResolvable | undefined); private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string | undefined; private _kmsKeyName?; get kmsKeyName(): string; set kmsKeyName(value: string); resetKmsKeyName(): void; get kmsKeyNameInput(): string | undefined; private _numNodes?; get numNodes(): number; set numNodes(value: number); resetNumNodes(): void; get numNodesInput(): number | undefined; get state(): string; private _storageType?; get storageType(): string; set storageType(value: string); resetStorageType(): void; get storageTypeInput(): string | undefined; private _zone?; get zone(): string; set zone(value: string); resetZone(): void; get zoneInput(): string | undefined; private _autoscalingConfig; get autoscalingConfig(): BigtableInstanceClusterAutoscalingConfigOutputReference; putAutoscalingConfig(value: BigtableInstanceClusterAutoscalingConfig): void; resetAutoscalingConfig(): void; get autoscalingConfigInput(): BigtableInstanceClusterAutoscalingConfig | undefined; } export declare class BigtableInstanceClusterList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: BigtableInstanceCluster[] | 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): BigtableInstanceClusterOutputReference; } export interface BigtableInstanceTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#create BigtableInstance#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#read BigtableInstance#read} */ readonly read?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#update BigtableInstance#update} */ readonly update?: string; } export declare function bigtableInstanceTimeoutsToTerraform(struct?: BigtableInstanceTimeouts | cdktf.IResolvable): any; export declare function bigtableInstanceTimeoutsToHclTerraform(struct?: BigtableInstanceTimeouts | cdktf.IResolvable): any; export declare class BigtableInstanceTimeoutsOutputReference 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(): BigtableInstanceTimeouts | cdktf.IResolvable | undefined; set internalValue(value: BigtableInstanceTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string | undefined; private _read?; get read(): string; set read(value: string); resetRead(): void; get readInput(): string | undefined; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance google_bigtable_instance} */ export declare class BigtableInstance extends cdktf.TerraformResource { static readonly tfResourceType = "google_bigtable_instance"; /** * Generates CDKTF code for importing a BigtableInstance 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 BigtableInstance to import * @param importFromId The id of the existing BigtableInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/bigtable_instance#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the BigtableInstance 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.13.0/docs/resources/bigtable_instance google_bigtable_instance} 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 BigtableInstanceConfig */ constructor(scope: Construct, id: string, config: BigtableInstanceConfig); private _deletionProtection?; get deletionProtection(): boolean | cdktf.IResolvable; set deletionProtection(value: boolean | cdktf.IResolvable); resetDeletionProtection(): void; get deletionProtectionInput(): boolean | cdktf.IResolvable | undefined; private _displayName?; get displayName(): string; set displayName(value: string); resetDisplayName(): void; get displayNameInput(): string | undefined; private _effectiveLabels; get effectiveLabels(): cdktf.StringMap; private _forceDestroy?; get forceDestroy(): boolean | cdktf.IResolvable; set forceDestroy(value: boolean | cdktf.IResolvable); resetForceDestroy(): void; get forceDestroyInput(): boolean | cdktf.IResolvable | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _instanceType?; get instanceType(): string; set instanceType(value: string); resetInstanceType(): void; get instanceTypeInput(): string | undefined; private _labels?; get labels(): { [key: string]: string; }; set labels(value: { [key: string]: string; }); resetLabels(): void; get labelsInput(): { [key: string]: string; } | undefined; private _name?; get name(): string; set name(value: string); get nameInput(): string | undefined; private _project?; get project(): string; set project(value: string); resetProject(): void; get projectInput(): string | undefined; private _terraformLabels; get terraformLabels(): cdktf.StringMap; private _cluster; get cluster(): BigtableInstanceClusterList; putCluster(value: BigtableInstanceCluster[] | cdktf.IResolvable): void; resetCluster(): void; get clusterInput(): cdktf.IResolvable | BigtableInstanceCluster[] | undefined; private _timeouts; get timeouts(): BigtableInstanceTimeoutsOutputReference; putTimeouts(value: BigtableInstanceTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | BigtableInstanceTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }