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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
clusterSpecification
Required
- 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"
clusterType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterType: cluster type.
clusterVersion
Required
- 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.
instanceCount
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property instanceCount: instance count.
netType
Required
- 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.
acceptLanguage
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property acceptLanguage:.
aclEntryList
Optional
- 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.
clusterAliasName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterAliasName: cluster alias name.
connectionType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property connectionType: network connect type.
diskType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskType: disk type.
mseVersion
Optional
- 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.
privateSlbSpecification
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateSlbSpecification:.
pubNetworkFlow
Optional
- 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.
pubSlbSpecification
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property pubSlbSpecification:.
requestPars
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property requestPars:.
vpcId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: vpc id.
vSwitchId
Optional
- 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.
- 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
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.mse.Cluster;
Cluster.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. |
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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAclEntryList
Required
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.
attrAclId
Required
public IResolvable getAttrAclId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AclId: acl id.
attrAppVersion
Required
public IResolvable getAttrAppVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AppVersion: app version.
attrClusterAliasName
Required
public IResolvable getAttrClusterAliasName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterAliasName: cluster alias name.
attrClusterId
Required
public IResolvable getAttrClusterId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterId: cluster id.
attrClusterName
Required
public IResolvable getAttrClusterName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterName: cluster name.
attrClusterSpecification
Required
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"
attrClusterType
Required
public IResolvable getAttrClusterType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterType: cluster type.
attrClusterVersion
Required
public IResolvable getAttrClusterVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
attrConfigAuthEnabled
Required
public IResolvable getAttrConfigAuthEnabled();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ConfigAuthEnabled: Whether the configuration supports it.
Valid values: true: false: not supported
attrConfigSecretEnabled
Required
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
attrConnectionType
Required
public IResolvable getAttrConnectionType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ConnectionType: network connect type.
attrCpu
Required
public IResolvable getAttrCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Cpu: cpu core size.
attrDiskCapacity
Required
public IResolvable getAttrDiskCapacity();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskCapacity: disk capacity, unit: G.
attrDiskType
Required
public IResolvable getAttrDiskType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskType: disk type.
attrHealthStatus
Required
public IResolvable getAttrHealthStatus();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HealthStatus: health status.
attrInstanceCount
Required
public IResolvable getAttrInstanceCount();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceCount: instance count.
attrInstanceId
Required
public IResolvable getAttrInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: instance id.
attrInternetAddress
Required
public IResolvable getAttrInternetAddress();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetAddress: internet address.
attrInternetDomain
Required
public IResolvable getAttrInternetDomain();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetDomain: internet domain.
attrInternetPort
Required
public IResolvable getAttrInternetPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetPort: internet port.
attrIntranetAddress
Required
public IResolvable getAttrIntranetAddress();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IntranetAddress: intranet address.
attrIntranetDomain
Required
public IResolvable getAttrIntranetDomain();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IntranetDomain: intranet domain.
attrIntranetPort
Required
public IResolvable getAttrIntranetPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IntranetPort: intranet port.
attrMcpEnabled
Required
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.
attrMemoryCapacity
Required
public IResolvable getAttrMemoryCapacity();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute MemoryCapacity: memory capacity.
attrMseVersion
Required
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.
attrNetType
Required
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.
attrPayInfo
Required
public IResolvable getAttrPayInfo();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PayInfo: pay info.
attrPubNetworkFlow
Required
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.
attrVpcId
Required
public IResolvable getAttrVpcId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: vpc id.
attrVSwitchId
Required
public IResolvable getAttrVSwitchId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchId: switcher Id.