UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

68 lines 2.39 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.getHubItemsOutput = exports.getHubItems = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This data source requires the API token scope `hub.read`) * * - `type` (String) The type of hub item you are interested in. Possible values are `TECHNOLOGY`, `EXTENSION1` or `EXTENSION2`. If not specified, no restriction regarding type happens * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * export = async () => { * const extension_20_items = await dynatrace.getHubItems({ * type: "EXTENSION2", * }); * return { * "artifact-ids": extension_20_items.artifacts, * "hub-items": extension_20_items.items, * }; * } * ``` */ function getHubItems(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getHubItems:getHubItems", { "type": args.type, }, opts); } exports.getHubItems = getHubItems; /** * > This data source requires the API token scope `hub.read`) * * - `type` (String) The type of hub item you are interested in. Possible values are `TECHNOLOGY`, `EXTENSION1` or `EXTENSION2`. If not specified, no restriction regarding type happens * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * export = async () => { * const extension_20_items = await dynatrace.getHubItems({ * type: "EXTENSION2", * }); * return { * "artifact-ids": extension_20_items.artifacts, * "hub-items": extension_20_items.items, * }; * } * ``` */ function getHubItemsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getHubItems:getHubItems", { "type": args.type, }, opts); } exports.getHubItemsOutput = getHubItemsOutput; //# sourceMappingURL=getHubItems.js.map