published on Thursday, Jun 18, 2026 by Pulumi
published on Thursday, Jun 18, 2026 by Pulumi
Create and delete a Harness FME (Split) rule-based segment at workspace scope. To enable the segment in an environment and manage its definition JSON, use harness.fmeRuleBasedSegment.EnvironmentAssociation. Import id format: org_id/project_id/segment_name.
Create FmeRuleBasedSegment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FmeRuleBasedSegment(name: string, args: FmeRuleBasedSegmentArgs, opts?: CustomResourceOptions);@overload
def FmeRuleBasedSegment(resource_name: str,
args: FmeRuleBasedSegmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FmeRuleBasedSegment(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
traffic_type_id: Optional[str] = None,
name: Optional[str] = None)func NewFmeRuleBasedSegment(ctx *Context, name string, args FmeRuleBasedSegmentArgs, opts ...ResourceOption) (*FmeRuleBasedSegment, error)public FmeRuleBasedSegment(string name, FmeRuleBasedSegmentArgs args, CustomResourceOptions? opts = null)
public FmeRuleBasedSegment(String name, FmeRuleBasedSegmentArgs args)
public FmeRuleBasedSegment(String name, FmeRuleBasedSegmentArgs args, CustomResourceOptions options)
type: harness:fmeRuleBasedSegment:FmeRuleBasedSegment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "harness_fmerulebasedsegment_fmerulebasedsegment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FmeRuleBasedSegmentArgs
- 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 FmeRuleBasedSegmentArgs
- 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 FmeRuleBasedSegmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FmeRuleBasedSegmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FmeRuleBasedSegmentArgs
- 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 fmeRuleBasedSegmentResource = new Harness.FmeRuleBasedSegment.FmeRuleBasedSegment("fmeRuleBasedSegmentResource", new()
{
OrgId = "string",
ProjectId = "string",
TrafficTypeId = "string",
Name = "string",
});
example, err := fmerulebasedsegment.NewFmeRuleBasedSegment(ctx, "fmeRuleBasedSegmentResource", &fmerulebasedsegment.FmeRuleBasedSegmentArgs{
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TrafficTypeId: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "harness_fmerulebasedsegment_fmerulebasedsegment" "fmeRuleBasedSegmentResource" {
org_id = "string"
project_id = "string"
traffic_type_id = "string"
name = "string"
}
var fmeRuleBasedSegmentResource = new FmeRuleBasedSegment("fmeRuleBasedSegmentResource", FmeRuleBasedSegmentArgs.builder()
.orgId("string")
.projectId("string")
.trafficTypeId("string")
.name("string")
.build());
fme_rule_based_segment_resource = harness.fmerulebasedsegment.FmeRuleBasedSegment("fmeRuleBasedSegmentResource",
org_id="string",
project_id="string",
traffic_type_id="string",
name="string")
const fmeRuleBasedSegmentResource = new harness.fmerulebasedsegment.FmeRuleBasedSegment("fmeRuleBasedSegmentResource", {
orgId: "string",
projectId: "string",
trafficTypeId: "string",
name: "string",
});
type: harness:fmeRuleBasedSegment:FmeRuleBasedSegment
properties:
name: string
orgId: string
projectId: string
trafficTypeId: string
FmeRuleBasedSegment 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 FmeRuleBasedSegment resource accepts the following input properties:
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- Name string
- Rule-based segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- Name string
- Rule-based segment name.
- org_
id string - Harness organization identifier.
- project_
id string - Harness project identifier.
- traffic_
type_ stringid - Split traffic type ID.
- name string
- Rule-based segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- name String
- Rule-based segment name.
- org
Id string - Harness organization identifier.
- project
Id string - Harness project identifier.
- traffic
Type stringId - Split traffic type ID.
- name string
- Rule-based segment name.
- org_
id str - Harness organization identifier.
- project_
id str - Harness project identifier.
- traffic_
type_ strid - Split traffic type ID.
- name str
- Rule-based segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- name String
- Rule-based segment name.
Outputs
All input properties are implicitly available as output properties. Additionally, the FmeRuleBasedSegment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FmeRuleBasedSegment Resource
Get an existing FmeRuleBasedSegment 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?: FmeRuleBasedSegmentState, opts?: CustomResourceOptions): FmeRuleBasedSegment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
traffic_type_id: Optional[str] = None) -> FmeRuleBasedSegmentfunc GetFmeRuleBasedSegment(ctx *Context, name string, id IDInput, state *FmeRuleBasedSegmentState, opts ...ResourceOption) (*FmeRuleBasedSegment, error)public static FmeRuleBasedSegment Get(string name, Input<string> id, FmeRuleBasedSegmentState? state, CustomResourceOptions? opts = null)public static FmeRuleBasedSegment get(String name, Output<String> id, FmeRuleBasedSegmentState state, CustomResourceOptions options)resources: _: type: harness:fmeRuleBasedSegment:FmeRuleBasedSegment get: id: ${id}import {
to = harness_fmerulebasedsegment_fmerulebasedsegment.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.
- Name string
- Rule-based segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- Name string
- Rule-based segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- name string
- Rule-based segment name.
- org_
id string - Harness organization identifier.
- project_
id string - Harness project identifier.
- traffic_
type_ stringid - Split traffic type ID.
- name String
- Rule-based segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- name string
- Rule-based segment name.
- org
Id string - Harness organization identifier.
- project
Id string - Harness project identifier.
- traffic
Type stringId - Split traffic type ID.
- name str
- Rule-based segment name.
- org_
id str - Harness organization identifier.
- project_
id str - Harness project identifier.
- traffic_
type_ strid - Split traffic type ID.
- name String
- Rule-based segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Thursday, Jun 18, 2026 by Pulumi