ServicePipelinesEmail

class ServicePipelinesEmail : KotlinCustomResource

The gitlab.ServicePipelinesEmail resource allows to manage the lifecycle of a project integration with Pipeline Emails Service.

This resource is deprecated. use gitlab.IntegrationPipelinesEmailinstead! Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
name: "awesome_project",
description: "My awesome project.",
visibilityLevel: "public",
});
const email = new gitlab.ServicePipelinesEmail("email", {
project: awesomeProject.id,
recipients: ["gitlab@user.create"],
notifyOnlyBrokenPipelines: true,
branchesToBeNotified: "all",
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
email = gitlab.ServicePipelinesEmail("email",
project=awesome_project.id,
recipients=["gitlab@user.create"],
notify_only_broken_pipelines=True,
branches_to_be_notified="all")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var email = new GitLab.ServicePipelinesEmail("email", new()
{
Project = awesomeProject.Id,
Recipients = new[]
{
"gitlab@user.create",
},
NotifyOnlyBrokenPipelines = true,
BranchesToBeNotified = "all",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v7/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
Name: pulumi.String("awesome_project"),
Description: pulumi.String("My awesome project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewServicePipelinesEmail(ctx, "email", &gitlab.ServicePipelinesEmailArgs{
Project: awesomeProject.ID(),
Recipients: pulumi.StringArray{
pulumi.String("gitlab@user.create"),
},
NotifyOnlyBrokenPipelines: pulumi.Bool(true),
BranchesToBeNotified: pulumi.String("all"),
})
if err != nil {
return err
}
return nil
})
}
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()
.name("awesome_project")
.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());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
email:
type: gitlab:ServicePipelinesEmail
properties:
project: ${awesomeProject.id}
recipients:
- gitlab@user.create
notifyOnlyBrokenPipelines: true
branchesToBeNotified: all

Import

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

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

Properties

Link copied to clipboard

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

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

Notify only broken pipelines. Default is true.

Link copied to clipboard
val project: Output<String>

ID of the project you want to activate integration on.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recipients: Output<List<String>>

) email addresses where notifications are sent.

Link copied to clipboard
val urn: Output<String>