@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
109 lines (108 loc) • 3.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides information about a Linode instance type
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-linode-type).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Instance type.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const _default = linode.getInstanceType({
* id: "g6-standard-2",
* });
* ```
*/
export declare function getInstanceType(args: GetInstanceTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceTypeResult>;
/**
* A collection of arguments for invoking getInstanceType.
*/
export interface GetInstanceTypeArgs {
/**
* Label used to identify instance type
*/
id: string;
/**
* The Linode Type's label is for display purposes only
*/
label?: string;
}
/**
* A collection of values returned by getInstanceType.
*/
export interface GetInstanceTypeResult {
/**
* The number of VPUs this Linode Type offers.
*/
readonly acceleratedDevices: number;
readonly addons: outputs.GetInstanceTypeAddons;
/**
* The class of the Linode Type. See all classes [here](https://techdocs.akamai.com/linode-api/reference/get-linode-type).
*/
readonly class: string;
/**
* The Disk size, in MB, of the Linode Type
*/
readonly disk: number;
/**
* The ID representing the Linode Type
*/
readonly id: string;
/**
* The Linode Type's label is for display purposes only
*/
readonly label: string;
/**
* The amount of RAM included in this Linode Type.
*/
readonly memory: number;
/**
* The Mbits outbound bandwidth allocation.
*/
readonly networkOut: number;
readonly price: outputs.GetInstanceTypePrice;
readonly regionPrices: outputs.GetInstanceTypeRegionPrice[];
/**
* The monthly outbound transfer amount, in MB.
*/
readonly transfer: number;
/**
* The number of VCPU cores this Linode Type offers.
*/
readonly vcpus: number;
}
/**
* Provides information about a Linode instance type
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-linode-type).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Instance type.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const _default = linode.getInstanceType({
* id: "g6-standard-2",
* });
* ```
*/
export declare function getInstanceTypeOutput(args: GetInstanceTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceTypeResult>;
/**
* A collection of arguments for invoking getInstanceType.
*/
export interface GetInstanceTypeOutputArgs {
/**
* Label used to identify instance type
*/
id: pulumi.Input<string>;
/**
* The Linode Type's label is for display purposes only
*/
label?: pulumi.Input<string>;
}