launchdarkly.Segment
Explore with Pulumi AI
Provides a LaunchDarkly segment resource.
This resource allows you to create and manage segments within your LaunchDarkly organization.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
return await Deployment.RunAsync(() =>
{
var example = new Launchdarkly.Segment("example", new()
{
Key = "example-segment-key",
ProjectKey = launchdarkly_project.Example.Key,
EnvKey = launchdarkly_environment.Example.Key,
Description = "This segment is managed by Terraform",
Tags = new[]
{
"segment-tag-1",
"segment-tag-2",
},
Includeds = new[]
{
"user1",
"user2",
},
Excludeds = new[]
{
"user3",
"user4",
},
Rules = new[]
{
new Launchdarkly.Inputs.SegmentRuleArgs
{
Clauses = new[]
{
new Launchdarkly.Inputs.SegmentRuleClauseArgs
{
Attribute = "country",
Op = "startsWith",
Values = new[]
{
"en",
"de",
"un",
},
Negate = false,
},
},
},
},
});
});
package main
import (
"github.com/lbrlabs/pulumi-launchdarkly/sdk/go/launchdarkly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := launchdarkly.NewSegment(ctx, "example", &launchdarkly.SegmentArgs{
Key: pulumi.String("example-segment-key"),
ProjectKey: pulumi.Any(launchdarkly_project.Example.Key),
EnvKey: pulumi.Any(launchdarkly_environment.Example.Key),
Description: pulumi.String("This segment is managed by Terraform"),
Tags: pulumi.StringArray{
pulumi.String("segment-tag-1"),
pulumi.String("segment-tag-2"),
},
Includeds: pulumi.StringArray{
pulumi.String("user1"),
pulumi.String("user2"),
},
Excludeds: pulumi.StringArray{
pulumi.String("user3"),
pulumi.String("user4"),
},
Rules: launchdarkly.SegmentRuleArray{
&launchdarkly.SegmentRuleArgs{
Clauses: launchdarkly.SegmentRuleClauseArray{
&launchdarkly.SegmentRuleClauseArgs{
Attribute: pulumi.String("country"),
Op: pulumi.String("startsWith"),
Values: pulumi.StringArray{
pulumi.String("en"),
pulumi.String("de"),
pulumi.String("un"),
},
Negate: pulumi.Bool(false),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.launchdarkly.Segment;
import com.pulumi.launchdarkly.SegmentArgs;
import com.pulumi.launchdarkly.inputs.SegmentRuleArgs;
import java.util.List;
import java.util.ArrayList;
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 example = new Segment("example", SegmentArgs.builder()
.key("example-segment-key")
.projectKey(launchdarkly_project.example().key())
.envKey(launchdarkly_environment.example().key())
.description("This segment is managed by Terraform")
.tags(
"segment-tag-1",
"segment-tag-2")
.includeds(
"user1",
"user2")
.excludeds(
"user3",
"user4")
.rules(SegmentRuleArgs.builder()
.clauses(SegmentRuleClauseArgs.builder()
.attribute("country")
.op("startsWith")
.values(
"en",
"de",
"un")
.negate(false)
.build())
.build())
.build());
}
}
import pulumi
import lbrlabs_pulumi_launchdarkly as launchdarkly
example = launchdarkly.Segment("example",
key="example-segment-key",
project_key=launchdarkly_project["example"]["key"],
env_key=launchdarkly_environment["example"]["key"],
description="This segment is managed by Terraform",
tags=[
"segment-tag-1",
"segment-tag-2",
],
includeds=[
"user1",
"user2",
],
excludeds=[
"user3",
"user4",
],
rules=[launchdarkly.SegmentRuleArgs(
clauses=[launchdarkly.SegmentRuleClauseArgs(
attribute="country",
op="startsWith",
values=[
"en",
"de",
"un",
],
negate=False,
)],
)])
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
const example = new launchdarkly.Segment("example", {
key: "example-segment-key",
projectKey: launchdarkly_project.example.key,
envKey: launchdarkly_environment.example.key,
description: "This segment is managed by Terraform",
tags: [
"segment-tag-1",
"segment-tag-2",
],
includeds: [
"user1",
"user2",
],
excludeds: [
"user3",
"user4",
],
rules: [{
clauses: [{
attribute: "country",
op: "startsWith",
values: [
"en",
"de",
"un",
],
negate: false,
}],
}],
});
resources:
example:
type: launchdarkly:Segment
properties:
key: example-segment-key
projectKey: ${launchdarkly_project.example.key}
envKey: ${launchdarkly_environment.example.key}
description: This segment is managed by Terraform
tags:
- segment-tag-1
- segment-tag-2
includeds:
- user1
- user2
excludeds:
- user3
- user4
rules:
- clauses:
- attribute: country
op: startsWith
values:
- en
- de
- un
negate: false
Create Segment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Segment(name: string, args: SegmentArgs, opts?: CustomResourceOptions);
@overload
def Segment(resource_name: str,
args: SegmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Segment(resource_name: str,
opts: Optional[ResourceOptions] = None,
env_key: Optional[str] = None,
key: Optional[str] = None,
project_key: Optional[str] = None,
description: Optional[str] = None,
excludeds: Optional[Sequence[str]] = None,
includeds: Optional[Sequence[str]] = None,
name: Optional[str] = None,
rules: Optional[Sequence[SegmentRuleArgs]] = None,
tags: Optional[Sequence[str]] = None)
func NewSegment(ctx *Context, name string, args SegmentArgs, opts ...ResourceOption) (*Segment, error)
public Segment(string name, SegmentArgs args, CustomResourceOptions? opts = null)
public Segment(String name, SegmentArgs args)
public Segment(String name, SegmentArgs args, CustomResourceOptions options)
type: launchdarkly:Segment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SegmentArgs
- 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 SegmentArgs
- 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 SegmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SegmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SegmentArgs
- 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 segmentResource = new Launchdarkly.Segment("segmentResource", new()
{
EnvKey = "string",
Key = "string",
ProjectKey = "string",
Description = "string",
Excludeds = new[]
{
"string",
},
Includeds = new[]
{
"string",
},
Name = "string",
Rules = new[]
{
new Launchdarkly.Inputs.SegmentRuleArgs
{
BucketBy = "string",
Clauses = new[]
{
new Launchdarkly.Inputs.SegmentRuleClauseArgs
{
Attribute = "string",
Op = "string",
Values = new[]
{
"string",
},
Negate = false,
ValueType = "string",
},
},
Weight = 0,
},
},
Tags = new[]
{
"string",
},
});
example, err := launchdarkly.NewSegment(ctx, "segmentResource", &launchdarkly.SegmentArgs{
EnvKey: pulumi.String("string"),
Key: pulumi.String("string"),
ProjectKey: pulumi.String("string"),
Description: pulumi.String("string"),
Excludeds: pulumi.StringArray{
pulumi.String("string"),
},
Includeds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Rules: launchdarkly.SegmentRuleArray{
&launchdarkly.SegmentRuleArgs{
BucketBy: pulumi.String("string"),
Clauses: launchdarkly.SegmentRuleClauseArray{
&launchdarkly.SegmentRuleClauseArgs{
Attribute: pulumi.String("string"),
Op: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Negate: pulumi.Bool(false),
ValueType: pulumi.String("string"),
},
},
Weight: pulumi.Int(0),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var segmentResource = new Segment("segmentResource", SegmentArgs.builder()
.envKey("string")
.key("string")
.projectKey("string")
.description("string")
.excludeds("string")
.includeds("string")
.name("string")
.rules(SegmentRuleArgs.builder()
.bucketBy("string")
.clauses(SegmentRuleClauseArgs.builder()
.attribute("string")
.op("string")
.values("string")
.negate(false)
.valueType("string")
.build())
.weight(0)
.build())
.tags("string")
.build());
segment_resource = launchdarkly.Segment("segmentResource",
env_key="string",
key="string",
project_key="string",
description="string",
excludeds=["string"],
includeds=["string"],
name="string",
rules=[{
"bucket_by": "string",
"clauses": [{
"attribute": "string",
"op": "string",
"values": ["string"],
"negate": False,
"value_type": "string",
}],
"weight": 0,
}],
tags=["string"])
const segmentResource = new launchdarkly.Segment("segmentResource", {
envKey: "string",
key: "string",
projectKey: "string",
description: "string",
excludeds: ["string"],
includeds: ["string"],
name: "string",
rules: [{
bucketBy: "string",
clauses: [{
attribute: "string",
op: "string",
values: ["string"],
negate: false,
valueType: "string",
}],
weight: 0,
}],
tags: ["string"],
});
type: launchdarkly:Segment
properties:
description: string
envKey: string
excludeds:
- string
includeds:
- string
key: string
name: string
projectKey: string
rules:
- bucketBy: string
clauses:
- attribute: string
negate: false
op: string
valueType: string
values:
- string
weight: 0
tags:
- string
Segment 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 Segment resource accepts the following input properties:
- Env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Description string
- The description of the segment's purpose.
- Excludeds List<string>
- List of user keys excluded from the segment.
- Includeds List<string>
- List of user keys included in the segment.
- Name string
- The human-friendly name for the segment.
- Rules
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Segment Rule> - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<string>
- Set of tags for the segment.
- Env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Description string
- The description of the segment's purpose.
- Excludeds []string
- List of user keys excluded from the segment.
- Includeds []string
- List of user keys included in the segment.
- Name string
- The human-friendly name for the segment.
- Rules
[]Segment
Rule Args - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- []string
- Set of tags for the segment.
- env
Key String - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- key String
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- project
Key String - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- description String
- The description of the segment's purpose.
- excludeds List<String>
- List of user keys excluded from the segment.
- includeds List<String>
- List of user keys included in the segment.
- name String
- The human-friendly name for the segment.
- rules
List<Segment
Rule> - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<String>
- Set of tags for the segment.
- env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- description string
- The description of the segment's purpose.
- excludeds string[]
- List of user keys excluded from the segment.
- includeds string[]
- List of user keys included in the segment.
- name string
- The human-friendly name for the segment.
- rules
Segment
Rule[] - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- string[]
- Set of tags for the segment.
- env_
key str - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- key str
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- project_
key str - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- description str
- The description of the segment's purpose.
- excludeds Sequence[str]
- List of user keys excluded from the segment.
- includeds Sequence[str]
- List of user keys included in the segment.
- name str
- The human-friendly name for the segment.
- rules
Sequence[Segment
Rule Args] - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- Sequence[str]
- Set of tags for the segment.
- env
Key String - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- key String
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- project
Key String - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- description String
- The description of the segment's purpose.
- excludeds List<String>
- List of user keys excluded from the segment.
- includeds List<String>
- List of user keys included in the segment.
- name String
- The human-friendly name for the segment.
- rules List<Property Map>
- List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<String>
- Set of tags for the segment.
Outputs
All input properties are implicitly available as output properties. Additionally, the Segment resource produces the following output properties:
- Creation
Date int - The segment's creation date represented as a UNIX epoch timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Creation
Date int - The segment's creation date represented as a UNIX epoch timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- creation
Date Integer - The segment's creation date represented as a UNIX epoch timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- creation
Date number - The segment's creation date represented as a UNIX epoch timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- creation_
date int - The segment's creation date represented as a UNIX epoch timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- creation
Date Number - The segment's creation date represented as a UNIX epoch timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Segment Resource
Get an existing Segment 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?: SegmentState, opts?: CustomResourceOptions): Segment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_date: Optional[int] = None,
description: Optional[str] = None,
env_key: Optional[str] = None,
excludeds: Optional[Sequence[str]] = None,
includeds: Optional[Sequence[str]] = None,
key: Optional[str] = None,
name: Optional[str] = None,
project_key: Optional[str] = None,
rules: Optional[Sequence[SegmentRuleArgs]] = None,
tags: Optional[Sequence[str]] = None) -> Segment
func GetSegment(ctx *Context, name string, id IDInput, state *SegmentState, opts ...ResourceOption) (*Segment, error)
public static Segment Get(string name, Input<string> id, SegmentState? state, CustomResourceOptions? opts = null)
public static Segment get(String name, Output<String> id, SegmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Creation
Date int - The segment's creation date represented as a UNIX epoch timestamp.
- Description string
- The description of the segment's purpose.
- Env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Excludeds List<string>
- List of user keys excluded from the segment.
- Includeds List<string>
- List of user keys included in the segment.
- Key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Name string
- The human-friendly name for the segment.
- Project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Rules
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Segment Rule> - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<string>
- Set of tags for the segment.
- Creation
Date int - The segment's creation date represented as a UNIX epoch timestamp.
- Description string
- The description of the segment's purpose.
- Env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Excludeds []string
- List of user keys excluded from the segment.
- Includeds []string
- List of user keys included in the segment.
- Key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Name string
- The human-friendly name for the segment.
- Project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- Rules
[]Segment
Rule Args - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- []string
- Set of tags for the segment.
- creation
Date Integer - The segment's creation date represented as a UNIX epoch timestamp.
- description String
- The description of the segment's purpose.
- env
Key String - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- excludeds List<String>
- List of user keys excluded from the segment.
- includeds List<String>
- List of user keys included in the segment.
- key String
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- name String
- The human-friendly name for the segment.
- project
Key String - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- rules
List<Segment
Rule> - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<String>
- Set of tags for the segment.
- creation
Date number - The segment's creation date represented as a UNIX epoch timestamp.
- description string
- The description of the segment's purpose.
- env
Key string - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- excludeds string[]
- List of user keys excluded from the segment.
- includeds string[]
- List of user keys included in the segment.
- key string
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- name string
- The human-friendly name for the segment.
- project
Key string - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- rules
Segment
Rule[] - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- string[]
- Set of tags for the segment.
- creation_
date int - The segment's creation date represented as a UNIX epoch timestamp.
- description str
- The description of the segment's purpose.
- env_
key str - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- excludeds Sequence[str]
- List of user keys excluded from the segment.
- includeds Sequence[str]
- List of user keys included in the segment.
- key str
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- name str
- The human-friendly name for the segment.
- project_
key str - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- rules
Sequence[Segment
Rule Args] - List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- Sequence[str]
- Set of tags for the segment.
- creation
Date Number - The segment's creation date represented as a UNIX epoch timestamp.
- description String
- The description of the segment's purpose.
- env
Key String - The segment's environment key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- excludeds List<String>
- List of user keys excluded from the segment.
- includeds List<String>
- List of user keys included in the segment.
- key String
- The unique key that references the segment. A change in this field will force the destruction of the existing resource and the creation of a new one.
- name String
- The human-friendly name for the segment.
- project
Key String - The segment's project key. A change in this field will force the destruction of the existing resource and the creation of a new one.
- rules List<Property Map>
- List of nested custom rule blocks to apply to the segment. To learn more, read Nested Rules Blocks.
- List<String>
- Set of tags for the segment.
Supporting Types
SegmentRule, SegmentRuleArgs
- Bucket
By string - The attribute by which to group users together.
- Clauses
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Segment Rule Clause> - List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- Weight int
- The integer weight of the rule (between 1 and 100000).
- Bucket
By string - The attribute by which to group users together.
- Clauses
[]Segment
Rule Clause - List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- Weight int
- The integer weight of the rule (between 1 and 100000).
- bucket
By String - The attribute by which to group users together.
- clauses
List<Segment
Rule Clause> - List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- weight Integer
- The integer weight of the rule (between 1 and 100000).
- bucket
By string - The attribute by which to group users together.
- clauses
Segment
Rule Clause[] - List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- weight number
- The integer weight of the rule (between 1 and 100000).
- bucket_
by str - The attribute by which to group users together.
- clauses
Sequence[Segment
Rule Clause] - List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- weight int
- The integer weight of the rule (between 1 and 100000).
- bucket
By String - The attribute by which to group users together.
- clauses List<Property Map>
- List of nested custom rule clause blocks. To learn more, read Nested Clauses Blocks.
- weight Number
- The integer weight of the rule (between 1 and 100000).
SegmentRuleClause, SegmentRuleClauseArgs
- Attribute string
- The user attribute to operate on.
- Op string
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - Values List<string>
- The list of values associated with the rule clause.
- Negate bool
- Whether to negate the rule clause.
- Value
Type string - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
- Attribute string
- The user attribute to operate on.
- Op string
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - Values []string
- The list of values associated with the rule clause.
- Negate bool
- Whether to negate the rule clause.
- Value
Type string - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
- attribute String
- The user attribute to operate on.
- op String
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - values List<String>
- The list of values associated with the rule clause.
- negate Boolean
- Whether to negate the rule clause.
- value
Type String - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
- attribute string
- The user attribute to operate on.
- op string
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - values string[]
- The list of values associated with the rule clause.
- negate boolean
- Whether to negate the rule clause.
- value
Type string - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
- attribute str
- The user attribute to operate on.
- op str
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - values Sequence[str]
- The list of values associated with the rule clause.
- negate bool
- Whether to negate the rule clause.
- value_
type str - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
- attribute String
- The user attribute to operate on.
- op String
- The operator associated with the rule clause. Available options are
in
,endsWith
,startsWith
,matches
,contains
,lessThan
,lessThanOrEqual
,greaterThanOrEqual
,before
,after
,segmentMatch
,semVerEqual
,semVerLessThan
, andsemVerGreaterThan
. - values List<String>
- The list of values associated with the rule clause.
- negate Boolean
- Whether to negate the rule clause.
- value
Type String - The type for each of the clause's values. Available types are
boolean
,string
, andnumber
. If omitted,value_type
defaults tostring
.
Import
LaunchDarkly segments can be imported using the segment’s ID in the form project_key/env_key/segment_key
, e.g.
$ pulumi import launchdarkly:index/segment:Segment example example-project/example-environment/example-segment-key
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- launchdarkly lbrlabs/pulumi-launchdarkly
- License
- Notes
- This Pulumi package is based on the
launchdarkly
Terraform Provider.