spectrocloud.Project
Explore with Pulumi AI
Create and manage projects in Palette.
Example Usage
Simple example of a project without any additional configuration.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const project = new spectrocloud.Project("project", {});
import pulumi
import pulumi_spectrocloud as spectrocloud
project = spectrocloud.Project("project")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.NewProject(ctx, "project", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var project = new Spectrocloud.Project("project");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.Project;
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 project = new Project("project");
}
}
resources:
project:
type: spectrocloud:Project
You can also add tags and a description to the project.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const project = new spectrocloud.Project("project", {
description: "This is the primary devoplent environment for team Yellow.",
tags: [
"owner:jdoe@emxaple.com",
"cost-center:12345",
],
});
import pulumi
import pulumi_spectrocloud as spectrocloud
project = spectrocloud.Project("project",
description="This is the primary devoplent environment for team Yellow.",
tags=[
"owner:jdoe@emxaple.com",
"cost-center:12345",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.NewProject(ctx, "project", &spectrocloud.ProjectArgs{
Description: pulumi.String("This is the primary devoplent environment for team Yellow."),
Tags: pulumi.StringArray{
pulumi.String("owner:jdoe@emxaple.com"),
pulumi.String("cost-center:12345"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var project = new Spectrocloud.Project("project", new()
{
Description = "This is the primary devoplent environment for team Yellow.",
Tags = new[]
{
"owner:jdoe@emxaple.com",
"cost-center:12345",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.Project;
import com.pulumi.spectrocloud.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 project = new Project("project", ProjectArgs.builder()
.description("This is the primary devoplent environment for team Yellow.")
.tags(
"owner:jdoe@emxaple.com",
"cost-center:12345")
.build());
}
}
resources:
project:
type: spectrocloud:Project
properties:
description: This is the primary devoplent environment for team Yellow.
tags:
- owner:jdoe@emxaple.com
- cost-center:12345
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: Optional[ProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[ProjectTimeoutsArgs] = None)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: spectrocloud: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var projectResource = new Spectrocloud.Project("projectResource", new()
{
Description = "string",
Name = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
Timeouts = new Spectrocloud.Inputs.ProjectTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := spectrocloud.NewProject(ctx, "projectResource", &spectrocloud.ProjectArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &spectrocloud.ProjectTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var projectResource = new Project("projectResource", ProjectArgs.builder()
.description("string")
.name("string")
.projectId("string")
.tags("string")
.timeouts(ProjectTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
project_resource = spectrocloud.Project("projectResource",
description="string",
name="string",
project_id="string",
tags=["string"],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const projectResource = new spectrocloud.Project("projectResource", {
description: "string",
name: "string",
projectId: "string",
tags: ["string"],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: spectrocloud:Project
properties:
description: string
name: string
projectId: string
tags:
- string
timeouts:
create: string
delete: string
update: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Project resource accepts the following input properties:
- Description string
- The description of the project.
- Name string
- The name of the project.
- Project
Id string - The ID of this resource.
- List<string>
- Assign tags to the project.
- Timeouts
Project
Timeouts
- Description string
- The description of the project.
- Name string
- The name of the project.
- Project
Id string - The ID of this resource.
- []string
- Assign tags to the project.
- Timeouts
Project
Timeouts Args
- description String
- The description of the project.
- name String
- The name of the project.
- project
Id String - The ID of this resource.
- List<String>
- Assign tags to the project.
- timeouts
Project
Timeouts
- description string
- The description of the project.
- name string
- The name of the project.
- project
Id string - The ID of this resource.
- string[]
- Assign tags to the project.
- timeouts
Project
Timeouts
- description str
- The description of the project.
- name str
- The name of the project.
- project_
id str - The ID of this resource.
- Sequence[str]
- Assign tags to the project.
- timeouts
Project
Timeouts Args
- description String
- The description of the project.
- name String
- The name of the project.
- project
Id String - The ID of this resource.
- List<String>
- Assign tags to the project.
- timeouts Property Map
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[ProjectTimeoutsArgs] = 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)
resources: _: type: spectrocloud:Project get: id: ${id}
- 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.
- Description string
- The description of the project.
- Name string
- The name of the project.
- Project
Id string - The ID of this resource.
- List<string>
- Assign tags to the project.
- Timeouts
Project
Timeouts
- Description string
- The description of the project.
- Name string
- The name of the project.
- Project
Id string - The ID of this resource.
- []string
- Assign tags to the project.
- Timeouts
Project
Timeouts Args
- description String
- The description of the project.
- name String
- The name of the project.
- project
Id String - The ID of this resource.
- List<String>
- Assign tags to the project.
- timeouts
Project
Timeouts
- description string
- The description of the project.
- name string
- The name of the project.
- project
Id string - The ID of this resource.
- string[]
- Assign tags to the project.
- timeouts
Project
Timeouts
- description str
- The description of the project.
- name str
- The name of the project.
- project_
id str - The ID of this resource.
- Sequence[str]
- Assign tags to the project.
- timeouts
Project
Timeouts Args
- description String
- The description of the project.
- name String
- The name of the project.
- project
Id String - The ID of this resource.
- List<String>
- Assign tags to the project.
- timeouts Property Map
Supporting Types
ProjectTimeouts, ProjectTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.