@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
314 lines (313 loc) • 14.4 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface RouteTableConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#id RouteTable#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/hashicorp/aws/5.84.0/docs/resources/route_table#propagating_vgws RouteTable#propagating_vgws}
*/
readonly propagatingVgws?: string[];
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#route RouteTable#route}
*/
readonly route?: RouteTableRoute[] | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#tags RouteTable#tags}
*/
readonly tags?: {
[key: string]: string;
};
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#tags_all RouteTable#tags_all}
*/
readonly tagsAll?: {
[key: string]: string;
};
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#vpc_id RouteTable#vpc_id}
*/
readonly vpcId: string;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#timeouts RouteTable#timeouts}
*/
readonly timeouts?: RouteTableTimeouts;
}
export interface RouteTableRoute {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#carrier_gateway_id RouteTable#carrier_gateway_id}
*/
readonly carrierGatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#cidr_block RouteTable#cidr_block}
*/
readonly cidrBlock?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#core_network_arn RouteTable#core_network_arn}
*/
readonly coreNetworkArn?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#destination_prefix_list_id RouteTable#destination_prefix_list_id}
*/
readonly destinationPrefixListId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#egress_only_gateway_id RouteTable#egress_only_gateway_id}
*/
readonly egressOnlyGatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#gateway_id RouteTable#gateway_id}
*/
readonly gatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#ipv6_cidr_block RouteTable#ipv6_cidr_block}
*/
readonly ipv6CidrBlock?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#local_gateway_id RouteTable#local_gateway_id}
*/
readonly localGatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#nat_gateway_id RouteTable#nat_gateway_id}
*/
readonly natGatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#network_interface_id RouteTable#network_interface_id}
*/
readonly networkInterfaceId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#transit_gateway_id RouteTable#transit_gateway_id}
*/
readonly transitGatewayId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#vpc_endpoint_id RouteTable#vpc_endpoint_id}
*/
readonly vpcEndpointId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#vpc_peering_connection_id RouteTable#vpc_peering_connection_id}
*/
readonly vpcPeeringConnectionId?: string;
}
export declare function routeTableRouteToTerraform(struct?: RouteTableRoute | cdktf.IResolvable): any;
export declare function routeTableRouteToHclTerraform(struct?: RouteTableRoute | cdktf.IResolvable): any;
export declare class RouteTableRouteOutputReference 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(): RouteTableRoute | cdktf.IResolvable | undefined;
set internalValue(value: RouteTableRoute | cdktf.IResolvable | undefined);
private _carrierGatewayId?;
get carrierGatewayId(): string;
set carrierGatewayId(value: string);
resetCarrierGatewayId(): void;
get carrierGatewayIdInput(): string | undefined;
private _cidrBlock?;
get cidrBlock(): string;
set cidrBlock(value: string);
resetCidrBlock(): void;
get cidrBlockInput(): string | undefined;
private _coreNetworkArn?;
get coreNetworkArn(): string;
set coreNetworkArn(value: string);
resetCoreNetworkArn(): void;
get coreNetworkArnInput(): string | undefined;
private _destinationPrefixListId?;
get destinationPrefixListId(): string;
set destinationPrefixListId(value: string);
resetDestinationPrefixListId(): void;
get destinationPrefixListIdInput(): string | undefined;
private _egressOnlyGatewayId?;
get egressOnlyGatewayId(): string;
set egressOnlyGatewayId(value: string);
resetEgressOnlyGatewayId(): void;
get egressOnlyGatewayIdInput(): string | undefined;
private _gatewayId?;
get gatewayId(): string;
set gatewayId(value: string);
resetGatewayId(): void;
get gatewayIdInput(): string | undefined;
private _ipv6CidrBlock?;
get ipv6CidrBlock(): string;
set ipv6CidrBlock(value: string);
resetIpv6CidrBlock(): void;
get ipv6CidrBlockInput(): string | undefined;
private _localGatewayId?;
get localGatewayId(): string;
set localGatewayId(value: string);
resetLocalGatewayId(): void;
get localGatewayIdInput(): string | undefined;
private _natGatewayId?;
get natGatewayId(): string;
set natGatewayId(value: string);
resetNatGatewayId(): void;
get natGatewayIdInput(): string | undefined;
private _networkInterfaceId?;
get networkInterfaceId(): string;
set networkInterfaceId(value: string);
resetNetworkInterfaceId(): void;
get networkInterfaceIdInput(): string | undefined;
private _transitGatewayId?;
get transitGatewayId(): string;
set transitGatewayId(value: string);
resetTransitGatewayId(): void;
get transitGatewayIdInput(): string | undefined;
private _vpcEndpointId?;
get vpcEndpointId(): string;
set vpcEndpointId(value: string);
resetVpcEndpointId(): void;
get vpcEndpointIdInput(): string | undefined;
private _vpcPeeringConnectionId?;
get vpcPeeringConnectionId(): string;
set vpcPeeringConnectionId(value: string);
resetVpcPeeringConnectionId(): void;
get vpcPeeringConnectionIdInput(): string | undefined;
}
export declare class RouteTableRouteList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: RouteTableRoute[] | 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): RouteTableRouteOutputReference;
}
export interface RouteTableTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#create RouteTable#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#delete RouteTable#delete}
*/
readonly delete?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#update RouteTable#update}
*/
readonly update?: string;
}
export declare function routeTableTimeoutsToTerraform(struct?: RouteTableTimeouts | cdktf.IResolvable): any;
export declare function routeTableTimeoutsToHclTerraform(struct?: RouteTableTimeouts | cdktf.IResolvable): any;
export declare class RouteTableTimeoutsOutputReference 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(): RouteTableTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: RouteTableTimeouts | 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;
private _update?;
get update(): string;
set update(value: string);
resetUpdate(): void;
get updateInput(): string | undefined;
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table aws_route_table}
*/
export declare class RouteTable extends cdktf.TerraformResource {
static readonly tfResourceType = "aws_route_table";
/**
* Generates CDKTF code for importing a RouteTable 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 RouteTable to import
* @param importFromId The id of the existing RouteTable that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/route_table#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the RouteTable 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/aws/5.84.0/docs/resources/route_table aws_route_table} 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 RouteTableConfig
*/
constructor(scope: Construct, id: string, config: RouteTableConfig);
get arn(): string;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
get ownerId(): string;
private _propagatingVgws?;
get propagatingVgws(): string[];
set propagatingVgws(value: string[]);
resetPropagatingVgws(): void;
get propagatingVgwsInput(): string[] | undefined;
private _route;
get route(): RouteTableRouteList;
putRoute(value: RouteTableRoute[] | cdktf.IResolvable): void;
resetRoute(): void;
get routeInput(): cdktf.IResolvable | RouteTableRoute[] | undefined;
private _tags?;
get tags(): {
[key: string]: string;
};
set tags(value: {
[key: string]: string;
});
resetTags(): void;
get tagsInput(): {
[key: string]: string;
} | undefined;
private _tagsAll?;
get tagsAll(): {
[key: string]: string;
};
set tagsAll(value: {
[key: string]: string;
});
resetTagsAll(): void;
get tagsAllInput(): {
[key: string]: string;
} | undefined;
private _vpcId?;
get vpcId(): string;
set vpcId(value: string);
get vpcIdInput(): string | undefined;
private _timeouts;
get timeouts(): RouteTableTimeoutsOutputReference;
putTimeouts(value: RouteTableTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | RouteTableTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}