UNPKG

@pulumiverse/sentry

Version:

A Pulumi package for creating and managing Sentry resources.

95 lines 5.04 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.SentryRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **WARNING:** This resource is deprecated and will be removed in the next major version. Use the `sentry.SentryIssueAlert` resource instead. */ class SentryRule extends pulumi.CustomResource { /** * Get an existing SentryRule 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 SentryRule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SentryRule. 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'] === SentryRule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["actionMatch"] = state ? state.actionMatch : undefined; resourceInputs["actions"] = state ? state.actions : undefined; resourceInputs["conditions"] = state ? state.conditions : undefined; resourceInputs["environment"] = state ? state.environment : undefined; resourceInputs["filterMatch"] = state ? state.filterMatch : undefined; resourceInputs["filters"] = state ? state.filters : undefined; resourceInputs["frequency"] = state ? state.frequency : undefined; resourceInputs["internalId"] = state ? state.internalId : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["organization"] = state ? state.organization : undefined; resourceInputs["project"] = state ? state.project : undefined; resourceInputs["projects"] = state ? state.projects : undefined; } else { const args = argsOrState; if ((!args || args.actionMatch === undefined) && !opts.urn) { throw new Error("Missing required property 'actionMatch'"); } if ((!args || args.actions === undefined) && !opts.urn) { throw new Error("Missing required property 'actions'"); } if ((!args || args.conditions === undefined) && !opts.urn) { throw new Error("Missing required property 'conditions'"); } if ((!args || args.filterMatch === undefined) && !opts.urn) { throw new Error("Missing required property 'filterMatch'"); } if ((!args || args.frequency === undefined) && !opts.urn) { throw new Error("Missing required property 'frequency'"); } if ((!args || args.organization === undefined) && !opts.urn) { throw new Error("Missing required property 'organization'"); } if ((!args || args.project === undefined) && !opts.urn) { throw new Error("Missing required property 'project'"); } resourceInputs["actionMatch"] = args ? args.actionMatch : undefined; resourceInputs["actions"] = args ? args.actions : undefined; resourceInputs["conditions"] = args ? args.conditions : undefined; resourceInputs["environment"] = args ? args.environment : undefined; resourceInputs["filterMatch"] = args ? args.filterMatch : undefined; resourceInputs["filters"] = args ? args.filters : undefined; resourceInputs["frequency"] = args ? args.frequency : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["organization"] = args ? args.organization : undefined; resourceInputs["project"] = args ? args.project : undefined; resourceInputs["internalId"] = undefined /*out*/; resourceInputs["projects"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SentryRule.__pulumiType, name, resourceInputs, opts); } } exports.SentryRule = SentryRule; /** @internal */ SentryRule.__pulumiType = 'sentry:index/sentryRule:SentryRule'; //# sourceMappingURL=sentryRule.js.map