IntegrationEmailsOnPushArgs

data class IntegrationEmailsOnPushArgs(val branchesToBeNotified: Output<String>? = null, val disableDiffs: Output<Boolean>? = null, val project: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val recipients: Output<String>? = null, val sendFromCommitterEmail: Output<Boolean>? = null, val tagPushEvents: Output<Boolean>? = null) : ConvertibleToJava<IntegrationEmailsOnPushArgs>

The gitlab.IntegrationEmailsOnPush resource allows to manage the lifecycle of a project integration with Emails on Push Service. 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 emails = new gitlab.IntegrationEmailsOnPush("emails", {
project: awesomeProject.id,
recipients: "myrecipient@example.com myotherrecipient@example.com",
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
emails = gitlab.IntegrationEmailsOnPush("emails",
project=awesome_project.id,
recipients="myrecipient@example.com myotherrecipient@example.com")
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 emails = new GitLab.IntegrationEmailsOnPush("emails", new()
{
Project = awesomeProject.Id,
Recipients = "myrecipient@example.com myotherrecipient@example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/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.NewIntegrationEmailsOnPush(ctx, "emails", &gitlab.IntegrationEmailsOnPushArgs{
Project: awesomeProject.ID(),
Recipients: pulumi.String("myrecipient@example.com myotherrecipient@example.com"),
})
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.IntegrationEmailsOnPush;
import com.pulumi.gitlab.IntegrationEmailsOnPushArgs;
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 emails = new IntegrationEmailsOnPush("emails", IntegrationEmailsOnPushArgs.builder()
.project(awesomeProject.id())
.recipients("myrecipient@example.com myotherrecipient@example.com")
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
emails:
type: gitlab:IntegrationEmailsOnPush
properties:
project: ${awesomeProject.id}
recipients: myrecipient@example.com myotherrecipient@example.com

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_integration_emails_on_push. For example: terraform import { to = gitlab_integration_emails_on_push.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: You can import a gitlab_integration_emails_on_push state using the project ID, e.g.

$ pulumi import gitlab:index/integrationEmailsOnPush:IntegrationEmailsOnPush emails 1

Constructors

Link copied to clipboard
constructor(branchesToBeNotified: Output<String>? = null, disableDiffs: Output<Boolean>? = null, project: Output<String>? = null, pushEvents: Output<Boolean>? = null, recipients: Output<String>? = null, sendFromCommitterEmail: Output<Boolean>? = null, tagPushEvents: Output<Boolean>? = null)

Properties

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

Branches to send notifications for. Valid options are all, default, protected, default_and_protected. Notifications are always fired for tag pushes.

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

Disable code diffs.

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

ID or full-path of the project you want to activate integration on.

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

Enable notifications for push events.

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

Emails separated by whitespace.

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

Send from committer.

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

Enable notifications for tag push events.

Functions

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