1. Packages
  2. Defang Provider
  3. API Docs
  4. Project
defang v1.0.0 published on Monday, Mar 24, 2025 by Defang

defang.Project

Explore with Pulumi AI

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,
            config_paths: Optional[Sequence[str]] = None,
            provider_id: 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: defang: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 Defang.Project("projectResource", new()
{
    ConfigPaths = new[]
    {
        "string",
    },
    ProviderID = "string",
});
Copy
example, err := defang.NewProject(ctx, "projectResource", &defang.ProjectArgs{
	ConfigPaths: pulumi.StringArray{
		pulumi.String("string"),
	},
	ProviderID: pulumi.String("string"),
})
Copy
var projectResource = new Project("projectResource", ProjectArgs.builder()
    .configPaths("string")
    .providerID("string")
    .build());
Copy
project_resource = defang.Project("projectResource",
    config_paths=["string"],
    provider_id="string")
Copy
const projectResource = new defang.Project("projectResource", {
    configPaths: ["string"],
    providerID: "string",
});
Copy
type: defang:Project
properties:
    configPaths:
        - string
    providerID: 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:

ConfigPaths This property is required. List<string>
ProviderID This property is required. string
ConfigPaths This property is required. []string
ProviderID This property is required. string
configPaths This property is required. List<String>
providerID This property is required. String
configPaths This property is required. string[]
providerID This property is required. string
config_paths This property is required. Sequence[str]
provider_id This property is required. str
configPaths This property is required. List<String>
providerID This property is required. String

Outputs

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

AlbArn string
Etag string
Id string
The provider-assigned unique ID for this managed resource.
Services List<DefangLabs.Defang.V1.Outputs.ServiceInfo>
AlbArn string
Etag string
Id string
The provider-assigned unique ID for this managed resource.
Services ServiceInfo
albArn String
etag String
id String
The provider-assigned unique ID for this managed resource.
services List<ServiceInfo>
albArn string
etag string
id string
The provider-assigned unique ID for this managed resource.
services v1ServiceInfo[]
alb_arn str
etag str
id str
The provider-assigned unique ID for this managed resource.
services Sequence[v1.ServiceInfo]
albArn String
etag String
id String
The provider-assigned unique ID for this managed resource.
services List<Property Map>

Package Details

Repository
defang DefangLabs/pulumi-defang
License
Apache-2.0