PipelineTrigger

# gitlab_pipeline_trigger

This resource allows you to create and manage pipeline triggers

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new GitLab.PipelineTrigger("example", new GitLab.PipelineTriggerArgs
        {
            Description = "Used to trigger builds",
            Project = "12345",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gitlab.NewPipelineTrigger(ctx, "example", &gitlab.PipelineTriggerArgs{
			Description: pulumi.String("Used to trigger builds"),
			Project:     pulumi.String("12345"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_gitlab as gitlab

example = gitlab.PipelineTrigger("example",
    description="Used to trigger builds",
    project="12345")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const example = new gitlab.PipelineTrigger("example", {
    description: "Used to trigger builds",
    project: "12345",
});

Create a PipelineTrigger Resource

new PipelineTrigger(name: string, args: PipelineTriggerArgs, opts?: CustomResourceOptions);
@overload
def PipelineTrigger(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    project: Optional[str] = None)
@overload
def PipelineTrigger(resource_name: str,
                    args: PipelineTriggerArgs,
                    opts: Optional[ResourceOptions] = None)
func NewPipelineTrigger(ctx *Context, name string, args PipelineTriggerArgs, opts ...ResourceOption) (*PipelineTrigger, error)
public PipelineTrigger(string name, PipelineTriggerArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args PipelineTriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PipelineTriggerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PipelineTriggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PipelineTriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

PipelineTrigger Resource Properties

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

Inputs

The PipelineTrigger resource accepts the following input properties:

Description string
The description of the pipeline trigger.
Project string
The name or id of the project to add the trigger to.
Description string
The description of the pipeline trigger.
Project string
The name or id of the project to add the trigger to.
description string
The description of the pipeline trigger.
project string
The name or id of the project to add the trigger to.
description str
The description of the pipeline trigger.
project str
The name or id of the project to add the trigger to.

Outputs

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

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

Look up an Existing PipelineTrigger Resource

Get an existing PipelineTrigger 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?: PipelineTriggerState, opts?: CustomResourceOptions): PipelineTrigger
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        project: Optional[str] = None,
        token: Optional[str] = None) -> PipelineTrigger
func GetPipelineTrigger(ctx *Context, name string, id IDInput, state *PipelineTriggerState, opts ...ResourceOption) (*PipelineTrigger, error)
public static PipelineTrigger Get(string name, Input<string> id, PipelineTriggerState? 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:

Description string
The description of the pipeline trigger.
Project string
The name or id of the project to add the trigger to.
Token string
Description string
The description of the pipeline trigger.
Project string
The name or id of the project to add the trigger to.
Token string
description string
The description of the pipeline trigger.
project string
The name or id of the project to add the trigger to.
token string
description str
The description of the pipeline trigger.
project str
The name or id of the project to add the trigger to.
token str

Package Details

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