DeployTokenArgs

data class DeployTokenArgs(val expiresAt: Output<String>? = null, val group: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val scopes: Output<List<String>>? = null, val username: Output<String>? = null) : ConvertibleToJava<DeployTokenArgs>

The gitlab.DeployToken resource allows to manage the lifecycle of group and project deploy tokens. Upstream API: GitLab REST API docs

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_deploy_token. For example: terraform import { to = gitlab_deploy_token.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: GitLab deploy tokens can be imported using an id made up of {type}:{type_id}:{deploy_token_id}, where type is one of: project, group.

$ pulumi import gitlab:index/deployToken:DeployToken group_token group:1:3
$ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4

Note: the token resource attribute is not available for imported resources as this information cannot be read from the GitLab API.

Constructors

Link copied to clipboard
constructor(expiresAt: Output<String>? = null, group: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, scopes: Output<List<String>>? = null, username: Output<String>? = null)

Properties

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

Time the token will expire it, RFC3339 format. Will not expire per default.

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

The name or id of the group to add the deploy token to.

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

A name to describe the deploy token with.

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

The name or id of the project to add the deploy token to.

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

Valid values: read_repository, read_registry, read_package_registry, write_registry, write_package_registry.

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

A username for the deploy token. Default is gitlab+deploy-token-{n}.

Functions

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