@pulumi/pulumiservice
Version:
[](https://slack.pulumi.com) [](https://www.npmjs.com/package/@pulumi/pulumiservice) [ role to a Pulumi Cloud team. The Pulumi Cloud API currently supports one role per team; creating a second assignment replaces the first. The team's organization must already have the custom-roles feature enabled.
*/
export declare class TeamRoleAssignment extends pulumi.CustomResource {
/**
* Get an existing TeamRoleAssignment 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): TeamRoleAssignment;
/**
* Returns true if the given object is an instance of TeamRoleAssignment. 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 TeamRoleAssignment;
/**
* The Pulumi Cloud organization name.
*/
readonly organizationName: pulumi.Output<string>;
/**
* The ID of the custom role to assign.
*/
readonly roleId: pulumi.Output<string>;
/**
* The name of the currently assigned role (custom role name, or built-in role).
*/
readonly roleName: pulumi.Output<string>;
/**
* The team name.
*/
readonly teamName: pulumi.Output<string>;
/**
* Create a TeamRoleAssignment 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: TeamRoleAssignmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a TeamRoleAssignment resource.
*/
export interface TeamRoleAssignmentArgs {
/**
* The Pulumi Cloud organization name.
*/
organizationName: pulumi.Input<string>;
/**
* The ID of the custom role to assign.
*/
roleId: pulumi.Input<string>;
/**
* The team name.
*/
teamName: pulumi.Input<string>;
}
//# sourceMappingURL=teamRoleAssignment.d.ts.map