1. Packages
  2. Gitlab Provider
  3. API Docs
  4. GroupLevelMrApprovals
GitLab v9.3.0 published on Monday, Sep 29, 2025 by Pulumi

gitlab.GroupLevelMrApprovals

Explore with Pulumi AI

gitlab logo
GitLab v9.3.0 published on Monday, Sep 29, 2025 by Pulumi

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      foo:
        type: gitlab:Group
        properties:
          name: test_group
          path: test_group
          description: An example group
      fooGroupLevelMrApprovals:
        type: gitlab:GroupLevelMrApprovals
        name: foo
        properties:
          group: ${foo.id}
          allowAuthorApproval: true
          allowCommitterApproval: true
          allowOverridesToApproverListPerMergeRequest: true
          retainApprovalsOnPush: true
          selectiveCodeOwnerRemovals: false
          requireReauthenticationToApprove: true
    

    Create GroupLevelMrApprovals Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GroupLevelMrApprovals(name: string, args: GroupLevelMrApprovalsArgs, opts?: CustomResourceOptions);
    @overload
    def GroupLevelMrApprovals(resource_name: str,
                              args: GroupLevelMrApprovalsArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupLevelMrApprovals(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              group: Optional[str] = None,
                              allow_author_approval: Optional[bool] = None,
                              allow_committer_approval: Optional[bool] = None,
                              allow_overrides_to_approver_list_per_merge_request: Optional[bool] = None,
                              keep_settings_on_destroy: Optional[bool] = None,
                              require_reauthentication_to_approve: Optional[bool] = None,
                              retain_approvals_on_push: Optional[bool] = None)
    func NewGroupLevelMrApprovals(ctx *Context, name string, args GroupLevelMrApprovalsArgs, opts ...ResourceOption) (*GroupLevelMrApprovals, error)
    public GroupLevelMrApprovals(string name, GroupLevelMrApprovalsArgs args, CustomResourceOptions? opts = null)
    public GroupLevelMrApprovals(String name, GroupLevelMrApprovalsArgs args)
    public GroupLevelMrApprovals(String name, GroupLevelMrApprovalsArgs args, CustomResourceOptions options)
    
    type: gitlab:GroupLevelMrApprovals
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GroupLevelMrApprovalsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GroupLevelMrApprovalsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GroupLevelMrApprovalsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupLevelMrApprovalsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupLevelMrApprovalsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var groupLevelMrApprovalsResource = new GitLab.GroupLevelMrApprovals("groupLevelMrApprovalsResource", new()
    {
        Group = "string",
        AllowAuthorApproval = false,
        AllowCommitterApproval = false,
        AllowOverridesToApproverListPerMergeRequest = false,
        KeepSettingsOnDestroy = false,
        RequireReauthenticationToApprove = false,
        RetainApprovalsOnPush = false,
    });
    
    example, err := gitlab.NewGroupLevelMrApprovals(ctx, "groupLevelMrApprovalsResource", &gitlab.GroupLevelMrApprovalsArgs{
    	Group:                  pulumi.String("string"),
    	AllowAuthorApproval:    pulumi.Bool(false),
    	AllowCommitterApproval: pulumi.Bool(false),
    	AllowOverridesToApproverListPerMergeRequest: pulumi.Bool(false),
    	KeepSettingsOnDestroy:                       pulumi.Bool(false),
    	RequireReauthenticationToApprove:            pulumi.Bool(false),
    	RetainApprovalsOnPush:                       pulumi.Bool(false),
    })
    
    var groupLevelMrApprovalsResource = new GroupLevelMrApprovals("groupLevelMrApprovalsResource", GroupLevelMrApprovalsArgs.builder()
        .group("string")
        .allowAuthorApproval(false)
        .allowCommitterApproval(false)
        .allowOverridesToApproverListPerMergeRequest(false)
        .keepSettingsOnDestroy(false)
        .requireReauthenticationToApprove(false)
        .retainApprovalsOnPush(false)
        .build());
    
    group_level_mr_approvals_resource = gitlab.GroupLevelMrApprovals("groupLevelMrApprovalsResource",
        group="string",
        allow_author_approval=False,
        allow_committer_approval=False,
        allow_overrides_to_approver_list_per_merge_request=False,
        keep_settings_on_destroy=False,
        require_reauthentication_to_approve=False,
        retain_approvals_on_push=False)
    
    const groupLevelMrApprovalsResource = new gitlab.GroupLevelMrApprovals("groupLevelMrApprovalsResource", {
        group: "string",
        allowAuthorApproval: false,
        allowCommitterApproval: false,
        allowOverridesToApproverListPerMergeRequest: false,
        keepSettingsOnDestroy: false,
        requireReauthenticationToApprove: false,
        retainApprovalsOnPush: false,
    });
    
    type: gitlab:GroupLevelMrApprovals
    properties:
        allowAuthorApproval: false
        allowCommitterApproval: false
        allowOverridesToApproverListPerMergeRequest: false
        group: string
        keepSettingsOnDestroy: false
        requireReauthenticationToApprove: false
        retainApprovalsOnPush: false
    

    GroupLevelMrApprovals Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GroupLevelMrApprovals resource accepts the following input properties:

    Group string
    The ID or URL-encoded path of the group.
    AllowAuthorApproval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    AllowCommitterApproval bool
    Allow or prevent committers from self approving merge requests.
    AllowOverridesToApproverListPerMergeRequest bool
    Allow or prevent overriding approvers per merge request.
    KeepSettingsOnDestroy bool
    RequireReauthenticationToApprove bool
    Require approver to authenticate before adding the approval.
    RetainApprovalsOnPush bool
    Retain approval count on a new push.
    Group string
    The ID or URL-encoded path of the group.
    AllowAuthorApproval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    AllowCommitterApproval bool
    Allow or prevent committers from self approving merge requests.
    AllowOverridesToApproverListPerMergeRequest bool
    Allow or prevent overriding approvers per merge request.
    KeepSettingsOnDestroy bool
    RequireReauthenticationToApprove bool
    Require approver to authenticate before adding the approval.
    RetainApprovalsOnPush bool
    Retain approval count on a new push.
    group String
    The ID or URL-encoded path of the group.
    allowAuthorApproval Boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval Boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest Boolean
    Allow or prevent overriding approvers per merge request.
    keepSettingsOnDestroy Boolean
    requireReauthenticationToApprove Boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush Boolean
    Retain approval count on a new push.
    group string
    The ID or URL-encoded path of the group.
    allowAuthorApproval boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest boolean
    Allow or prevent overriding approvers per merge request.
    keepSettingsOnDestroy boolean
    requireReauthenticationToApprove boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush boolean
    Retain approval count on a new push.
    group str
    The ID or URL-encoded path of the group.
    allow_author_approval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allow_committer_approval bool
    Allow or prevent committers from self approving merge requests.
    allow_overrides_to_approver_list_per_merge_request bool
    Allow or prevent overriding approvers per merge request.
    keep_settings_on_destroy bool
    require_reauthentication_to_approve bool
    Require approver to authenticate before adding the approval.
    retain_approvals_on_push bool
    Retain approval count on a new push.
    group String
    The ID or URL-encoded path of the group.
    allowAuthorApproval Boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval Boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest Boolean
    Allow or prevent overriding approvers per merge request.
    keepSettingsOnDestroy Boolean
    requireReauthenticationToApprove Boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush Boolean
    Retain approval count on a new push.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GroupLevelMrApprovals resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GroupLevelMrApprovals Resource

    Get an existing GroupLevelMrApprovals resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GroupLevelMrApprovalsState, opts?: CustomResourceOptions): GroupLevelMrApprovals
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_author_approval: Optional[bool] = None,
            allow_committer_approval: Optional[bool] = None,
            allow_overrides_to_approver_list_per_merge_request: Optional[bool] = None,
            group: Optional[str] = None,
            keep_settings_on_destroy: Optional[bool] = None,
            require_reauthentication_to_approve: Optional[bool] = None,
            retain_approvals_on_push: Optional[bool] = None) -> GroupLevelMrApprovals
    func GetGroupLevelMrApprovals(ctx *Context, name string, id IDInput, state *GroupLevelMrApprovalsState, opts ...ResourceOption) (*GroupLevelMrApprovals, error)
    public static GroupLevelMrApprovals Get(string name, Input<string> id, GroupLevelMrApprovalsState? state, CustomResourceOptions? opts = null)
    public static GroupLevelMrApprovals get(String name, Output<String> id, GroupLevelMrApprovalsState state, CustomResourceOptions options)
    resources:  _:    type: gitlab:GroupLevelMrApprovals    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowAuthorApproval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    AllowCommitterApproval bool
    Allow or prevent committers from self approving merge requests.
    AllowOverridesToApproverListPerMergeRequest bool
    Allow or prevent overriding approvers per merge request.
    Group string
    The ID or URL-encoded path of the group.
    KeepSettingsOnDestroy bool
    RequireReauthenticationToApprove bool
    Require approver to authenticate before adding the approval.
    RetainApprovalsOnPush bool
    Retain approval count on a new push.
    AllowAuthorApproval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    AllowCommitterApproval bool
    Allow or prevent committers from self approving merge requests.
    AllowOverridesToApproverListPerMergeRequest bool
    Allow or prevent overriding approvers per merge request.
    Group string
    The ID or URL-encoded path of the group.
    KeepSettingsOnDestroy bool
    RequireReauthenticationToApprove bool
    Require approver to authenticate before adding the approval.
    RetainApprovalsOnPush bool
    Retain approval count on a new push.
    allowAuthorApproval Boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval Boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest Boolean
    Allow or prevent overriding approvers per merge request.
    group String
    The ID or URL-encoded path of the group.
    keepSettingsOnDestroy Boolean
    requireReauthenticationToApprove Boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush Boolean
    Retain approval count on a new push.
    allowAuthorApproval boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest boolean
    Allow or prevent overriding approvers per merge request.
    group string
    The ID or URL-encoded path of the group.
    keepSettingsOnDestroy boolean
    requireReauthenticationToApprove boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush boolean
    Retain approval count on a new push.
    allow_author_approval bool
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allow_committer_approval bool
    Allow or prevent committers from self approving merge requests.
    allow_overrides_to_approver_list_per_merge_request bool
    Allow or prevent overriding approvers per merge request.
    group str
    The ID or URL-encoded path of the group.
    keep_settings_on_destroy bool
    require_reauthentication_to_approve bool
    Require approver to authenticate before adding the approval.
    retain_approvals_on_push bool
    Retain approval count on a new push.
    allowAuthorApproval Boolean
    Allow or prevent authors from self approving merge requests; true means authors can self approve.
    allowCommitterApproval Boolean
    Allow or prevent committers from self approving merge requests.
    allowOverridesToApproverListPerMergeRequest Boolean
    Allow or prevent overriding approvers per merge request.
    group String
    The ID or URL-encoded path of the group.
    keepSettingsOnDestroy Boolean
    requireReauthenticationToApprove Boolean
    Require approver to authenticate before adding the approval.
    retainApprovalsOnPush Boolean
    Retain approval count on a new push.

    Import

    Starting in Terraform v1.5.0, you can use an import block to import gitlab_group_level_mr_approvals. For example:

    terraform

    import {

    to = gitlab_group_level_mr_approvals.example

    id = “see CLI command below for ID”

    }

    Importing using the CLI is supported with the following syntax:

    $ pulumi import gitlab:index/groupLevelMrApprovals:GroupLevelMrApprovals You can import an approval configuration state using `<resource> <group_id>`.
    

    For example:

    $ pulumi import gitlab:index/groupLevelMrApprovals:GroupLevelMrApprovals foo 1234
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v9.3.0 published on Monday, Sep 29, 2025 by Pulumi
      AI Agentic Workflows: Register now