ProjectApprovalRule

class ProjectApprovalRule : KotlinCustomResource

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"

Properties

Link copied to clipboard
val approvalsRequired: Output<Int>

The number of approvals required for this rule.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the approval rule.

Link copied to clipboard
val project: Output<String>

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ruleType: Output<String>

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 urn: Output<String>
Link copied to clipboard
val userIds: Output<List<Int>>?

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