UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

52 lines 2.32 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.getAccountOutput = exports.getAccount = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides information about a Linode account. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-account). * * Due to the sensitive nature of the data exposed by this data source, it should not be used in conjunction with the `LINODE_DEBUG` option. See the [debugging notes](https://www.terraform.io/providers/linode/linode/latest/docs#debugging) for more details. * * ## Example Usage * * The following example shows how one might use this data source to access account details. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const account = linode.getAccount({}); * ``` */ function getAccount(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getAccount:getAccount", {}, opts); } exports.getAccount = getAccount; /** * Provides information about a Linode account. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-account). * * Due to the sensitive nature of the data exposed by this data source, it should not be used in conjunction with the `LINODE_DEBUG` option. See the [debugging notes](https://www.terraform.io/providers/linode/linode/latest/docs#debugging) for more details. * * ## Example Usage * * The following example shows how one might use this data source to access account details. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const account = linode.getAccount({}); * ``` */ function getAccountOutput(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getAccount:getAccount", {}, opts); } exports.getAccountOutput = getAccountOutput; //# sourceMappingURL=getAccount.js.map