import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets details of a single TlsRoute. */ export declare function getTlsRoute(args: GetTlsRouteArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetTlsRouteArgs { location: string; project?: string; tlsRouteId: string; } export interface GetTlsRouteResult { /** * 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 TlsRoute 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 TlsRoute resource. */ readonly labels: { [key: string]: string; }; /** * Optional. Meshes defines a list of meshes this TlsRoute 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 TlsRoute resource. It matches pattern `projects/*/locations/global/tlsRoutes/tls_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.TlsRouteRouteRuleResponse[]; /** * Server-defined URL of this resource */ readonly selfLink: string; /** * The timestamp when the resource was updated. */ readonly updateTime: string; } /** * Gets details of a single TlsRoute. */ export declare function getTlsRouteOutput(args: GetTlsRouteOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetTlsRouteOutputArgs { location: pulumi.Input; project?: pulumi.Input; tlsRouteId: pulumi.Input; }