import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ServergroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#id Servergroup#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; /** * Displayed server group name * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#name Servergroup#name} */ readonly name: string; /** * * Server group policy. Available value is 'affinity' 'anti-affinity' 'soft-anti-affinity'. * * **Affinity Rule**: * * Improves performance by grouping related instances on the same physical server to enhance communication, * resource sharing, and faster interaction. * * **Soft Anti-affinity Rule**: * * Attempts to place instances belonging to the same server group on different hosts. If this is not * possible, instances will be scheduled on the maximum number of different hosts available. * * **Anti-affinity Rule**: * * Strictly isolates instances across different physical servers, minimizing simultaneous failures for * critical applications. This rule is recommended for enhanced fault tolerance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#policy Servergroup#policy} */ readonly policy: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#project_id Servergroup#project_id} */ readonly projectId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#project_name Servergroup#project_name} */ readonly projectName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#region_id Servergroup#region_id} */ readonly regionId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#region_name Servergroup#region_name} */ readonly regionName?: string; /** * instance block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#instance Servergroup#instance} */ readonly instance?: ServergroupInstance[] | cdktf.IResolvable; } export interface ServergroupInstance { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#instance_id Servergroup#instance_id} */ readonly instanceId?: string; } export declare function servergroupInstanceToTerraform(struct?: ServergroupInstance | cdktf.IResolvable): any; export declare function servergroupInstanceToHclTerraform(struct?: ServergroupInstance | cdktf.IResolvable): any; export declare class ServergroupInstanceOutputReference 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(): ServergroupInstance | cdktf.IResolvable | undefined; set internalValue(value: ServergroupInstance | cdktf.IResolvable | undefined); private _instanceId?; get instanceId(): string; set instanceId(value: string); resetInstanceId(): void; get instanceIdInput(): string; get instanceName(): any; } export declare class ServergroupInstanceList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: ServergroupInstance[] | 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): ServergroupInstanceOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup gcore_servergroup} */ export declare class Servergroup extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_servergroup"; /** * Generates CDKTF code for importing a Servergroup 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 Servergroup to import * @param importFromId The id of the existing Servergroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/servergroup#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Servergroup 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/servergroup gcore_servergroup} 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 ServergroupConfig */ constructor(scope: Construct, id: string, config: ServergroupConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _policy?; get policy(): string; set policy(value: string); get policyInput(): 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; private _instance; get instance(): ServergroupInstanceList; putInstance(value: ServergroupInstance[] | cdktf.IResolvable): void; resetInstance(): void; get instanceInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }