@pulumi/pulumiservice
Version:
70 lines (69 loc) • 2.53 kB
TypeScript
import * as pulumi from "@pulumi/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
*/
export declare class TeamAccessToken extends pulumi.CustomResource {
/**
* Get an existing TeamAccessToken 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): TeamAccessToken;
/**
* Returns true if the given object is an instance of TeamAccessToken. 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 TeamAccessToken;
/**
* Optional. Description for the token.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The name for the token. This must be unique amongst all machine tokens within your organization.
*/
readonly name: pulumi.Output<string>;
/**
* The organization's name.
*/
readonly organizationName: pulumi.Output<string>;
/**
* The team name.
*/
readonly teamName: pulumi.Output<string>;
/**
* The token's value.
*/
readonly value: pulumi.Output<string>;
/**
* Create a TeamAccessToken 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: TeamAccessTokenArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a TeamAccessToken resource.
*/
export interface TeamAccessTokenArgs {
/**
* Optional. Team description.
*/
description?: pulumi.Input<string>;
/**
* The name for the token. This must be unique amongst all machine tokens within your organization.
*/
name: pulumi.Input<string>;
/**
* The organization's name.
*/
organizationName: pulumi.Input<string>;
/**
* The team name.
*/
teamName: pulumi.Input<string>;
}