UNPKG

@statsig/pulumi-statsig

Version:

A Pulumi package for creating and managing Statsig resources.

80 lines 4.17 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.Gate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource allows you to configure gates for your Statsig project. * * To learn more about gates, see [Gates Documentation](https://docs.statsig.com/feature-flags/) * * To learn more about the API powering this resource, see [Gates API Documentation](https://docs.statsig.com/console-api/gates) */ class Gate extends pulumi.CustomResource { /** * Get an existing Gate 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 Gate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Gate. 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'] === Gate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["creatorEmail"] = state ? state.creatorEmail : undefined; resourceInputs["creatorId"] = state ? state.creatorId : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["idType"] = state ? state.idType : undefined; resourceInputs["isEnabled"] = state ? state.isEnabled : undefined; resourceInputs["measureMetricLifts"] = state ? state.measureMetricLifts : undefined; resourceInputs["monitoringMetrics"] = state ? state.monitoringMetrics : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["rules"] = state ? state.rules : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["targetApps"] = state ? state.targetApps : undefined; resourceInputs["team"] = state ? state.team : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; resourceInputs["creatorEmail"] = args ? args.creatorEmail : undefined; resourceInputs["creatorId"] = args ? args.creatorId : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["idType"] = args ? args.idType : undefined; resourceInputs["isEnabled"] = args ? args.isEnabled : undefined; resourceInputs["measureMetricLifts"] = args ? args.measureMetricLifts : undefined; resourceInputs["monitoringMetrics"] = args ? args.monitoringMetrics : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["rules"] = args ? args.rules : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["targetApps"] = args ? args.targetApps : undefined; resourceInputs["team"] = args ? args.team : undefined; resourceInputs["type"] = args ? args.type : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Gate.__pulumiType, name, resourceInputs, opts); } } exports.Gate = Gate; /** @internal */ Gate.__pulumiType = 'statsig:index/gate:Gate'; //# sourceMappingURL=gate.js.map