ProjectApprovalRuleArgs

data class ProjectApprovalRuleArgs(val appliesToAllProtectedBranches: Output<Boolean>? = null, val approvalsRequired: Output<Int>? = null, val disableImportingDefaultAnyApproverRuleOnCreate: Output<Boolean>? = 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>

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"

Constructors

Link copied to clipboard
constructor(appliesToAllProtectedBranches: Output<Boolean>? = null, approvalsRequired: Output<Int>? = null, disableImportingDefaultAnyApproverRuleOnCreate: Output<Boolean>? = 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

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>? = null

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>>? = 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