1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. Team

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

pulumiservice.Team

Explore with Pulumi AI

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

The Pulumi Cloud offers role-based access control (RBAC) using teams. Teams allow organization admins to assign a set of stack permissions to a group of users.

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,
         organization_name: Optional[str] = None,
         team_type: Optional[str] = None,
         description: Optional[str] = None,
         display_name: Optional[str] = None,
         github_team_id: Optional[float] = None,
         members: 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)
public Team(String name, TeamArgs args)
public Team(String name, TeamArgs args, CustomResourceOptions options)
type: pulumiservice:Team
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TeamArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TeamArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TeamArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 PulumiService.Team("teamResource", new()
{
    OrganizationName = "string",
    TeamType = "string",
    Description = "string",
    DisplayName = "string",
    GithubTeamId = 0,
    Members = new[]
    {
        "string",
    },
    Name = "string",
});
Copy
example, err := pulumiservice.NewTeam(ctx, "teamResource", &pulumiservice.TeamArgs{
	OrganizationName: pulumi.String("string"),
	TeamType:         pulumi.String("string"),
	Description:      pulumi.String("string"),
	DisplayName:      pulumi.String("string"),
	GithubTeamId:     pulumi.Float64(0),
	Members: pulumi.StringArray{
		pulumi.String("string"),
	},
	Name: pulumi.String("string"),
})
Copy
var teamResource = new Team("teamResource", TeamArgs.builder()
    .organizationName("string")
    .teamType("string")
    .description("string")
    .displayName("string")
    .githubTeamId(0)
    .members("string")
    .name("string")
    .build());
Copy
team_resource = pulumiservice.Team("teamResource",
    organization_name="string",
    team_type="string",
    description="string",
    display_name="string",
    github_team_id=0,
    members=["string"],
    name="string")
Copy
const teamResource = new pulumiservice.Team("teamResource", {
    organizationName: "string",
    teamType: "string",
    description: "string",
    displayName: "string",
    githubTeamId: 0,
    members: ["string"],
    name: "string",
});
Copy
type: pulumiservice:Team
properties:
    description: string
    displayName: string
    githubTeamId: 0
    members:
        - string
    name: string
    organizationName: string
    teamType: string
Copy

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:

OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Pulumi organization the team belongs to.
TeamType
This property is required.
Changes to this property will trigger replacement.
string
The type of team. Must be either pulumi or github.
Description string
Optional. Team description.
DisplayName string
Optional. Team display name.
GithubTeamId double
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
Members List<string>
List of Pulumi Cloud usernames of team members.
Name Changes to this property will trigger replacement. string
The team's name. Required for "pulumi" teams.
OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Pulumi organization the team belongs to.
TeamType
This property is required.
Changes to this property will trigger replacement.
string
The type of team. Must be either pulumi or github.
Description string
Optional. Team description.
DisplayName string
Optional. Team display name.
GithubTeamId float64
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
Members []string
List of Pulumi Cloud usernames of team members.
Name Changes to this property will trigger replacement. string
The team's name. Required for "pulumi" teams.
organizationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Pulumi organization the team belongs to.
teamType
This property is required.
Changes to this property will trigger replacement.
String
The type of team. Must be either pulumi or github.
description String
Optional. Team description.
displayName String
Optional. Team display name.
githubTeamId Double
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
members List<String>
List of Pulumi Cloud usernames of team members.
name Changes to this property will trigger replacement. String
The team's name. Required for "pulumi" teams.
organizationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Pulumi organization the team belongs to.
teamType
This property is required.
Changes to this property will trigger replacement.
string
The type of team. Must be either pulumi or github.
description string
Optional. Team description.
displayName string
Optional. Team display name.
githubTeamId number
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
members string[]
List of Pulumi Cloud usernames of team members.
name Changes to this property will trigger replacement. string
The team's name. Required for "pulumi" teams.
organization_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Pulumi organization the team belongs to.
team_type
This property is required.
Changes to this property will trigger replacement.
str
The type of team. Must be either pulumi or github.
description str
Optional. Team description.
display_name str
Optional. Team display name.
github_team_id float
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
members Sequence[str]
List of Pulumi Cloud usernames of team members.
name Changes to this property will trigger replacement. str
The team's name. Required for "pulumi" teams.
organizationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Pulumi organization the team belongs to.
teamType
This property is required.
Changes to this property will trigger replacement.
String
The type of team. Must be either pulumi or github.
description String
Optional. Team description.
displayName String
Optional. Team display name.
githubTeamId Number
The GitHub ID of the team to mirror. Must be in the same GitHub organization that the Pulumi org is backed by. Required for "github" teams.
members List<String>
List of Pulumi Cloud usernames of team members.
name Changes to this property will trigger replacement. String
The team's name. Required for "pulumi" teams.

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.

Package Details

Repository
pulumiservice pulumi/pulumi-pulumiservice
License
Apache-2.0

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi