Skip to content

Cluster

This class encapsulates and extends the ROS resource type ALIYUN::MSE::Cluster, which is used to create a cluster.

Initializers

import com.aliyun.ros.cdk.mse.Cluster;
Cluster.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .clusterSpecification(java.lang.String)
    .clusterSpecification(IResolvable)
    .clusterType(java.lang.String)
    .clusterType(IResolvable)
    .clusterVersion(java.lang.String)
    .clusterVersion(IResolvable)
    .instanceCount(java.lang.Number)
    .instanceCount(IResolvable)
    .netType(java.lang.String)
    .netType(IResolvable)
//  .acceptLanguage(java.lang.String)
//  .acceptLanguage(IResolvable)
//  .aclEntryList(IResolvable)
//  .aclEntryList(java.util.List<java.lang.String)
//  .aclEntryList(IResolvable>)
//  .clusterAliasName(java.lang.String)
//  .clusterAliasName(IResolvable)
//  .connectionType(java.lang.String)
//  .connectionType(IResolvable)
//  .diskType(java.lang.String)
//  .diskType(IResolvable)
//  .mseVersion(java.lang.String)
//  .mseVersion(IResolvable)
//  .privateSlbSpecification(java.lang.String)
//  .privateSlbSpecification(IResolvable)
//  .pubNetworkFlow(java.lang.String)
//  .pubNetworkFlow(IResolvable)
//  .pubSlbSpecification(java.lang.String)
//  .pubSlbSpecification(IResolvable)
//  .requestPars(java.lang.String)
//  .requestPars(IResolvable)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
//  .vSwitchId(java.lang.String)
//  .vSwitchId(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.
clusterSpecification java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterSpecification: Cluster specifications.
clusterType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterType: cluster type.
clusterVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
instanceCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property instanceCount: instance count.
netType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property netType: Network type (whether private network is enabled or not).
acceptLanguage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acceptLanguage:.
aclEntryList com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property aclEntryList: The public network whitelist list is used only when the public network is enabled.
clusterAliasName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterAliasName: cluster alias name.
connectionType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property connectionType: network connect type.
diskType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property diskType: disk type.
mseVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mseVersion: Required, the value is as follows:.
privateSlbSpecification java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property privateSlbSpecification:.
pubNetworkFlow java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pubNetworkFlow: Public network bandwidth.
pubSlbSpecification java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pubSlbSpecification:.
requestPars java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property requestPars:.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: vpc id.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: switcher Id.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

clusterSpecificationRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property clusterSpecification: Cluster specifications.

Note the msversion requirements of the version parameter, Optional parameters: "MSE_ SC 1_2_60_c", "MSE SC 2_4_60_c", "MSE SC 4_8_60_c", "MSE SC 8_16_60_c", "MSE SC _16_32_60_c"


clusterTypeRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property clusterType: cluster type.


clusterVersionRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property clusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.


instanceCountRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property instanceCount: instance count.


netTypeRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property netType: Network type (whether private network is enabled or not).

privatenet indicates that private network is enabled.


acceptLanguageOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property acceptLanguage:.


aclEntryListOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property aclEntryList: The public network whitelist list is used only when the public network is enabled.


clusterAliasNameOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property clusterAliasName: cluster alias name.


connectionTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property connectionType: network connect type.


diskTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property diskType: disk type.


mseVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mseVersion: Required, the value is as follows:.

'mse_dev': indicates the development version. -'Mse_pro': means professional version. When this version is selected, the specification is 2c4g or above, and the specification is 3 nodes or above.


privateSlbSpecificationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property privateSlbSpecification:.


pubNetworkFlowOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property pubNetworkFlow: Public network bandwidth.

If the bandwidth is greater than 0, the public network is enabled.


pubSlbSpecificationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property pubSlbSpecification:.


requestParsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property requestPars:.


vpcIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcId: vpc id.


vSwitchIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchId: switcher Id.


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.
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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.mse.Cluster;
Cluster.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
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.
attrAclEntryList com.aliyun.ros.cdk.core.IResolvable Attribute AclEntryList: The public network whitelist list is used only when the public network is enabled.
attrAclId com.aliyun.ros.cdk.core.IResolvable Attribute AclId: acl id.
attrAppVersion com.aliyun.ros.cdk.core.IResolvable Attribute AppVersion: app version.
attrClusterAliasName com.aliyun.ros.cdk.core.IResolvable Attribute ClusterAliasName: cluster alias name.
attrClusterId com.aliyun.ros.cdk.core.IResolvable Attribute ClusterId: cluster id.
attrClusterName com.aliyun.ros.cdk.core.IResolvable Attribute ClusterName: cluster name.
attrClusterSpecification com.aliyun.ros.cdk.core.IResolvable Attribute ClusterSpecification: Cluster specifications.
attrClusterType com.aliyun.ros.cdk.core.IResolvable Attribute ClusterType: cluster type.
attrClusterVersion com.aliyun.ros.cdk.core.IResolvable Attribute ClusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
attrConfigAuthEnabled com.aliyun.ros.cdk.core.IResolvable Attribute ConfigAuthEnabled: Whether the configuration supports it.
attrConfigSecretEnabled com.aliyun.ros.cdk.core.IResolvable Attribute ConfigSecretEnabled: Whether the configuration password takes effect.
attrConnectionType com.aliyun.ros.cdk.core.IResolvable Attribute ConnectionType: network connect type.
attrCpu com.aliyun.ros.cdk.core.IResolvable Attribute Cpu: cpu core size.
attrDiskCapacity com.aliyun.ros.cdk.core.IResolvable Attribute DiskCapacity: disk capacity, unit: G.
attrDiskType com.aliyun.ros.cdk.core.IResolvable Attribute DiskType: disk type.
attrHealthStatus com.aliyun.ros.cdk.core.IResolvable Attribute HealthStatus: health status.
attrInstanceCount com.aliyun.ros.cdk.core.IResolvable Attribute InstanceCount: instance count.
attrInstanceId com.aliyun.ros.cdk.core.IResolvable Attribute InstanceId: instance id.
attrInternetAddress com.aliyun.ros.cdk.core.IResolvable Attribute InternetAddress: internet address.
attrInternetDomain com.aliyun.ros.cdk.core.IResolvable Attribute InternetDomain: internet domain.
attrInternetPort com.aliyun.ros.cdk.core.IResolvable Attribute InternetPort: internet port.
attrIntranetAddress com.aliyun.ros.cdk.core.IResolvable Attribute IntranetAddress: intranet address.
attrIntranetDomain com.aliyun.ros.cdk.core.IResolvable Attribute IntranetDomain: intranet domain.
attrIntranetPort com.aliyun.ros.cdk.core.IResolvable Attribute IntranetPort: intranet port.
attrMcpEnabled com.aliyun.ros.cdk.core.IResolvable Attribute MCPEnabled: Whether MCP takes effect, the value is as follows: true: valid false: not valid.
attrMemoryCapacity com.aliyun.ros.cdk.core.IResolvable Attribute MemoryCapacity: memory capacity.
attrMseVersion com.aliyun.ros.cdk.core.IResolvable Attribute MseVersion: Required, the value is as follows:.
attrNetType com.aliyun.ros.cdk.core.IResolvable Attribute NetType: Network type (whether private network is enabled or not).
attrPayInfo com.aliyun.ros.cdk.core.IResolvable Attribute PayInfo: pay info.
attrPubNetworkFlow com.aliyun.ros.cdk.core.IResolvable Attribute PubNetworkFlow: Public network bandwidth.
attrVpcId com.aliyun.ros.cdk.core.IResolvable Attribute VpcId: vpc id.
attrVSwitchId com.aliyun.ros.cdk.core.IResolvable Attribute VSwitchId: switcher Id.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


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

attrAclEntryListRequired

public IResolvable getAttrAclEntryList();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AclEntryList: The public network whitelist list is used only when the public network is enabled.


attrAclIdRequired

