Cluster2
- Implements: ICluster2
This class encapsulates and extends the ROS resource type ALIYUN::EMR::Cluster2.
Initializers
import com.aliyun.ros.cdk.emr.Cluster2;
Cluster2.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.applications(IResolvable)
.applications(java.util.List<IResolvable)
.applications(ApplicationsProperty>)
.clusterName(java.lang.String)
.clusterName(IResolvable)
.clusterType(java.lang.String)
.clusterType(IResolvable)
.nodeAttributes(IResolvable)
.nodeAttributes(NodeAttributesProperty)
.nodeGroups(IResolvable)
.nodeGroups(java.util.List<IResolvable)
.nodeGroups(NodeGroupsProperty>)
.releaseVersion(java.lang.String)
.releaseVersion(IResolvable)
// .applicationConfigs(IResolvable)
// .applicationConfigs(java.util.List<IResolvable)
// .applicationConfigs(ApplicationConfigsProperty>)
// .bootstrapScripts(IResolvable)
// .bootstrapScripts(java.util.List<IResolvable)
// .bootstrapScripts(BootstrapScriptsProperty>)
// .deployMode(java.lang.String)
// .deployMode(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .securityMode(java.lang.String)
// .securityMode(IResolvable)
// .subscriptionConfig(IResolvable)
// .subscriptionConfig(SubscriptionConfigProperty)
// .tags(java.util.List<TagsProperty>)
.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. |
applications | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property applications: Application List.The value range of the number n of the number N group: 1 ~ 100. |
clusterName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterName: Cluster name.The length is 1 ~ 128 characters, and the alphabet or Chinese must be started. It cannot start with http:\/\/ and https: \/\/.It can include Chinese, English, numbers, half-horn colons (:), down line (_), half-angle period (.) Or short lines (-). |
clusterType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterType: The cluster type. |
nodeAttributes | com.aliyun.ros.cdk.core.IResolvable OR NodeAttributesProperty | Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster. |
nodeGroups | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property nodeGroups: The node group configuration array.The value range of the number n of the number N group: 1 ~ 100. |
releaseVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property releaseVersion: The EMR release version. |
applicationConfigs | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property applicationConfigs: Application configuration.The value range of the number n of the array element n: 1 ~ 1000. |
bootstrapScripts | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property bootstrapScripts: Guide the script group.The value range of the number n of the number N group: 1 ~ 10. |
deployMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property deployMode: Application deployment mode in the cluster.Ranges: Normal: non -high available deployment.Cluster 1 master node. HA: High availability deployment.High availability deployment requires at least 3 master nodes. |
paymentType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property paymentType: Payment type. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: Resource group ID. |
securityMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property securityMode: Cluster Kerberos security mode.Ranges: Normal: General mode, does not open the Kerberos mode. Kerberos: Open the Kerberos mode. |
subscriptionConfig | com.aliyun.ros.cdk.core.IResolvable OR SubscriptionConfigProperty | Property subscriptionConfig: Pre -paid allocation.When the value of PaymentType is Subscripting, it must be filled. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to cluster. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
applicationsRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ApplicationsProperty>
Property applications: Application List.The value range of the number n of the number N group: 1 ~ 100.
clusterNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterName: Cluster name.The length is 1 ~ 128 characters, and the alphabet or Chinese must be started. It cannot start with http:\/\/ and https: \/\/.It can include Chinese, English, numbers, half-horn colons (:), down line (_), half-angle period (.) Or short lines (-).
clusterTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterType: The cluster type.
Valid values:
- DATALAKE: new data lake.
- OLAP: data analytics.
- DATAFLOW: real-time data stream.
- DATASERVING: data serving.
- CUSTOM: custom cluster.
- HADOOP: earlier-version data lake. We recommend that you use the new data lake. If you create an EMR cluster for the first time after 17:00 (UTC+8) on December 19, 2022, you cannot select HADOOP, DATA_SCIENCE, PRESTO, or ZOOKEEPER as the cluster type.
nodeAttributesRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR NodeAttributesProperty
Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster.
nodeGroupsRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
NodeGroupsProperty>
Property nodeGroups: The node group configuration array.The value range of the number n of the number N group: 1 ~ 100.
releaseVersionRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property releaseVersion: The EMR release version.
You can find the EMR release versions on the EMR cluster purchase page.
applicationConfigsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ApplicationConfigsProperty>
Property applicationConfigs: Application configuration.The value range of the number n of the array element n: 1 ~ 1000.
bootstrapScriptsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
BootstrapScriptsProperty>
Property bootstrapScripts: Guide the script group.The value range of the number n of the number N group: 1 ~ 10.
deployModeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deployMode: Application deployment mode in the cluster.Ranges: Normal: non -high available deployment.Cluster 1 master node. HA: High availability deployment.High availability deployment requires at least 3 master nodes.
paymentTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment type.
Ranges: PayAsYouGo: Post-paid, pay-as-you-go. Subscription: Prepaid, yearly and monthly. Default: PayAsYouGo.
resourceGroupIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group ID.
securityModeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityMode: Cluster Kerberos security mode.Ranges: Normal: General mode, does not open the Kerberos mode. Kerberos: Open the Kerberos mode.
subscriptionConfigOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR SubscriptionConfigProperty
Property subscriptionConfig: Pre -paid allocation.When the value of PaymentType is Subscripting, it must be filled.
tagsOptional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to cluster.
Max support 20 tags to add during create cluster. Each tag with two properties Key and Value, and Key is required.
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.emr.Cluster2;
Cluster2.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. |
attrApplicationLinks | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ApplicationLinks: ApplicationLinks of cluster. |
attrClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ClusterId: Cluster ID. |
props | Cluster2Props | 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
attrApplicationLinksRequired
public java.lang.Object getAttrApplicationLinks();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ApplicationLinks: ApplicationLinks of cluster.
attrClusterIdRequired
public java.lang.Object getAttrClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterId: Cluster ID.
propsRequired
public Cluster2Props getProps();
- Type: Cluster2Props