launchdarkly.TeamMember
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
- Custom
Roles 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.
- First
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- Last
Name 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
, oradmin
. 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.
- Custom
Roles []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.
- First
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- Last
Name 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
, oradmin
. 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.
- custom
Roles 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.
- first
Name String - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. 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.
- custom
Roles 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.
- first
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. 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
, oradmin
. 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.
- custom
Roles 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.
- first
Name String - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. 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.
- Custom
Roles 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.
- First
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- Last
Name 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
, oradmin
. If you don't specify a role,reader
is assigned by default.
- Custom
Roles []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.
- First
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- Last
Name 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
, oradmin
. If you don't specify a role,reader
is assigned by default.
- custom
Roles 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.
- first
Name String - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. If you don't specify a role,reader
is assigned by default.
- custom
Roles 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.
- first
Name string - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. 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
, oradmin
. If you don't specify a role,reader
is assigned by default.
- custom
Roles 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.
- first
Name String - The team member's given name. Please note that, once created, this cannot be updated except by the team member themself.
- last
Name 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
, oradmin
. 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.