ProjectJobTokenScopes

class ProjectJobTokenScopes : KotlinCustomResource

The gitlab.ProjectJobTokenScopes resource allows to manage the CI/CD Job Token scopes in a project. Any project not within the defined set in this attribute will be removed, which allows this resource to be used as an explicit deny.

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

Example Usage

resources:
allowedSingleProject:
type: gitlab:ProjectJobTokenScopes
name: allowed_single_project
properties:
project: gitlab-org/gitlab
targetProjectIds:
- 123
allowedMultipleProject:
type: gitlab:ProjectJobTokenScopes
name: allowed_multiple_project
properties:
project: gitlab-org/gitlab
targetProjectIds:
- 123
- 456
- 789
# This will remove all job token scopes, even if added outside of TF.
explicitDeny:
type: gitlab:ProjectJobTokenScopes
name: explicit_deny
properties:
project: gitlab-org/gitlab
targetProjectIds: []

Import

GitLab project job token scopes can be imported using an id made up of just the project_id as an integer

$ pulumi import gitlab:index/projectJobTokenScopes:ProjectJobTokenScopes bar 123

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val projectId: Output<Int>

The ID of the project.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val targetProjectIds: Output<List<Int>>

A set of project IDs that are in the CI/CD job token inbound allowlist.

Link copied to clipboard
val urn: Output<String>