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

launchdarkly.TeamMember

Explore with Pulumi AI

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

    Provides a LaunchDarkly team member resource.

    This resource allows you to create and manage team members within your LaunchDarkly organization.

    Note: You can only manage team members with “admin” level personal access tokens. To learn more, read Managing Teams.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Launchdarkly.TeamMember("example", new()
        {
            Email = "example.user@example.com",
            FirstName = "John",
            LastName = "Smith",
            Role = "writer",
        });
    
    });
    
    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.NewTeamMember(ctx, "example", &launchdarkly.TeamMemberArgs{
    			Email:     pulumi.String("example.user@example.com"),
    			FirstName: pulumi.String("John"),
    			LastName:  pulumi.String("Smith"),
    			Role:      pulumi.String("writer"),
    		})
    		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.TeamMember;
    import com.pulumi.launchdarkly.TeamMemberArgs;
    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 TeamMember("example", TeamMemberArgs.builder()        
                .email("example.user@example.com")
                .firstName("John")
                .lastName("Smith")
                .role("writer")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_launchdarkly as launchdarkly
    
    example = launchdarkly.TeamMember("example",
        email="example.user@example.com",
        first_name="John",
        last_name="Smith",
        role="writer")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
    
    const example = new launchdarkly.TeamMember("example", {
        email: "example.user@example.com",
        firstName: "John",
        lastName: "Smith",
        role: "writer",
    });
    
    resources:
      example:
        type: launchdarkly:TeamMember
        properties:
          email: example.user@example.com
          firstName: John
          lastName: Smith
          role: writer
    

    Create TeamMember Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeamMember(name: string, args: TeamMemberArgs, opts?: CustomResourceOptions);
    @overload
    def TeamMember(resource_name: str,
                   args: TeamMemberArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamMember(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   email: Optional[str] = None,
                   custom_roles: Optional[Sequence[str]] = None,
                   first_name: Optional[str] = None,
                   last_name: Optional[str] = None,
                   role: Optional[str] = None)
    func NewTeamMember(ctx *Context, name string, args TeamMemberArgs, opts ...ResourceOption) (*TeamMember, error)
    public TeamMember(string name, TeamMemberArgs args, CustomResourceOptions? opts = null)
    public TeamMember(String name, TeamMemberArgs args)
    public TeamMember(String name, TeamMemberArgs args, CustomResourceOptions options)
    
    type: launchdarkly:TeamMember
    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 TeamMemberArgs
    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 TeamMemberArgs
    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 TeamMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamMemberArgs
    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 teamMemberResource = new Launchdarkly.TeamMember("teamMemberResource", new()
    {
        Email = "string",
        CustomRoles = new[]
        {
            "string",
        },
        FirstName = "string",
        LastName = "string",
        Role = "string",
    });
    
    example, err := launchdarkly.NewTeamMember(ctx, "teamMemberResource", &launchdarkly.TeamMemberArgs{
    	Email: pulumi.String("string"),
    	CustomRoles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	FirstName: pulumi.String("string"),
    	LastName:  pulumi.String("string"),
    	Role:      pulumi.String("string"),
    })
    
    var teamMemberResource = new TeamMember("teamMemberResource", TeamMemberArgs.builder()
        .email("string")
        .customRoles("string")
        .firstName("string")
        .lastName("string")
        .role("string")
        .build());
    
    team_member_resource = launchdarkly.TeamMember("teamMemberResource",
        email="string",
        custom_roles=["string"],
        first_name="string",
        last_name="string",
        role="string")
    
    const teamMemberResource = new launchdarkly.TeamMember("teamMemberResource", {
        email: "string",
        customRoles: ["string"],
        firstName: "string",
        lastName: "string",
        role: "string",
    });
    
    type: launchdarkly:TeamMember
    properties:
        customRoles:
            - string
        email: string
        firstName: string
        lastName: string
        role: string
    

    TeamMember Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TeamMember resource accepts the following input properties:

    Email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    CustomRoles List<string>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    FirstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    LastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    Role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    Email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    CustomRoles []string
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    FirstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    LastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    Role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    email String
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    customRoles List<String>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    firstName String
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName String
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role String
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    customRoles string[]
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    firstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    email str
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    custom_roles Sequence[str]
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    first_name str
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    last_name str
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role str
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    email String
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    customRoles List<String>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    firstName String
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName String
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role String
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeamMember 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TeamMember Resource

    Get an existing TeamMember 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?: TeamMemberState, opts?: CustomResourceOptions): TeamMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_roles: Optional[Sequence[str]] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            last_name: Optional[str] = None,
            role: Optional[str] = None) -> TeamMember
    func GetTeamMember(ctx *Context, name string, id IDInput, state *TeamMemberState, opts ...ResourceOption) (*TeamMember, error)
    public static TeamMember Get(string name, Input<string> id, TeamMemberState? state, CustomResourceOptions? opts = null)
    public static TeamMember get(String name, Output<String> id, TeamMemberState 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.
    The following state arguments are supported:
    CustomRoles List<string>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    Email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    FirstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    LastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    Role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    CustomRoles []string
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    Email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    FirstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    LastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    Role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    customRoles List<String>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    email String
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    firstName String
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName String
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role String
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    customRoles string[]
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    email string
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    firstName string
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName string
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role string
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    custom_roles Sequence[str]
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    email str
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    first_name str
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    last_name str
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role str
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.
    customRoles List<String>
    The list of custom roles keys associated with the team member. Custom roles are only available to customers on enterprise plans. To learn more about enterprise plans, contact sales@launchdarkly.com.
    email String
    The unique email address associated with the team member. A change in this field will force the destruction of the existing resource and the creation of a new one.
    firstName String
    The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
    lastName String
    The team member's family name. Please note that, once created, this cannot be updated except by the team member themself.
    role String
    The role associated with team member. Supported roles are reader, writer, no_access, or admin. If you don't specify a role, reader is assigned by default.

    Import

    LaunchDarkly team members can be imported using the team member’s 24 character ID, e.g.

     $ pulumi import launchdarkly:index/teamMember:TeamMember example 5f05565b48be0b441fb63020
    

    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.
    launchdarkly logo
    Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs