@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
49 lines • 1.62 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMarketplaceImageOutput = exports.getMarketplaceImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets local image ID of an image from its label name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myImage = scaleway.getMarketplaceImage({
* label: "ubuntu_jammy",
* });
* ```
*/
function getMarketplaceImage(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getMarketplaceImage:getMarketplaceImage", {
"instanceType": args.instanceType,
"label": args.label,
"zone": args.zone,
}, opts);
}
exports.getMarketplaceImage = getMarketplaceImage;
/**
* Gets local image ID of an image from its label name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myImage = scaleway.getMarketplaceImage({
* label: "ubuntu_jammy",
* });
* ```
*/
function getMarketplaceImageOutput(args, opts) {
return pulumi.output(args).apply((a) => getMarketplaceImage(a, opts));
}
exports.getMarketplaceImageOutput = getMarketplaceImageOutput;
//# sourceMappingURL=getMarketplaceImage.js.map