PipelineScheduleVariable
This resource allows you to create and manage variables for pipeline schedules.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var examplePipelineSchedule = new GitLab.PipelineSchedule("examplePipelineSchedule", new GitLab.PipelineScheduleArgs
{
Project = "12345",
Description = "Used to schedule builds",
Ref = "master",
Cron = "0 1 * * *",
});
var examplePipelineScheduleVariable = new GitLab.PipelineScheduleVariable("examplePipelineScheduleVariable", new GitLab.PipelineScheduleVariableArgs
{
Project = gitlab_pipeline_schedule.Project,
PipelineScheduleId = gitlab_pipeline_schedule.Id,
Key = "EXAMPLE_KEY",
Value = "example",
});
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
example_pipeline_schedule = gitlab.PipelineSchedule("examplePipelineSchedule",
project="12345",
description="Used to schedule builds",
ref="master",
cron="0 1 * * *")
example_pipeline_schedule_variable = gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable",
project=gitlab_pipeline_schedule["project"],
pipeline_schedule_id=gitlab_pipeline_schedule["id"],
key="EXAMPLE_KEY",
value="example")import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const examplePipelineSchedule = new gitlab.PipelineSchedule("examplePipelineSchedule", {
project: "12345",
description: "Used to schedule builds",
ref: "master",
cron: "0 1 * * *",
});
const examplePipelineScheduleVariable = new gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", {
project: gitlab_pipeline_schedule.project,
pipelineScheduleId: gitlab_pipeline_schedule.id,
key: "EXAMPLE_KEY",
value: "example",
});Create a PipelineScheduleVariable Resource
new PipelineScheduleVariable(name: string, args: PipelineScheduleVariableArgs, opts?: CustomResourceOptions);def PipelineScheduleVariable(resource_name, opts=None, key=None, pipeline_schedule_id=None, project=None, value=None, __props__=None);func NewPipelineScheduleVariable(ctx *Context, name string, args PipelineScheduleVariableArgs, opts ...ResourceOption) (*PipelineScheduleVariable, error)public PipelineScheduleVariable(string name, PipelineScheduleVariableArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PipelineScheduleVariableArgs
- 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 PipelineScheduleVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PipelineScheduleVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PipelineScheduleVariable Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PipelineScheduleVariable resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the PipelineScheduleVariable resource produces the following output properties:
Look up an Existing PipelineScheduleVariable Resource
Get an existing PipelineScheduleVariable 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?: PipelineScheduleVariableState, opts?: CustomResourceOptions): PipelineScheduleVariablestatic get(resource_name, id, opts=None, key=None, pipeline_schedule_id=None, project=None, value=None, __props__=None);func GetPipelineScheduleVariable(ctx *Context, name string, id IDInput, state *PipelineScheduleVariableState, opts ...ResourceOption) (*PipelineScheduleVariable, error)public static PipelineScheduleVariable Get(string name, Input<string> id, PipelineScheduleVariableState? 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.