pulumiservice.TeamAccessToken
Explore with Pulumi AI
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 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"),
})
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 amongst all machine tokens within your organization.
- Organization
Name string - The organization's name.
- Team
Name string - The team name.
- Description string
- Optional. Team description.
- Name string
- The name for the token. This must be unique amongst all machine tokens within your organization.
- Organization
Name string - The organization's name.
- Team
Name string - The team name.
- Description string
- Optional. Team description.
- name String
- The name for the token. This must be unique amongst all machine tokens within your organization.
- organization
Name String - The organization's name.
- team
Name String - The team name.
- description String
- Optional. Team description.
- name string
- The name for the token. This must be unique amongst all machine tokens within your organization.
- organization
Name string - The organization's name.
- team
Name string - The team name.
- description string
- Optional. Team description.
- name str
- The name for the token. This must be unique amongst all machine tokens within your organization.
- organization_
name str - The organization's name.
- team_
name str - The team name.
- description str
- Optional. Team description.
- name String
- The name for the token. This must be unique amongst all machine tokens within your organization.
- organization
Name String - The organization's name.
- team
Name 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:
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0