get Route
The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.appmesh.getRoute({
name: "test-route",
meshName: "test-mesh",
virtualRouterName: "test-router",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.appmesh.get_route(name="test-route",
mesh_name="test-mesh",
virtual_router_name="test-router")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.AppMesh.GetRoute.Invoke(new()
{
Name = "test-route",
MeshName = "test-mesh",
VirtualRouterName = "test-router",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appmesh.LookupRoute(ctx, &appmesh.LookupRouteArgs{
Name: "test-route",
MeshName: "test-mesh",
VirtualRouterName: "test-router",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.AppmeshFunctions;
import com.pulumi.aws.appmesh.inputs.GetRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = AppmeshFunctions.getRoute(GetRouteArgs.builder()
.name("test-route")
.meshName("test-mesh")
.virtualRouterName("test-router")
.build());
}
}
Content copied to clipboard
variables:
test:
fn::invoke:
function: aws:appmesh:getRoute
arguments:
name: test-route
meshName: test-mesh
virtualRouterName: test-router
Content copied to clipboard
Return
A collection of values returned by getRoute.
Parameters
argument
A collection of arguments for invoking getRoute.
suspend fun getRoute(meshName: String, meshOwner: String? = null, name: String, tags: Map<String, String>? = null, virtualRouterName: String): GetRouteResult
Return
A collection of values returned by getRoute.
Parameters
mesh Name
Name of the service mesh in which the virtual router exists.
mesh Owner
AWS account ID of the service mesh's owner.
name
Name of the route.
tags
Map of tags.
virtual Router Name
Name of the virtual router in which the route exists.
See also
Return
A collection of values returned by getRoute.
Parameters
argument
Builder for com.pulumi.aws.appmesh.kotlin.inputs.GetRoutePlainArgs.