com.pulumi.alicloud.maxcompute.Project Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.maxcompute;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.maxcompute.ProjectArgs;
import com.pulumi.alicloud.maxcompute.inputs.ProjectState;
import com.pulumi.alicloud.maxcompute.outputs.ProjectIpWhiteList;
import com.pulumi.alicloud.maxcompute.outputs.ProjectProperties;
import com.pulumi.alicloud.maxcompute.outputs.ProjectSecurityProperties;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides a Max Compute Project resource.
*
* For information about Max Compute Project and how to use it, see [What is Project](https://www.alibabacloud.com/help/en/maxcompute).
*
* > **NOTE:** Available since v1.77.0.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
@ResourceType(type="alicloud:maxcompute/project:Project")
public class Project extends com.pulumi.resources.CustomResource {
/**
* Comments of project
*
*/
@Export(name="comment", refs={String.class}, tree="[0]")
private Output comment;
/**
* @return Comments of project
*
*/
public Output> comment() {
return Codegen.optional(this.comment);
}
/**
* Default Computing Resource Group
*
*/
@Export(name="defaultQuota", refs={String.class}, tree="[0]")
private Output defaultQuota;
/**
* @return Default Computing Resource Group
*
*/
public Output> defaultQuota() {
return Codegen.optional(this.defaultQuota);
}
/**
* IP whitelist. See `ip_white_list` below.
*
*/
@Export(name="ipWhiteList", refs={ProjectIpWhiteList.class}, tree="[0]")
private Output ipWhiteList;
/**
* @return IP whitelist. See `ip_white_list` below.
*
*/
public Output> ipWhiteList() {
return Codegen.optional(this.ipWhiteList);
}
/**
* Project owner
*
*/
@Export(name="owner", refs={String.class}, tree="[0]")
private Output owner;
/**
* @return Project owner
*
*/
public Output owner() {
return this.owner;
}
/**
* Quota payment type, support `PayAsYouGo`, `Subscription`, `Dev`.
*
*/
@Export(name="productType", refs={String.class}, tree="[0]")
private Output productType;
/**
* @return Quota payment type, support `PayAsYouGo`, `Subscription`, `Dev`.
*
*/
public Output> productType() {
return Codegen.optional(this.productType);
}
/**
* The name of the project
*
*/
@Export(name="projectName", refs={String.class}, tree="[0]")
private Output projectName;
/**
* @return The name of the project
*
*/
public Output projectName() {
return this.projectName;
}
/**
* Project base attributes. See `properties` below.
*
*/
@Export(name="properties", refs={ProjectProperties.class}, tree="[0]")
private Output properties;
/**
* @return Project base attributes. See `properties` below.
*
*/
public Output properties() {
return this.properties;
}
/**
* Security-related attributes. See `security_properties` below.
*
*/
@Export(name="securityProperties", refs={ProjectSecurityProperties.class}, tree="[0]")
private Output securityProperties;
/**
* @return Security-related attributes. See `security_properties` below.
*
*/
public Output securityProperties() {
return this.securityProperties;
}
/**
* The status of the resource
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The status of the resource
*
*/
public Output status() {
return this.status;
}
/**
* Project type
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Project type
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Project(String name) {
this(name, ProjectArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Project(String name, ProjectArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Project(String name, ProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:maxcompute/project:Project", name, args == null ? ProjectArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private Project(String name, Output id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:maxcompute/project:Project", name, state, makeResourceOptions(options, id));
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Project get(String name, Output id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Project(name, id, state, options);
}
}