1. Packages
  2. Launch Darkly
  3. API Docs
  4. getTeamMember
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

launchdarkly.getTeamMember

Explore with Pulumi AI

launchdarkly logo
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

    Provides a LaunchDarkly team member data source.

    This data source allows you to retrieve team member information from your LaunchDarkly organization.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Pulumi.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Launchdarkly.GetTeamMember.Invoke(new()
        {
            Email = "example@example.com",
        });
    
    });
    
    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.LookupTeamMember(ctx, &launchdarkly.LookupTeamMemberArgs{
    			Email: "example@example.com",
    		}, 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.GetTeamMemberArgs;
    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.getTeamMember(GetTeamMemberArgs.builder()
                .email("example@example.com")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_launchdarkly as launchdarkly
    
    example = launchdarkly.get_team_member(email="example@example.com")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@pulumi/launchdarkly";
    
    const example = launchdarkly.getTeamMember({
        email: "example@example.com",
    });
    
    variables:
      example:
        fn::invoke:
          Function: launchdarkly:getTeamMember
          Arguments:
            email: example@example.com
    

    Using getTeamMember

    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 getTeamMember(args: GetTeamMemberArgs, opts?: InvokeOptions): Promise<GetTeamMemberResult>
    function getTeamMemberOutput(args: GetTeamMemberOutputArgs, opts?: InvokeOptions): Output<GetTeamMemberResult>
    def get_team_member(email: Optional[str] = None,
                        id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTeamMemberResult
    def get_team_member_output(email: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTeamMemberResult]
    func LookupTeamMember(ctx *Context, args *LookupTeamMemberArgs, opts ...InvokeOption) (*LookupTeamMemberResult, error)
    func LookupTeamMemberOutput(ctx *Context, args *LookupTeamMemberOutputArgs, opts ...InvokeOption) LookupTeamMemberResultOutput

    > Note: This function is named LookupTeamMember in the Go SDK.

    public static class GetTeamMember 
    {
        public static Task<GetTeamMemberResult> InvokeAsync(GetTeamMemberArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamMemberResult> Invoke(GetTeamMemberInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamMemberResult> getTeamMember(GetTeamMemberArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: launchdarkly:index/getTeamMember:getTeamMember
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    The unique email address associated with the team member.
    Id string
    The 24 character alphanumeric ID of the team member.
    Email string
    The unique email address associated with the team member.
    Id string
    The 24 character alphanumeric ID of the team member.
    email String
    The unique email address associated with the team member.
    id String
    The 24 character alphanumeric ID of the team member.
    email string
    The unique email address associated with the team member.
    id string
    The 24 character alphanumeric ID of the team member.
    email str
    The unique email address associated with the team member.
    id str
    The 24 character alphanumeric ID of the team member.
    email String
    The unique email address associated with the team member.
    id String
    The 24 character alphanumeric ID of the team member.

    getTeamMember Result

    The following output properties are available:

    CustomRoles List<string>
    Email string
    FirstName string
    The team member's given name.
    Id string
    The 24 character alphanumeric ID of the team member.
    LastName string
    The team member's family name.
    Role string
    The role associated with team member. Possible roles are owner, reader, writer, or admin.
    CustomRoles []string
    Email string
    FirstName string
    The team member's given name.
    Id string
    The 24 character alphanumeric ID of the team member.
    LastName string
    The team member's family name.
    Role string
    The role associated with team member. Possible roles are owner, reader, writer, or admin.
    customRoles List<String>
    email String
    firstName String
    The team member's given name.
    id String
    The 24 character alphanumeric ID of the team member.
    lastName String
    The team member's family name.
    role String
    The role associated with team member. Possible roles are owner, reader, writer, or admin.
    customRoles string[]
    email string
    firstName string
    The team member's given name.
    id string
    The 24 character alphanumeric ID of the team member.
    lastName string
    The team member's family name.
    role string
    The role associated with team member. Possible roles are owner, reader, writer, or admin.
    custom_roles Sequence[str]
    email str
    first_name str
    The team member's given name.
    id str
    The 24 character alphanumeric ID of the team member.
    last_name str
    The team member's family name.
    role str
    The role associated with team member. Possible roles are owner, reader, writer, or admin.
    customRoles List<String>
    email String
    firstName String
    The team member's given name.
    id String
    The 24 character alphanumeric ID of the team member.
    lastName String
    The team member's family name.
    role String
    The role associated with team member. Possible roles are owner, reader, writer, or admin.

    Package Details

    Repository
    launchdarkly lbrlabs/pulumi-launchdarkly
    License
    Notes
    This Pulumi package is based on the launchdarkly Terraform Provider.
    launchdarkly logo
    Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs