@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
66 lines • 1.99 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.getImageOutput = exports.getImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for managing an AWS AppStream 2.0 Image.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.appstream.getImage({
* name: "AppStream-WinServer2019-06-17-2024",
* type: "PUBLIC",
* mostRecent: true,
* });
* ```
*/
function getImage(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:appstream/getImage:getImage", {
"arn": args.arn,
"mostRecent": args.mostRecent,
"name": args.name,
"nameRegex": args.nameRegex,
"region": args.region,
"type": args.type,
}, opts);
}
exports.getImage = getImage;
/**
* Data source for managing an AWS AppStream 2.0 Image.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.appstream.getImage({
* name: "AppStream-WinServer2019-06-17-2024",
* type: "PUBLIC",
* mostRecent: true,
* });
* ```
*/
function getImageOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:appstream/getImage:getImage", {
"arn": args.arn,
"mostRecent": args.mostRecent,
"name": args.name,
"nameRegex": args.nameRegex,
"region": args.region,
"type": args.type,
}, opts);
}
exports.getImageOutput = getImageOutput;
//# sourceMappingURL=getImage.js.map
;