ProjectFreezePeriodArgs

data class ProjectFreezePeriodArgs(val cronTimezone: Output<String>? = null, val freezeEnd: Output<String>? = null, val freezeStart: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ProjectFreezePeriodArgs>

The gitlab.ProjectFreezePeriod resource allows to manage the lifecycle of a freeze period for a project. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const schedule = new gitlab.ProjectFreezePeriod("schedule", {
project: gitlab_project.foo.id,
freezeStart: "0 23 * * 5",
freezeEnd: "0 7 * * 1",
cronTimezone: "UTC",
});
import pulumi
import pulumi_gitlab as gitlab
schedule = gitlab.ProjectFreezePeriod("schedule",
project=gitlab_project["foo"]["id"],
freeze_start="0 23 * * 5",
freeze_end="0 7 * * 1",
cron_timezone="UTC")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var schedule = new GitLab.ProjectFreezePeriod("schedule", new()
{
Project = gitlab_project.Foo.Id,
FreezeStart = "0 23 * * 5",
FreezeEnd = "0 7 * * 1",
CronTimezone = "UTC",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.NewProjectFreezePeriod(ctx, "schedule", &gitlab.ProjectFreezePeriodArgs{
Project: pulumi.Any(gitlab_project.Foo.Id),
FreezeStart: pulumi.String("0 23 * * 5"),
FreezeEnd: pulumi.String("0 7 * * 1"),
CronTimezone: pulumi.String("UTC"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.ProjectFreezePeriod;
import com.pulumi.gitlab.ProjectFreezePeriodArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var schedule = new ProjectFreezePeriod("schedule", ProjectFreezePeriodArgs.builder()
.project(gitlab_project.foo().id())
.freezeStart("0 23 * * 5")
.freezeEnd("0 7 * * 1")
.cronTimezone("UTC")
.build());
}
}
resources:
schedule:
type: gitlab:ProjectFreezePeriod
properties:
project: ${gitlab_project.foo.id}
freezeStart: 0 23 * * 5
freezeEnd: 0 7 * * 1
cronTimezone: UTC

Import

GitLab project freeze periods can be imported using an id made up of project_id:freeze_period_id, e.g.

$ pulumi import gitlab:index/projectFreezePeriod:ProjectFreezePeriod schedule "12345:1337"

Constructors

Link copied to clipboard
constructor(cronTimezone: Output<String>? = null, freezeEnd: Output<String>? = null, freezeStart: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val cronTimezone: Output<String>? = null

The timezone.

Link copied to clipboard
val freezeEnd: Output<String>? = null

End of the Freeze Period in cron format (e.g. 0 2 * * *).

Link copied to clipboard
val freezeStart: Output<String>? = null

Start of the Freeze Period in cron format (e.g. 0 1 * * *).

Link copied to clipboard
val project: Output<String>? = null

The ID or URL-encoded path of the project to add the schedule to.

Functions

Link copied to clipboard
open override fun toJava(): ProjectFreezePeriodArgs