@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 1.78 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.getClusterOutput = exports.getCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The ECS Cluster data source allows access to details of a specific
* cluster within an AWS ECS service.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecs_mongo = aws.ecs.getCluster({
* clusterName: "ecs-mongo-production",
* });
* ```
*/
function getCluster(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ecs/getCluster:getCluster", {
"clusterName": args.clusterName,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getCluster = getCluster;
/**
* The ECS Cluster data source allows access to details of a specific
* cluster within an AWS ECS service.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecs_mongo = aws.ecs.getCluster({
* clusterName: "ecs-mongo-production",
* });
* ```
*/
function getClusterOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ecs/getCluster:getCluster", {
"clusterName": args.clusterName,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getClusterOutput = getClusterOutput;
//# sourceMappingURL=getCluster.js.map
;