SystemHook

class SystemHook : KotlinCustomResource

The gitlab.SystemHook resource allows to manage the lifecycle of a system hook.

This resource requires GitLab 14.9 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.SystemHook;
import com.pulumi.gitlab.SystemHookArgs;
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 SystemHook("example", SystemHookArgs.builder()
.enableSslVerification(true)
.mergeRequestsEvents(true)
.pushEvents(true)
.repositoryUpdateEvents(true)
.tagPushEvents(true)
.token("secret-token")
.url("https://example.com/hook-%d")
.build());
}
}

Import

You can import a system hook using the hook id {hook-id}, e.g.

$ pulumi import gitlab:index/systemHook:SystemHook example 42

NOTEthe token attribute won't be available for imported resources.

Properties

Link copied to clipboard
val createdAt: Output<String>

The date and time the hook was created in ISO8601 format.

Link copied to clipboard

Do SSL verification when triggering the hook.

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

Trigger hook on merge requests events.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pushEvents: Output<Boolean>?

When true, the hook fires on push events.

Link copied to clipboard

Trigger hook on repository update events.

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

When true, the hook fires on new tags being pushed.

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

Secret token to validate received payloads; this isn’t returned in the response. This attribute is not available for imported resources.

Link copied to clipboard
val url: Output<String>

The hook URL.

Link copied to clipboard
val urn: Output<String>