UNPKG

@pulumi/aws

Version:

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

60 lines 1.92 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.getServiceOutput = exports.getService = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The ECS Service data source allows access to details of a specific * Service within a AWS ECS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ecs.getService({ * serviceName: "example", * clusterArn: exampleAwsEcsCluster.arn, * }); * ``` */ function getService(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ecs/getService:getService", { "clusterArn": args.clusterArn, "region": args.region, "serviceName": args.serviceName, "tags": args.tags, }, opts); } exports.getService = getService; /** * The ECS Service data source allows access to details of a specific * Service within a AWS ECS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ecs.getService({ * serviceName: "example", * clusterArn: exampleAwsEcsCluster.arn, * }); * ``` */ function getServiceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ecs/getService:getService", { "clusterArn": args.clusterArn, "region": args.region, "serviceName": args.serviceName, "tags": args.tags, }, opts); } exports.getServiceOutput = getServiceOutput; //# sourceMappingURL=getService.js.map