pulumi-better-uptime
Version:
A Pulumi provider for managing Better Uptime monitoring, alerting, and incident management resources, dynamically bridged from the Terraform Better Uptime provider with support for monitors, heartbeats, integrations, status pages, and policies.
71 lines • 3.38 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.ElasticIntegration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class ElasticIntegration extends pulumi.CustomResource {
/**
* Get an existing ElasticIntegration 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 ElasticIntegration(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ElasticIntegration. 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'] === ElasticIntegration.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["call"] = state?.call;
resourceInputs["criticalAlert"] = state?.criticalAlert;
resourceInputs["email"] = state?.email;
resourceInputs["name"] = state?.name;
resourceInputs["paused"] = state?.paused;
resourceInputs["policyId"] = state?.policyId;
resourceInputs["push"] = state?.push;
resourceInputs["recoveryPeriod"] = state?.recoveryPeriod;
resourceInputs["sms"] = state?.sms;
resourceInputs["teamName"] = state?.teamName;
resourceInputs["teamWait"] = state?.teamWait;
resourceInputs["webhookUrl"] = state?.webhookUrl;
}
else {
const args = argsOrState;
resourceInputs["call"] = args?.call;
resourceInputs["criticalAlert"] = args?.criticalAlert;
resourceInputs["email"] = args?.email;
resourceInputs["name"] = args?.name;
resourceInputs["paused"] = args?.paused;
resourceInputs["policyId"] = args?.policyId;
resourceInputs["push"] = args?.push;
resourceInputs["recoveryPeriod"] = args?.recoveryPeriod;
resourceInputs["sms"] = args?.sms;
resourceInputs["teamName"] = args?.teamName;
resourceInputs["teamWait"] = args?.teamWait;
resourceInputs["webhookUrl"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ElasticIntegration.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
}
}
exports.ElasticIntegration = ElasticIntegration;
/** @internal */
ElasticIntegration.__pulumiType = 'better-uptime:index/elasticIntegration:ElasticIntegration';
//# sourceMappingURL=elasticIntegration.js.map