1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. Project
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.Project

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating a Harness project.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Harness.Platform.Project("test", new()
        {
            Color = "#0063F7",
            Identifier = "testproject",
            OrgId = "org_id",
        });
    
    });
    
    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"),
    			OrgId:      pulumi.String("org_id"),
    		})
    		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")
                .orgId("org_id")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    test = harness.platform.Project("test",
        color="#0063F7",
        identifier="testproject",
        org_id="org_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const test = new harness.platform.Project("test", {
        color: "#0063F7",
        identifier: "testproject",
        orgId: "org_id",
    });
    
    resources:
      test:
        type: harness:platform:Project
        properties:
          color: '#0063F7'
          identifier: testproject
          orgId: org_id
    

    Create Project Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                args: ProjectArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                identifier: Optional[str] = None,
                org_id: Optional[str] = None,
                color: Optional[str] = None,
                description: Optional[str] = None,
                name: Optional[str] = None,
                tags: Optional[Sequence[str]] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var projectResource = new Harness.Platform.Project("projectResource", new()
    {
        Identifier = "string",
        OrgId = "string",
        Color = "string",
        Description = "string",
        Name = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewProject(ctx, "projectResource", &platform.ProjectArgs{
    	Identifier:  pulumi.String("string"),
    	OrgId:       pulumi.String("string"),
    	Color:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var projectResource = new Project("projectResource", ProjectArgs.builder()        
        .identifier("string")
        .orgId("string")
        .color("string")
        .description("string")
        .name("string")
        .tags("string")
        .build());
    
    project_resource = harness.platform.Project("projectResource",
        identifier="string",
        org_id="string",
        color="string",
        description="string",
        name="string",
        tags=["string"])
    
    const projectResource = new harness.platform.Project("projectResource", {
        identifier: "string",
        orgId: "string",
        color: "string",
        description: "string",
        name: "string",
        tags: ["string"],
    });
    
    type: harness:platform:Project
    properties:
        color: string
        description: string
        identifier: string
        name: string
        orgId: string
        tags:
            - string
    

    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.
    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.
    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.
    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.
    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.
    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.

    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.
    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.
    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.
    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.
    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.
    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.

    Import

    Import using the organization id and the project id

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs