This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
Assigns a custom (fine-grained) role to a Pulumi Cloud team. The Pulumi Cloud API currently supports one role per team; creating a second assignment replaces the first. The team’s organization must already have the custom-roles feature enabled.
Create TeamRoleAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeamRoleAssignment(name: string, args: TeamRoleAssignmentArgs, opts?: CustomResourceOptions);@overload
def TeamRoleAssignment(resource_name: str,
args: TeamRoleAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeamRoleAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_name: Optional[str] = None,
role_id: Optional[str] = None,
team_name: Optional[str] = None)func NewTeamRoleAssignment(ctx *Context, name string, args TeamRoleAssignmentArgs, opts ...ResourceOption) (*TeamRoleAssignment, error)public TeamRoleAssignment(string name, TeamRoleAssignmentArgs args, CustomResourceOptions? opts = null)
public TeamRoleAssignment(String name, TeamRoleAssignmentArgs args)
public TeamRoleAssignment(String name, TeamRoleAssignmentArgs args, CustomResourceOptions options)
type: pulumiservice:TeamRoleAssignment
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 TeamRoleAssignmentArgs
- 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 TeamRoleAssignmentArgs
- 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 TeamRoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamRoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamRoleAssignmentArgs
- 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 teamRoleAssignmentResource = new PulumiService.TeamRoleAssignment("teamRoleAssignmentResource", new()
{
OrganizationName = "string",
RoleId = "string",
TeamName = "string",
});
example, err := pulumiservice.NewTeamRoleAssignment(ctx, "teamRoleAssignmentResource", &pulumiservice.TeamRoleAssignmentArgs{
OrganizationName: pulumi.String("string"),
RoleId: pulumi.String("string"),
TeamName: pulumi.String("string"),
})
var teamRoleAssignmentResource = new TeamRoleAssignment("teamRoleAssignmentResource", TeamRoleAssignmentArgs.builder()
.organizationName("string")
.roleId("string")
.teamName("string")
.build());
team_role_assignment_resource = pulumiservice.TeamRoleAssignment("teamRoleAssignmentResource",
organization_name="string",
role_id="string",
team_name="string")
const teamRoleAssignmentResource = new pulumiservice.TeamRoleAssignment("teamRoleAssignmentResource", {
organizationName: "string",
roleId: "string",
teamName: "string",
});
type: pulumiservice:TeamRoleAssignment
properties:
organizationName: string
roleId: string
teamName: string
TeamRoleAssignment 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 TeamRoleAssignment resource accepts the following input properties:
- Organization
Name string - The Pulumi Cloud organization name.
- Role
Id string - The ID of the custom role to assign.
- Team
Name string - The team name.
- Organization
Name string - The Pulumi Cloud organization name.
- Role
Id string - The ID of the custom role to assign.
- Team
Name string - The team name.
- organization
Name String - The Pulumi Cloud organization name.
- role
Id String - The ID of the custom role to assign.
- team
Name String - The team name.
- organization
Name string - The Pulumi Cloud organization name.
- role
Id string - The ID of the custom role to assign.
- team
Name string - The team name.
- organization_
name str - The Pulumi Cloud organization name.
- role_
id str - The ID of the custom role to assign.
- team_
name str - The team name.
- organization
Name String - The Pulumi Cloud organization name.
- role
Id String - The ID of the custom role to assign.
- team
Name String - The team name.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamRoleAssignment resource produces the following output properties:
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
