1. Registry
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. ExperimentFeatureFlag
Viewing docs for Auth0 v3.56.0
published on Friday, Nov 6, 2026 by Pulumi
auth0 logo auth0 logo
Viewing docs for Auth0 v3.56.0
published on Friday, Nov 6, 2026 by Pulumi

    Create and manage an Experiment Center feature flag (EA only).

    Example Usage

    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 pulumi
    import json
    import pulumi_auth0 as auth0
    
    my_flag = 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.dumps({
                    "label": "A",
                    "enabled": True,
                }),
            },
            {
                "name": "arr1",
                "type": "array",
                "value": json.dumps([
                    "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.dumps({
                            "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")
    pulumi.export("treatmentVariationId", my_flag.variation_ids["treatment"])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"label":   "A",
    			"enabled": true,
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		tmpJSON1, err := json.Marshal([]string{
    			"a",
    			"b",
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		tmpJSON2, err := json.Marshal(map[string]interface{}{
    			"label":   "B",
    			"enabled": true,
    		})
    		if err != nil {
    			return err
    		}
    		json2 := string(tmpJSON2)
    		myFlag, err := auth0.NewExperimentFeatureFlag(ctx, "my_flag", &auth0.ExperimentFeatureFlagArgs{
    			Parameters: auth0.ExperimentFeatureFlagParameterArray{
    				&auth0.ExperimentFeatureFlagParameterArgs{
    					Name:        pulumi.String("show_passkey"),
    					Type:        pulumi.String("boolean"),
    					Value:       pulumi.String("false"),
    					Description: pulumi.String("Whether the passkey enrollment screen is shown."),
    				},
    				&auth0.ExperimentFeatureFlagParameterArgs{
    					Name:  pulumi.String("cta_label"),
    					Type:  pulumi.String("string"),
    					Value: pulumi.String("Sign in"),
    				},
    				&auth0.ExperimentFeatureFlagParameterArgs{
    					Name:  pulumi.String("obj1"),
    					Type:  pulumi.String("object"),
    					Value: pulumi.String(json0),
    				},
    				&auth0.ExperimentFeatureFlagParameterArgs{
    					Name:  pulumi.String("arr1"),
    					Type:  pulumi.String("array"),
    					Value: pulumi.String(json1),
    				},
    			},
    			Variations: auth0.ExperimentFeatureFlagVariationArray{
    				&auth0.ExperimentFeatureFlagVariationArgs{
    					Name:        pulumi.String("control"),
    					Description: pulumi.String("Current login screen."),
    				},
    				&auth0.ExperimentFeatureFlagVariationArgs{
    					Overrides: auth0.ExperimentFeatureFlagVariationOverrideArray{
    						&auth0.ExperimentFeatureFlagVariationOverrideArgs{
    							Name:  pulumi.String("show_passkey"),
    							Type:  pulumi.String("boolean"),
    							Value: pulumi.String("true"),
    						},
    						&auth0.ExperimentFeatureFlagVariationOverrideArgs{
    							Name:  pulumi.String("cta_label"),
    							Type:  pulumi.String("string"),
    							Value: pulumi.String("Continue with passkey"),
    						},
    						&auth0.ExperimentFeatureFlagVariationOverrideArgs{
    							Name:  pulumi.String("obj1"),
    							Type:  pulumi.String("object"),
    							Value: pulumi.String(json2),
    						},
    					},
    					Name:        pulumi.String("treatment"),
    					Description: pulumi.String("Login screen with passkey enrollment."),
    				},
    			},
    			Name:        pulumi.String("checkout-passkey-rollout"),
    			Description: pulumi.String("Feature flag driving the passkey A/B test on the login screen."),
    			Status:      pulumi.String("active"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("treatmentVariationId", myFlag.VariationIds.ApplyT(func(variationIds map[string]string) (string, error) {
    			return variationIds["treatment"], nil
    		}).(pulumi.StringOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Auth0 = Pulumi.Auth0;
    
    return await Deployment.RunAsync(() => 
    {
        var myFlag = new Auth0.ExperimentFeatureFlag("my_flag", new()
        {
            Parameters = new[]
            {
                new Auth0.Inputs.ExperimentFeatureFlagParameterArgs
                {
                    Name = "show_passkey",
                    Type = "boolean",
                    Value = "false",
                    Description = "Whether the passkey enrollment screen is shown.",
                },
                new Auth0.Inputs.ExperimentFeatureFlagParameterArgs
                {
                    Name = "cta_label",
                    Type = "string",
                    Value = "Sign in",
                },
                new Auth0.Inputs.ExperimentFeatureFlagParameterArgs
                {
                    Name = "obj1",
                    Type = "object",
                    Value = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["label"] = "A",
                        ["enabled"] = true,
                    }),
                },
                new Auth0.Inputs.ExperimentFeatureFlagParameterArgs
                {
                    Name = "arr1",
                    Type = "array",
                    Value = JsonSerializer.Serialize(new[]
                    {
                        "a",
                        "b",
                    }),
                },
            },
            Variations = new[]
            {
                new Auth0.Inputs.ExperimentFeatureFlagVariationArgs
                {
                    Name = "control",
                    Description = "Current login screen.",
                },
                new Auth0.Inputs.ExperimentFeatureFlagVariationArgs
                {
                    Overrides = new[]
                    {
                        new Auth0.Inputs.ExperimentFeatureFlagVariationOverrideArgs
                        {
                            Name = "show_passkey",
                            Type = "boolean",
                            Value = "true",
                        },
                        new Auth0.Inputs.ExperimentFeatureFlagVariationOverrideArgs
                        {
                            Name = "cta_label",
                            Type = "string",
                            Value = "Continue with passkey",
                        },
                        new Auth0.Inputs.ExperimentFeatureFlagVariationOverrideArgs
                        {
                            Name = "obj1",
                            Type = "object",
                            Value = JsonSerializer.Serialize(new Dictionary<string, object?>
                            {
                                ["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",
        });
    
        return new Dictionary<string, object?>
        {
            ["treatmentVariationId"] = myFlag.VariationIds.Apply(variationIds => variationIds.Treatment),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.auth0.ExperimentFeatureFlag;
    import com.pulumi.auth0.ExperimentFeatureFlagArgs;
    import com.pulumi.auth0.inputs.ExperimentFeatureFlagParameterArgs;
    import com.pulumi.auth0.inputs.ExperimentFeatureFlagVariationArgs;
    import com.pulumi.auth0.inputs.ExperimentFeatureFlagVariationOverrideArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myFlag = new ExperimentFeatureFlag("myFlag", ExperimentFeatureFlagArgs.builder()
                .parameters(            
                    ExperimentFeatureFlagParameterArgs.builder()
                        .name("show_passkey")
                        .type("boolean")
                        .value("false")
                        .description("Whether the passkey enrollment screen is shown.")
                        .build(),
                    ExperimentFeatureFlagParameterArgs.builder()
                        .name("cta_label")
                        .type("string")
                        .value("Sign in")
                        .build(),
                    ExperimentFeatureFlagParameterArgs.builder()
                        .name("obj1")
                        .type("object")
                        .value(serializeJson(
                            jsonObject(
                                jsonProperty("label", "A"),
                                jsonProperty("enabled", true)
                            )))
                        .build(),
                    ExperimentFeatureFlagParameterArgs.builder()
                        .name("arr1")
                        .type("array")
                        .value(serializeJson(
                            jsonArray(
                                "a", 
                                "b"
                            )))
                        .build())
                .variations(            
                    ExperimentFeatureFlagVariationArgs.builder()
                        .name("control")
                        .description("Current login screen.")
                        .build(),
                    ExperimentFeatureFlagVariationArgs.builder()
                        .overrides(                    
                            ExperimentFeatureFlagVariationOverrideArgs.builder()
                                .name("show_passkey")
                                .type("boolean")
                                .value("true")
                                .build(),
                            ExperimentFeatureFlagVariationOverrideArgs.builder()
                                .name("cta_label")
                                .type("string")
                                .value("Continue with passkey")
                                .build(),
                            ExperimentFeatureFlagVariationOverrideArgs.builder()
                                .name("obj1")
                                .type("object")
                                .value(serializeJson(
                                    jsonObject(
                                        jsonProperty("label", "B"),
                                        jsonProperty("enabled", true)
                                    )))
                                .build())
                        .name("treatment")
                        .description("Login screen with passkey enrollment.")
                        .build())
                .name("checkout-passkey-rollout")
                .description("Feature flag driving the passkey A/B test on the login screen.")
                .status("active")
                .build());
    
            ctx.export("treatmentVariationId", myFlag.variationIds().applyValue(_variationIds -> _variationIds.get("treatment")));
        }
    }
    
    resources:
      myFlag:
        type: auth0:ExperimentFeatureFlag
        name: my_flag
        properties:
          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:
                fn::toJSON:
                  label: A
                  enabled: true
            - name: arr1
              type: array
              value:
                fn::toJSON:
                  - 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:
                    fn::toJSON:
                      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
    outputs:
      # Use variation_ids to reference a variation by ID, for example in an experiment allocation.
      treatmentVariationId: ${myFlag.variationIds.treatment}
    
    terraform {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    resource "auth0_experiment_feature_flag" "my_flag" {
      lifecycle {
        create_before_destroy = true
      }
      parameters {
        name        = "show_passkey"
        type        = "boolean"
        value       = "false"
        description = "Whether the passkey enrollment screen is shown."
      }
      parameters {
        name  = "cta_label"
        type  = "string"
        value = "Sign in"
      }
      parameters {
        name = "obj1"
        type = "object"
        value = jsonencode({
          "label"   = "A"
          "enabled" = true
        })
      }
      parameters {
        name  = "arr1"
        type  = "array"
        value = jsonencode(["a", "b"])
      }
      variations {
        name        = "control"
        description = "Current login screen."
      }
      variations {
        overrides {
          name  = "show_passkey"
          type  = "boolean"
          value = "true"
        }
        overrides {
          name  = "cta_label"
          type  = "string"
          value = "Continue with passkey"
        }
        overrides {
          name = "obj1"
          type = "object"
          value = jsonencode({
            "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"
    }
    # Use variation_ids to reference a variation by ID, for example in an experiment allocation.
    output "treatmentVariationId" {
      value = auth0_experiment_feature_flag.my_flag.variation_ids["treatment"]
    }
    

    Create ExperimentFeatureFlag Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ExperimentFeatureFlag(name: string, args: ExperimentFeatureFlagArgs, opts?: CustomResourceOptions);
    @overload
    def ExperimentFeatureFlag(resource_name: str,
                              args: ExperimentFeatureFlagArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExperimentFeatureFlag(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              parameters: Optional[Sequence[ExperimentFeatureFlagParameterArgs]] = None,
                              description: Optional[str] = None,
                              name: Optional[str] = None,
                              status: Optional[str] = None,
                              variations: Optional[Sequence[ExperimentFeatureFlagVariationArgs]] = None)
    func NewExperimentFeatureFlag(ctx *Context, name string, args ExperimentFeatureFlagArgs, opts ...ResourceOption) (*ExperimentFeatureFlag, error)
    public ExperimentFeatureFlag(string name, ExperimentFeatureFlagArgs args, CustomResourceOptions? opts = null)
    public ExperimentFeatureFlag(String name, ExperimentFeatureFlagArgs args)
    public ExperimentFeatureFlag(String name, ExperimentFeatureFlagArgs args, CustomResourceOptions options)
    
    type: auth0:ExperimentFeatureFlag
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "auth0_experiment_feature_flag" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ExperimentFeatureFlagArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ExperimentFeatureFlagArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ExperimentFeatureFlagArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExperimentFeatureFlagArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExperimentFeatureFlagArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var experimentFeatureFlagResource = new Auth0.ExperimentFeatureFlag("experimentFeatureFlagResource", new()
    {
        Parameters = new[]
        {
            new Auth0.Inputs.ExperimentFeatureFlagParameterArgs
            {
                Name = "string",
                Type = "string",
                Value = "string",
                Description = "string",
            },
        },
        Description = "string",
        Name = "string",
        Status = "string",
        Variations = new[]
        {
            new Auth0.Inputs.ExperimentFeatureFlagVariationArgs
            {
                Name = "string",
                Description = "string",
                Overrides = new[]
                {
                    new Auth0.Inputs.ExperimentFeatureFlagVariationOverrideArgs
                    {
                        Name = "string",
                        Type = "string",
                        Value = "string",
                    },
                },
            },
        },
    });
    
    example, err := auth0.NewExperimentFeatureFlag(ctx, "experimentFeatureFlagResource", &auth0.ExperimentFeatureFlagArgs{
    	Parameters: auth0.ExperimentFeatureFlagParameterArray{
    		&auth0.ExperimentFeatureFlagParameterArgs{
    			Name:        pulumi.String("string"),
    			Type:        pulumi.String("string"),
    			Value:       pulumi.String("string"),
    			Description: pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Status:      pulumi.String("string"),
    	Variations: auth0.ExperimentFeatureFlagVariationArray{
    		&auth0.ExperimentFeatureFlagVariationArgs{
    			Name:        pulumi.String("string"),
    			Description: pulumi.String("string"),
    			Overrides: auth0.ExperimentFeatureFlagVariationOverrideArray{
    				&auth0.ExperimentFeatureFlagVariationOverrideArgs{
    					Name:  pulumi.String("string"),
    					Type:  pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    resource "auth0_experiment_feature_flag" "experimentFeatureFlagResource" {
      lifecycle {
        create_before_destroy = true
      }
      parameters {
        name        = "string"
        type        = "string"
        value       = "string"
        description = "string"
      }
      description = "string"
      name        = "string"
      status      = "string"
      variations {
        name        = "string"
        description = "string"
        overrides {
          name  = "string"
          type  = "string"
          value = "string"
        }
      }
    }
    
    var experimentFeatureFlagResource = new ExperimentFeatureFlag("experimentFeatureFlagResource", ExperimentFeatureFlagArgs.builder()
        .parameters(ExperimentFeatureFlagParameterArgs.builder()
            .name("string")
            .type("string")
            .value("string")
            .description("string")
            .build())
        .description("string")
        .name("string")
        .status("string")
        .variations(ExperimentFeatureFlagVariationArgs.builder()
            .name("string")
            .description("string")
            .overrides(ExperimentFeatureFlagVariationOverrideArgs.builder()
                .name("string")
                .type("string")
                .value("string")
                .build())
            .build())
        .build());
    
    experiment_feature_flag_resource = auth0.ExperimentFeatureFlag("experimentFeatureFlagResource",
        parameters=[{
            "name": "string",
            "type": "string",
            "value": "string",
            "description": "string",
        }],
        description="string",
        name="string",
        status="string",
        variations=[{
            "name": "string",
            "description": "string",
            "overrides": [{
                "name": "string",
                "type": "string",
                "value": "string",
            }],
        }])
    
    const experimentFeatureFlagResource = new auth0.ExperimentFeatureFlag("experimentFeatureFlagResource", {
        parameters: [{
            name: "string",
            type: "string",
            value: "string",
            description: "string",
        }],
        description: "string",
        name: "string",
        status: "string",
        variations: [{
            name: "string",
            description: "string",
            overrides: [{
                name: "string",
                type: "string",
                value: "string",
            }],
        }],
    });
    
    type: auth0:ExperimentFeatureFlag
    properties:
        description: string
        name: string
        parameters:
            - description: string
              name: string
              type: string
              value: string
        status: string
        variations:
            - description: string
              name: string
              overrides:
                - name: string
                  type: string
                  value: string
    

    ExperimentFeatureFlag Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ExperimentFeatureFlag resource accepts the following input properties:

    Parameters List<ExperimentFeatureFlagParameter>
    The parameters carried by the feature flag.
    Description string
    Description of the feature flag. Min length 3 when present.
    Name string
    The name of the feature flag.
    Status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    Variations List<ExperimentFeatureFlagVariation>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    Parameters []ExperimentFeatureFlagParameterArgs
    The parameters carried by the feature flag.
    Description string
    Description of the feature flag. Min length 3 when present.
    Name string
    The name of the feature flag.
    Status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    Variations []ExperimentFeatureFlagVariationArgs
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    parameters list(object)
    The parameters carried by the feature flag.
    description string
    Description of the feature flag. Min length 3 when present.
    name string
    The name of the feature flag.
    status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    variations list(object)
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    parameters List<ExperimentFeatureFlagParameter>
    The parameters carried by the feature flag.
    description String
    Description of the feature flag. Min length 3 when present.
    name String
    The name of the feature flag.
    status String
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    variations List<ExperimentFeatureFlagVariation>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    parameters ExperimentFeatureFlagParameter[]
    The parameters carried by the feature flag.
    description string
    Description of the feature flag. Min length 3 when present.
    name string
    The name of the feature flag.
    status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    variations ExperimentFeatureFlagVariation[]
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    parameters Sequence[ExperimentFeatureFlagParameterArgs]
    The parameters carried by the feature flag.
    description str
    Description of the feature flag. Min length 3 when present.
    name str
    The name of the feature flag.
    status str
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    variations Sequence[ExperimentFeatureFlagVariationArgs]
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    parameters List<Property Map>
    The parameters carried by the feature flag.
    description String
    Description of the feature flag. Min length 3 when present.
    name String
    The name of the feature flag.
    status String
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    variations List<Property Map>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ExperimentFeatureFlag resource produces the following output properties:

    CreatedAt string
    The ISO 8601 formatted date the feature flag was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    UpdatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    VariationIds Dictionary<string, 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.
    CreatedAt string
    The ISO 8601 formatted date the feature flag was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    UpdatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    VariationIds map[string]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.
    created_at string
    The ISO 8601 formatted date the feature flag was created.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updated_at string
    The ISO 8601 formatted date the feature flag was updated.
    variation_ids map(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.
    createdAt String
    The ISO 8601 formatted date the feature flag was created.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt String
    The ISO 8601 formatted date the feature flag was updated.
    variationIds Map<String,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.
    createdAt string
    The ISO 8601 formatted date the feature flag was created.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    variationIds {[key: string]: 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.
    created_at str
    The ISO 8601 formatted date the feature flag was created.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updated_at str
    The ISO 8601 formatted date the feature flag was updated.
    variation_ids Mapping[str, str]
    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.
    createdAt String
    The ISO 8601 formatted date the feature flag was created.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt String
    The ISO 8601 formatted date the feature flag was updated.
    variationIds Map<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.

    Look up Existing ExperimentFeatureFlag Resource

    Get an existing ExperimentFeatureFlag resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ExperimentFeatureFlagState, opts?: CustomResourceOptions): ExperimentFeatureFlag
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            parameters: Optional[Sequence[ExperimentFeatureFlagParameterArgs]] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None,
            variation_ids: Optional[Mapping[str, str]] = None,
            variations: Optional[Sequence[ExperimentFeatureFlagVariationArgs]] = None) -> ExperimentFeatureFlag
    func GetExperimentFeatureFlag(ctx *Context, name string, id IDInput, state *ExperimentFeatureFlagState, opts ...ResourceOption) (*ExperimentFeatureFlag, error)
    public static ExperimentFeatureFlag Get(string name, Input<string> id, ExperimentFeatureFlagState? state, CustomResourceOptions? opts = null)
    public static ExperimentFeatureFlag get(String name, Output<String> id, ExperimentFeatureFlagState state, CustomResourceOptions options)
    resources:  _:    type: auth0:ExperimentFeatureFlag    get:      id: ${id}
    import {
      to = auth0_experiment_feature_flag.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    The ISO 8601 formatted date the feature flag was created.
    Description string
    Description of the feature flag. Min length 3 when present.
    Name string
    The name of the feature flag.
    Parameters List<ExperimentFeatureFlagParameter>
    The parameters carried by the feature flag.
    Status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    Type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    UpdatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    VariationIds Dictionary<string, 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.
    Variations List<ExperimentFeatureFlagVariation>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    CreatedAt string
    The ISO 8601 formatted date the feature flag was created.
    Description string
    Description of the feature flag. Min length 3 when present.
    Name string
    The name of the feature flag.
    Parameters []ExperimentFeatureFlagParameterArgs
    The parameters carried by the feature flag.
    Status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    Type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    UpdatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    VariationIds map[string]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.
    Variations []ExperimentFeatureFlagVariationArgs
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    created_at string
    The ISO 8601 formatted date the feature flag was created.
    description string
    Description of the feature flag. Min length 3 when present.
    name string
    The name of the feature flag.
    parameters list(object)
    The parameters carried by the feature flag.
    status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updated_at string
    The ISO 8601 formatted date the feature flag was updated.
    variation_ids map(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.
    variations list(object)
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    createdAt String
    The ISO 8601 formatted date the feature flag was created.
    description String
    Description of the feature flag. Min length 3 when present.
    name String
    The name of the feature flag.
    parameters List<ExperimentFeatureFlagParameter>
    The parameters carried by the feature flag.
    status String
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    type String
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt String
    The ISO 8601 formatted date the feature flag was updated.
    variationIds Map<String,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.
    variations List<ExperimentFeatureFlagVariation>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    createdAt string
    The ISO 8601 formatted date the feature flag was created.
    description string
    Description of the feature flag. Min length 3 when present.
    name string
    The name of the feature flag.
    parameters ExperimentFeatureFlagParameter[]
    The parameters carried by the feature flag.
    status string
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    type string
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt string
    The ISO 8601 formatted date the feature flag was updated.
    variationIds {[key: string]: 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.
    variations ExperimentFeatureFlagVariation[]
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    created_at str
    The ISO 8601 formatted date the feature flag was created.
    description str
    Description of the feature flag. Min length 3 when present.
    name str
    The name of the feature flag.
    parameters Sequence[ExperimentFeatureFlagParameterArgs]
    The parameters carried by the feature flag.
    status str
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    type str
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updated_at str
    The ISO 8601 formatted date the feature flag was updated.
    variation_ids Mapping[str, str]
    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.
    variations Sequence[ExperimentFeatureFlagVariationArgs]
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.
    createdAt String
    The ISO 8601 formatted date the feature flag was created.
    description String
    Description of the feature flag. Min length 3 when present.
    name String
    The name of the feature flag.
    parameters List<Property Map>
    The parameters carried by the feature flag.
    status String
    The lifecycle status of the feature flag. One of draft, active, archived. Defaults to draft when omitted on creation.
    type String
    The type of the feature flag: self for user-created flags or auth0 for built-in flags.
    updatedAt String
    The ISO 8601 formatted date the feature flag was updated.
    variationIds Map<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.
    variations List<Property Map>
    The variations of the feature flag. Each variation overrides parameter values of the feature flag.

    Supporting Types

    ExperimentFeatureFlagParameter, ExperimentFeatureFlagParameterArgs

    Name string
    The key of the parameter.
    Type string
    The value type of the parameter. One of boolean, string, number, array, object
    Value string
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    Description string
    Description of the parameter.
    Name string
    The key of the parameter.
    Type string
    The value type of the parameter. One of boolean, string, number, array, object
    Value string
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    Description string
    Description of the parameter.
    name string
    The key of the parameter.
    type string
    The value type of the parameter. One of boolean, string, number, array, object
    value string
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    description string
    Description of the parameter.
    name String
    The key of the parameter.
    type String
    The value type of the parameter. One of boolean, string, number, array, object
    value String
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    description String
    Description of the parameter.
    name string
    The key of the parameter.
    type string
    The value type of the parameter. One of boolean, string, number, array, object
    value string
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    description string
    Description of the parameter.
    name str
    The key of the parameter.
    type str
    The value type of the parameter. One of boolean, string, number, array, object
    value str
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    description str
    Description of the parameter.
    name String
    The key of the parameter.
    type String
    The value type of the parameter. One of boolean, string, number, array, object
    value String
    The default value of the parameter, as a string. For type = "object" or type = "array" supply a JSON-encoded string; for boolean/number supply the literal value as a string.
    description String
    Description of the parameter.

    ExperimentFeatureFlagVariation, ExperimentFeatureFlagVariationArgs

    Name string
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    Description string
    Description of the variation. Must contain 3 to 1024 characters when set.
    Overrides List<ExperimentFeatureFlagVariationOverride>
    Parameter overrides for the variation. Omit for a control variation.
    Name string
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    Description string
    Description of the variation. Must contain 3 to 1024 characters when set.
    Overrides []ExperimentFeatureFlagVariationOverride
    Parameter overrides for the variation. Omit for a control variation.
    name string
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    description string
    Description of the variation. Must contain 3 to 1024 characters when set.
    overrides list(object)
    Parameter overrides for the variation. Omit for a control variation.
    name String
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    description String
    Description of the variation. Must contain 3 to 1024 characters when set.
    overrides List<ExperimentFeatureFlagVariationOverride>
    Parameter overrides for the variation. Omit for a control variation.
    name string
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    description string
    Description of the variation. Must contain 3 to 1024 characters when set.
    overrides ExperimentFeatureFlagVariationOverride[]
    Parameter overrides for the variation. Omit for a control variation.
    name str
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    description str
    Description of the variation. Must contain 3 to 1024 characters when set.
    overrides Sequence[ExperimentFeatureFlagVariationOverride]
    Parameter overrides for the variation. Omit for a control variation.
    name String
    The name of the variation. Must be unique within the feature flag and contain 3 to 255 characters without surrounding whitespace. Changing the name deletes the variation and creates a new one with a new ID.
    description String
    Description of the variation. Must contain 3 to 1024 characters when set.
    overrides List<Property Map>
    Parameter overrides for the variation. Omit for a control variation.

    ExperimentFeatureFlagVariationOverride, ExperimentFeatureFlagVariationOverrideArgs

    Name string
    The name of a parameter on the feature flag. Each name can appear once.
    Type string
    The type of the parameter value. One of boolean, string, number, array, object.
    Value string
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    Name string
    The name of a parameter on the feature flag. Each name can appear once.
    Type string
    The type of the parameter value. One of boolean, string, number, array, object.
    Value string
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    name string
    The name of a parameter on the feature flag. Each name can appear once.
    type string
    The type of the parameter value. One of boolean, string, number, array, object.
    value string
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    name String
    The name of a parameter on the feature flag. Each name can appear once.
    type String
    The type of the parameter value. One of boolean, string, number, array, object.
    value String
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    name string
    The name of a parameter on the feature flag. Each name can appear once.
    type string
    The type of the parameter value. One of boolean, string, number, array, object.
    value string
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    name str
    The name of a parameter on the feature flag. Each name can appear once.
    type str
    The type of the parameter value. One of boolean, string, number, array, object.
    value str
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.
    name String
    The name of a parameter on the feature flag. Each name can appear once.
    type String
    The type of the parameter value. One of boolean, string, number, array, object.
    value String
    The override value as a string. For object and array values, provide JSON; for boolean and number values, provide their literal text.

    Import

    This resource can be imported using the feature flag ID. Example:

    $ pulumi import auth0:index/experimentFeatureFlag:ExperimentFeatureFlag my_flag "flg_qbcYN5nLxwEY9coR7FdEw9"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Auth0 pulumi/pulumi-auth0
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the auth0 Terraform Provider.
    auth0 logo auth0 logo
    Viewing docs for Auth0 v3.56.0
    published on Friday, Nov 6, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial