ProjectJobTokenScopeArgs

data class ProjectJobTokenScopeArgs(val project: Output<String>? = null, val targetGroupId: Output<Int>? = null, val targetProjectId: Output<Int>? = null) : ConvertibleToJava<ProjectJobTokenScopeArgs>

The gitlab.ProjectJobTokenScope resource allows to manage the CI/CD Job Token scope in a project. Any projects added to the CI/CD Job Token scope outside of TF will be untouched by the resource.

Conflicts with the use of gitlab.ProjectJobTokenScopes when used on the same project. Use one or the other to ensure the desired state. Upstream API: GitLab REST API docs

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_project_job_token_scope. For example: terraform import { to = gitlab_project_job_token_scope.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: GitLab project job token scopes can be imported using an id made up of projectId:targetProjectId, e.g.

$ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:321

Constructors

Link copied to clipboard
constructor(project: Output<String>? = null, targetGroupId: Output<Int>? = null, targetProjectId: Output<Int>? = null)

Properties

Link copied to clipboard
val project: Output<String>? = null

The ID or full path of the project.

Link copied to clipboard
val targetGroupId: Output<Int>? = null

The ID of the group that is in the CI/CD job token inbound allowlist.

Link copied to clipboard
val targetProjectId: Output<Int>? = null

The ID of the project that is in the CI/CD job token inbound allowlist.

Functions

Link copied to clipboard
open override fun toJava(): ProjectJobTokenScopeArgs