ProjectApprovalRule

class ProjectApprovalRule : KotlinCustomResource

Example Usage

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

Whether the rule is applied to all protected branches. If set to 'true', the value of protected_branch_ids is ignored. Default is 'false'.

Link copied to clipboard
val approvalsRequired: Output<Int>

The number of approvals required for this rule.

When this flag is set, the default any_approver rule will not be imported if present.

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.