@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
83 lines (82 loc) • 2.12 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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",
* }));
* ```
*/
export declare function getMetalSpotMarketPrice(args: GetMetalSpotMarketPriceArgs, opts?: pulumi.InvokeOptions): Promise<GetMetalSpotMarketPriceResult>;
/**
* A collection of arguments for invoking GetMetalSpotMarketPrice.
*/
export interface GetMetalSpotMarketPriceArgs {
/**
* Name of the facility.
*/
facility?: string;
/**
* Name of the metro.
*/
metro?: string;
/**
* Name of the plan.
*/
plan: string;
}
/**
* A collection of values returned by GetMetalSpotMarketPrice.
*/
export interface GetMetalSpotMarketPriceResult {
readonly facility?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly metro?: string;
readonly plan: string;
/**
* Current spot market price for given plan in given facility.
*/
readonly price: number;
}
export declare function getMetalSpotMarketPriceOutput(args: GetMetalSpotMarketPriceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetalSpotMarketPriceResult>;
/**
* A collection of arguments for invoking GetMetalSpotMarketPrice.
*/
export interface GetMetalSpotMarketPriceOutputArgs {
/**
* Name of the facility.
*/
facility?: pulumi.Input<string>;
/**
* Name of the metro.
*/
metro?: pulumi.Input<string>;
/**
* Name of the plan.
*/
plan: pulumi.Input<string>;
}