Viewing docs for Launch Darkly v0.0.6
published on Sunday, Feb 19, 2023 by lbrlabs
published on Sunday, Feb 19, 2023 by lbrlabs
Viewing docs for Launch Darkly v0.0.6
published on Sunday, Feb 19, 2023 by lbrlabs
published on Sunday, Feb 19, 2023 by lbrlabs
Provides a LaunchDarkly segment data source.
This data source allows you to retrieve segment information from your LaunchDarkly organization.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Launchdarkly = Pulumi.Launchdarkly;
return await Deployment.RunAsync(() =>
{
var example = Launchdarkly.GetSegment.Invoke(new()
{
EnvKey = "example-env",
Key = "example-segment",
ProjectKey = "example-project",
});
});
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.LookupSegment(ctx, &launchdarkly.LookupSegmentArgs{
EnvKey: "example-env",
Key: "example-segment",
ProjectKey: "example-project",
}, nil)
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.LaunchdarklyFunctions;
import com.pulumi.launchdarkly.inputs.GetSegmentArgs;
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) {
final var example = LaunchdarklyFunctions.getSegment(GetSegmentArgs.builder()
.envKey("example-env")
.key("example-segment")
.projectKey("example-project")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@pulumi/launchdarkly";
const example = launchdarkly.getSegment({
envKey: "example-env",
key: "example-segment",
projectKey: "example-project",
});
import pulumi
import pulumi_launchdarkly as launchdarkly
example = launchdarkly.get_segment(env_key="example-env",
key="example-segment",
project_key="example-project")
variables:
example:
fn::invoke:
Function: launchdarkly:getSegment
Arguments:
envKey: example-env
key: example-segment
projectKey: example-project
Using getSegment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSegment(args: GetSegmentArgs, opts?: InvokeOptions): Promise<GetSegmentResult>
function getSegmentOutput(args: GetSegmentOutputArgs, opts?: InvokeOptions): Output<GetSegmentResult>def get_segment(description: Optional[str] = None,
env_key: Optional[str] = None,
excludeds: Optional[Sequence[str]] = None,
includeds: Optional[Sequence[str]] = None,
key: Optional[str] = None,
project_key: Optional[str] = None,
rules: Optional[Sequence[GetSegmentRule]] = None,
tags: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSegmentResult
def get_segment_output(description: Optional[pulumi.Input[str]] = None,
env_key: Optional[pulumi.Input[str]] = None,
excludeds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
includeds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
key: Optional[pulumi.Input[str]] = None,
project_key: Optional[pulumi.Input[str]] = None,
rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetSegmentRuleArgs]]]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSegmentResult]func LookupSegment(ctx *Context, args *LookupSegmentArgs, opts ...InvokeOption) (*LookupSegmentResult, error)
func LookupSegmentOutput(ctx *Context, args *LookupSegmentOutputArgs, opts ...InvokeOption) LookupSegmentResultOutput> Note: This function is named LookupSegment in the Go SDK.
public static class GetSegment
{
public static Task<GetSegmentResult> InvokeAsync(GetSegmentArgs args, InvokeOptions? opts = null)
public static Output<GetSegmentResult> Invoke(GetSegmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSegmentResult> getSegment(GetSegmentArgs args, InvokeOptions options)
public static Output<GetSegmentResult> getSegment(GetSegmentArgs args, InvokeOptions options)
fn::invoke:
function: launchdarkly:index/getSegment:getSegment
arguments:
# arguments dictionaryThe following arguments are supported:
- Env
Key string - The segment's environment key.
- Key string
- The unique key that references the segment.
- Project
Key string - The segment's project key.
- 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.
- Rules
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Get 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.
- Key string
- The unique key that references the segment.
- Project
Key string - The segment's project key.
- 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.
- Rules
[]Get
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 String - The segment's environment key.
- key String
- The unique key that references the segment.
- project
Key String - The segment's project key.
- 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.
- rules
List<Get
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.
- key string
- The unique key that references the segment.
- project
Key string - The segment's project key.
- 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.
- rules
Get
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.
- key str
- The unique key that references the segment.
- project_
key str - The segment's project key.
- 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.
- rules
Sequence[Get
Segment Rule] - 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.
- key String
- The unique key that references the segment.
- project
Key String - The segment's project key.
- 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.
- 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.
getSegment Result
The following output properties are available:
- Creation
Date int - The segment's creation date represented as a UNIX epoch timestamp.
- Env
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Name string
- The human-friendly name for the segment.
- Project
Key string - 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.
- Rules
List<Lbrlabs.
Pulumi Package. Launchdarkly. Outputs. Get 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.
- Env
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Name string
- The human-friendly name for the segment.
- Project
Key string - 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.
- Rules
[]Get
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 Integer - The segment's creation date represented as a UNIX epoch timestamp.
- env
Key String - id String
- The provider-assigned unique ID for this managed resource.
- key String
- name String
- The human-friendly name for the segment.
- project
Key String - 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.
- rules
List<Get
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.
- env
Key string - id string
- The provider-assigned unique ID for this managed resource.
- key string
- name string
- The human-friendly name for the segment.
- project
Key string - 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.
- rules
Get
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.
- env_
key str - id str
- The provider-assigned unique ID for this managed resource.
- key str
- name str
- The human-friendly name for the segment.
- project_
key str - 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.
- rules
Sequence[Get
Segment Rule] - 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.
- env
Key String - id String
- The provider-assigned unique ID for this managed resource.
- key String
- name String
- The human-friendly name for the segment.
- project
Key String - 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.
- 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
GetSegmentRule
- Bucket
By string - The attribute by which to group users together.
- Clauses
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Get 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 0 and 100000).
- Bucket
By string - The attribute by which to group users together.
- Clauses
[]Get
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 0 and 100000).
- bucket
By String - The attribute by which to group users together.
- clauses
List<Get
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 0 and 100000).
- bucket
By string - The attribute by which to group users together.
- clauses
Get
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 0 and 100000).
- bucket_
by str - The attribute by which to group users together.
- clauses
Sequence[Get
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 0 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 0 and 100000).
GetSegmentRuleClause
- Attribute string
- The user attribute operated on.
- Op string
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- Value
Type string - The type for each of the clause's values. Available types are
boolean,string, andnumber.
- Attribute string
- The user attribute operated on.
- Op string
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- Value
Type string - The type for each of the clause's values. Available types are
boolean,string, andnumber.
- attribute String
- The user attribute operated on.
- op String
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- value
Type String - The type for each of the clause's values. Available types are
boolean,string, andnumber.
- attribute string
- The user attribute operated on.
- op string
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- value
Type string - The type for each of the clause's values. Available types are
boolean,string, andnumber.
- attribute str
- The user attribute operated on.
- op str
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- value_
type str - The type for each of the clause's values. Available types are
boolean,string, andnumber.
- attribute String
- The user attribute operated on.
- op String
- The operator associated with the rule clause. This will be one of
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 the rule clause is negated.
- value
Type String - The type for each of the clause's values. Available types are
boolean,string, andnumber.
Package Details
- Repository
- launchdarkly lbrlabs/pulumi-launchdarkly
- License
- Notes
- This Pulumi package is based on the
launchdarklyTerraform Provider.
Viewing docs for Launch Darkly v0.0.6
published on Sunday, Feb 19, 2023 by lbrlabs
published on Sunday, Feb 19, 2023 by lbrlabs
