@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
84 lines • 2.85 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.getVirtualServiceOutput = exports.getVirtualService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_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.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const test = current.then(current => aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* meshOwner: current.accountId,
* }));
* ```
*/
function getVirtualService(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:appmesh/getVirtualService:getVirtualService", {
"meshName": args.meshName,
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVirtualService = getVirtualService;
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_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.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const test = current.then(current => aws.appmesh.getVirtualService({
* name: "example.mesh.local",
* meshName: "example-mesh",
* meshOwner: current.accountId,
* }));
* ```
*/
function getVirtualServiceOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:appmesh/getVirtualService:getVirtualService", {
"meshName": args.meshName,
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVirtualServiceOutput = getVirtualServiceOutput;
//# sourceMappingURL=getVirtualService.js.map