launchdarkly.Team
Explore with Pulumi AI
Provides a LaunchDarkly team resource.
This resource allows you to create and manage a team within your LaunchDarkly organization.
Note: Teams are available to customers on an Enterprise LaunchDarkly plan. To learn more, read about our pricing. To upgrade your plan, contact LaunchDarkly Sales.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
return await Deployment.RunAsync(() =>
{
var platformTeam = new Launchdarkly.Team("platformTeam", new()
{
CustomRoleKeys = new[]
{
"platform",
"nomad-administrators",
},
Description = "Team to manage internal infrastructure",
Key = "platform_team",
Maintainers = new[]
{
"12ab3c45de678910abc12345",
},
MemberIds = new[]
{
"507f1f77bcf86cd799439011",
"569f183514f4432160000007",
},
});
});
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.NewTeam(ctx, "platformTeam", &launchdarkly.TeamArgs{
CustomRoleKeys: pulumi.StringArray{
pulumi.String("platform"),
pulumi.String("nomad-administrators"),
},
Description: pulumi.String("Team to manage internal infrastructure"),
Key: pulumi.String("platform_team"),
Maintainers: pulumi.StringArray{
pulumi.String("12ab3c45de678910abc12345"),
},
MemberIds: pulumi.StringArray{
pulumi.String("507f1f77bcf86cd799439011"),
pulumi.String("569f183514f4432160000007"),
},
})
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.Team;
import com.pulumi.launchdarkly.TeamArgs;
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 platformTeam = new Team("platformTeam", TeamArgs.builder()
.customRoleKeys(
"platform",
"nomad-administrators")
.description("Team to manage internal infrastructure")
.key("platform_team")
.maintainers("12ab3c45de678910abc12345")
.memberIds(
"507f1f77bcf86cd799439011",
"569f183514f4432160000007")
.build());
}
}
import pulumi
import lbrlabs_pulumi_launchdarkly as launchdarkly
platform_team = launchdarkly.Team("platformTeam",
custom_role_keys=[
"platform",
"nomad-administrators",
],
description="Team to manage internal infrastructure",
key="platform_team",
maintainers=["12ab3c45de678910abc12345"],
member_ids=[
"507f1f77bcf86cd799439011",
"569f183514f4432160000007",
])
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
const platformTeam = new launchdarkly.Team("platformTeam", {
customRoleKeys: [
"platform",
"nomad-administrators",
],
description: "Team to manage internal infrastructure",
key: "platform_team",
maintainers: ["12ab3c45de678910abc12345"],
memberIds: [
"507f1f77bcf86cd799439011",
"569f183514f4432160000007",
],
});
resources:
platformTeam:
type: launchdarkly:Team
properties:
customRoleKeys:
- platform
- nomad-administrators
description: Team to manage internal infrastructure
key: platform_team
maintainers:
- 12ab3c45de678910abc12345
memberIds:
- 507f1f77bcf86cd799439011
- 569f183514f4432160000007
Create Team Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Team(name: string, args: TeamArgs, opts?: CustomResourceOptions);
@overload
def Team(resource_name: str,
args: TeamArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Team(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
custom_role_keys: Optional[Sequence[str]] = None,
description: Optional[str] = None,
maintainers: Optional[Sequence[str]] = None,
member_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None)
func NewTeam(ctx *Context, name string, args TeamArgs, opts ...ResourceOption) (*Team, error)
public Team(string name, TeamArgs args, CustomResourceOptions? opts = null)
type: launchdarkly:Team
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 TeamArgs
- 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 TeamArgs
- 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 TeamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamArgs
- 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 teamResource = new Launchdarkly.Team("teamResource", new()
{
Key = "string",
CustomRoleKeys = new[]
{
"string",
},
Description = "string",
Maintainers = new[]
{
"string",
},
MemberIds = new[]
{
"string",
},
Name = "string",
});
example, err := launchdarkly.NewTeam(ctx, "teamResource", &launchdarkly.TeamArgs{
Key: pulumi.String("string"),
CustomRoleKeys: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Maintainers: pulumi.StringArray{
pulumi.String("string"),
},
MemberIds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var teamResource = new Team("teamResource", TeamArgs.builder()
.key("string")
.customRoleKeys("string")
.description("string")
.maintainers("string")
.memberIds("string")
.name("string")
.build());
team_resource = launchdarkly.Team("teamResource",
key="string",
custom_role_keys=["string"],
description="string",
maintainers=["string"],
member_ids=["string"],
name="string")
const teamResource = new launchdarkly.Team("teamResource", {
key: "string",
customRoleKeys: ["string"],
description: "string",
maintainers: ["string"],
memberIds: ["string"],
name: "string",
});
type: launchdarkly:Team
properties:
customRoleKeys:
- string
description: string
key: string
maintainers:
- string
memberIds:
- string
name: string
Team 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 Team resource accepts the following input properties:
- Key string
- The team key.
- Custom
Role List<string>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- Description string
- The team description.
- Maintainers List<string>
- List of member IDs for users who maintain the team.
- Member
Ids List<string> - List of member IDs who belong to the team.
- Name string
- A human-friendly name for the team.
- Key string
- The team key.
- Custom
Role []stringKeys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- Description string
- The team description.
- Maintainers []string
- List of member IDs for users who maintain the team.
- Member
Ids []string - List of member IDs who belong to the team.
- Name string
- A human-friendly name for the team.
- key String
- The team key.
- custom
Role List<String>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description String
- The team description.
- maintainers List<String>
- List of member IDs for users who maintain the team.
- member
Ids List<String> - List of member IDs who belong to the team.
- name String
- A human-friendly name for the team.
- key string
- The team key.
- custom
Role string[]Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description string
- The team description.
- maintainers string[]
- List of member IDs for users who maintain the team.
- member
Ids string[] - List of member IDs who belong to the team.
- name string
- A human-friendly name for the team.
- key str
- The team key.
- custom_
role_ Sequence[str]keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description str
- The team description.
- maintainers Sequence[str]
- List of member IDs for users who maintain the team.
- member_
ids Sequence[str] - List of member IDs who belong to the team.
- name str
- A human-friendly name for the team.
- key String
- The team key.
- custom
Role List<String>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description String
- The team description.
- maintainers List<String>
- List of member IDs for users who maintain the team.
- member
Ids List<String> - List of member IDs who belong to the team.
- name String
- A human-friendly name for the team.
Outputs
All input properties are implicitly available as output properties. Additionally, the Team 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 Team Resource
Get an existing Team 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?: TeamState, opts?: CustomResourceOptions): Team
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_role_keys: Optional[Sequence[str]] = None,
description: Optional[str] = None,
key: Optional[str] = None,
maintainers: Optional[Sequence[str]] = None,
member_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None) -> Team
func GetTeam(ctx *Context, name string, id IDInput, state *TeamState, opts ...ResourceOption) (*Team, error)
public static Team Get(string name, Input<string> id, TeamState? state, CustomResourceOptions? opts = null)
public static Team get(String name, Output<String> id, TeamState 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
Role List<string>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- Description string
- The team description.
- Key string
- The team key.
- Maintainers List<string>
- List of member IDs for users who maintain the team.
- Member
Ids List<string> - List of member IDs who belong to the team.
- Name string
- A human-friendly name for the team.
- Custom
Role []stringKeys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- Description string
- The team description.
- Key string
- The team key.
- Maintainers []string
- List of member IDs for users who maintain the team.
- Member
Ids []string - List of member IDs who belong to the team.
- Name string
- A human-friendly name for the team.
- custom
Role List<String>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description String
- The team description.
- key String
- The team key.
- maintainers List<String>
- List of member IDs for users who maintain the team.
- member
Ids List<String> - List of member IDs who belong to the team.
- name String
- A human-friendly name for the team.
- custom
Role string[]Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description string
- The team description.
- key string
- The team key.
- maintainers string[]
- List of member IDs for users who maintain the team.
- member
Ids string[] - List of member IDs who belong to the team.
- name string
- A human-friendly name for the team.
- custom_
role_ Sequence[str]keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description str
- The team description.
- key str
- The team key.
- maintainers Sequence[str]
- List of member IDs for users who maintain the team.
- member_
ids Sequence[str] - List of member IDs who belong to the team.
- name str
- A human-friendly name for the team.
- custom
Role List<String>Keys - List of custom role keys the team will access. The referenced custom roles must already exist in LaunchDarkly. If they don't, the provider may behave unexpectedly.
- description String
- The team description.
- key String
- The team key.
- maintainers List<String>
- List of member IDs for users who maintain the team.
- member
Ids List<String> - List of member IDs who belong to the team.
- name String
- A human-friendly name for the team.
Import
A LaunchDarkly team can be imported using the team key
$ pulumi import launchdarkly:index/team:Team platform_team platform_team
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.