import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface Loadbalancerv2Config extends cdktf.TerraformMetaArguments { /** * Desired flavor to be used for load balancer. By default, `lb1-1-2` will be used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#flavor Loadbalancerv2#flavor} */ readonly flavor?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#id Loadbalancerv2#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; /** * Metadata map to apply to the load balancer. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#metadata_map Loadbalancerv2#metadata_map} */ readonly metadataMap?: { [key: string]: string; }; /** * Name of the load balancer. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#name Loadbalancerv2#name} */ readonly name: string; /** * Available values are 'L2', 'L3' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#preferred_connectivity Loadbalancerv2#preferred_connectivity} */ readonly preferredConnectivity?: string; /** * ID of the desired project to create load balancer in. Alternative for `project_name`. One of them should be specified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#project_id Loadbalancerv2#project_id} */ readonly projectId?: number; /** * Name of the desired project to create load balancer in. Alternative for `project_id`. One of them should be specified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#project_name Loadbalancerv2#project_name} */ readonly projectName?: string; /** * ID of the desired region to create load balancer in. Alternative for `region_name`. One of them should be specified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#region_id Loadbalancerv2#region_id} */ readonly regionId?: number; /** * Name of the desired region to create load balancer in. Alternative for `region_id`. One of them should be specified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#region_name Loadbalancerv2#region_name} */ readonly regionName?: string; /** * Available values are 'ipv4', 'ipv6', 'dual' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#vip_ip_family Loadbalancerv2#vip_ip_family} */ readonly vipIpFamily?: string; /** * ID of the desired network. Can be used with vip_subnet_id, in this case Load Balancer will be created in specified subnet, otherwise in most free subnet. Note: add all created `gcore_subnet` resources within the network with this id to the `depends_on` to be sure that `gcore_loadbalancerv2` will be destroyed first * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#vip_network_id Loadbalancerv2#vip_network_id} */ readonly vipNetworkId?: string; /** * Load balancer Port ID. It might be ID of the already created Reserved Fixed IP, otherwise we will create port automatically in specified `vip_network_id`/`vip_subnet_id`. It is an alternative for specifying `vip_network_id`/`vip_subnet_id`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#vip_port_id Loadbalancerv2#vip_port_id} */ readonly vipPortId?: string; /** * ID of the desired subnet. Should be used together with vip_network_id. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#vip_subnet_id Loadbalancerv2#vip_subnet_id} */ readonly vipSubnetId?: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#timeouts Loadbalancerv2#timeouts} */ readonly timeouts?: Loadbalancerv2Timeouts; } export interface Loadbalancerv2AdditionalVips { } export declare function loadbalancerv2AdditionalVipsToTerraform(struct?: Loadbalancerv2AdditionalVips): any; export declare function loadbalancerv2AdditionalVipsToHclTerraform(struct?: Loadbalancerv2AdditionalVips): any; export declare class Loadbalancerv2AdditionalVipsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): Loadbalancerv2AdditionalVips | undefined; set internalValue(value: Loadbalancerv2AdditionalVips | undefined); get ipAddress(): any; get subnetId(): any; } export declare class Loadbalancerv2AdditionalVipsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @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): Loadbalancerv2AdditionalVipsOutputReference; } export interface Loadbalancerv2MetadataReadOnly { } export declare function loadbalancerv2MetadataReadOnlyToTerraform(struct?: Loadbalancerv2MetadataReadOnly): any; export declare function loadbalancerv2MetadataReadOnlyToHclTerraform(struct?: Loadbalancerv2MetadataReadOnly): any; export declare class Loadbalancerv2MetadataReadOnlyOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): Loadbalancerv2MetadataReadOnly | undefined; set internalValue(value: Loadbalancerv2MetadataReadOnly | undefined); get key(): any; get readOnly(): any; get value(): any; } export declare class Loadbalancerv2MetadataReadOnlyList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @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): Loadbalancerv2MetadataReadOnlyOutputReference; } export interface Loadbalancerv2VrrpIps { } export declare function loadbalancerv2VrrpIpsToTerraform(struct?: Loadbalancerv2VrrpIps): any; export declare function loadbalancerv2VrrpIpsToHclTerraform(struct?: Loadbalancerv2VrrpIps): any; export declare class Loadbalancerv2VrrpIpsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): Loadbalancerv2VrrpIps | undefined; set internalValue(value: Loadbalancerv2VrrpIps | undefined); get ipAddress(): any; get subnetId(): any; } export declare class Loadbalancerv2VrrpIpsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @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): Loadbalancerv2VrrpIpsOutputReference; } export interface Loadbalancerv2Timeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#create Loadbalancerv2#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#delete Loadbalancerv2#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#update Loadbalancerv2#update} */ readonly update?: string; } export declare function loadbalancerv2TimeoutsToTerraform(struct?: Loadbalancerv2Timeouts | cdktf.IResolvable): any; export declare function loadbalancerv2TimeoutsToHclTerraform(struct?: Loadbalancerv2Timeouts | cdktf.IResolvable): any; export declare class Loadbalancerv2TimeoutsOutputReference 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(): Loadbalancerv2Timeouts | cdktf.IResolvable | undefined; set internalValue(value: Loadbalancerv2Timeouts | 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 _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2 gcore_loadbalancerv2} */ export declare class Loadbalancerv2 extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_loadbalancerv2"; /** * Generates CDKTF code for importing a Loadbalancerv2 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 Loadbalancerv2 to import * @param importFromId The id of the existing Loadbalancerv2 that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/loadbalancerv2#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Loadbalancerv2 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/g-core/gcore/0.32.5/docs/resources/loadbalancerv2 gcore_loadbalancerv2} 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 Loadbalancerv2Config */ constructor(scope: Construct, id: string, config: Loadbalancerv2Config); private _additionalVips; get additionalVips(): Loadbalancerv2AdditionalVipsList; private _flavor?; get flavor(): string; set flavor(value: string); resetFlavor(): void; get flavorInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; get lastUpdated(): any; private _metadataMap?; get metadataMap(): { [key: string]: string; }; set metadataMap(value: { [key: string]: string; }); resetMetadataMap(): void; get metadataMapInput(): { [key: string]: string; }; private _metadataReadOnly; get metadataReadOnly(): Loadbalancerv2MetadataReadOnlyList; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _preferredConnectivity?; get preferredConnectivity(): string; set preferredConnectivity(value: string); resetPreferredConnectivity(): void; get preferredConnectivityInput(): string; private _projectId?; get projectId(): number; set projectId(value: number); resetProjectId(): void; get projectIdInput(): number; private _projectName?; get projectName(): string; set projectName(value: string); resetProjectName(): void; get projectNameInput(): string; private _regionId?; get regionId(): number; set regionId(value: number); resetRegionId(): void; get regionIdInput(): number; private _regionName?; get regionName(): string; set regionName(value: string); resetRegionName(): void; get regionNameInput(): string; get vipAddress(): any; private _vipIpFamily?; get vipIpFamily(): string; set vipIpFamily(value: string); resetVipIpFamily(): void; get vipIpFamilyInput(): string; private _vipNetworkId?; get vipNetworkId(): string; set vipNetworkId(value: string); resetVipNetworkId(): void; get vipNetworkIdInput(): string; private _vipPortId?; get vipPortId(): string; set vipPortId(value: string); resetVipPortId(): void; get vipPortIdInput(): string; private _vipSubnetId?; get vipSubnetId(): string; set vipSubnetId(value: string); resetVipSubnetId(): void; get vipSubnetIdInput(): string; private _vrrpIps; get vrrpIps(): Loadbalancerv2VrrpIpsList; private _timeouts; get timeouts(): Loadbalancerv2TimeoutsOutputReference; putTimeouts(value: Loadbalancerv2Timeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }