UNPKG

@komminarlabs/influxdb

Version:

A Pulumi package for creating and managing InfluxDB resources.

28 lines 1.39 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getAuthorizationOutput = exports.getAuthorization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves an authorization. Use this data source to retrieve information about an API token, including the token's permissions and the user that the token is scoped to. */ function getAuthorization(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("influxdb:index/getAuthorization:getAuthorization", { "id": args.id, }, opts); } exports.getAuthorization = getAuthorization; /** * Retrieves an authorization. Use this data source to retrieve information about an API token, including the token's permissions and the user that the token is scoped to. */ function getAuthorizationOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("influxdb:index/getAuthorization:getAuthorization", { "id": args.id, }, opts); } exports.getAuthorizationOutput = getAuthorizationOutput; //# sourceMappingURL=getAuthorization.js.map