ProjectHook

This resource allows you to create and manage hooks for your GitLab projects. For further information on hooks, consult the gitlab documentation.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new GitLab.ProjectHook("example", new GitLab.ProjectHookArgs
        {
            MergeRequestsEvents = true,
            Project = "example/hooked",
            Url = "https://example.com/hook/example",
        });
    }

}

Coming soon!

import pulumi
import pulumi_gitlab as gitlab

example = gitlab.ProjectHook("example",
    merge_requests_events=True,
    project="example/hooked",
    url="https://example.com/hook/example")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const example = new gitlab.ProjectHook("example", {
    mergeRequestsEvents: true,
    project: "example/hooked",
    url: "https://example.com/hook/example",
});

Create a ProjectHook Resource

def ProjectHook(resource_name, opts=None, enable_ssl_verification=None, issues_events=None, job_events=None, merge_requests_events=None, note_events=None, pipeline_events=None, project=None, push_events=None, tag_push_events=None, token=None, url=None, wiki_page_events=None, __props__=None);
func NewProjectHook(ctx *Context, name string, args ProjectHookArgs, opts ...ResourceOption) (*ProjectHook, error)
public ProjectHook(string name, ProjectHookArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ProjectHookArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ProjectHookArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectHookArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ProjectHook Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ProjectHook resource accepts the following input properties:

Project string

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

Url string

The url of the hook to invoke.

EnableSslVerification bool

Enable ssl verification when invoking the hook.

IssuesEvents bool

Invoke the hook for issues events.

JobEvents bool

Invoke the hook for job events.

MergeRequestsEvents bool

Invoke the hook for merge requests.

NoteEvents bool

Invoke the hook for notes events.

PipelineEvents bool

Invoke the hook for pipeline events.

PushEvents bool

Invoke the hook for push events.

TagPushEvents bool

Invoke the hook for tag push events.

Token string

A token to present when invoking the hook.

WikiPageEvents bool

Invoke the hook for wiki page events.

Project string

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

Url string

The url of the hook to invoke.

EnableSslVerification bool

Enable ssl verification when invoking the hook.

IssuesEvents bool

Invoke the hook for issues events.

JobEvents bool

Invoke the hook for job events.

MergeRequestsEvents bool

Invoke the hook for merge requests.

NoteEvents bool

Invoke the hook for notes events.

PipelineEvents bool

Invoke the hook for pipeline events.

PushEvents bool

Invoke the hook for push events.

TagPushEvents bool

Invoke the hook for tag push events.

Token string

A token to present when invoking the hook.

WikiPageEvents bool

Invoke the hook for wiki page events.

project string

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

url string

The url of the hook to invoke.

enableSslVerification boolean

Enable ssl verification when invoking the hook.

issuesEvents boolean

Invoke the hook for issues events.

jobEvents boolean

Invoke the hook for job events.

mergeRequestsEvents boolean

Invoke the hook for merge requests.

noteEvents boolean

Invoke the hook for notes events.

pipelineEvents boolean

Invoke the hook for pipeline events.

pushEvents boolean

Invoke the hook for push events.

tagPushEvents boolean

Invoke the hook for tag push events.

token string

A token to present when invoking the hook.

wikiPageEvents boolean

Invoke the hook for wiki page events.

project str

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

url str

The url of the hook to invoke.

enable_ssl_verification bool

Enable ssl verification when invoking the hook.

issues_events bool

Invoke the hook for issues events.

job_events bool

Invoke the hook for job events.

merge_requests_events bool

Invoke the hook for merge requests.

note_events bool

Invoke the hook for notes events.

pipeline_events bool

Invoke the hook for pipeline events.

push_events bool

Invoke the hook for push events.

tag_push_events bool

Invoke the hook for tag push events.

token str

A token to present when invoking the hook.

wiki_page_events bool

Invoke the hook for wiki page events.

Outputs

All input properties are implicitly available as output properties. Additionally, the ProjectHook resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ProjectHook Resource

Get an existing ProjectHook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProjectHookState, opts?: CustomResourceOptions): ProjectHook
static get(resource_name, id, opts=None, enable_ssl_verification=None, issues_events=None, job_events=None, merge_requests_events=None, note_events=None, pipeline_events=None, project=None, push_events=None, tag_push_events=None, token=None, url=None, wiki_page_events=None, __props__=None);
func GetProjectHook(ctx *Context, name string, id IDInput, state *ProjectHookState, opts ...ResourceOption) (*ProjectHook, error)
public static ProjectHook Get(string name, Input<string> id, ProjectHookState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

EnableSslVerification bool

Enable ssl verification when invoking the hook.

IssuesEvents bool

Invoke the hook for issues events.

JobEvents bool

Invoke the hook for job events.

MergeRequestsEvents bool

Invoke the hook for merge requests.

NoteEvents bool

Invoke the hook for notes events.

PipelineEvents bool

Invoke the hook for pipeline events.

Project string

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

PushEvents bool

Invoke the hook for push events.

TagPushEvents bool

Invoke the hook for tag push events.

Token string

A token to present when invoking the hook.

Url string

The url of the hook to invoke.

WikiPageEvents bool

Invoke the hook for wiki page events.

EnableSslVerification bool

Enable ssl verification when invoking the hook.

IssuesEvents bool

Invoke the hook for issues events.

JobEvents bool

Invoke the hook for job events.

MergeRequestsEvents bool

Invoke the hook for merge requests.

NoteEvents bool

Invoke the hook for notes events.

PipelineEvents bool

Invoke the hook for pipeline events.

Project string

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

PushEvents bool

Invoke the hook for push events.

TagPushEvents bool

Invoke the hook for tag push events.

Token string

A token to present when invoking the hook.

Url string

The url of the hook to invoke.

WikiPageEvents bool

Invoke the hook for wiki page events.

enableSslVerification boolean

Enable ssl verification when invoking the hook.

issuesEvents boolean

Invoke the hook for issues events.

jobEvents boolean

Invoke the hook for job events.

mergeRequestsEvents boolean

Invoke the hook for merge requests.

noteEvents boolean

Invoke the hook for notes events.

pipelineEvents boolean

Invoke the hook for pipeline events.

project string

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

pushEvents boolean

Invoke the hook for push events.

tagPushEvents boolean

Invoke the hook for tag push events.

token string

A token to present when invoking the hook.

url string

The url of the hook to invoke.

wikiPageEvents boolean

Invoke the hook for wiki page events.

enable_ssl_verification bool

Enable ssl verification when invoking the hook.

issues_events bool

Invoke the hook for issues events.

job_events bool

Invoke the hook for job events.

merge_requests_events bool

Invoke the hook for merge requests.

note_events bool

Invoke the hook for notes events.

pipeline_events bool

Invoke the hook for pipeline events.

project str

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

push_events bool

Invoke the hook for push events.

tag_push_events bool

Invoke the hook for tag push events.

token str

A token to present when invoking the hook.

url str

The url of the hook to invoke.

wiki_page_events bool

Invoke the hook for wiki page events.

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.