ProjectApprovalRuleArgs

data class ProjectApprovalRuleArgs(val approvalsRequired: Output<Int>? = null, val groupIds: Output<List<Int>>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val protectedBranchIds: Output<List<Int>>? = null, val ruleType: Output<String>? = null, val userIds: Output<List<Int>>? = null) : ConvertibleToJava<ProjectApprovalRuleArgs>

The gitlab.ProjectApprovalRule resource allows to manage the lifecycle of a project-level approval rule.

This resource requires a GitLab Enterprise instance. Upstream API: GitLab REST API docs

Import

GitLab project approval rules can be imported using a key composed of <project-id>:<rule-id>, e.g.

$ pulumi import gitlab:index/projectApprovalRule:ProjectApprovalRule example "12345:6"

Constructors

Link copied to clipboard
constructor(approvalsRequired: Output<Int>? = null, groupIds: Output<List<Int>>? = null, name: Output<String>? = null, project: Output<String>? = null, protectedBranchIds: Output<List<Int>>? = null, ruleType: Output<String>? = null, userIds: Output<List<Int>>? = null)

Properties

Link copied to clipboard
val approvalsRequired: Output<Int>? = null

The number of approvals required for this rule.

Link copied to clipboard
val groupIds: Output<List<Int>>? = null

A list of group IDs whose members can approve of the merge request.

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

The name of the approval rule.

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

The name or id of the project to add the approval rules.

Link copied to clipboard
val protectedBranchIds: Output<List<Int>>? = null

A list of protected branch IDs (not branch names) for which the rule applies.

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

String, defaults to 'regular'. The type of rule. any_approver is a pre-configured default rule with approvals_required at 0. Valid values are regular, any_approver.

Link copied to clipboard
val userIds: Output<List<Int>>? = null

A list of specific User IDs to add to the list of approvers.

Functions

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