ServicePipelinesEmailArgs

data class ServicePipelinesEmailArgs(val branchesToBeNotified: Output<String>? = null, val notifyOnlyBrokenPipelines: Output<Boolean>? = null, val project: Output<String>? = null, val recipients: Output<List<String>>? = null) : ConvertibleToJava<ServicePipelinesEmailArgs>

The gitlab.ServicePipelinesEmail resource allows to manage the lifecycle of a project integration with Pipeline Emails Service. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ServicePipelinesEmail;
import com.pulumi.gitlab.ServicePipelinesEmailArgs;
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 awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.description("My awesome project.")
.visibilityLevel("public")
.build());
var email = new ServicePipelinesEmail("email", ServicePipelinesEmailArgs.builder()
.project(awesomeProject.id())
.recipients("gitlab@user.create")
.notifyOnlyBrokenPipelines(true)
.branchesToBeNotified("all")
.build());
}
}

Import

You can import a gitlab_service_pipelines_email state using the project ID, e.g.

$ pulumi import gitlab:index/servicePipelinesEmail:ServicePipelinesEmail email 1

Constructors

Link copied to clipboard
constructor(branchesToBeNotified: Output<String>? = null, notifyOnlyBrokenPipelines: Output<Boolean>? = null, project: Output<String>? = null, recipients: Output<List<String>>? = null)

Properties

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

Branches to send notifications for. Valid options are all, default, protected, and default_and_protected. Default is default

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

Notify only broken pipelines. Default is true.

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

ID of the project you want to activate integration on.

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

) email addresses where notifications are sent.

Functions

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