ProjectArgs

data class ProjectArgs(val description: Output<String>? = null, val environment: Output<String>? = null, val isDefault: Output<Boolean>? = null, val name: Output<String>? = null, val purpose: Output<String>? = null, val resources: Output<List<String>>? = null) : ConvertibleToJava<ProjectArgs>

Provides a DigitalOcean Project resource. Projects allow you to organize your resources into groups that fit the way you work. You can group resources (like Droplets, Spaces, Load Balancers, domains, and Floating IPs) in ways that align with the applications you host on DigitalOcean. The following resource types can be associated with a project:

  • Database Clusters

  • Domains

  • Droplets

  • Floating IP

  • Kubernetes Cluster

  • Load Balancers

  • Spaces Bucket

  • Volume Note: A provider managed project cannot be set as a default project.

Example Usage

The following example demonstrates the creation of an empty project:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.Project;
import com.pulumi.digitalocean.ProjectArgs;
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 playground = new Project("playground", ProjectArgs.builder()
.description("A project to represent development resources.")
.environment("Development")
.purpose("Web Application")
.build());
}
}

Import

Projects can be imported using the id returned from DigitalOcean, e.g.

$ pulumi import digitalocean:index/project:Project myproject 245bcfd0-7f31-4ce6-a2bc-475a116cca97

Constructors

Link copied to clipboard
fun ProjectArgs(description: Output<String>? = null, environment: Output<String>? = null, isDefault: Output<Boolean>? = null, name: Output<String>? = null, purpose: Output<String>? = null, resources: Output<List<String>>? = null)

Functions

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

Properties

Link copied to clipboard
val description: Output<String>? = null

the description of the project

Link copied to clipboard
val environment: Output<String>? = null

the environment of the project's resources. The possible values are: Development, Staging, Production)

Link copied to clipboard
val isDefault: Output<Boolean>? = null

a boolean indicating whether or not the project is the default project. (Default: "false")

Link copied to clipboard
val name: Output<String>? = null

The name of the Project

Link copied to clipboard
val purpose: Output<String>? = null

the purpose of the project, (Default: "Web Application")

Link copied to clipboard
val resources: Output<List<String>>? = null

a list of uniform resource names (URNs) for the resources associated with the project