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
new ProjectHook(name: string, args: ProjectHookArgs, opts?: CustomResourceOptions);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.
- Enable
Ssl boolVerification 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 boolEvents 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 boolEvents Invoke the hook for tag push events.
- Token string
A token to present when invoking the hook.
- Wiki
Page boolEvents 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.
- Enable
Ssl boolVerification 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 boolEvents 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 boolEvents Invoke the hook for tag push events.
- Token string
A token to present when invoking the hook.
- Wiki
Page boolEvents 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.
- enable
Ssl booleanVerification Enable ssl verification when invoking the hook.
- issues
Events boolean Invoke the hook for issues events.
- job
Events boolean Invoke the hook for job events.
- merge
Requests booleanEvents Invoke the hook for merge requests.
- note
Events boolean Invoke the hook for notes events.
- pipeline
Events boolean Invoke the hook for pipeline events.
- push
Events boolean Invoke the hook for push events.
- tag
Push booleanEvents Invoke the hook for tag push events.
- token string
A token to present when invoking the hook.
- wiki
Page booleanEvents 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_ boolverification 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_ boolevents 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_ boolevents Invoke the hook for tag push events.
- token str
A token to present when invoking the hook.
- wiki_
page_ boolevents 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:
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): ProjectHookstatic 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:
- Enable
Ssl boolVerification 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 boolEvents 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 string
The name or id of the project to add the hook to.
- Push
Events bool Invoke the hook for push events.
- Tag
Push boolEvents 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.
- Wiki
Page boolEvents Invoke the hook for wiki page events.
- Enable
Ssl boolVerification 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 boolEvents 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 string
The name or id of the project to add the hook to.
- Push
Events bool Invoke the hook for push events.
- Tag
Push boolEvents 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.
- Wiki
Page boolEvents Invoke the hook for wiki page events.
- enable
Ssl booleanVerification Enable ssl verification when invoking the hook.
- issues
Events boolean Invoke the hook for issues events.
- job
Events boolean Invoke the hook for job events.
- merge
Requests booleanEvents Invoke the hook for merge requests.
- note
Events boolean Invoke the hook for notes events.
- pipeline
Events boolean Invoke the hook for pipeline events.
- project string
The name or id of the project to add the hook to.
- push
Events boolean Invoke the hook for push events.
- tag
Push booleanEvents 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.
- wiki
Page booleanEvents Invoke the hook for wiki page events.
- enable_
ssl_ boolverification 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_ boolevents 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_ boolevents 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_ boolevents 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
gitlabTerraform Provider.