@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 1.72 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.getServerOutput = exports.getServer = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ARN of an AWS Transfer Server for use in other
* resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.transfer.getServer({
* serverId: "s-1234567",
* });
* ```
*/
function getServer(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:transfer/getServer:getServer", {
"region": args.region,
"serverId": args.serverId,
"tags": args.tags,
}, opts);
}
exports.getServer = getServer;
/**
* Use this data source to get the ARN of an AWS Transfer Server for use in other
* resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.transfer.getServer({
* serverId: "s-1234567",
* });
* ```
*/
function getServerOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:transfer/getServer:getServer", {
"region": args.region,
"serverId": args.serverId,
"tags": args.tags,
}, opts);
}
exports.getServerOutput = getServerOutput;
//# sourceMappingURL=getServer.js.map
;