UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

201 lines (200 loc) 9.83 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ComputeTargetPoolConfig extends cdktf.TerraformMetaArguments { /** * URL to the backup target pool. Must also set failover_ratio. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#backup_pool ComputeTargetPool#backup_pool} */ readonly backupPool?: string; /** * Textual description field. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#description ComputeTargetPool#description} */ readonly description?: string; /** * Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#failover_ratio ComputeTargetPool#failover_ratio} */ readonly failoverRatio?: number; /** * List of zero or one health check name or self_link. Only legacy google_compute_http_health_check is supported. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#health_checks ComputeTargetPool#health_checks} */ readonly healthChecks?: string[]; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#id ComputeTargetPool#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; /** * List of instances in the pool. They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the Terraform interpolators to create a dependency on the instances from the target pool. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#instances ComputeTargetPool#instances} */ readonly instances?: string[]; /** * A unique name for the resource, required by GCE. Changing this forces a new resource to be created. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#name ComputeTargetPool#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/compute_target_pool#project ComputeTargetPool#project} */ readonly project?: string; /** * Where the target pool resides. Defaults to project region. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#region ComputeTargetPool#region} */ readonly region?: string; /** * How to distribute load. Options are "NONE" (no affinity). "CLIENT_IP" (hash of the source/dest addresses / ports), and "CLIENT_IP_PROTO" also includes the protocol (default "NONE"). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#session_affinity ComputeTargetPool#session_affinity} */ readonly sessionAffinity?: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#timeouts ComputeTargetPool#timeouts} */ readonly timeouts?: ComputeTargetPoolTimeouts; } export interface ComputeTargetPoolTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#create ComputeTargetPool#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#delete ComputeTargetPool#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#update ComputeTargetPool#update} */ readonly update?: string; } export declare function computeTargetPoolTimeoutsToTerraform(struct?: ComputeTargetPoolTimeouts | cdktf.IResolvable): any; export declare function computeTargetPoolTimeoutsToHclTerraform(struct?: ComputeTargetPoolTimeouts | cdktf.IResolvable): any; export declare class ComputeTargetPoolTimeoutsOutputReference 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(): ComputeTargetPoolTimeouts | cdktf.IResolvable | undefined; set internalValue(value: ComputeTargetPoolTimeouts | 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; 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/compute_target_pool google_compute_target_pool} */ export declare class ComputeTargetPool extends cdktf.TerraformResource { static readonly tfResourceType = "google_compute_target_pool"; /** * Generates CDKTF code for importing a ComputeTargetPool 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 ComputeTargetPool to import * @param importFromId The id of the existing ComputeTargetPool that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_target_pool#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ComputeTargetPool 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/compute_target_pool google_compute_target_pool} 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 ComputeTargetPoolConfig */ constructor(scope: Construct, id: string, config: ComputeTargetPoolConfig); private _backupPool?; get backupPool(): string; set backupPool(value: string); resetBackupPool(): void; get backupPoolInput(): string | undefined; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string | undefined; private _failoverRatio?; get failoverRatio(): number; set failoverRatio(value: number); resetFailoverRatio(): void; get failoverRatioInput(): number | undefined; private _healthChecks?; get healthChecks(): string[]; set healthChecks(value: string[]); resetHealthChecks(): void; get healthChecksInput(): string[] | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _instances?; get instances(): string[]; set instances(value: string[]); resetInstances(): void; get instancesInput(): 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 _region?; get region(): string; set region(value: string); resetRegion(): void; get regionInput(): string | undefined; get selfLink(): string; private _sessionAffinity?; get sessionAffinity(): string; set sessionAffinity(value: string); resetSessionAffinity(): void; get sessionAffinityInput(): string | undefined; private _timeouts; get timeouts(): ComputeTargetPoolTimeoutsOutputReference; putTimeouts(value: ComputeTargetPoolTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | ComputeTargetPoolTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }