1. Packages
  2. Doppler
  3. API Docs
  4. Project
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

doppler.Project

Explore with Pulumi AI

Manage a Doppler project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as doppler from "@pulumiverse/doppler";

const backend = new doppler.Project("backend", {
    name: "backend",
    description: "The main backend project",
});
Copy
import pulumi
import pulumiverse_doppler as doppler

backend = doppler.Project("backend",
    name="backend",
    description="The main backend project")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := doppler.NewProject(ctx, "backend", &doppler.ProjectArgs{
			Name:        pulumi.String("backend"),
			Description: pulumi.String("The main backend project"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Doppler = Pulumiverse.Doppler;

return await Deployment.RunAsync(() => 
{
    var backend = new Doppler.Project("backend", new()
    {
        Name = "backend",
        Description = "The main backend project",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.doppler.Project;
import com.pulumi.doppler.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 backend = new Project("backend", ProjectArgs.builder()
            .name("backend")
            .description("The main backend project")
            .build());

    }
}
Copy
resources:
  backend:
    type: doppler:Project
    properties:
      name: backend
      description: The main backend project
Copy

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,
            name: Optional[str] = None,
            description: Optional[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: doppler:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Doppler.Project("projectResource", new()
{
    Name = "string",
    Description = "string",
});
Copy
example, err := doppler.NewProject(ctx, "projectResource", &doppler.ProjectArgs{
	Name:        pulumi.String("string"),
	Description: pulumi.String("string"),
})
Copy
var projectResource = new Project("projectResource", ProjectArgs.builder()
    .name("string")
    .description("string")
    .build());
Copy
project_resource = doppler.Project("projectResource",
    name="string",
    description="string")
Copy
const projectResource = new doppler.Project("projectResource", {
    name: "string",
    description: "string",
});
Copy
type: doppler:Project
properties:
    description: string
    name: string
Copy

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:

Name This property is required. string
The name of the Doppler project
Description string
The description of the Doppler project
Name This property is required. string
The name of the Doppler project
Description string
The description of the Doppler project
name This property is required. String
The name of the Doppler project
description String
The description of the Doppler project
name This property is required. string
The name of the Doppler project
description string
The description of the Doppler project
name This property is required. str
The name of the Doppler project
description str
The description of the Doppler project
name This property is required. String
The name of the Doppler project
description String
The description of the Doppler project

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
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: doppler:Project    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Description string
The description of the Doppler project
Name string
The name of the Doppler project
Description string
The description of the Doppler project
Name string
The name of the Doppler project
description String
The description of the Doppler project
name String
The name of the Doppler project
description string
The description of the Doppler project
name string
The name of the Doppler project
description str
The description of the Doppler project
name str
The name of the Doppler project
description String
The description of the Doppler project
name String
The name of the Doppler project

Import

$ pulumi import doppler:index/project:Project default <project-name>
Copy

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

Package Details

Repository
doppler pulumiverse/pulumi-doppler
License
Apache-2.0
Notes
This Pulumi package is based on the doppler Terraform Provider.