UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

71 lines 3.75 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.Notification = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class Notification extends pulumi.CustomResource { /** * Get an existing Notification 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 Notification(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Notification. 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'] === Notification.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["ansibleTower"] = state ? state.ansibleTower : undefined; resourceInputs["config"] = state ? state.config : undefined; resourceInputs["email"] = state ? state.email : undefined; resourceInputs["jira"] = state ? state.jira : undefined; resourceInputs["opsGenie"] = state ? state.opsGenie : undefined; resourceInputs["pagerDuty"] = state ? state.pagerDuty : undefined; resourceInputs["serviceNow"] = state ? state.serviceNow : undefined; resourceInputs["slack"] = state ? state.slack : undefined; resourceInputs["trello"] = state ? state.trello : undefined; resourceInputs["victorOps"] = state ? state.victorOps : undefined; resourceInputs["webHook"] = state ? state.webHook : undefined; resourceInputs["xmatters"] = state ? state.xmatters : undefined; } else { const args = argsOrState; resourceInputs["ansibleTower"] = args ? args.ansibleTower : undefined; resourceInputs["config"] = args ? args.config : undefined; resourceInputs["email"] = args ? args.email : undefined; resourceInputs["jira"] = args ? args.jira : undefined; resourceInputs["opsGenie"] = args ? args.opsGenie : undefined; resourceInputs["pagerDuty"] = args ? args.pagerDuty : undefined; resourceInputs["serviceNow"] = args ? args.serviceNow : undefined; resourceInputs["slack"] = args ? args.slack : undefined; resourceInputs["trello"] = args ? args.trello : undefined; resourceInputs["victorOps"] = args ? args.victorOps : undefined; resourceInputs["webHook"] = args ? args.webHook : undefined; resourceInputs["xmatters"] = args ? args.xmatters : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Notification.__pulumiType, name, resourceInputs, opts); } } exports.Notification = Notification; /** @internal */ Notification.__pulumiType = 'dynatrace:index/notification:Notification'; //# sourceMappingURL=notification.js.map