import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource can be useful for getting back a list of route table ids to be referenced elsewhere. * * ## Example Usage * * The following adds a route for a particular cidr block to every (private * kops) route table in a specified vpc to use a particular vpc peering * connection. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const rts = aws.ec2.getRouteTables({ * filters: [{ * name: "tag:kubernetes.io/kops/role", * values: ["private*"], * }], * vpcId: vpcId, * }); * const r: aws.ec2.Route[] = []; * rts.then(rts => rts.ids).length.apply(rangeBody => { * for (let range = 0; range < rangeBody; range++) { * r.push(new aws.ec2.Route(`r-${range}`, { * routeTableId: rts.then(rts => rts.ids[range]), * destinationCidrBlock: "10.0.0.0/22", * vpcPeeringConnectionId: "pcx-0e9a7a9ecd137dc54", * })); * } * }); * ``` */ export declare function getRouteTables(args?: GetRouteTablesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRouteTables. */ export interface GetRouteTablesArgs { /** * Custom filter block as described below. */ filters?: inputs.ec2.GetRouteTablesFilter[]; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Map of tags, each pair of which must exactly match * a pair on the desired route tables. */ tags?: { [key: string]: string; }; /** * VPC ID that you want to filter from. */ vpcId?: string; } /** * A collection of values returned by getRouteTables. */ export interface GetRouteTablesResult { readonly filters?: outputs.ec2.GetRouteTablesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * List of all the route table ids found. */ readonly ids: string[]; readonly region: string; readonly tags: { [key: string]: string; }; readonly vpcId?: string; } /** * This resource can be useful for getting back a list of route table ids to be referenced elsewhere. * * ## Example Usage * * The following adds a route for a particular cidr block to every (private * kops) route table in a specified vpc to use a particular vpc peering * connection. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const rts = aws.ec2.getRouteTables({ * filters: [{ * name: "tag:kubernetes.io/kops/role", * values: ["private*"], * }], * vpcId: vpcId, * }); * const r: aws.ec2.Route[] = []; * rts.then(rts => rts.ids).length.apply(rangeBody => { * for (let range = 0; range < rangeBody; range++) { * r.push(new aws.ec2.Route(`r-${range}`, { * routeTableId: rts.then(rts => rts.ids[range]), * destinationCidrBlock: "10.0.0.0/22", * vpcPeeringConnectionId: "pcx-0e9a7a9ecd137dc54", * })); * } * }); * ``` */ export declare function getRouteTablesOutput(args?: GetRouteTablesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRouteTables. */ export interface GetRouteTablesOutputArgs { /** * Custom filter block as described below. */ filters?: pulumi.Input[] | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of tags, each pair of which must exactly match * a pair on the desired route tables. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * VPC ID that you want to filter from. */ vpcId?: pulumi.Input; } //# sourceMappingURL=getRouteTables.d.ts.map