ProjectFreezePeriod

class ProjectFreezePeriod : KotlinCustomResource

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"

Properties

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

The timezone.

Link copied to clipboard
val freezeEnd: Output<String>

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

Link copied to clipboard
val freezeStart: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val projectId: Output<String>

The id of the project to add the schedule to.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>