import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Create and manage an Experiment Center feature flag (EA only). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const myFlag = new auth0.ExperimentFeatureFlag("my_flag", { * parameters: [ * { * name: "show_passkey", * type: "boolean", * value: "false", * description: "Whether the passkey enrollment screen is shown.", * }, * { * name: "cta_label", * type: "string", * value: "Sign in", * }, * { * name: "obj1", * type: "object", * value: JSON.stringify({ * label: "A", * enabled: true, * }), * }, * { * name: "arr1", * type: "array", * value: JSON.stringify([ * "a", * "b", * ]), * }, * ], * variations: [ * { * name: "control", * description: "Current login screen.", * }, * { * overrides: [ * { * name: "show_passkey", * type: "boolean", * value: "true", * }, * { * name: "cta_label", * type: "string", * value: "Continue with passkey", * }, * { * name: "obj1", * type: "object", * value: JSON.stringify({ * label: "B", * enabled: true, * }), * }, * ], * name: "treatment", * description: "Login screen with passkey enrollment.", * }, * ], * name: "checkout-passkey-rollout", * description: "Feature flag driving the passkey A/B test on the login screen.", * status: "active", * }); * export const treatmentVariationId = myFlag.variationIds.treatment; * ``` * * ## Import * * This resource can be imported using the feature flag ID. * Example: * * ```sh * $ pulumi import auth0:index/experimentFeatureFlag:ExperimentFeatureFlag my_flag "flg_qbcYN5nLxwEY9coR7FdEw9" * ``` */ export declare class ExperimentFeatureFlag extends pulumi.CustomResource { /** * Get an existing ExperimentFeatureFlag 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, state?: ExperimentFeatureFlagState, opts?: pulumi.CustomResourceOptions): ExperimentFeatureFlag; /** * Check whether an existing ExperimentFeatureFlag resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: ExperimentFeatureFlagState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ExperimentFeatureFlag. 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 ExperimentFeatureFlag; /** * The ISO 8601 formatted date the feature flag was created. */ readonly createdAt: pulumi.Output; /** * Description of the feature flag. Min length 3 when present. */ readonly description: pulumi.Output; /** * The name of the feature flag. */ readonly name: pulumi.Output; /** * The parameters carried by the feature flag. */ readonly parameters: pulumi.Output; /** * The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation. */ readonly status: pulumi.Output; /** * The type of the feature flag: `self` for user-created flags or `auth0` for built-in flags. */ readonly type: pulumi.Output; /** * The ISO 8601 formatted date the feature flag was updated. */ readonly updatedAt: pulumi.Output; /** * A map of variation names to variation IDs. Use it to reference a variation by ID, for example in an experiment allocation, because the `variations` blocks do not include IDs. An ID stays the same when you change the description or overrides of a variation. A variation gets a new ID when you rename it, remove and add it again, or when the feature flag is replaced. */ readonly variationIds: pulumi.Output<{ [key: string]: string; }>; /** * The variations of the feature flag. Each variation overrides parameter values of the feature flag. */ readonly variations: pulumi.Output; /** * Create a ExperimentFeatureFlag 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: ExperimentFeatureFlagArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ExperimentFeatureFlag resources. */ export interface ExperimentFeatureFlagState { /** * The ISO 8601 formatted date the feature flag was created. */ createdAt?: pulumi.Input; /** * Description of the feature flag. Min length 3 when present. */ description?: pulumi.Input; /** * The name of the feature flag. */ name?: pulumi.Input; /** * The parameters carried by the feature flag. */ parameters?: pulumi.Input[] | undefined>; /** * The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation. */ status?: pulumi.Input; /** * The type of the feature flag: `self` for user-created flags or `auth0` for built-in flags. */ type?: pulumi.Input; /** * The ISO 8601 formatted date the feature flag was updated. */ updatedAt?: pulumi.Input; /** * A map of variation names to variation IDs. Use it to reference a variation by ID, for example in an experiment allocation, because the `variations` blocks do not include IDs. An ID stays the same when you change the description or overrides of a variation. A variation gets a new ID when you rename it, remove and add it again, or when the feature flag is replaced. */ variationIds?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The variations of the feature flag. Each variation overrides parameter values of the feature flag. */ variations?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a ExperimentFeatureFlag resource. */ export interface ExperimentFeatureFlagArgs { /** * Description of the feature flag. Min length 3 when present. */ description?: pulumi.Input; /** * The name of the feature flag. */ name?: pulumi.Input; /** * The parameters carried by the feature flag. */ parameters: pulumi.Input[]>; /** * The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation. */ status?: pulumi.Input; /** * The variations of the feature flag. Each variation overrides parameter values of the feature flag. */ variations?: pulumi.Input[] | undefined>; } //# sourceMappingURL=experimentFeatureFlag.d.ts.map