UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

60 lines 1.96 kB
"use strict"; // *** 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.getSpotMarketPriceOutput = exports.getSpotMarketPrice = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const example = equinix.metal.getSpotMarketPrice({ * metro: "sv", * plan: "c3.small.x86", * }); * ``` */ function getSpotMarketPrice(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:metal/getSpotMarketPrice:getSpotMarketPrice", { "facility": args.facility, "metro": args.metro, "plan": args.plan, }, opts); } exports.getSpotMarketPrice = getSpotMarketPrice; /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const example = equinix.metal.getSpotMarketPrice({ * metro: "sv", * plan: "c3.small.x86", * }); * ``` */ function getSpotMarketPriceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:metal/getSpotMarketPrice:getSpotMarketPrice", { "facility": args.facility, "metro": args.metro, "plan": args.plan, }, opts); } exports.getSpotMarketPriceOutput = getSpotMarketPriceOutput; //# sourceMappingURL=getSpotMarketPrice.js.map