Skip to content

Latest commit

 

History

History
89 lines (53 loc) · 2.94 KB

File metadata and controls

89 lines (53 loc) · 2.94 KB

GitLab::Projects::UserMemberOfProject

Adds a user as a member of a GitLab project

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{
    "Type" : "GitLab::Projects::UserMemberOfProject",
    "Properties" : {
        "ProjectId" : Integer,
        "UserId" : Integer,
        "Username" : String,
        "AccessLevel" : String
    }
}

YAML

Type: GitLab::Projects::UserMemberOfProject
Properties:
    ProjectId: Integer
    UserId: Integer
    Username: String
    AccessLevel: String

Properties

ProjectId

ID of the project to which the user should be added

Required: Yes

Type: Integer

Update requires: Replacement

UserId

ID (numeric) of the user to add to the project. Either this or Username but not both should be supplied.

Required: No

Type: Integer

Update requires: Replacement

Username

Username (handle, e.g. often written starting with '@') of the user to add to the project. Either this or the UserId but not both should be supplied.

Required: No

Type: String

Update requires: Replacement

AccessLevel

The access level to grant to this user on the project, e.g. 'Guest', 'Developer', or 'Maintainer'. Note the GitLab API may not allow all values.

Required: Yes

Type: String

Allowed Values: None | Minimal Access | Guest | Reporter | Developer | Maintainer | Owner | Admin

Update requires: No interruption

Return Values

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

MembershipId

Unique identifier for this membership resource, constructed by concatenating the other IDs