import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface SubnetConfig extends cdktf.TerraformMetaArguments { /** * Classless Inter-Domain Routing, can be IPv4 or IPv6. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#cidr Subnet#cidr} */ readonly cidr: string; /** * True if the network's router should get a gateway in this subnet. Must be explicitly 'false' when gateway_ip is null. Default true. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#connect_to_network_router Subnet#connect_to_network_router} */ readonly connectToNetworkRouter?: boolean | cdktf.IResolvable; /** * List of strings contains DNS addresses, e.g. 95.85.95.85. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#dns_nameservers Subnet#dns_nameservers} */ readonly dnsNameservers?: string[]; /** * Enable DHCP for this subnet. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#enable_dhcp Subnet#enable_dhcp} */ readonly enableDhcp?: boolean | cdktf.IResolvable; /** * Desired IP address of the subnet's gateway. Use `disable` value to disable gateway ip. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#gateway_ip Subnet#gateway_ip} */ readonly gatewayIp?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#id Subnet#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 subnet. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#metadata_map Subnet#metadata_map} */ readonly metadataMap?: { [key: string]: string; }; /** * Name of the subnet. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#name Subnet#name} */ readonly name: string; /** * ID of the desired network to create subnet in. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#network_id Subnet#network_id} */ readonly networkId: string; /** * ID of the desired project to create subnet 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/subnet#project_id Subnet#project_id} */ readonly projectId?: number; /** * Name of the desired project to create subnet 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/subnet#project_name Subnet#project_name} */ readonly projectName?: string; /** * ID of the desired region to create subnet 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/subnet#region_id Subnet#region_id} */ readonly regionId?: number; /** * Name of the desired region to create subnet 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/subnet#region_name Subnet#region_name} */ readonly regionName?: string; /** * host_routes block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#host_routes Subnet#host_routes} */ readonly hostRoutes?: SubnetHostRoutes[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#timeouts Subnet#timeouts} */ readonly timeouts?: SubnetTimeouts; } export interface SubnetMetadataReadOnly { } export declare function subnetMetadataReadOnlyToTerraform(struct?: SubnetMetadataReadOnly): any; export declare function subnetMetadataReadOnlyToHclTerraform(struct?: SubnetMetadataReadOnly): any; export declare class SubnetMetadataReadOnlyOutputReference 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(): SubnetMetadataReadOnly | undefined; set internalValue(value: SubnetMetadataReadOnly | undefined); get key(): any; get readOnly(): any; get value(): any; } export declare class SubnetMetadataReadOnlyList 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): SubnetMetadataReadOnlyOutputReference; } export interface SubnetHostRoutes { /** * Classless Inter-Domain Routing, can be IPv4 or IPv6. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#destination Subnet#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/subnet#nexthop Subnet#nexthop} */ readonly nexthop: string; } export declare function subnetHostRoutesToTerraform(struct?: SubnetHostRoutes | cdktf.IResolvable): any; export declare function subnetHostRoutesToHclTerraform(struct?: SubnetHostRoutes | cdktf.IResolvable): any; export declare class SubnetHostRoutesOutputReference 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(): SubnetHostRoutes | cdktf.IResolvable | undefined; set internalValue(value: SubnetHostRoutes | 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 SubnetHostRoutesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: SubnetHostRoutes[] | 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): SubnetHostRoutesOutputReference; } export interface SubnetTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#create Subnet#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#delete Subnet#delete} */ readonly delete?: string; } export declare function subnetTimeoutsToTerraform(struct?: SubnetTimeouts | cdktf.IResolvable): any; export declare function subnetTimeoutsToHclTerraform(struct?: SubnetTimeouts | cdktf.IResolvable): any; export declare class SubnetTimeoutsOutputReference 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(): SubnetTimeouts | cdktf.IResolvable | undefined; set internalValue(value: SubnetTimeouts | 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; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet gcore_subnet} */ export declare class Subnet extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_subnet"; /** * Generates CDKTF code for importing a Subnet 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 Subnet to import * @param importFromId The id of the existing Subnet that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/subnet#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Subnet 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/subnet gcore_subnet} 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 SubnetConfig */ constructor(scope: Construct, id: string, config: SubnetConfig); private _cidr?; get cidr(): string; set cidr(value: string); get cidrInput(): string; private _connectToNetworkRouter?; get connectToNetworkRouter(): boolean | cdktf.IResolvable; set connectToNetworkRouter(value: boolean | cdktf.IResolvable); resetConnectToNetworkRouter(): void; get connectToNetworkRouterInput(): any; private _dnsNameservers?; get dnsNameservers(): string[]; set dnsNameservers(value: string[]); resetDnsNameservers(): void; get dnsNameserversInput(): string[]; private _enableDhcp?; get enableDhcp(): boolean | cdktf.IResolvable; set enableDhcp(value: boolean | cdktf.IResolvable); resetEnableDhcp(): void; get enableDhcpInput(): any; private _gatewayIp?; get gatewayIp(): string; set gatewayIp(value: string); resetGatewayIp(): void; get gatewayIpInput(): 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(): SubnetMetadataReadOnlyList; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _networkId?; get networkId(): string; set networkId(value: string); get networkIdInput(): 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 _hostRoutes; get hostRoutes(): SubnetHostRoutesList; putHostRoutes(value: SubnetHostRoutes[] | cdktf.IResolvable): void; resetHostRoutes(): void; get hostRoutesInput(): any; private _timeouts; get timeouts(): SubnetTimeoutsOutputReference; putTimeouts(value: SubnetTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }