UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

73 lines 3.62 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.DashboardSharing = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This is a child resource of dynatrace_json_dashboard, therefore it is automatically retrieved with the dashboard. * * > This resource requires the API token scopes **Read configuration** (`ReadConfig`) and **Write configuration** (`WriteConfig`) * * ## Dynatrace Documentation * * - Share Dynatrace dashboards - https://www.dynatrace.com/support/help/how-to-use-dynatrace/dashboards-and-charts/dashboards/share-dashboards * * - Dashboards API - https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/dashboards-api */ class DashboardSharing extends pulumi.CustomResource { /** * Get an existing DashboardSharing resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new DashboardSharing(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DashboardSharing. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === DashboardSharing.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["dashboardId"] = state ? state.dashboardId : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["muted"] = state ? state.muted : undefined; resourceInputs["permissions"] = state ? state.permissions : undefined; resourceInputs["preset"] = state ? state.preset : undefined; resourceInputs["public"] = state ? state.public : undefined; } else { const args = argsOrState; if ((!args || args.dashboardId === undefined) && !opts.urn) { throw new Error("Missing required property 'dashboardId'"); } resourceInputs["dashboardId"] = args ? args.dashboardId : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["permissions"] = args ? args.permissions : undefined; resourceInputs["preset"] = args ? args.preset : undefined; resourceInputs["public"] = args ? args.public : undefined; resourceInputs["muted"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DashboardSharing.__pulumiType, name, resourceInputs, opts); } } exports.DashboardSharing = DashboardSharing; /** @internal */ DashboardSharing.__pulumiType = 'dynatrace:index/dashboardSharing:DashboardSharing'; //# sourceMappingURL=dashboardSharing.js.map