@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
68 lines • 2.3 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.getOptionOutput = exports.getOption = 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",
* });
* ```
*/
function getOption(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:elasticmetal/getOption:getOption", {
"name": args.name,
"optionId": args.optionId,
"zone": args.zone,
}, opts);
}
exports.getOption = getOption;
/**
* 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",
* });
* ```
*/
function getOptionOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:elasticmetal/getOption:getOption", {
"name": args.name,
"optionId": args.optionId,
"zone": args.zone,
}, opts);
}
exports.getOptionOutput = getOptionOutput;
//# sourceMappingURL=getOption.js.map