TagProtection

class TagProtection : KotlinCustomResource

The gitlab.TagProtection resource allows to manage the lifecycle of a tag protection. 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.TagProtection;
import com.pulumi.gitlab.TagProtectionArgs;
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 tagProtect = new TagProtection("tagProtect", TagProtectionArgs.builder()
.createAccessLevel("developer")
.project("12345")
.tag("TagProtected")
.build());
}
}

Import

Tag protections can be imported using an id made up of project_id:tag_name, e.g.

$ pulumi import gitlab:index/tagProtection:TagProtection example 123456789:v1.0.0

Properties

Link copied to clipboard

Access levels which are allowed to create. Valid values are: no one, developer, maintainer.

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

The id of the project.

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

Name of the tag or wildcard.

Link copied to clipboard
val urn: Output<String>