@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
72 lines • 3.06 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 [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by option name
* const byName = scaleway.elasticmetal.getOption({
* name: "Remote Access",
* });
* // Get info by option id
* const byId = scaleway.elasticmetal.getOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetaloption.getBaremetalOption has been deprecated in favor of scaleway.elasticmetal/getoption.getOption */
function getBaremetalOption(args, opts) {
pulumi.log.warn("getBaremetalOption is deprecated: scaleway.index/getbaremetaloption.getBaremetalOption has been deprecated in favor of scaleway.elasticmetal/getoption.getOption");
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 [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by option name
* const byName = scaleway.elasticmetal.getOption({
* name: "Remote Access",
* });
* // Get info by option id
* const byId = scaleway.elasticmetal.getOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetaloption.getBaremetalOption has been deprecated in favor of scaleway.elasticmetal/getoption.getOption */
function getBaremetalOptionOutput(args, opts) {
pulumi.log.warn("getBaremetalOption is deprecated: scaleway.index/getbaremetaloption.getBaremetalOption has been deprecated in favor of scaleway.elasticmetal/getoption.getOption");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getBaremetalOption:getBaremetalOption", {
"name": args.name,
"optionId": args.optionId,
"zone": args.zone,
}, opts);
}
exports.getBaremetalOptionOutput = getBaremetalOptionOutput;
//# sourceMappingURL=getBaremetalOption.js.map