UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

53 lines 1.75 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.getMetalSpotMarketPriceOutput = exports.getMetalSpotMarketPrice = 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 facility: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const example = pulumi.output(equinix.GetMetalSpotMarketPrice({ * facility: "ny5", * plan: "c3.small.x86", * })); * ``` * * Lookup by metro: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const example = pulumi.output(equinix.GetMetalSpotMarketPrice({ * metro: "sv", * plan: "c3.small.x86", * })); * ``` */ function getMetalSpotMarketPrice(args, opts) { if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("equinix:index/getMetalSpotMarketPrice:GetMetalSpotMarketPrice", { "facility": args.facility, "metro": args.metro, "plan": args.plan, }, opts); } exports.getMetalSpotMarketPrice = getMetalSpotMarketPrice; function getMetalSpotMarketPriceOutput(args, opts) { return pulumi.output(args).apply(a => getMetalSpotMarketPrice(a, opts)); } exports.getMetalSpotMarketPriceOutput = getMetalSpotMarketPriceOutput; //# sourceMappingURL=getMetalSpotMarketPrice.js.map