MemberRoleArgs

data class MemberRoleArgs(val baseAccessLevel: Output<String>? = null, val description: Output<String>? = null, val enabledPermissions: Output<List<String>>? = null, val groupPath: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<MemberRoleArgs>

The gitlab.MemberRole resource allows to manage the lifecycle of a custom member role. Custom roles allow an organization to create user roles with the precise privileges and permissions required for that organization’s needs.

This resource requires an Ultimate license. Most custom roles are considered billable users that use a seat. Custom roles billing and seat usage There can be only 10 custom roles on your instance or namespace. See issue 450929 for more details. Upstream API: GitLab GraphQL API docs

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_member_role. For example: terraform import { to = gitlab_member_role.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: GitLab member role can be imported using the id made up of gid://gitlab/MemberRole/<ID> e.g.

$ pulumi import gitlab:index/memberRole:MemberRole example 'gid://gitlab/MemberRole/123'

Constructors

Link copied to clipboard
constructor(baseAccessLevel: Output<String>? = null, description: Output<String>? = null, enabledPermissions: Output<List<String>>? = null, groupPath: Output<String>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val baseAccessLevel: Output<String>? = null

The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER

Link copied to clipboard
val description: Output<String>? = null

Description for the member role.

Link copied to clipboard
val enabledPermissions: Output<List<String>>? = null

All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT

Link copied to clipboard
val groupPath: Output<String>? = null

Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed

Link copied to clipboard
val name: Output<String>? = null

Name for the member role.

Functions

Link copied to clipboard
open override fun toJava(): MemberRoleArgs