ProjectHookArgs

data class ProjectHookArgs(val confidentialIssuesEvents: Output<Boolean>? = null, val confidentialNoteEvents: Output<Boolean>? = null, val deploymentEvents: Output<Boolean>? = null, val enableSslVerification: Output<Boolean>? = null, val issuesEvents: Output<Boolean>? = null, val jobEvents: Output<Boolean>? = null, val mergeRequestsEvents: Output<Boolean>? = null, val noteEvents: Output<Boolean>? = null, val pipelineEvents: Output<Boolean>? = null, val project: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val pushEventsBranchFilter: Output<String>? = null, val releasesEvents: Output<Boolean>? = null, val tagPushEvents: Output<Boolean>? = null, val token: Output<String>? = null, val url: Output<String>? = null, val wikiPageEvents: Output<Boolean>? = null) : ConvertibleToJava<ProjectHookArgs>

The gitlab.ProjectHook resource allows to manage the lifecycle of a project hook. 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.ProjectHook;
import com.pulumi.gitlab.ProjectHookArgs;
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 example = new ProjectHook("example", ProjectHookArgs.builder()
.mergeRequestsEvents(true)
.project("example/hooked")
.url("https://example.com/hook/example")
.build());
}
}

Import

A GitLab Project Hook can be imported using a key composed of <project-id>:<hook-id>, e.g.

$ pulumi import gitlab:index/projectHook:ProjectHook example "12345:1"

NOTEthe token resource attribute is not available for imported resources as this information cannot be read from the GitLab API.

Constructors

Link copied to clipboard
constructor(confidentialIssuesEvents: Output<Boolean>? = null, confidentialNoteEvents: Output<Boolean>? = null, deploymentEvents: Output<Boolean>? = null, enableSslVerification: Output<Boolean>? = null, issuesEvents: Output<Boolean>? = null, jobEvents: Output<Boolean>? = null, mergeRequestsEvents: Output<Boolean>? = null, noteEvents: Output<Boolean>? = null, pipelineEvents: Output<Boolean>? = null, project: Output<String>? = null, pushEvents: Output<Boolean>? = null, pushEventsBranchFilter: Output<String>? = null, releasesEvents: Output<Boolean>? = null, tagPushEvents: Output<Boolean>? = null, token: Output<String>? = null, url: Output<String>? = null, wikiPageEvents: Output<Boolean>? = null)

Properties

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

Invoke the hook for confidential issues events.

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

Invoke the hook for confidential notes events.

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

Invoke the hook for deployment events.

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

Enable ssl verification when invoking the hook.

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

Invoke the hook for issues events.

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

Invoke the hook for job events.

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

Invoke the hook for merge requests.

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

Invoke the hook for notes events.

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

Invoke the hook for pipeline events.

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

The name or id of the project to add the hook to.

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

Invoke the hook for push events.

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

Invoke the hook for push events on matching branches only.

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

Invoke the hook for releases events.

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

Invoke the hook for tag push events.

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

A token to present when invoking the hook. The token is not available for imported resources.

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

The url of the hook to invoke.

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

Invoke the hook for wiki page events.

Functions

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