public IResolvable getAttrAclId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AclId: acl id.


attrAppVersionRequired

public IResolvable getAttrAppVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AppVersion: app version.


attrClusterAliasNameRequired

public IResolvable getAttrClusterAliasName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterAliasName: cluster alias name.


attrClusterIdRequired

public IResolvable getAttrClusterId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterId: cluster id.


attrClusterNameRequired

public IResolvable getAttrClusterName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterName: cluster name.


attrClusterSpecificationRequired

public IResolvable getAttrClusterSpecification();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterSpecification: Cluster specifications.

Note the msversion requirements of the version parameter, Optional parameters: "MSE_ SC 1_2_60_c", "MSE SC 2_4_60_c", "MSE SC 4_8_60_c", "MSE SC 8_16_60_c", "MSE SC _16_32_60_c"


attrClusterTypeRequired

public IResolvable getAttrClusterType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterType: cluster type.


attrClusterVersionRequired

public IResolvable getAttrClusterVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.


attrConfigAuthEnabledRequired

public IResolvable getAttrConfigAuthEnabled();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ConfigAuthEnabled: Whether the configuration supports it.

Valid values: true: false: not supported


attrConfigSecretEnabledRequired

public IResolvable getAttrConfigSecretEnabled();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ConfigSecretEnabled: Whether the configuration password takes effect.

The value is as follows: true: valid false: not valid


attrConnectionTypeRequired

public IResolvable getAttrConnectionType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ConnectionType: network connect type.


attrCpuRequired

public IResolvable getAttrCpu();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Cpu: cpu core size.


attrDiskCapacityRequired

public IResolvable getAttrDiskCapacity();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DiskCapacity: disk capacity, unit: G.


attrDiskTypeRequired

public IResolvable getAttrDiskType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DiskType: disk type.


attrHealthStatusRequired

public IResolvable getAttrHealthStatus();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute HealthStatus: health status.


attrInstanceCountRequired

public IResolvable getAttrInstanceCount();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstanceCount: instance count.


attrInstanceIdRequired

public IResolvable getAttrInstanceId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstanceId: instance id.


attrInternetAddressRequired

public IResolvable getAttrInternetAddress();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InternetAddress: internet address.


attrInternetDomainRequired

public IResolvable getAttrInternetDomain();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InternetDomain: internet domain.


attrInternetPortRequired

public IResolvable getAttrInternetPort();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InternetPort: internet port.


attrIntranetAddressRequired

public IResolvable getAttrIntranetAddress();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute IntranetAddress: intranet address.


attrIntranetDomainRequired

public IResolvable getAttrIntranetDomain();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute IntranetDomain: intranet domain.


attrIntranetPortRequired

public IResolvable getAttrIntranetPort();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute IntranetPort: intranet port.


attrMcpEnabledRequired

public IResolvable getAttrMcpEnabled();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MCPEnabled: Whether MCP takes effect, the value is as follows: true: valid false: not valid.


attrMemoryCapacityRequired

public IResolvable getAttrMemoryCapacity();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MemoryCapacity: memory capacity.


attrMseVersionRequired

public IResolvable getAttrMseVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MseVersion: Required, the value is as follows:.

'mse_dev': indicates the development version. -'Mse_pro': means professional version. When this version is selected, the specification is 2c4g or above, and the specification is 3 nodes or above.


attrNetTypeRequired

public IResolvable getAttrNetType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute NetType: Network type (whether private network is enabled or not).

privatenet indicates that private network is enabled.


attrPayInfoRequired

public IResolvable getAttrPayInfo();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute PayInfo: pay info.


attrPubNetworkFlowRequired

public IResolvable getAttrPubNetworkFlow();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute PubNetworkFlow: Public network bandwidth.

If the bandwidth is greater than 0, the public network is enabled.


attrVpcIdRequired

public IResolvable getAttrVpcId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VpcId: vpc id.


attrVSwitchIdRequired

public IResolvable getAttrVSwitchId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VSwitchId: switcher Id.