Project Approval Rule Args
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"
Content copied to clipboard
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
The number of approvals required for this rule.
Link copied to clipboard
When this flag is set, the default any_approver
rule will not be imported if present.
Link copied to clipboard
A list of protected branch IDs (not branch names) for which the rule applies.