Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Latest commit

 

History

History
90 lines (54 loc) · 2.83 KB

File metadata and controls

90 lines (54 loc) · 2.83 KB

GitLab::Projects::AccessToken

Creates a Project Access Token in GitLab

Syntax

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

JSON

{
    "Type" : "GitLab::Projects::AccessToken",
    "Properties" : {
        "Name" : String,
        "ProjectId" : Integer,
        "AccessLevel" : Integer,
        "Scopes" : [ String, ... ],
    }
}

YAML

Type: GitLab::Projects::AccessToken
Properties:
    Name: String
    ProjectId: Integer
    AccessLevel: Integer
    Scopes: 
      - String

Properties

Name

The name of the Project Access Token to create.

Required: Yes

Type: String

Maximum Length: 64

Update requires: Replacement

ProjectId

The ID (numeric) of the project for which this Access Token is created. The project should exist and the user creating the Access Token should have rights to do this on this project.

Required: Yes

Type: Integer

Update requires: Replacement

AccessLevel

A valid access level. Default value is 40 (Maintainer). Other allowed values are 10 (Guest), 20 (Reporter), and 30 (Developer).

Required: No

Type: Integer

Update requires: No interruption

Scopes

The scopes this Project Access Token will be used for. The list of supported scopes is in the official GitLab documentation here: https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#scopes-for-a-project-access-token .

Required: Yes

Type: List of String

Update requires: Replacement

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.

Id

The ID of the Project Access Token