ProjectFreezePeriodArgs

data class ProjectFreezePeriodArgs(val cronTimezone: Output<String>? = null, val freezeEnd: Output<String>? = null, val freezeStart: Output<String>? = null, val projectId: 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

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()
.projectId(gitlab_project.foo().id())
.freezeStart("0 23 * * 5")
.freezeEnd("0 7 * * 1")
.cronTimezone("UTC")
.build());
}
}

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, projectId: 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 projectId: Output<String>? = null

The id of the project to add the schedule to.

Functions

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