@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
66 lines • 2.95 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.getApplicationOutput = exports.getApplication = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about an AWS Serverless Application Repository application. For example, this can be used to determine the required `capabilities` for an application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.serverlessrepository.getApplication({
* applicationId: "arn:aws:serverlessrepo:us-east-1:123456789012:applications/ExampleApplication",
* });
* const exampleCloudFormationStack = new aws.serverlessrepository.CloudFormationStack("example", {
* name: "Example",
* applicationId: example.then(example => example.applicationId),
* semanticVersion: example.then(example => example.semanticVersion),
* capabilities: example.then(example => example.requiredCapabilities),
* });
* ```
*/
function getApplication(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:serverlessrepository/getApplication:getApplication", {
"applicationId": args.applicationId,
"region": args.region,
"semanticVersion": args.semanticVersion,
}, opts);
}
exports.getApplication = getApplication;
/**
* Use this data source to get information about an AWS Serverless Application Repository application. For example, this can be used to determine the required `capabilities` for an application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.serverlessrepository.getApplication({
* applicationId: "arn:aws:serverlessrepo:us-east-1:123456789012:applications/ExampleApplication",
* });
* const exampleCloudFormationStack = new aws.serverlessrepository.CloudFormationStack("example", {
* name: "Example",
* applicationId: example.then(example => example.applicationId),
* semanticVersion: example.then(example => example.semanticVersion),
* capabilities: example.then(example => example.requiredCapabilities),
* });
* ```
*/
function getApplicationOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:serverlessrepository/getApplication:getApplication", {
"applicationId": args.applicationId,
"region": args.region,
"semanticVersion": args.semanticVersion,
}, opts);
}
exports.getApplicationOutput = getApplicationOutput;
//# sourceMappingURL=getApplication.js.map