Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs
launchdarkly.getTeamMember
Explore with Pulumi AI
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:
getTeamMember Result
The following output properties are available:
- 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
, oradmin
.
Package Details
- Repository
- launchdarkly lbrlabs/pulumi-launchdarkly
- License
- Notes
- This Pulumi package is based on the
launchdarkly
Terraform Provider.