ValueStreamAnalyticsArgs

data class ValueStreamAnalyticsArgs(val groupFullPath: Output<String>? = null, val name: Output<String>? = null, val projectFullPath: Output<String>? = null, val stages: Output<List<ValueStreamAnalyticsStageArgs>>? = null) : ConvertibleToJava<ValueStreamAnalyticsArgs>

The gitlab.ValueStreamAnalytics resource allows to manage the lifecycle of value stream analytics.

This resource requires a GitLab Enterprise instance with a Premium license to create custom value stream analytics. Upstream API: GitLab GraphQL API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.ValueStreamAnalytics;
import com.pulumi.gitlab.ValueStreamAnalyticsArgs;
import com.pulumi.gitlab.inputs.ValueStreamAnalyticsStageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var project = new ValueStreamAnalytics("project", ValueStreamAnalyticsArgs.builder()
.name("TEST")
.projectFullPath("test/project")
.stages(
ValueStreamAnalyticsStageArgs.builder()
.name("Issue")
.custom(false)
.hidden(false)
.build(),
ValueStreamAnalyticsStageArgs.builder()
.name("Issue Labels")
.custom(true)
.hidden(false)
.start_event_identifier("ISSUE_LABEL_ADDED")
.start_event_label_id("gid://gitlab/ProjectLabel/0")
.end_event_identifier("ISSUE_LABEL_REMOVED")
.end_event_label_id("gid://gitlab/ProjectLabel/1")
.build())
.build());
var group = new ValueStreamAnalytics("group", ValueStreamAnalyticsArgs.builder()
.name("TEST")
.groupFullPath("test/group")
.stages(
ValueStreamAnalyticsStageArgs.builder()
.name("Issue")
.custom(false)
.hidden(false)
.build(),
ValueStreamAnalyticsStageArgs.builder()
.name("Issue Labels")
.custom(true)
.hidden(false)
.start_event_identifier("ISSUE_LABEL_ADDED")
.start_event_label_id("gid://gitlab/GroupLabel/0")
.end_event_identifier("ISSUE_LABEL_REMOVED")
.end_event_label_id("gid://gitlab/GroupLabel/1")
.build())
.build());
}
}
resources:
project:
type: gitlab:ValueStreamAnalytics
properties:
name: TEST
projectFullPath: test/project
stages:
- name: Issue
custom: false
hidden: false
- name: Issue Labels
custom: true
hidden: false
start_event_identifier: ISSUE_LABEL_ADDED
start_event_label_id: gid://gitlab/ProjectLabel/0
end_event_identifier: ISSUE_LABEL_REMOVED
end_event_label_id: gid://gitlab/ProjectLabel/1
group:
type: gitlab:ValueStreamAnalytics
properties:
name: TEST
groupFullPath: test/group
stages:
- name: Issue
custom: false
hidden: false
- name: Issue Labels
custom: true
hidden: false
start_event_identifier: ISSUE_LABEL_ADDED
start_event_label_id: gid://gitlab/GroupLabel/0
end_event_identifier: ISSUE_LABEL_REMOVED
end_event_label_id: gid://gitlab/GroupLabel/1

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_value_stream_analytics. For example: terraform import { to = gitlab_value_stream_analytics.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: Gitlab value stream analytics can be imported with a key composed of <full_path_type>:<full_path>:<value_stream_id>, e.g.

$ pulumi import gitlab:index/valueStreamAnalytics:ValueStreamAnalytics group "group:people/engineers:42"
$ pulumi import gitlab:index/valueStreamAnalytics:ValueStreamAnalytics project "project:projects/sample:43"

Constructors

Link copied to clipboard
constructor(groupFullPath: Output<String>? = null, name: Output<String>? = null, projectFullPath: Output<String>? = null, stages: Output<List<ValueStreamAnalyticsStageArgs>>? = null)

Properties

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

Full path of the group the value stream is created in. One of group_full_path OR project_full_path is required.

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

The name of the value stream

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

Full path of the project the value stream is created in. One of group_full_path OR project_full_path is required.

Link copied to clipboard

Stages of the value stream

Functions

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