@pulumi/pulumiservice
Version:
75 lines (74 loc) • 2.86 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as enums from "./types/enums";
/**
* Grants a team permissions to the specified stack.
*/
export declare class TeamStackPermission extends pulumi.CustomResource {
/**
* Get an existing TeamStackPermission 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): TeamStackPermission;
/**
* Returns true if the given object is an instance of TeamStackPermission. 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 TeamStackPermission;
/**
* The organization or the personal account name of the stack.
*/
readonly organization: pulumi.Output<string>;
/**
* Sets the permission level that this team will be granted to the stack.
*/
readonly permission: pulumi.Output<enums.TeamStackPermissionScope>;
/**
* The project name for this stack.
*/
readonly project: pulumi.Output<string>;
/**
* The name of the stack that the team will be granted permissions to.
*/
readonly stack: pulumi.Output<string>;
/**
* The name of the team to grant this stack permissions to. This is not the display name.
*/
readonly team: pulumi.Output<string>;
/**
* Create a TeamStackPermission 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: TeamStackPermissionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a TeamStackPermission resource.
*/
export interface TeamStackPermissionArgs {
/**
* The organization or the personal account name of the stack.
*/
organization: pulumi.Input<string>;
/**
* Sets the permission level that this team will be granted to the stack.
*/
permission: enums.TeamStackPermissionScope;
/**
* The project name for this stack.
*/
project: pulumi.Input<string>;
/**
* The name of the stack that the team will be granted permissions to.
*/
stack: pulumi.Input<string>;
/**
* The name of the team to grant this stack permissions to. This is not the display name.
*/
team: pulumi.Input<string>;
}