import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface RouterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#id Router#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; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#name Router#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#project_id Router#project_id} */ readonly projectId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#project_name Router#project_name} */ readonly projectName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#region_id Router#region_id} */ readonly regionId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#region_name Router#region_name} */ readonly regionName?: string; /** * external_gateway_info block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#external_gateway_info Router#external_gateway_info} */ readonly externalGatewayInfo?: RouterExternalGatewayInfo; /** * interfaces block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#interfaces Router#interfaces} */ readonly interfaces?: RouterInterfaces[] | cdktf.IResolvable; /** * routes block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#routes Router#routes} */ readonly routes?: RouterRoutes[] | cdktf.IResolvable; } export interface RouterExternalGatewayInfoExternalFixedIps { } export declare function routerExternalGatewayInfoExternalFixedIpsToTerraform(struct?: RouterExternalGatewayInfoExternalFixedIps): any; export declare function routerExternalGatewayInfoExternalFixedIpsToHclTerraform(struct?: RouterExternalGatewayInfoExternalFixedIps): any; export declare class RouterExternalGatewayInfoExternalFixedIpsOutputReference 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(): RouterExternalGatewayInfoExternalFixedIps | undefined; set internalValue(value: RouterExternalGatewayInfoExternalFixedIps | undefined); get ipAddress(): any; get subnetId(): any; } export declare class RouterExternalGatewayInfoExternalFixedIpsList 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): RouterExternalGatewayInfoExternalFixedIpsOutputReference; } export interface RouterExternalGatewayInfo { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#enable_snat Router#enable_snat} */ readonly enableSnat?: boolean | cdktf.IResolvable; /** * Id of the external network * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#network_id Router#network_id} */ readonly networkId?: string; /** * Must be 'manual' or 'default' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#type Router#type} */ readonly type?: string; } export declare function routerExternalGatewayInfoToTerraform(struct?: RouterExternalGatewayInfoOutputReference | RouterExternalGatewayInfo): any; export declare function routerExternalGatewayInfoToHclTerraform(struct?: RouterExternalGatewayInfoOutputReference | RouterExternalGatewayInfo): any; export declare class RouterExternalGatewayInfoOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): RouterExternalGatewayInfo | undefined; set internalValue(value: RouterExternalGatewayInfo | undefined); private _enableSnat?; get enableSnat(): boolean | cdktf.IResolvable; set enableSnat(value: boolean | cdktf.IResolvable); resetEnableSnat(): void; get enableSnatInput(): any; private _externalFixedIps; get externalFixedIps(): RouterExternalGatewayInfoExternalFixedIpsList; private _networkId?; get networkId(): string; set networkId(value: string); resetNetworkId(): void; get networkIdInput(): string; private _type?; get type(): string; set type(value: string); resetType(): void; get typeInput(): string; } export interface RouterInterfaces { /** * Subnet for router interface must have a gateway IP * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#subnet_id Router#subnet_id} */ readonly subnetId: string; /** * must be 'subnet' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#type Router#type} */ readonly type: string; } export declare function routerInterfacesToTerraform(struct?: RouterInterfaces | cdktf.IResolvable): any; export declare function routerInterfacesToHclTerraform(struct?: RouterInterfaces | cdktf.IResolvable): any; export declare class RouterInterfacesOutputReference 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(): RouterInterfaces | cdktf.IResolvable | undefined; set internalValue(value: RouterInterfaces | cdktf.IResolvable | undefined); get ipAddress(): any; get macAddress(): any; get networkId(): any; get portId(): any; private _subnetId?; get subnetId(): string; set subnetId(value: string); get subnetIdInput(): string; private _type?; get type(): string; set type(value: string); get typeInput(): string; } export declare class RouterInterfacesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: RouterInterfaces[] | 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): RouterInterfacesOutputReference; } export interface RouterRoutes { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#destination Router#destination} */ readonly destination: string; /** * IPv4 address to forward traffic to if it's destination IP matches 'destination' CIDR * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#nexthop Router#nexthop} */ readonly nexthop: string; } export declare function routerRoutesToTerraform(struct?: RouterRoutes | cdktf.IResolvable): any; export declare function routerRoutesToHclTerraform(struct?: RouterRoutes | cdktf.IResolvable): any; export declare class RouterRoutesOutputReference 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(): RouterRoutes | cdktf.IResolvable | undefined; set internalValue(value: RouterRoutes | cdktf.IResolvable | undefined); private _destination?; get destination(): string; set destination(value: string); get destinationInput(): string; private _nexthop?; get nexthop(): string; set nexthop(value: string); get nexthopInput(): string; } export declare class RouterRoutesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: RouterRoutes[] | 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): RouterRoutesOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router gcore_router} */ export declare class Router extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_router"; /** * Generates CDKTF code for importing a Router 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 Router to import * @param importFromId The id of the existing Router that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/router#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Router 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/router gcore_router} 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 RouterConfig */ constructor(scope: Construct, id: string, config: RouterConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; get lastUpdated(): any; private _name?; get name(): string; set name(value: string); get nameInput(): 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 _externalGatewayInfo; get externalGatewayInfo(): RouterExternalGatewayInfoOutputReference; putExternalGatewayInfo(value: RouterExternalGatewayInfo): void; resetExternalGatewayInfo(): void; get externalGatewayInfoInput(): RouterExternalGatewayInfo; private _interfaces; get interfaces(): RouterInterfacesList; putInterfaces(value: RouterInterfaces[] | cdktf.IResolvable): void; resetInterfaces(): void; get interfacesInput(): any; private _routes; get routes(): RouterRoutesList; putRoutes(value: RouterRoutes[] | cdktf.IResolvable): void; resetRoutes(): void; get routesInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }