@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
212 lines (211 loc) • 11.2 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface ComputeRouterInterfaceConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#id ComputeRouterInterface#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 name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of interconnect_attachment, subnetwork or vpn_tunnel can be specified.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#interconnect_attachment ComputeRouterInterface#interconnect_attachment}
*/
readonly interconnectAttachment?: string;
/**
* The IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#ip_range ComputeRouterInterface#ip_range}
*/
readonly ipRange?: string;
/**
* IP version of this interface.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#ip_version ComputeRouterInterface#ip_version}
*/
readonly ipVersion?: string;
/**
* A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#name ComputeRouterInterface#name}
*/
readonly name: string;
/**
* The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#private_ip_address ComputeRouterInterface#private_ip_address}
*/
readonly privateIpAddress?: string;
/**
* The ID of the project in which this interface's router belongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#project ComputeRouterInterface#project}
*/
readonly project?: string;
/**
* The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#redundant_interface ComputeRouterInterface#redundant_interface}
*/
readonly redundantInterface?: string;
/**
* The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#region ComputeRouterInterface#region}
*/
readonly region?: string;
/**
* The name of the router this interface will be attached to. Changing this forces a new interface to be created.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#router ComputeRouterInterface#router}
*/
readonly router: string;
/**
* The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. Changing this forces a new interface to be created. Only one of subnetwork, interconnect_attachment or vpn_tunnel can be specified.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#subnetwork ComputeRouterInterface#subnetwork}
*/
readonly subnetwork?: string;
/**
* The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#vpn_tunnel ComputeRouterInterface#vpn_tunnel}
*/
readonly vpnTunnel?: string;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#timeouts ComputeRouterInterface#timeouts}
*/
readonly timeouts?: ComputeRouterInterfaceTimeouts;
}
export interface ComputeRouterInterfaceTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#create ComputeRouterInterface#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#delete ComputeRouterInterface#delete}
*/
readonly delete?: string;
}
export declare function computeRouterInterfaceTimeoutsToTerraform(struct?: ComputeRouterInterfaceTimeouts | cdktf.IResolvable): any;
export declare function computeRouterInterfaceTimeoutsToHclTerraform(struct?: ComputeRouterInterfaceTimeouts | cdktf.IResolvable): any;
export declare class ComputeRouterInterfaceTimeoutsOutputReference 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(): ComputeRouterInterfaceTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: ComputeRouterInterfaceTimeouts | cdktf.IResolvable | undefined);
private _create?;
get create(): string;
set create(value: string);
resetCreate(): void;
get createInput(): string | undefined;
private _delete?;
get delete(): string;
set delete(value: string);
resetDelete(): void;
get deleteInput(): string | undefined;
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface google_compute_router_interface}
*/
export declare class ComputeRouterInterface extends cdktf.TerraformResource {
static readonly tfResourceType = "google_compute_router_interface";
/**
* Generates CDKTF code for importing a ComputeRouterInterface resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the ComputeRouterInterface to import
* @param importFromId The id of the existing ComputeRouterInterface that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the ComputeRouterInterface to import is found
*/
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/compute_router_interface google_compute_router_interface} 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 ComputeRouterInterfaceConfig
*/
constructor(scope: Construct, id: string, config: ComputeRouterInterfaceConfig);
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _interconnectAttachment?;
get interconnectAttachment(): string;
set interconnectAttachment(value: string);
resetInterconnectAttachment(): void;
get interconnectAttachmentInput(): string | undefined;
private _ipRange?;
get ipRange(): string;
set ipRange(value: string);
resetIpRange(): void;
get ipRangeInput(): string | undefined;
private _ipVersion?;
get ipVersion(): string;
set ipVersion(value: string);
resetIpVersion(): void;
get ipVersionInput(): string | undefined;
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _privateIpAddress?;
get privateIpAddress(): string;
set privateIpAddress(value: string);
resetPrivateIpAddress(): void;
get privateIpAddressInput(): string | undefined;
private _project?;
get project(): string;
set project(value: string);
resetProject(): void;
get projectInput(): string | undefined;
private _redundantInterface?;
get redundantInterface(): string;
set redundantInterface(value: string);
resetRedundantInterface(): void;
get redundantInterfaceInput(): string | undefined;
private _region?;
get region(): string;
set region(value: string);
resetRegion(): void;
get regionInput(): string | undefined;
private _router?;
get router(): string;
set router(value: string);
get routerInput(): string | undefined;
private _subnetwork?;
get subnetwork(): string;
set subnetwork(value: string);
resetSubnetwork(): void;
get subnetworkInput(): string | undefined;
private _vpnTunnel?;
get vpnTunnel(): string;
set vpnTunnel(value: string);
resetVpnTunnel(): void;
get vpnTunnelInput(): string | undefined;
private _timeouts;
get timeouts(): ComputeRouterInterfaceTimeoutsOutputReference;
putTimeouts(value: ComputeRouterInterfaceTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | ComputeRouterInterfaceTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}