Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class PipelineScheduleVariable : CustomResource
Constructors
View SourcePipelineScheduleVariable(String, PipelineScheduleVariableArgs, CustomResourceOptions)
Create a PipelineScheduleVariable resource with the given unique name, arguments, and options.
Declaration
public PipelineScheduleVariable(string name, PipelineScheduleVariableArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PipelineScheduleVariableArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceKey
Name of the variable.
Declaration
public Output<string> Key { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PipelineScheduleId
The id of the pipeline schedule.
Declaration
public Output<int> PipelineScheduleId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Project
The id of the project to add the schedule to.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Value
Value of the variable.
Declaration
public Output<string> Value { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, PipelineScheduleVariableState, CustomResourceOptions)
Get an existing PipelineScheduleVariable resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static PipelineScheduleVariable Get(string name, Input<string> id, PipelineScheduleVariableState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PipelineScheduleVariableState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| PipelineScheduleVariable |