Project Protected Environment Args
data class ProjectProtectedEnvironmentArgs(val approvalRules: Output<List<ProjectProtectedEnvironmentApprovalRuleArgs>>? = null, val deployAccessLevels: Output<List<ProjectProtectedEnvironmentDeployAccessLevelArgs>>? = null, val environment: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ProjectProtectedEnvironmentArgs>
The gitlab.ProjectProtectedEnvironment resource allows to manage the lifecycle of a protected environment in a project.
In order to use a user or group in the
deploy_access_levelsconfiguration, you need to make sure that users have access to the project and groups must have this project shared. You may use thegitlab.ProjectMembershipandgitlab_project_shared_groupresources to achieve this. Unfortunately, the GitLab API does not complain about users and groups without access to the project and just ignores those. In case this happens you will get perpetual state diffs. Upstream API: GitLab REST API docs
Import
GitLab protected environments can be imported using an id made up of projectId:environmentName, e.g.
$ pulumi import gitlab:index/projectProtectedEnvironment:ProjectProtectedEnvironment bar 123:productionContent copied to clipboard
Constructors
Link copied to clipboard
constructor(approvalRules: Output<List<ProjectProtectedEnvironmentApprovalRuleArgs>>? = null, deployAccessLevels: Output<List<ProjectProtectedEnvironmentDeployAccessLevelArgs>>? = null, environment: Output<String>? = null, project: Output<String>? = null)