published on Tuesday, Nov 24, 2026 by Pulumi
published on Tuesday, Nov 24, 2026 by Pulumi
Grants a team permissions to the specified stack.
Create TeamStackPermission Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeamStackPermission(name: string, args: TeamStackPermissionArgs, opts?: CustomResourceOptions);@overload
def TeamStackPermission(resource_name: str,
args: TeamStackPermissionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeamStackPermission(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
permission: Optional[TeamStackPermissionScope] = None,
project: Optional[str] = None,
stack: Optional[str] = None,
team: Optional[str] = None)func NewTeamStackPermission(ctx *Context, name string, args TeamStackPermissionArgs, opts ...ResourceOption) (*TeamStackPermission, error)public TeamStackPermission(string name, TeamStackPermissionArgs args, CustomResourceOptions? opts = null)
public TeamStackPermission(String name, TeamStackPermissionArgs args)
public TeamStackPermission(String name, TeamStackPermissionArgs args, CustomResourceOptions options)
type: pulumiservice:TeamStackPermission
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_team_stack_permission" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeamStackPermissionArgs
- 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 TeamStackPermissionArgs
- 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 TeamStackPermissionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamStackPermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamStackPermissionArgs
- 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 teamStackPermissionResource = new PulumiService.TeamStackPermission("teamStackPermissionResource", new()
{
Organization = "string",
Permission = PulumiService.TeamStackPermissionScope.Read,
Project = "string",
Stack = "string",
Team = "string",
});
example, err := pulumiservice.NewTeamStackPermission(ctx, "teamStackPermissionResource", &pulumiservice.TeamStackPermissionArgs{
Organization: pulumi.String("string"),
Permission: pulumiservice.TeamStackPermissionScopeRead,
Project: pulumi.String("string"),
Stack: pulumi.String("string"),
Team: pulumi.String("string"),
})
resource "pulumiservice_team_stack_permission" "teamStackPermissionResource" {
lifecycle {
create_before_destroy = true
}
organization = "string"
permission = 101
project = "string"
stack = "string"
team = "string"
}
var teamStackPermissionResource = new TeamStackPermission("teamStackPermissionResource", TeamStackPermissionArgs.builder()
.organization("string")
.permission(com.pulumi.pulumiservice.enums.TeamStackPermissionScope.Read)
.project("string")
.stack("string")
.team("string")
.build());
team_stack_permission_resource = pulumiservice.TeamStackPermission("teamStackPermissionResource",
organization="string",
permission=pulumiservice.TeamStackPermissionScope.READ,
project="string",
stack="string",
team="string")
const teamStackPermissionResource = new pulumiservice.TeamStackPermission("teamStackPermissionResource", {
organization: "string",
permission: pulumiservice.TeamStackPermissionScope.Read,
project: "string",
stack: "string",
team: "string",
});
type: pulumiservice:TeamStackPermission
properties:
organization: string
permission: 101
project: string
stack: string
team: string
TeamStackPermission 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 TeamStackPermission resource accepts the following input properties:
- Organization string
- The organization or the personal account name of the stack.
- Permission
Pulumi.
Pulumi Service. Team Stack Permission Scope - Sets the permission level that this team will be granted to the stack.
- Project string
- The project name for this stack.
- Stack string
- The name of the stack that the team will be granted permissions to.
- Team string
- The name of the team to grant this stack permissions to. This is not the display name.
- Organization string
- The organization or the personal account name of the stack.
- Permission
Team
Stack Permission Scope - Sets the permission level that this team will be granted to the stack.
- Project string
- The project name for this stack.
- Stack string
- The name of the stack that the team will be granted permissions to.
- Team string
- The name of the team to grant this stack permissions to. This is not the display name.
- organization string
- The organization or the personal account name of the stack.
- permission 101 | 102 | 103
- Sets the permission level that this team will be granted to the stack.
- project string
- The project name for this stack.
- stack string
- The name of the stack that the team will be granted permissions to.
- team string
- The name of the team to grant this stack permissions to. This is not the display name.
- organization String
- The organization or the personal account name of the stack.
- permission
Team
Stack Permission Scope - Sets the permission level that this team will be granted to the stack.
- project String
- The project name for this stack.
- stack String
- The name of the stack that the team will be granted permissions to.
- team String
- The name of the team to grant this stack permissions to. This is not the display name.
- organization string
- The organization or the personal account name of the stack.
- permission
Team
Stack Permission Scope - Sets the permission level that this team will be granted to the stack.
- project string
- The project name for this stack.
- stack string
- The name of the stack that the team will be granted permissions to.
- team string
- The name of the team to grant this stack permissions to. This is not the display name.
- organization str
- The organization or the personal account name of the stack.
- permission
Team
Stack Permission Scope - Sets the permission level that this team will be granted to the stack.
- project str
- The project name for this stack.
- stack str
- The name of the stack that the team will be granted permissions to.
- team str
- The name of the team to grant this stack permissions to. This is not the display name.
- organization String
- The organization or the personal account name of the stack.
- permission 101 | 102 | 103
- Sets the permission level that this team will be granted to the stack.
- project String
- The project name for this stack.
- stack String
- The name of the stack that the team will be granted permissions to.
- team String
- The name of the team to grant this stack permissions to. This is not the display name.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamStackPermission 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 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 TeamStackPermission Resource
Get an existing TeamStackPermission 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>, opts?: CustomResourceOptions): TeamStackPermission@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> TeamStackPermissionfunc GetTeamStackPermission(ctx *Context, name string, id IDInput, state *TeamStackPermissionState, opts ...ResourceOption) (*TeamStackPermission, error)public static TeamStackPermission Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static TeamStackPermission get(String name, Output<String> id, CustomResourceOptions options)resources: existingTeamStackPermission: type: pulumiservice:TeamStackPermission get: id: ${id}import {
to = pulumiservice_team_stack_permission.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state TeamStackPermissionState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
TeamStackPermissionScope
| Name | Value | Description |
|---|---|---|
| Read | 101 | Grants read permissions to stack. |
| Edit | 102 | Grants edit permissions to stack. |
| Admin | 103 | Grants admin permissions to stack. |
| Name | Value | Description |
|---|---|---|
| Team | 101 | Grants read permissions to stack. |
| Team | 102 | Grants edit permissions to stack. |
| Team | 103 | Grants admin permissions to stack. |
| Value | Description |
|---|---|
101 | Grants read permissions to stack. |
102 | Grants edit permissions to stack. |
103 | Grants admin permissions to stack. |
| Name | Value | Description |
|---|---|---|
| Read | 101 | Grants read permissions to stack. |
| Edit | 102 | Grants edit permissions to stack. |
| Admin | 103 | Grants admin permissions to stack. |
| Name | Value | Description |
|---|---|---|
| Read | 101 | Grants read permissions to stack. |
| Edit | 102 | Grants edit permissions to stack. |
| Admin | 103 | Grants admin permissions to stack. |
| Name | Value | Description |
|---|---|---|
| READ | 101 | Grants read permissions to stack. |
| EDIT | 102 | Grants edit permissions to stack. |
| ADMIN | 103 | Grants admin permissions to stack. |
| Value | Description |
|---|---|
101 | Grants read permissions to stack. |
102 | Grants edit permissions to stack. |
103 | Grants admin permissions to stack. |
Import
This resource can be imported using its id, which has the format {organization}/{project}/{stack}/{team}, e.g.,
$ pulumi import pulumiservice:index:TeamStackPermission my-team-stack-permission my-org/my-project/my-stack/my-team
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Tuesday, Nov 24, 2026 by Pulumi