PipelineTrigger
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",
});
}
}
Coming soon!
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);def PipelineTrigger(resource_name, opts=None, description=None, project=None, __props__=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.
- 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 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:
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): PipelineTriggerstatic get(resource_name, id, opts=None, description=None, project=None, token=None, __props__=None);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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.