UNPKG

@pulumi/pulumiservice

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice) [![Python version](https://badge.fury.io

70 lines 2.67 kB
import * as pulumi from "@pulumi/pulumi"; /** * Generates a new access token scoped to a specific team within an organization. Team tokens inherit the stack permissions assigned to the team, making them suitable for CI/CD pipelines that need access limited to a specific set of stacks. * * The `name` field must be unique across the organization (including deleted tokens) and cannot exceed 40 characters. The `expires` field accepts a unix epoch timestamp up to two years from the present, or `0` for no expiry (default). * * **Important:** The token value in the response is only returned once at creation time and cannot be retrieved later. */ export declare class TeamToken extends pulumi.CustomResource { /** * Get an existing TeamToken resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): TeamToken; /** * Returns true if the given object is an instance of TeamToken. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TeamToken; /** * The unique identifier */ readonly tokenId: pulumi.Output<string>; /** * The token value */ readonly tokenValue: pulumi.Output<string>; /** * Create a TeamToken resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TeamTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a TeamToken resource. */ export interface TeamTokenArgs { /** * The description */ description: pulumi.Input<string>; /** * The expiration time */ expires: pulumi.Input<number>; /** * The name */ name: pulumi.Input<string>; /** * The organization name */ orgName: pulumi.Input<string>; /** * Audit log reason for creating this token */ reason?: pulumi.Input<string | undefined>; /** * The team name */ teamName: pulumi.Input<string>; } //# sourceMappingURL=teamToken.d.ts.map