1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. TeamAccessToken
Viewing docs for Pulumi Cloud v1.5.0
published on Monday, Oct 19, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.5.0
published on Monday, Oct 19, 2026 by Pulumi

    Creates a team access token in Pulumi Cloud. The token isn’t tied to a user, and it has the permissions granted to its team.

    Unlike OrgAccessToken, a provider authenticated with an organization or team access token can create this resource.

    Create TeamAccessToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeamAccessToken(name: string, args: TeamAccessTokenArgs, opts?: CustomResourceOptions);
    @overload
    def TeamAccessToken(resource_name: str,
                        args: TeamAccessTokenArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamAccessToken(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        name: Optional[str] = None,
                        organization_name: Optional[str] = None,
                        team_name: Optional[str] = None,
                        description: Optional[str] = None)
    func NewTeamAccessToken(ctx *Context, name string, args TeamAccessTokenArgs, opts ...ResourceOption) (*TeamAccessToken, error)
    public TeamAccessToken(string name, TeamAccessTokenArgs args, CustomResourceOptions? opts = null)
    public TeamAccessToken(String name, TeamAccessTokenArgs args)
    public TeamAccessToken(String name, TeamAccessTokenArgs args, CustomResourceOptions options)
    
    type: pulumiservice:TeamAccessToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_team_access_token" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeamAccessTokenArgs
    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 TeamAccessTokenArgs
    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 TeamAccessTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamAccessTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamAccessTokenArgs
    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 teamAccessTokenResource = new PulumiService.TeamAccessToken("teamAccessTokenResource", new()
    {
        Name = "string",
        OrganizationName = "string",
        TeamName = "string",
        Description = "string",
    });
    
    example, err := pulumiservice.NewTeamAccessToken(ctx, "teamAccessTokenResource", &pulumiservice.TeamAccessTokenArgs{
    	Name:             pulumi.String("string"),
    	OrganizationName: pulumi.String("string"),
    	TeamName:         pulumi.String("string"),
    	Description:      pulumi.String("string"),
    })
    
    resource "pulumiservice_team_access_token" "teamAccessTokenResource" {
      pulumi {
        replace_on_changes = [description, name, organization_name, team_name]
      }
      lifecycle {
        create_before_destroy = true
      }
      name              = "string"
      organization_name = "string"
      team_name         = "string"
      description       = "string"
    }
    
    var teamAccessTokenResource = new TeamAccessToken("teamAccessTokenResource", TeamAccessTokenArgs.builder()
        .name("string")
        .organizationName("string")
        .teamName("string")
        .description("string")
        .build());
    
    team_access_token_resource = pulumiservice.TeamAccessToken("teamAccessTokenResource",
        name="string",
        organization_name="string",
        team_name="string",
        description="string")
    
    const teamAccessTokenResource = new pulumiservice.TeamAccessToken("teamAccessTokenResource", {
        name: "string",
        organizationName: "string",
        teamName: "string",
        description: "string",
    });
    
    type: pulumiservice:TeamAccessToken
    properties:
        description: string
        name: string
        organizationName: string
        teamName: string
    

    TeamAccessToken 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 TeamAccessToken resource accepts the following input properties:

    Name string
    The name for the token. This must be unique among all organization and team tokens in the organization.
    OrganizationName string
    The organization's name.
    TeamName string
    The team name.
    Description string
    A description of the token.
    Name string
    The name for the token. This must be unique among all organization and team tokens in the organization.
    OrganizationName string
    The organization's name.
    TeamName string
    The team name.
    Description string
    A description of the token.
    name string
    The name for the token. This must be unique among all organization and team tokens in the organization.
    organization_name string
    The organization's name.
    team_name string
    The team name.
    description string
    A description of the token.
    name String
    The name for the token. This must be unique among all organization and team tokens in the organization.
    organizationName String
    The organization's name.
    teamName String
    The team name.
    description String
    A description of the token.
    name string
    The name for the token. This must be unique among all organization and team tokens in the organization.
    organizationName string
    The organization's name.
    teamName string
    The team name.
    description string
    A description of the token.
    name str
    The name for the token. This must be unique among all organization and team tokens in the organization.
    organization_name str
    The organization's name.
    team_name str
    The team name.
    description str
    A description of the token.
    name String
    The name for the token. This must be unique among all organization and team tokens in the organization.
    organizationName String
    The organization's name.
    teamName String
    The team name.
    description String
    A description of the token.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeamAccessToken resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Value string
    The token's value.
    Id string
    The provider-assigned unique ID for this managed resource.
    Value string
    The token's value.
    id string
    The provider-assigned unique ID for this managed resource.
    value string
    The token's value.
    id String
    The provider-assigned unique ID for this managed resource.
    value String
    The token's value.
    id string
    The provider-assigned unique ID for this managed resource.
    value string
    The token's value.
    id str
    The provider-assigned unique ID for this managed resource.
    value str
    The token's value.
    id String
    The provider-assigned unique ID for this managed resource.
    value String
    The token's value.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.5.0
    published on Monday, Oct 19, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial