Project2
- Implements: IProject2
This class encapsulates and extends the ROS resource type ALIYUN::IMM::Project2.
Initializers
import com.aliyun.ros.cdk.imm.Project2;
Project2.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.projectName(java.lang.String)
.projectName(IResolvable)
// .datasetMaxBindCount(java.lang.Number)
// .datasetMaxBindCount(IResolvable)
// .datasetMaxEntityCount(java.lang.Number)
// .datasetMaxEntityCount(IResolvable)
// .datasetMaxFileCount(java.lang.Number)
// .datasetMaxFileCount(IResolvable)
// .datasetMaxRelationCount(java.lang.Number)
// .datasetMaxRelationCount(IResolvable)
// .datasetMaxTotalFileSize(java.lang.Number)
// .datasetMaxTotalFileSize(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .projectMaxDatasetCount(java.lang.Number)
// .projectMaxDatasetCount(IResolvable)
// .serviceRole(java.lang.String)
// .serviceRole(IResolvable)
// .templateId(java.lang.String)
// .templateId(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
projectName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property projectName: The project name. |
datasetMaxBindCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property datasetMaxBindCount: The maximum number of bindings for each dataset. |
datasetMaxEntityCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property datasetMaxEntityCount: The maximum number of metadata entities in each dataset. |
datasetMaxFileCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property datasetMaxFileCount: The maximum number of files in each dataset. |
datasetMaxRelationCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property datasetMaxRelationCount: The maximum number of metadata relations in each dataset. |
datasetMaxTotalFileSize | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property datasetMaxTotalFileSize: The maximum size of files in each dataset. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of project. |
projectMaxDatasetCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property projectMaxDatasetCount: The maximum number of datasets in the project. |
serviceRole | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property serviceRole: The name of the Resource Access Management (RAM) role. |
templateId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property templateId: The ID of the workflow template. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
projectNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property projectName: The project name.
The naming convention is as follows:
- The name must be 1 to 128 characters in length.
- It can contain only letters, digits, hyphens (-), and underscores (_).
- It must start with a letter or an underscore (_).
datasetMaxBindCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property datasetMaxBindCount: The maximum number of bindings for each dataset.
Valid values: 1 to 10. Default value: 10.
datasetMaxEntityCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property datasetMaxEntityCount: The maximum number of metadata entities in each dataset.
The default value is 10,000,000,000.
This configuration is reserved and is not currently enforced.
datasetMaxFileCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property datasetMaxFileCount: The maximum number of files in each dataset.
Valid values: 1 to 100000000. Default value: 100000000.
datasetMaxRelationCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property datasetMaxRelationCount: The maximum number of metadata relations in each dataset.
The default value is 100,000,000,000.
This configuration is reserved and is not currently enforced.
datasetMaxTotalFileSizeOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property datasetMaxTotalFileSize: The maximum size of files in each dataset.
If the maximum size is exceeded, no indexes can be added. Unit: bytes. Default value: 90000000000000000.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of project.
projectMaxDatasetCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property projectMaxDatasetCount: The maximum number of datasets in the project.
Valid values: 1 to 1000000000. Default value: 1000000000.
serviceRoleOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceRole: The name of the Resource Access Management (RAM) role.
You must attach the RAM role to IMM to allow IMM to access other cloud resources, such as Object Storage Service (OSS). Default value: AliyunIMMDefaultRole.
templateIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateId: The ID of the workflow template.
You can leave this parameter empty.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.imm.Project2;
Project2.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrProjectName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ProjectName: The name of project. |
props | Project2Props | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrProjectNameRequired
public java.lang.Object getAttrProjectName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ProjectName: The name of project.
propsRequired
public Project2Props getProps();
- Type: Project2Props