import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface NlbServiceConfig extends cdktf.TerraformMetaArguments { /** * A free-form text describing the NLB service. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#description NlbService#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#id NlbService#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 [exoscale_instance_pool](./instance_pool.md) (ID) to forward traffic to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#instance_pool_id NlbService#instance_pool_id} */ readonly instancePoolId: string; /** * The NLB service name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#name NlbService#name} */ readonly name: string; /** * ❗ The parent [exoscale_nlb](./nlb.md) ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#nlb_id NlbService#nlb_id} */ readonly nlbId: string; /** * The healthcheck port. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#port NlbService#port} */ readonly port: number; /** * The protocol (`tcp`|`udp`; default: `tcp`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#protocol NlbService#protocol} */ readonly protocol?: string; /** * The strategy (`round-robin`|`source-hash`; default: `round-robin`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#strategy NlbService#strategy} */ readonly strategy?: string; /** * The (TCP/UDP) port to forward traffic to (on target instance pool members). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#target_port NlbService#target_port} */ readonly targetPort: number; /** * ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#zone NlbService#zone} */ readonly zone: string; /** * healthcheck block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#healthcheck NlbService#healthcheck} */ readonly healthcheck: NlbServiceHealthcheck[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#timeouts NlbService#timeouts} */ readonly timeouts?: NlbServiceTimeouts; } export interface NlbServiceHealthcheck { /** * The healthcheck interval in seconds (default: `10`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#interval NlbService#interval} */ readonly interval?: number; /** * The healthcheck mode (`tcp`|`http`|`https`; default: `tcp`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#mode NlbService#mode} */ readonly mode?: string; /** * The NLB service (TCP/UDP) port. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#port NlbService#port} */ readonly port: number; /** * The healthcheck retries (default: `1`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#retries NlbService#retries} */ readonly retries?: number; /** * The healthcheck timeout (seconds; default: `5`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#timeout NlbService#timeout} */ readonly timeout?: number; /** * The healthcheck TLS SNI server name (only if `mode` is `https`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#tls_sni NlbService#tls_sni} */ readonly tlsSni?: string; /** * The healthcheck URI (must be set only if `mode` is `http(s)`). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#uri NlbService#uri} */ readonly uri?: string; } export declare function nlbServiceHealthcheckToTerraform(struct?: NlbServiceHealthcheck | cdktf.IResolvable): any; export declare function nlbServiceHealthcheckToHclTerraform(struct?: NlbServiceHealthcheck | cdktf.IResolvable): any; export declare class NlbServiceHealthcheckOutputReference 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(): NlbServiceHealthcheck | cdktf.IResolvable | undefined; set internalValue(value: NlbServiceHealthcheck | cdktf.IResolvable | undefined); private _interval?; get interval(): number; set interval(value: number); resetInterval(): void; get intervalInput(): number; private _mode?; get mode(): string; set mode(value: string); resetMode(): void; get modeInput(): string; private _port?; get port(): number; set port(value: number); get portInput(): number; private _retries?; get retries(): number; set retries(value: number); resetRetries(): void; get retriesInput(): number; private _timeout?; get timeout(): number; set timeout(value: number); resetTimeout(): void; get timeoutInput(): number; private _tlsSni?; get tlsSni(): string; set tlsSni(value: string); resetTlsSni(): void; get tlsSniInput(): string; private _uri?; get uri(): string; set uri(value: string); resetUri(): void; get uriInput(): string; } export declare class NlbServiceHealthcheckList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: NlbServiceHealthcheck[] | 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): NlbServiceHealthcheckOutputReference; } export interface NlbServiceTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#create NlbService#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#delete NlbService#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#read NlbService#read} */ readonly read?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#update NlbService#update} */ readonly update?: string; } export declare function nlbServiceTimeoutsToTerraform(struct?: NlbServiceTimeouts | cdktf.IResolvable): any; export declare function nlbServiceTimeoutsToHclTerraform(struct?: NlbServiceTimeouts | cdktf.IResolvable): any; export declare class NlbServiceTimeoutsOutputReference 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(): NlbServiceTimeouts | cdktf.IResolvable | undefined; set internalValue(value: NlbServiceTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _read?; get read(): string; set read(value: string); resetRead(): void; get readInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service exoscale_nlb_service} */ export declare class NlbService extends cdktf.TerraformResource { static readonly tfResourceType = "exoscale_nlb_service"; /** * Generates CDKTF code for importing a NlbService resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the NlbService to import * @param importFromId The id of the existing NlbService that should be imported. Refer to the {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the NlbService to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/nlb_service exoscale_nlb_service} 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 NlbServiceConfig */ constructor(scope: Construct, id: string, config: NlbServiceConfig); private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _instancePoolId?; get instancePoolId(): string; set instancePoolId(value: string); get instancePoolIdInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _nlbId?; get nlbId(): string; set nlbId(value: string); get nlbIdInput(): string; private _port?; get port(): number; set port(value: number); get portInput(): number; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string; get state(): any; private _strategy?; get strategy(): string; set strategy(value: string); resetStrategy(): void; get strategyInput(): string; private _targetPort?; get targetPort(): number; set targetPort(value: number); get targetPortInput(): number; private _zone?; get zone(): string; set zone(value: string); get zoneInput(): string; private _healthcheck; get healthcheck(): NlbServiceHealthcheckList; putHealthcheck(value: NlbServiceHealthcheck[] | cdktf.IResolvable): void; get healthcheckInput(): any; private _timeouts; get timeouts(): NlbServiceTimeoutsOutputReference; putTimeouts(value: NlbServiceTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }