TopicArgs

data class TopicArgs(val avatar: Output<String>? = null, val avatarHash: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val softDestroy: Output<Boolean>? = null, val title: Output<String>? = null) : ConvertibleToJava<TopicArgs>

The gitlab.Topic resource allows to manage the lifecycle of topics that are then assignable to projects.

Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable. Deleting a topic was implemented in GitLab 14.9. For older versions of GitLab set soft_destroy = true to empty out a topic instead of deleting it. Upstream API: GitLab REST API docs for topics

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_topic. For example: terraform import { to = gitlab_topic.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax:

$ pulumi import gitlab:index/topic:Topic You can import a topic to terraform state using `<resource> <id>`.

The id must be an integer for the id of the topic you want to import, for example:

$ pulumi import gitlab:index/topic:Topic functional_programming 1

Constructors

Link copied to clipboard
constructor(avatar: Output<String>? = null, avatarHash: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, softDestroy: Output<Boolean>? = null, title: Output<String>? = null)

Properties

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

A local path to the avatar image to upload. Note: not available for imported resources.

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

The hash of the avatar image. Use filesha256("path/to/avatar.png") whenever possible. Note: this is used to trigger an update of the avatar. If it's not given, but an avatar is given, the avatar will be updated each time.

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

A text describing the topic.

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

The topic's name.

Link copied to clipboard
val softDestroy: Output<Boolean>? = null

Empty the topics fields instead of deleting it.

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

The topic's description. Requires at least GitLab 15.0 for which it's a required argument.

Functions

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