@statsig/pulumi-statsig
Version:
A Pulumi package for creating and managing Statsig resources.
94 lines (93 loc) • 3.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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)
*/
export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: GateState, opts?: pulumi.CustomResourceOptions): Gate;
/**
* 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: any): obj is Gate;
readonly creatorEmail: pulumi.Output<string>;
readonly creatorId: pulumi.Output<string>;
readonly description: pulumi.Output<string>;
readonly idType: pulumi.Output<string>;
readonly isEnabled: pulumi.Output<boolean>;
readonly measureMetricLifts: pulumi.Output<boolean>;
readonly monitoringMetrics: pulumi.Output<outputs.GateMonitoringMetric[]>;
/**
* id
*/
readonly name: pulumi.Output<string>;
readonly rules: pulumi.Output<outputs.GateRule[]>;
readonly tags: pulumi.Output<string[]>;
readonly targetApps: pulumi.Output<string[]>;
readonly team: pulumi.Output<string>;
readonly type: pulumi.Output<string>;
/**
* Create a Gate resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: GateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Gate resources.
*/
export interface GateState {
creatorEmail?: pulumi.Input<string>;
creatorId?: pulumi.Input<string>;
description?: pulumi.Input<string>;
idType?: pulumi.Input<string>;
isEnabled?: pulumi.Input<boolean>;
measureMetricLifts?: pulumi.Input<boolean>;
monitoringMetrics?: pulumi.Input<pulumi.Input<inputs.GateMonitoringMetric>[]>;
/**
* id
*/
name?: pulumi.Input<string>;
rules?: pulumi.Input<pulumi.Input<inputs.GateRule>[]>;
tags?: pulumi.Input<pulumi.Input<string>[]>;
targetApps?: pulumi.Input<pulumi.Input<string>[]>;
team?: pulumi.Input<string>;
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Gate resource.
*/
export interface GateArgs {
creatorEmail?: pulumi.Input<string>;
creatorId?: pulumi.Input<string>;
description?: pulumi.Input<string>;
idType?: pulumi.Input<string>;
isEnabled?: pulumi.Input<boolean>;
measureMetricLifts?: pulumi.Input<boolean>;
monitoringMetrics?: pulumi.Input<pulumi.Input<inputs.GateMonitoringMetric>[]>;
/**
* id
*/
name?: pulumi.Input<string>;
rules?: pulumi.Input<pulumi.Input<inputs.GateRule>[]>;
tags?: pulumi.Input<pulumi.Input<string>[]>;
targetApps?: pulumi.Input<pulumi.Input<string>[]>;
team?: pulumi.Input<string>;
type?: pulumi.Input<string>;
}