UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

58 lines 2.14 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.getInstanceTypeOutput = exports.getInstanceType = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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", * }); * ``` */ function getInstanceType(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getInstanceType:getInstanceType", { "id": args.id, "label": args.label, }, opts); } exports.getInstanceType = getInstanceType; /** * 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", * }); * ``` */ function getInstanceTypeOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getInstanceType:getInstanceType", { "id": args.id, "label": args.label, }, opts); } exports.getInstanceTypeOutput = getInstanceTypeOutput; //# sourceMappingURL=getInstanceType.js.map