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
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.GetVirtualServiceArgs;
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.getVirtualService(GetVirtualServiceArgs.builder()
.meshName("test-mesh")
.name("test-route")
.virtualRouterName("test-router")
.build());
}
}
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.