Class GroupMembership
This resource allows you to add a user to an existing group.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var test = new GitLab.GroupMembership("test", new GitLab.GroupMembershipArgs
{
AccessLevel = "guest",
ExpiresAt = "2020-12-31",
GroupId = "12345",
UserId = 1337,
});
}
}
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class GroupMembership : CustomResource
Constructors
View SourceGroupMembership(String, GroupMembershipArgs, CustomResourceOptions)
Create a GroupMembership resource with the given unique name, arguments, and options.
Declaration
public GroupMembership(string name, GroupMembershipArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| GroupMembershipArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessLevel
Acceptable values are: guest, reporter, developer, maintainer, owner.
Declaration
public Output<string> AccessLevel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExpiresAt
Expiration date for the group membership. Format: YYYY-MM-DD
Declaration
public Output<string> ExpiresAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupId
The id of the group.
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserId
The id of the user.
Declaration
public Output<int> UserId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, GroupMembershipState, CustomResourceOptions)
Get an existing GroupMembership resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static GroupMembership Get(string name, Input<string> id, GroupMembershipState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| GroupMembershipState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| GroupMembership |