@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 1.75 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.getKeyOutput = exports.getKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const myApiKey = aws.apigateway.getKey({
* id: "ru3mpjgse6",
* });
* ```
*/
function getKey(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:apigateway/getKey:getKey", {
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getKey = getKey;
/**
* Use this data source to get the name and value of a pre-existing API Key, for
* example to supply credentials for a dependency microservice.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const myApiKey = aws.apigateway.getKey({
* id: "ru3mpjgse6",
* });
* ```
*/
function getKeyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:apigateway/getKey:getKey", {
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getKeyOutput = getKeyOutput;
//# sourceMappingURL=getKey.js.map