UNPKG

@cdktf/provider-upcloud

Version:

Prebuilt upcloud Provider for Terraform CDK (cdktf)

111 lines (110 loc) 5.55 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface LoadbalancerStaticBackendMemberConfig extends cdktf.TerraformMetaArguments { /** * ID of the load balancer backend to which the member is connected. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#backend LoadbalancerStaticBackendMember#backend} */ readonly backend: string; /** * Indicates if the member is enabled. Disabled members are excluded from load balancing. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#enabled LoadbalancerStaticBackendMember#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * Optional fallback IP address in case of failure on DNS resolving. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#ip LoadbalancerStaticBackendMember#ip} */ readonly ip?: string; /** * Maximum number of sessions before queueing. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#max_sessions LoadbalancerStaticBackendMember#max_sessions} */ readonly maxSessions: number; /** * The name of the member. Must be unique within within the load balancer backend. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#name LoadbalancerStaticBackendMember#name} */ readonly name: string; /** * Server port. Port is optional and can be specified in DNS SRV record. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#port LoadbalancerStaticBackendMember#port} */ readonly port?: number; /** * Weight of the member. The higher the weight, the more traffic the member receives. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#weight LoadbalancerStaticBackendMember#weight} */ readonly weight: number; } /** * Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member upcloud_loadbalancer_static_backend_member} */ export declare class LoadbalancerStaticBackendMember extends cdktf.TerraformResource { static readonly tfResourceType = "upcloud_loadbalancer_static_backend_member"; /** * Generates CDKTF code for importing a LoadbalancerStaticBackendMember 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 LoadbalancerStaticBackendMember to import * @param importFromId The id of the existing LoadbalancerStaticBackendMember that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the LoadbalancerStaticBackendMember 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/upcloudltd/upcloud/5.23.3/docs/resources/loadbalancer_static_backend_member upcloud_loadbalancer_static_backend_member} 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 LoadbalancerStaticBackendMemberConfig */ constructor(scope: Construct, id: string, config: LoadbalancerStaticBackendMemberConfig); private _backend?; get backend(): string; set backend(value: string); get backendInput(): string | undefined; private _enabled?; get enabled(): boolean | cdktf.IResolvable; set enabled(value: boolean | cdktf.IResolvable); resetEnabled(): void; get enabledInput(): boolean | cdktf.IResolvable | undefined; get id(): string; private _ip?; get ip(): string; set ip(value: string); resetIp(): void; get ipInput(): string | undefined; private _maxSessions?; get maxSessions(): number; set maxSessions(value: number); get maxSessionsInput(): number | undefined; private _name?; get name(): string; set name(value: string); get nameInput(): string | undefined; private _port?; get port(): number; set port(value: number); resetPort(): void; get portInput(): number | undefined; private _weight?; get weight(): number; set weight(value: number); get weightInput(): number | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }