@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
58 lines • 2.03 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.getBaremetalOptionOutput = exports.getBaremetalOption = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about a baremetal option.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getBaremetalOption({
* name: "Remote Access",
* });
* const byId = scaleway.getBaremetalOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
function getBaremetalOption(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getBaremetalOption:getBaremetalOption", {
"name": args.name,
"optionId": args.optionId,
"zone": args.zone,
}, opts);
}
exports.getBaremetalOption = getBaremetalOption;
/**
* Gets information about a baremetal option.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getBaremetalOption({
* name: "Remote Access",
* });
* const byId = scaleway.getBaremetalOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
function getBaremetalOptionOutput(args, opts) {
return pulumi.output(args).apply((a) => getBaremetalOption(a, opts));
}
exports.getBaremetalOptionOutput = getBaremetalOptionOutput;
//# sourceMappingURL=getBaremetalOption.js.map