gitlab.GroupLevelMrApprovals
Explore with Pulumi AI
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.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - Allow
Committer boolApproval - Allow or prevent committers from self approving merge requests.
- Allow
Overrides boolTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- Keep
Settings boolOn Destroy - Require
Reauthentication boolTo Approve - Require approver to authenticate before adding the approval.
- Retain
Approvals boolOn Push - Retain approval count on a new push.
- Group string
- The ID or URL-encoded path of the group.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - Allow
Committer boolApproval - Allow or prevent committers from self approving merge requests.
- Allow
Overrides boolTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- Keep
Settings boolOn Destroy - Require
Reauthentication boolTo Approve - Require approver to authenticate before adding the approval.
- Retain
Approvals boolOn Push - Retain approval count on a new push.
- group String
- The ID or URL-encoded path of the group.
- Boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer BooleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides BooleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- keep
Settings BooleanOn Destroy - require
Reauthentication BooleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals BooleanOn Push - Retain approval count on a new push.
- group string
- The ID or URL-encoded path of the group.
- boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer booleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides booleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- keep
Settings booleanOn Destroy - require
Reauthentication booleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals booleanOn Push - Retain approval count on a new push.
- group str
- The ID or URL-encoded path of the group.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow_
committer_ boolapproval - Allow or prevent committers from self approving merge requests.
- allow_
overrides_ boolto_ approver_ list_ per_ merge_ request - Allow or prevent overriding approvers per merge request.
- keep_
settings_ boolon_ destroy - require_
reauthentication_ boolto_ approve - Require approver to authenticate before adding the approval.
- retain_
approvals_ boolon_ push - Retain approval count on a new push.
- group String
- The ID or URL-encoded path of the group.
- Boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer BooleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides BooleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- keep
Settings BooleanOn Destroy - require
Reauthentication BooleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals BooleanOn Push - 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.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - Allow
Committer boolApproval - Allow or prevent committers from self approving merge requests.
- Allow
Overrides boolTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- Group string
- The ID or URL-encoded path of the group.
- Keep
Settings boolOn Destroy - Require
Reauthentication boolTo Approve - Require approver to authenticate before adding the approval.
- Retain
Approvals boolOn Push - Retain approval count on a new push.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - Allow
Committer boolApproval - Allow or prevent committers from self approving merge requests.
- Allow
Overrides boolTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- Group string
- The ID or URL-encoded path of the group.
- Keep
Settings boolOn Destroy - Require
Reauthentication boolTo Approve - Require approver to authenticate before adding the approval.
- Retain
Approvals boolOn Push - Retain approval count on a new push.
- Boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer BooleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides BooleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- group String
- The ID or URL-encoded path of the group.
- keep
Settings BooleanOn Destroy - require
Reauthentication BooleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals BooleanOn Push - Retain approval count on a new push.
- boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer booleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides booleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- group string
- The ID or URL-encoded path of the group.
- keep
Settings booleanOn Destroy - require
Reauthentication booleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals booleanOn Push - Retain approval count on a new push.
- bool
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow_
committer_ boolapproval - Allow or prevent committers from self approving merge requests.
- allow_
overrides_ boolto_ approver_ list_ per_ merge_ request - Allow or prevent overriding approvers per merge request.
- group str
- The ID or URL-encoded path of the group.
- keep_
settings_ boolon_ destroy - require_
reauthentication_ boolto_ approve - Require approver to authenticate before adding the approval.
- retain_
approvals_ boolon_ push - Retain approval count on a new push.
- Boolean
- Allow or prevent authors from self approving merge requests;
true
means authors can self approve. - allow
Committer BooleanApproval - Allow or prevent committers from self approving merge requests.
- allow
Overrides BooleanTo Approver List Per Merge Request - Allow or prevent overriding approvers per merge request.
- group String
- The ID or URL-encoded path of the group.
- keep
Settings BooleanOn Destroy - require
Reauthentication BooleanTo Approve - Require approver to authenticate before adding the approval.
- retain
Approvals BooleanOn Push - 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.