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

74 lines 2.91 kB
import * as pulumi from "@pulumi/pulumi"; /** * Generates a new access token scoped to the organization for use in CI/CD pipelines and automated workflows. Organization tokens belong to the organization rather than individual users, ensuring that access is not disrupted when team members leave. * * 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. Audit logs for actions performed with organization tokens are attributed to the organization rather than an individual user. */ export declare class OrgToken extends pulumi.CustomResource { /** * Get an existing OrgToken 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): OrgToken; /** * Returns true if the given object is an instance of OrgToken. 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 OrgToken; /** * The unique identifier */ readonly tokenId: pulumi.Output<string>; /** * The token value */ readonly tokenValue: pulumi.Output<string>; /** * Create a OrgToken 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: OrgTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a OrgToken resource. */ export interface OrgTokenArgs { /** * Whether the entity has admin privileges */ admin: pulumi.Input<boolean>; /** * 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 role identifier */ roleID?: pulumi.Input<string | undefined>; } //# sourceMappingURL=orgToken.d.ts.map