1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. fmeFeatureFlag
  6. Definition
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi

    Create, update, and remove a Harness FME (Split) feature flag definition in an environment. definition is JSON matching Split’s definition payload (see Split API). Import id format: org_id/project_id/environment_id/flag_name.

    Create Definition Resource

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

    Constructor syntax

    new Definition(name: string, args: DefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def Definition(resource_name: str,
                   args: DefinitionArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Definition(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   definition: Optional[str] = None,
                   environment_id: Optional[str] = None,
                   flag_name: Optional[str] = None,
                   org_id: Optional[str] = None,
                   project_id: Optional[str] = None)
    func NewDefinition(ctx *Context, name string, args DefinitionArgs, opts ...ResourceOption) (*Definition, error)
    public Definition(string name, DefinitionArgs args, CustomResourceOptions? opts = null)
    public Definition(String name, DefinitionArgs args)
    public Definition(String name, DefinitionArgs args, CustomResourceOptions options)
    
    type: harness:fmeFeatureFlag:Definition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "harness_fmefeatureflag_definition" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DefinitionArgs
    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 DefinitionArgs
    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 DefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefinitionArgs
    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 definitionResource = new Harness.FmeFeatureFlag.Definition("definitionResource", new()
    {
        DefinitionJson = "string",
        EnvironmentId = "string",
        FlagName = "string",
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := fmefeatureflag.NewDefinition(ctx, "definitionResource", &fmefeatureflag.DefinitionArgs{
    	Definition:    pulumi.String("string"),
    	EnvironmentId: pulumi.String("string"),
    	FlagName:      pulumi.String("string"),
    	OrgId:         pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    })
    
    resource "harness_fmefeatureflag_definition" "definitionResource" {
      definition     = "string"
      environment_id = "string"
      flag_name      = "string"
      org_id         = "string"
      project_id     = "string"
    }
    
    var definitionResource = new Definition("definitionResource", DefinitionArgs.builder()
        .definition("string")
        .environmentId("string")
        .flagName("string")
        .orgId("string")
        .projectId("string")
        .build());
    
    definition_resource = harness.fmefeatureflag.Definition("definitionResource",
        definition="string",
        environment_id="string",
        flag_name="string",
        org_id="string",
        project_id="string")
    
    const definitionResource = new harness.fmefeatureflag.Definition("definitionResource", {
        definition: "string",
        environmentId: "string",
        flagName: "string",
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:fmeFeatureFlag:Definition
    properties:
        definition: string
        environmentId: string
        flagName: string
        orgId: string
        projectId: string
    

    Definition 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 Definition resource accepts the following input properties:

    DefinitionJson string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    EnvironmentId string
    Split environment ID.
    FlagName string
    Feature flag (split) name.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    Definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    EnvironmentId string
    Split environment ID.
    FlagName string
    Feature flag (split) name.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    environment_id string
    Split environment ID.
    flag_name string
    Feature flag (split) name.
    org_id string
    Harness organization identifier.
    project_id string
    Harness project identifier.
    definition String
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    environmentId String
    Split environment ID.
    flagName String
    Feature flag (split) name.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.
    definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    environmentId string
    Split environment ID.
    flagName string
    Feature flag (split) name.
    orgId string
    Harness organization identifier.
    projectId string
    Harness project identifier.
    definition str
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    environment_id str
    Split environment ID.
    flag_name str
    Feature flag (split) name.
    org_id str
    Harness organization identifier.
    project_id str
    Harness project identifier.
    definition String
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    environmentId String
    Split environment ID.
    flagName String
    Feature flag (split) name.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.

    Outputs

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

    DefinitionId string
    Split definition id from the API when available.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefinitionId string
    Split definition id from the API when available.
    Id string
    The provider-assigned unique ID for this managed resource.
    definition_id string
    Split definition id from the API when available.
    id string
    The provider-assigned unique ID for this managed resource.
    definitionId String
    Split definition id from the API when available.
    id String
    The provider-assigned unique ID for this managed resource.
    definitionId string
    Split definition id from the API when available.
    id string
    The provider-assigned unique ID for this managed resource.
    definition_id str
    Split definition id from the API when available.
    id str
    The provider-assigned unique ID for this managed resource.
    definitionId String
    Split definition id from the API when available.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Definition Resource

    Get an existing Definition 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?: DefinitionState, opts?: CustomResourceOptions): Definition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            definition: Optional[str] = None,
            definition_id: Optional[str] = None,
            environment_id: Optional[str] = None,
            flag_name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None) -> Definition
    func GetDefinition(ctx *Context, name string, id IDInput, state *DefinitionState, opts ...ResourceOption) (*Definition, error)
    public static Definition Get(string name, Input<string> id, DefinitionState? state, CustomResourceOptions? opts = null)
    public static Definition get(String name, Output<String> id, DefinitionState state, CustomResourceOptions options)
    resources:  _:    type: harness:fmeFeatureFlag:Definition    get:      id: ${id}
    import {
      to = harness_fmefeatureflag_definition.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:
    DefinitionId string
    Split definition id from the API when available.
    DefinitionJson string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    EnvironmentId string
    Split environment ID.
    FlagName string
    Feature flag (split) name.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    Definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    DefinitionId string
    Split definition id from the API when available.
    EnvironmentId string
    Split environment ID.
    FlagName string
    Feature flag (split) name.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    definition_id string
    Split definition id from the API when available.
    environment_id string
    Split environment ID.
    flag_name string
    Feature flag (split) name.
    org_id string
    Harness organization identifier.
    project_id string
    Harness project identifier.
    definition String
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    definitionId String
    Split definition id from the API when available.
    environmentId String
    Split environment ID.
    flagName String
    Feature flag (split) name.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.
    definition string
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    definitionId string
    Split definition id from the API when available.
    environmentId string
    Split environment ID.
    flagName string
    Feature flag (split) name.
    orgId string
    Harness organization identifier.
    projectId string
    Harness project identifier.
    definition str
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    definition_id str
    Split definition id from the API when available.
    environment_id str
    Split environment ID.
    flag_name str
    Feature flag (split) name.
    org_id str
    Harness organization identifier.
    project_id str
    Harness project identifier.
    definition String
    JSON object for the split definition (treatments, defaultTreatment, defaultRule, trafficAllocation, rules, etc.).
    definitionId String
    Split definition id from the API when available.
    environmentId String
    Split environment ID.
    flagName String
    Feature flag (split) name.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.13.1
    published on Thursday, May 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial