@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
78 lines • 2.38 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.getMeshOutput = exports.getMesh = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const simple = aws.appmesh.getMesh({
* name: "simpleapp",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const simple = current.then(current => aws.appmesh.getMesh({
* name: "simpleapp",
* meshOwner: current.accountId,
* }));
* ```
*/
function getMesh(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:appmesh/getMesh:getMesh", {
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getMesh = getMesh;
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const simple = aws.appmesh.getMesh({
* name: "simpleapp",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getCallerIdentity({});
* const simple = current.then(current => aws.appmesh.getMesh({
* name: "simpleapp",
* meshOwner: current.accountId,
* }));
* ```
*/
function getMeshOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:appmesh/getMesh:getMesh", {
"meshOwner": args.meshOwner,
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getMeshOutput = getMeshOutput;
//# sourceMappingURL=getMesh.js.map
;