Project

class Project : KotlinCustomResource

Provides a Max Compute Project resource. MaxCompute project . For information about Max Compute Project and how to use it, see What is Project.

NOTE: Available since v1.77.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const _default = new alicloud.maxcompute.Project("default", {
defaultQuota: "默认后付费Quota",
projectName: name,
comment: name,
productType: "PayAsYouGo",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.maxcompute.Project("default",
default_quota="默认后付费Quota",
project_name=name,
comment=name,
product_type="PayAsYouGo")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = new AliCloud.MaxCompute.Project("default", new()
{
DefaultQuota = "默认后付费Quota",
ProjectName = name,
Comment = name,
ProductType = "PayAsYouGo",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/maxcompute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := maxcompute.NewProject(ctx, "default", &maxcompute.ProjectArgs{
DefaultQuota: pulumi.String("默认后付费Quota"),
ProjectName: pulumi.String(name),
Comment: pulumi.String(name),
ProductType: pulumi.String("PayAsYouGo"),
})
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.alicloud.maxcompute.Project;
import com.pulumi.alicloud.maxcompute.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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
var default_ = new Project("default", ProjectArgs.builder()
.defaultQuota("默认后付费Quota")
.projectName(name)
.comment(name)
.productType("PayAsYouGo")
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
default:
type: alicloud:maxcompute:Project
properties:
defaultQuota: 默认后付费Quota
projectName: ${name}
comment: ${name}
productType: PayAsYouGo

Import

Max Compute Project can be imported using the id, e.g.

$ pulumi import alicloud:maxcompute/project:Project example <id>

Properties

Link copied to clipboard
val comment: Output<String>?

Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.

Link copied to clipboard
val createTime: Output<String>

Represents the creation time of the project

Link copied to clipboard
val defaultQuota: Output<String>?

Used to implement computing resource allocation. Valid values: subQuota Nickname If the calculation Quota is not specified, the default Quota resource will be consumed by jobs initiated by the project. For more information about computing resource usage, see Computing Resource Usage.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

IP whitelist See ip_white_list below.

Link copied to clipboard
val isLogical: Output<String>?

Whether to logically delete. Default value: true. Value: (ture/false),

Link copied to clipboard
val owner: Output<String>

Project owner

Link copied to clipboard
val productType: Output<String>?
Link copied to clipboard
val projectName: Output<String>

The name begins with a letter, containing letters, digits, and underscores (_). It can be 3 to 28 characters in length and is globally unique.

Link copied to clipboard

Project base attributes See properties below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regionId: Output<String>

The region ID of the resource

Link copied to clipboard

Security-related attributes See security_properties below.

Link copied to clipboard
val status: Output<String>

The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)

Link copied to clipboard
val tags: Output<Map<String, String>>?

The tag of the resource

Link copied to clipboard
val type: Output<String>

Project type

Link copied to clipboard
val urn: Output<String>