published on Thursday, Nov 19, 2026 by Pulumi
published on Thursday, Nov 19, 2026 by Pulumi
A permission for a team to use an environment.
Create TeamEnvironmentPermission Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeamEnvironmentPermission(name: string, args: TeamEnvironmentPermissionArgs, opts?: CustomResourceOptions);@overload
def TeamEnvironmentPermission(resource_name: str,
args: TeamEnvironmentPermissionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeamEnvironmentPermission(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment: Optional[str] = None,
organization: Optional[str] = None,
permission: Optional[EnvironmentPermission] = None,
team: Optional[str] = None,
max_open_duration: Optional[str] = None,
project: Optional[str] = None)func NewTeamEnvironmentPermission(ctx *Context, name string, args TeamEnvironmentPermissionArgs, opts ...ResourceOption) (*TeamEnvironmentPermission, error)public TeamEnvironmentPermission(string name, TeamEnvironmentPermissionArgs args, CustomResourceOptions? opts = null)
public TeamEnvironmentPermission(String name, TeamEnvironmentPermissionArgs args)
public TeamEnvironmentPermission(String name, TeamEnvironmentPermissionArgs args, CustomResourceOptions options)
type: pulumiservice:TeamEnvironmentPermission
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_team_environment_permission" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeamEnvironmentPermissionArgs
- 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 TeamEnvironmentPermissionArgs
- 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 TeamEnvironmentPermissionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamEnvironmentPermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeamEnvironmentPermissionArgs
- 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 teamEnvironmentPermissionResource = new PulumiService.TeamEnvironmentPermission("teamEnvironmentPermissionResource", new()
{
Environment = "string",
Organization = "string",
Permission = PulumiService.EnvironmentPermission.None,
Team = "string",
MaxOpenDuration = "string",
Project = "string",
});
example, err := pulumiservice.NewTeamEnvironmentPermission(ctx, "teamEnvironmentPermissionResource", &pulumiservice.TeamEnvironmentPermissionArgs{
Environment: pulumi.String("string"),
Organization: pulumi.String("string"),
Permission: pulumiservice.EnvironmentPermissionNone,
Team: pulumi.String("string"),
MaxOpenDuration: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "pulumiservice_team_environment_permission" "teamEnvironmentPermissionResource" {
lifecycle {
create_before_destroy = true
}
environment = "string"
organization = "string"
permission = "none"
team = "string"
max_open_duration = "string"
project = "string"
}
var teamEnvironmentPermissionResource = new TeamEnvironmentPermission("teamEnvironmentPermissionResource", TeamEnvironmentPermissionArgs.builder()
.environment("string")
.organization("string")
.permission(com.pulumi.pulumiservice.enums.EnvironmentPermission.None)
.team("string")
.maxOpenDuration("string")
.project("string")
.build());
team_environment_permission_resource = pulumiservice.TeamEnvironmentPermission("teamEnvironmentPermissionResource",
environment="string",
organization="string",
permission=pulumiservice.EnvironmentPermission.NONE,
team="string",
max_open_duration="string",
project="string")
const teamEnvironmentPermissionResource = new pulumiservice.TeamEnvironmentPermission("teamEnvironmentPermissionResource", {
environment: "string",
organization: "string",
permission: pulumiservice.EnvironmentPermission.None,
team: "string",
maxOpenDuration: "string",
project: "string",
});
type: pulumiservice:TeamEnvironmentPermission
properties:
environment: string
maxOpenDuration: string
organization: string
permission: none
project: string
team: string
TeamEnvironmentPermission 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 TeamEnvironmentPermission resource accepts the following input properties:
- Environment string
- Environment name.
- Organization string
- Organization name.
- Permission
Pulumi.
Pulumi Service. Environment Permission - Which permission level to grant to the specified team.
- Team string
- Team name.
- Max
Open stringDuration - The maximum duration for which members of this team may open the environment.
- Project string
- Project name.
- Environment string
- Environment name.
- Organization string
- Organization name.
- Permission
Environment
Permission - Which permission level to grant to the specified team.
- Team string
- Team name.
- Max
Open stringDuration - The maximum duration for which members of this team may open the environment.
- Project string
- Project name.
- environment string
- Environment name.
- organization string
- Organization name.
- permission "none" | "read" | "open" | "write" | "admin"
- Which permission level to grant to the specified team.
- team string
- Team name.
- max_
open_ stringduration - The maximum duration for which members of this team may open the environment.
- project string
- Project name.
- environment String
- Environment name.
- organization String
- Organization name.
- permission
Environment
Permission - Which permission level to grant to the specified team.
- team String
- Team name.
- max
Open StringDuration - The maximum duration for which members of this team may open the environment.
- project String
- Project name.
- environment string
- Environment name.
- organization string
- Organization name.
- permission
Environment
Permission - Which permission level to grant to the specified team.
- team string
- Team name.
- max
Open stringDuration - The maximum duration for which members of this team may open the environment.
- project string
- Project name.
- environment str
- Environment name.
- organization str
- Organization name.
- permission
Environment
Permission - Which permission level to grant to the specified team.
- team str
- Team name.
- max_
open_ strduration - The maximum duration for which members of this team may open the environment.
- project str
- Project name.
- environment String
- Environment name.
- organization String
- Organization name.
- permission "none" | "read" | "open" | "write" | "admin"
- Which permission level to grant to the specified team.
- team String
- Team name.
- max
Open StringDuration - The maximum duration for which members of this team may open the environment.
- project String
- Project name.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamEnvironmentPermission 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 TeamEnvironmentPermission Resource
Get an existing TeamEnvironmentPermission 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): TeamEnvironmentPermission@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> TeamEnvironmentPermissionfunc GetTeamEnvironmentPermission(ctx *Context, name string, id IDInput, state *TeamEnvironmentPermissionState, opts ...ResourceOption) (*TeamEnvironmentPermission, error)public static TeamEnvironmentPermission Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static TeamEnvironmentPermission get(String name, Output<String> id, CustomResourceOptions options)resources: existingTeamEnvironmentPermission: type: pulumiservice:TeamEnvironmentPermission get: id: ${id}import {
to = pulumiservice_team_environment_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 TeamEnvironmentPermissionState
- 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
EnvironmentPermission
| Name | Value | Description |
|---|---|---|
| None | none | No permissions. |
| Read | read | Permission to read environment definition only. |
| Open | open | Permission to open and read the environment. |
| Write | write | Permission to open, read and update the environment. |
| Admin | admin | Permission for all operations on the environment. |
| Name | Value | Description |
|---|---|---|
| Environment | none | No permissions. |
| Environment | read | Permission to read environment definition only. |
| Environment | open | Permission to open and read the environment. |
| Environment | write | Permission to open, read and update the environment. |
| Environment | admin | Permission for all operations on the environment. |
| Value | Description |
|---|---|
none | No permissions. |
read | Permission to read environment definition only. |
open | Permission to open and read the environment. |
write | Permission to open, read and update the environment. |
admin | Permission for all operations on the environment. |
| Name | Value | Description |
|---|---|---|
| None | none | No permissions. |
| Read | read | Permission to read environment definition only. |
| Open | open | Permission to open and read the environment. |
| Write | write | Permission to open, read and update the environment. |
| Admin | admin | Permission for all operations on the environment. |
| Name | Value | Description |
|---|---|---|
| None | none | No permissions. |
| Read | read | Permission to read environment definition only. |
| Open | open | Permission to open and read the environment. |
| Write | write | Permission to open, read and update the environment. |
| Admin | admin | Permission for all operations on the environment. |
| Name | Value | Description |
|---|---|---|
| NONE | none | No permissions. |
| READ | read | Permission to read environment definition only. |
| OPEN | open | Permission to open and read the environment. |
| WRITE | write | Permission to open, read and update the environment. |
| ADMIN | admin | Permission for all operations on the environment. |
| Value | Description |
|---|---|
none | No permissions. |
read | Permission to read environment definition only. |
open | Permission to open and read the environment. |
write | Permission to open, read and update the environment. |
admin | Permission for all operations on the environment. |
Import
This resource can be imported using its id, which has the format {organization}/{team}/{project}+{environment}, e.g.,
$ pulumi import pulumiservice:index:TeamEnvironmentPermission my-team-environment-permission my-org/my-team/my-project+my-environment
The project and environment are joined with +, not /. The legacy format {organization}/{team}/{environment} is also accepted, and uses the default project.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Thursday, Nov 19, 2026 by Pulumi