@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
90 lines (89 loc) • 2.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Resource for adding a user to a group.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const exampleUser = harness.getUser({
* email: "testuser@example.com",
* });
* const admin = new harness.UserGroup("admin", {name: "admin"});
* const exampleAddUserToGroups = new harness.AddUserToGroup("example_add_user_to_groups", {
* groupId: admin.id,
* userId: test.id,
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Import using the Harness user and user group id
*
* ```sh
* $ pulumi import harness:index/addUserToGroup:AddUserToGroup example_admin <user_id>/<group_id>
* ```
*/
export declare class AddUserToGroup extends pulumi.CustomResource {
/**
* Get an existing AddUserToGroup 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AddUserToGroupState, opts?: pulumi.CustomResourceOptions): AddUserToGroup;
/**
* Returns true if the given object is an instance of AddUserToGroup. 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 AddUserToGroup;
/**
* The name of the user.
*/
readonly groupId: pulumi.Output<string>;
/**
* Unique identifier of the user.
*/
readonly userId: pulumi.Output<string>;
/**
* Create a AddUserToGroup 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: AddUserToGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AddUserToGroup resources.
*/
export interface AddUserToGroupState {
/**
* The name of the user.
*/
groupId?: pulumi.Input<string>;
/**
* Unique identifier of the user.
*/
userId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AddUserToGroup resource.
*/
export interface AddUserToGroupArgs {
/**
* The name of the user.
*/
groupId: pulumi.Input<string>;
/**
* Unique identifier of the user.
*/
userId: pulumi.Input<string>;
}