published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 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:
- Definition
Json 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.).
- 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.).
- 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.).
- 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.).
- 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 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.).
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Definition resource produces the following output properties:
- Definition
Id 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.
- definition_
id 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.
- definition
Id 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.
- definition
Id 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) -> Definitionfunc 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.
- Definition
Id string - Split definition id from the API when available.
- Definition
Json 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.).
- 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.).
- 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.).
- 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.).
- 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 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.).
- 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.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Friday, May 22, 2026 by Pulumi