import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets details of a single TcpRoute. */ export declare function getTcpRoute(args: GetTcpRouteArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetTcpRouteArgs { location: string; project?: string; tcpRouteId: string; } export interface GetTcpRouteResult { /** * The timestamp when the resource was created. */ readonly createTime: string; /** * Optional. A free-text description of the resource. Max length 1024 characters. */ readonly description: string; /** * Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/` */ readonly gateways: string[]; /** * Optional. Set of label tags associated with the TcpRoute resource. */ readonly labels: { [key: string]: string; }; /** * Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR */ readonly meshes: string[]; /** * Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name>`. */ readonly name: string; /** * Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match. */ readonly rules: outputs.networkservices.v1.TcpRouteRouteRuleResponse[]; /** * Server-defined URL of this resource */ readonly selfLink: string; /** * The timestamp when the resource was updated. */ readonly updateTime: string; } /** * Gets details of a single TcpRoute. */ export declare function getTcpRouteOutput(args: GetTcpRouteOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetTcpRouteOutputArgs { location: pulumi.Input; project?: pulumi.Input; tcpRouteId: pulumi.Input; }