published on Thursday, Jun 11, 2026 by Pulumi
published on Thursday, Jun 11, 2026 by Pulumi
Create and delete a Harness FME (Split) segment. Import id format: org_id/project_id/segment_name.
Create FmeSegment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FmeSegment(name: string, args: FmeSegmentArgs, opts?: CustomResourceOptions);@overload
def FmeSegment(resource_name: str,
args: FmeSegmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FmeSegment(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
traffic_type_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewFmeSegment(ctx *Context, name string, args FmeSegmentArgs, opts ...ResourceOption) (*FmeSegment, error)public FmeSegment(string name, FmeSegmentArgs args, CustomResourceOptions? opts = null)
public FmeSegment(String name, FmeSegmentArgs args)
public FmeSegment(String name, FmeSegmentArgs args, CustomResourceOptions options)
type: harness:fmeSegment:FmeSegment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "harness_fmesegment_fmesegment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FmeSegmentArgs
- 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 FmeSegmentArgs
- 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 FmeSegmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FmeSegmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FmeSegmentArgs
- 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 fmeSegmentResource = new Harness.FmeSegment.FmeSegment("fmeSegmentResource", new()
{
OrgId = "string",
ProjectId = "string",
TrafficTypeId = "string",
Description = "string",
Name = "string",
});
example, err := fmesegment.NewFmeSegment(ctx, "fmeSegmentResource", &fmesegment.FmeSegmentArgs{
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TrafficTypeId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "harness_fmesegment_fmesegment" "fmeSegmentResource" {
org_id = "string"
project_id = "string"
traffic_type_id = "string"
description = "string"
name = "string"
}
var fmeSegmentResource = new FmeSegment("fmeSegmentResource", FmeSegmentArgs.builder()
.orgId("string")
.projectId("string")
.trafficTypeId("string")
.description("string")
.name("string")
.build());
fme_segment_resource = harness.fmesegment.FmeSegment("fmeSegmentResource",
org_id="string",
project_id="string",
traffic_type_id="string",
description="string",
name="string")
const fmeSegmentResource = new harness.fmesegment.FmeSegment("fmeSegmentResource", {
orgId: "string",
projectId: "string",
trafficTypeId: "string",
description: "string",
name: "string",
});
type: harness:fmeSegment:FmeSegment
properties:
description: string
name: string
orgId: string
projectId: string
trafficTypeId: string
FmeSegment 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 FmeSegment 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.
- Description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- Name string
- Segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- Description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- Name string
- Segment name.
- org_
id string - Harness organization identifier.
- project_
id string - Harness project identifier.
- traffic_
type_ stringid - Split traffic type ID.
- description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name string
- Segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- description String
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name String
- Segment name.
- org
Id string - Harness organization identifier.
- project
Id string - Harness project identifier.
- traffic
Type stringId - Split traffic type ID.
- description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name string
- Segment name.
- org_
id str - Harness organization identifier.
- project_
id str - Harness project identifier.
- traffic_
type_ strid - Split traffic type ID.
- description str
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name str
- Segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- description String
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name String
- Segment name.
Outputs
All input properties are implicitly available as output properties. Additionally, the FmeSegment 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 FmeSegment Resource
Get an existing FmeSegment 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?: FmeSegmentState, opts?: CustomResourceOptions): FmeSegment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
traffic_type_id: Optional[str] = None) -> FmeSegmentfunc GetFmeSegment(ctx *Context, name string, id IDInput, state *FmeSegmentState, opts ...ResourceOption) (*FmeSegment, error)public static FmeSegment Get(string name, Input<string> id, FmeSegmentState? state, CustomResourceOptions? opts = null)public static FmeSegment get(String name, Output<String> id, FmeSegmentState state, CustomResourceOptions options)resources: _: type: harness:fmeSegment:FmeSegment get: id: ${id}import {
to = harness_fmesegment_fmesegment.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.
- Description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- Name string
- Segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- Description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- Name string
- Segment name.
- Org
Id string - Harness organization identifier.
- Project
Id string - Harness project identifier.
- Traffic
Type stringId - Split traffic type ID.
- description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name string
- Segment name.
- org_
id string - Harness organization identifier.
- project_
id string - Harness project identifier.
- traffic_
type_ stringid - Split traffic type ID.
- description String
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name String
- Segment name.
- org
Id String - Harness organization identifier.
- project
Id String - Harness project identifier.
- traffic
Type StringId - Split traffic type ID.
- description string
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name string
- Segment name.
- org
Id string - Harness organization identifier.
- project
Id string - Harness project identifier.
- traffic
Type stringId - Split traffic type ID.
- description str
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name str
- Segment name.
- org_
id str - Harness organization identifier.
- project_
id str - Harness project identifier.
- traffic_
type_ strid - Split traffic type ID.
- description String
- Segment description. Set when the segment is created; changing this value forces replacement (destroy and recreate), not an in-place Split API update.
- name String
- 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 11, 2026 by Pulumi