UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

64 lines 2.34 kB
"use strict"; // *** 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.getGatewayRouteOutput = exports.getGatewayRoute = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 * * ```typescript * 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", * }); * ``` */ function getGatewayRoute(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:appmesh/getGatewayRoute:getGatewayRoute", { "meshName": args.meshName, "meshOwner": args.meshOwner, "name": args.name, "region": args.region, "tags": args.tags, "virtualGatewayName": args.virtualGatewayName, }, opts); } exports.getGatewayRoute = getGatewayRoute; /** * 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 * * ```typescript * 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", * }); * ``` */ function getGatewayRouteOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:appmesh/getGatewayRoute:getGatewayRoute", { "meshName": args.meshName, "meshOwner": args.meshOwner, "name": args.name, "region": args.region, "tags": args.tags, "virtualGatewayName": args.virtualGatewayName, }, opts); } exports.getGatewayRouteOutput = getGatewayRouteOutput; //# sourceMappingURL=getGatewayRoute.js.map