Tag Protection Args
data class TagProtectionArgs(val createAccessLevel: Output<String>? = null, val project: Output<String>? = null, val tag: Output<String>? = null) : ConvertibleToJava<TagProtectionArgs>
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());
}
}
Content copied to clipboard
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
Content copied to clipboard