ProjectArgs

data class ProjectArgs(val comment: Output<String>? = null, val defaultQuota: Output<String>? = null, val ipWhiteList: Output<ProjectIpWhiteListArgs>? = null, val isLogical: Output<String>? = null, val productType: Output<String>? = null, val projectName: Output<String>? = null, val properties: Output<ProjectPropertiesArgs>? = null, val securityProperties: Output<ProjectSecurityPropertiesArgs>? = null, val status: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProjectArgs>

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>

Constructors

Link copied to clipboard
constructor(comment: Output<String>? = null, defaultQuota: Output<String>? = null, ipWhiteList: Output<ProjectIpWhiteListArgs>? = null, isLogical: Output<String>? = null, productType: Output<String>? = null, projectName: Output<String>? = null, properties: Output<ProjectPropertiesArgs>? = null, securityProperties: Output<ProjectSecurityPropertiesArgs>? = null, status: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

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

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

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 ipWhiteList: Output<ProjectIpWhiteListArgs>? = null

IP whitelist See ip_white_list below.

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

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

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

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
val properties: Output<ProjectPropertiesArgs>? = null

Project base attributes See properties below.

Link copied to clipboard

Security-related attributes See security_properties below.

Link copied to clipboard
val status: Output<String>? = null

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

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

The tag of the resource

Functions

Link copied to clipboard
open override fun toJava(): ProjectArgs