get Gateway Route
The App Mesh Gateway Route data source allows details of an App Mesh Gateway Route to be retrieved by its name, mesh_name, virtual_gateway_name, and optionally the mesh_owner.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.appmesh.getGatewayRoute({
name: "test-route",
meshName: "test-mesh",
virtualGatewayName: "test-gateway",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.appmesh.get_gateway_route(name="test-route",
mesh_name="test-mesh",
virtual_gateway_name="test-gateway")
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.GetGatewayRoute.Invoke(new()
{
Name = "test-route",
MeshName = "test-mesh",
VirtualGatewayName = "test-gateway",
});
});
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.LookupGatewayRoute(ctx, &appmesh.LookupGatewayRouteArgs{
Name: "test-route",
MeshName: "test-mesh",
VirtualGatewayName: "test-gateway",
}, 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.GetGatewayRouteArgs;
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.getGatewayRoute(GetGatewayRouteArgs.builder()
.name("test-route")
.meshName("test-mesh")
.virtualGatewayName("test-gateway")
.build());
}
}
Content copied to clipboard
variables:
test:
fn::invoke:
function: aws:appmesh:getGatewayRoute
arguments:
name: test-route
meshName: test-mesh
virtualGatewayName: test-gateway
Content copied to clipboard
Return
A collection of values returned by getGatewayRoute.
Parameters
argument
A collection of arguments for invoking getGatewayRoute.
suspend fun getGatewayRoute(meshName: String, meshOwner: String? = null, name: String, tags: Map<String, String>? = null, virtualGatewayName: String): GetGatewayRouteResult
Return
A collection of values returned by getGatewayRoute.
Parameters
mesh Name
Name of the service mesh in which the virtual gateway exists.
mesh Owner
AWS account ID of the service mesh's owner.
name
Name of the gateway route.
tags
Map of tags.
virtual Gateway Name
Name of the virtual gateway in which the route exists.
See also
suspend fun getGatewayRoute(argument: suspend GetGatewayRoutePlainArgsBuilder.() -> Unit): GetGatewayRouteResult
Return
A collection of values returned by getGatewayRoute.
Parameters
argument
Builder for com.pulumi.aws.appmesh.kotlin.inputs.GetGatewayRoutePlainArgs.