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

This provider is currently in preview.

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

pulumiservice.TeamAccessToken

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 allows users to create access tokens scoped to team. Team access tokens is a resource to create them and assign them to a team

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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TeamAccessTokenArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. TeamAccessTokenArgs
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. TeamAccessTokenArgs
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. 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",
});
Copy
example, err := pulumiservice.NewTeamAccessToken(ctx, "teamAccessTokenResource", &pulumiservice.TeamAccessTokenArgs{
	Name:             pulumi.String("string"),
	OrganizationName: pulumi.String("string"),
	TeamName:         pulumi.String("string"),
	Description:      pulumi.String("string"),
})
Copy
var teamAccessTokenResource = new TeamAccessToken("teamAccessTokenResource", TeamAccessTokenArgs.builder()
    .name("string")
    .organizationName("string")
    .teamName("string")
    .description("string")
    .build());
Copy
team_access_token_resource = pulumiservice.TeamAccessToken("teamAccessTokenResource",
    name="string",
    organization_name="string",
    team_name="string",
    description="string")
Copy
const teamAccessTokenResource = new pulumiservice.TeamAccessToken("teamAccessTokenResource", {
    name: "string",
    organizationName: "string",
    teamName: "string",
    description: "string",
});
Copy
type: pulumiservice:TeamAccessToken
properties:
    description: string
    name: string
    organizationName: string
    teamName: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The name for the token. This must be unique amongst all machine tokens within your organization.
OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
The organization's name.
TeamName
This property is required.
Changes to this property will trigger replacement.
string
The team name.
Description string
Optional. Team description.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name for the token. This must be unique amongst all machine tokens within your organization.
OrganizationName
This property is required.
Changes to this property will trigger replacement.
string
The organization's name.
TeamName
This property is required.
Changes to this property will trigger replacement.
string
The team name.
Description string
Optional. Team description.
name
This property is required.
Changes to this property will trigger replacement.
String
The name for the token. This must be unique amongst all machine tokens within your organization.
organizationName
This property is required.
Changes to this property will trigger replacement.
String
The organization's name.
teamName
This property is required.
Changes to this property will trigger replacement.
String
The team name.
description String
Optional. Team description.
name
This property is required.
Changes to this property will trigger replacement.
string
The name for the token. This must be unique amongst all machine tokens within your organization.
organizationName
This property is required.
Changes to this property will trigger replacement.
string
The organization's name.
teamName
This property is required.
Changes to this property will trigger replacement.
string
The team name.
description string
Optional. Team description.
name
This property is required.
Changes to this property will trigger replacement.
str
The name for the token. This must be unique amongst all machine tokens within your organization.
organization_name
This property is required.
Changes to this property will trigger replacement.
str
The organization's name.
team_name
This property is required.
Changes to this property will trigger replacement.
str
The team name.
description str
Optional. Team description.
name
This property is required.
Changes to this property will trigger replacement.
String
The name for the token. This must be unique amongst all machine tokens within your organization.
organizationName
This property is required.
Changes to this property will trigger replacement.
String
The organization's name.
teamName
This property is required.
Changes to this property will trigger replacement.
String
The team name.
description String
Optional. Team description.

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 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

This provider is currently in preview.

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