ManagedLicense

class ManagedLicense : KotlinCustomResource

The gitlab.ManagedLicense resource allows to manage the lifecycle of a managed license.

This resource requires a GitLab Enterprise instance. 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.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ManagedLicense;
import com.pulumi.gitlab.ManagedLicenseArgs;
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 foo = new Project("foo", ProjectArgs.builder()
.description("Lorem Ipsum")
.visibilityLevel("public")
.build());
var mit = new ManagedLicense("mit", ManagedLicenseArgs.builder()
.project(foo.id())
.approvalStatus("allowed")
.build());
}
}

Import

You can import this resource with an id made up of {project-id}:{license-id}, e.g.

$ pulumi import gitlab:index/managedLicense:ManagedLicense foo 1:2

Properties

Link copied to clipboard
val approvalStatus: Output<String>

The approval status of the license. Valid values are: approved, blacklisted, allowed, denied. "approved" and "blacklisted" have been deprecated in favor of "allowed" and "denied"; use "allowed" and "denied" for GitLab versions 15.0 and higher. Prior to version 15.0 and after 14.6, the values are equivalent.

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

The name of the managed license (I.e., 'Apache License 2.0' or 'MIT license')

Link copied to clipboard
val project: Output<String>

The ID of the project under which the managed license will be created.

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