harness logo
Harness v0.0.5, Oct 31 22

harness.platform.Project

Resource for creating a Harness project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;

return await Deployment.RunAsync(() => 
{
    var test = new Harness.Platform.Project("test", new()
    {
        Color = "#0063F7",
        Identifier = "testproject",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.NewProject(ctx, "test", &platform.ProjectArgs{
			Color:      pulumi.String("#0063F7"),
			Identifier: pulumi.String("testproject"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.Project;
import com.pulumi.harness.platform.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 test = new Project("test", ProjectArgs.builder()        
            .color("#0063F7")
            .identifier("testproject")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_harness as harness

test = harness.platform.Project("test",
    color="#0063F7",
    identifier="testproject")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const test = new harness.platform.Project("test", {
    color: "#0063F7",
    identifier: "testproject",
});
resources:
  test:
    type: harness:platform:Project
    properties:
      color: '#0063F7'
      identifier: testproject

Create Project Resource

new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            color: Optional[str] = None,
            description: Optional[str] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None)
@overload
def Project(resource_name: str,
            args: ProjectArgs,
            opts: Optional[ResourceOptions] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: harness:platform:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Project Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Project resource accepts the following input properties:

Identifier string

Unique identifier of the resource.

OrgId string

Unique identifier of the Organization.

Color string

Color of the project.

Description string

Description of the resource.

Name string

Name of the resource.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

Identifier string

Unique identifier of the resource.

OrgId string

Unique identifier of the Organization.

Color string

Color of the project.

Description string

Description of the resource.

Name string

Name of the resource.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

identifier String

Unique identifier of the resource.

orgId String

Unique identifier of the Organization.

color String

Color of the project.

description String

Description of the resource.

name String

Name of the resource.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

identifier string

Unique identifier of the resource.

orgId string

Unique identifier of the Organization.

color string

Color of the project.

description string

Description of the resource.

name string

Name of the resource.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

identifier str

Unique identifier of the resource.

org_id str

Unique identifier of the Organization.

color str

Color of the project.

description str

Description of the resource.

name str

Name of the resource.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

identifier String

Unique identifier of the resource.

orgId String

Unique identifier of the Organization.

color String

Color of the project.

description String

Description of the resource.

name String

Name of the resource.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Modules List<string>

Modules in the project.

Id string

The provider-assigned unique ID for this managed resource.

Modules []string

Modules in the project.

id String

The provider-assigned unique ID for this managed resource.

modules List<String>

Modules in the project.

id string

The provider-assigned unique ID for this managed resource.

modules string[]

Modules in the project.

id str

The provider-assigned unique ID for this managed resource.

modules Sequence[str]

Modules in the project.

id String

The provider-assigned unique ID for this managed resource.

modules List<String>

Modules in the project.

Look up Existing Project Resource

Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        color: Optional[str] = None,
        description: Optional[str] = None,
        identifier: Optional[str] = None,
        modules: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Color string

Color of the project.

Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

Modules List<string>

Modules in the project.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

Color string

Color of the project.

Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

Modules []string

Modules in the project.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

color String

Color of the project.

description String

Description of the resource.

identifier String

Unique identifier of the resource.

modules List<String>

Modules in the project.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

color string

Color of the project.

description string

Description of the resource.

identifier string

Unique identifier of the resource.

modules string[]

Modules in the project.

name string

Name of the resource.

orgId string

Unique identifier of the Organization.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

color str

Color of the project.

description str

Description of the resource.

identifier str

Unique identifier of the resource.

modules Sequence[str]

Modules in the project.

name str

Name of the resource.

org_id str

Unique identifier of the Organization.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

color String

Color of the project.

description String

Description of the resource.

identifier String

Unique identifier of the resource.

modules List<String>

Modules in the project.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

Import

Import using the organization id and the project id

 $ pulumi import harness:platform/project:Project example <organization_id>/<project_id>

Package Details

Repository
harness lbrlabs/pulumi-harness
License
Apache-2.0
Notes

This Pulumi package is based on the harness Terraform Provider.