@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
64 lines • 2.19 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRouteOutput = exports.getRoute = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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
*
* ```typescript
* 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",
* });
* ```
*/
function getRoute(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:appmesh/getRoute:getRoute", {
"meshName": args.meshName,
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
"virtualRouterName": args.virtualRouterName,
}, opts);
}
exports.getRoute = getRoute;
/**
* 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
*
* ```typescript
* 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",
* });
* ```
*/
function getRouteOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:appmesh/getRoute:getRoute", {
"meshName": args.meshName,
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
"virtualRouterName": args.virtualRouterName,
}, opts);
}
exports.getRouteOutput = getRouteOutput;
//# sourceMappingURL=getRoute.js.map
;