Project Args
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
Properties
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.
IP whitelist See ip_white_list
below.
The name begins with a letter, containing letters, digits, and underscores (_). It can be 3 to 28 characters in length and is globally unique.
Project base attributes See properties
below.
Security-related attributes See security_properties
below.