import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Data source to retrieve a specific Experiment Center feature flag by `id`. (EA only) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Experiment Center feature flag loaded using its ID. * const myFlag = auth0.getExperimentFeatureFlag({ * id: "flg_XXXXXXXXXXXXXXX", * }); * export const treatmentVariationId = myFlag.then(myFlag => myFlag.variationIds?.treatment); * ``` */ export declare function getExperimentFeatureFlag(args: GetExperimentFeatureFlagArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getExperimentFeatureFlag. */ export interface GetExperimentFeatureFlagArgs { /** * The ID of the feature flag. */ id: string; } /** * A collection of values returned by getExperimentFeatureFlag. */ export interface GetExperimentFeatureFlagResult { /** * The ISO 8601 formatted date the feature flag was created. */ readonly createdAt: string; /** * Description of the feature flag. Min length 3 when present. */ readonly description: string; /** * The ID of the feature flag. */ readonly id: string; /** * The name of the feature flag. */ readonly name: string; /** * The parameters carried by the feature flag. */ readonly parameters: outputs.GetExperimentFeatureFlagParameter[]; /** * The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation. */ readonly status: string; /** * The type of the feature flag: `self` for user-created flags or `auth0` for built-in flags. */ readonly type: string; /** * The ISO 8601 formatted date the feature flag was updated. */ readonly updatedAt: string; /** * 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: { [key: string]: string; }; /** * The variations of the feature flag. Each variation overrides parameter values of the feature flag. */ readonly variations: outputs.GetExperimentFeatureFlagVariation[]; } /** * Data source to retrieve a specific Experiment Center feature flag by `id`. (EA only) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Experiment Center feature flag loaded using its ID. * const myFlag = auth0.getExperimentFeatureFlag({ * id: "flg_XXXXXXXXXXXXXXX", * }); * export const treatmentVariationId = myFlag.then(myFlag => myFlag.variationIds?.treatment); * ``` */ export declare function getExperimentFeatureFlagOutput(args: GetExperimentFeatureFlagOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getExperimentFeatureFlag. */ export interface GetExperimentFeatureFlagOutputArgs { /** * The ID of the feature flag. */ id: pulumi.Input; } //# sourceMappingURL=getExperimentFeatureFlag.d.ts.map