@pulumi/signalfx
Version:
A Pulumi package for creating and managing SignalFx resources.
92 lines • 5.55 kB
JavaScript
;
// *** 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.Dashboard = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class Dashboard extends pulumi.CustomResource {
/**
* Get an existing Dashboard 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 Dashboard(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Dashboard. 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'] === Dashboard.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authorizedWriterTeams"] = state ? state.authorizedWriterTeams : undefined;
resourceInputs["authorizedWriterUsers"] = state ? state.authorizedWriterUsers : undefined;
resourceInputs["charts"] = state ? state.charts : undefined;
resourceInputs["chartsResolution"] = state ? state.chartsResolution : undefined;
resourceInputs["columns"] = state ? state.columns : undefined;
resourceInputs["dashboardGroup"] = state ? state.dashboardGroup : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["discoveryOptionsQuery"] = state ? state.discoveryOptionsQuery : undefined;
resourceInputs["discoveryOptionsSelectors"] = state ? state.discoveryOptionsSelectors : undefined;
resourceInputs["endTime"] = state ? state.endTime : undefined;
resourceInputs["eventOverlays"] = state ? state.eventOverlays : undefined;
resourceInputs["filters"] = state ? state.filters : undefined;
resourceInputs["grids"] = state ? state.grids : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["permissions"] = state ? state.permissions : undefined;
resourceInputs["selectedEventOverlays"] = state ? state.selectedEventOverlays : undefined;
resourceInputs["startTime"] = state ? state.startTime : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
resourceInputs["timeRange"] = state ? state.timeRange : undefined;
resourceInputs["url"] = state ? state.url : undefined;
resourceInputs["variables"] = state ? state.variables : undefined;
}
else {
const args = argsOrState;
if ((!args || args.dashboardGroup === undefined) && !opts.urn) {
throw new Error("Missing required property 'dashboardGroup'");
}
resourceInputs["authorizedWriterTeams"] = args ? args.authorizedWriterTeams : undefined;
resourceInputs["authorizedWriterUsers"] = args ? args.authorizedWriterUsers : undefined;
resourceInputs["charts"] = args ? args.charts : undefined;
resourceInputs["chartsResolution"] = args ? args.chartsResolution : undefined;
resourceInputs["columns"] = args ? args.columns : undefined;
resourceInputs["dashboardGroup"] = args ? args.dashboardGroup : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["discoveryOptionsQuery"] = args ? args.discoveryOptionsQuery : undefined;
resourceInputs["discoveryOptionsSelectors"] = args ? args.discoveryOptionsSelectors : undefined;
resourceInputs["endTime"] = args ? args.endTime : undefined;
resourceInputs["eventOverlays"] = args ? args.eventOverlays : undefined;
resourceInputs["filters"] = args ? args.filters : undefined;
resourceInputs["grids"] = args ? args.grids : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["permissions"] = args ? args.permissions : undefined;
resourceInputs["selectedEventOverlays"] = args ? args.selectedEventOverlays : undefined;
resourceInputs["startTime"] = args ? args.startTime : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["timeRange"] = args ? args.timeRange : undefined;
resourceInputs["variables"] = args ? args.variables : undefined;
resourceInputs["url"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Dashboard.__pulumiType, name, resourceInputs, opts);
}
}
exports.Dashboard = Dashboard;
/** @internal */
Dashboard.__pulumiType = 'signalfx:index/dashboard:Dashboard';
//# sourceMappingURL=dashboard.js.map