ClusterProps
Properties for defining a Cluster.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mse-cluster
Initializer
import ros_cdk_mse
ros_cdk_mse.ClusterProps(
cluster_specification: typing.Union[str, IResolvable],
cluster_type: typing.Union[str, IResolvable],
cluster_version: typing.Union[str, IResolvable],
instance_count: typing.Union[typing.Union[int, float], IResolvable],
net_type: typing.Union[str, IResolvable],
acl_entry_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
charge_type: typing.Union[str, IResolvable] = None,
cluster_alias_name: typing.Union[str, IResolvable] = None,
connection_type: typing.Union[str, IResolvable] = None,
eip_enabled: typing.Union[bool, IResolvable] = None,
mse_version: typing.Union[str, IResolvable] = None,
pub_network_flow: typing.Union[typing.Union[int, float], IResolvable] = None,
request_pars: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
security_group_type: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
vpc_id: typing.Union[str, IResolvable] = None,
v_switch_id: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
cluster_specification | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterSpecification: Engine specification. |
cluster_type | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterType: Cluster type, including ZooKeeper, Nacos-Ans. |
cluster_version | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterVersion: Cluster version. |
instance_count | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property instanceCount: Number of instance nodes. Range: 1~15. |
net_type | typing.Union[str, ros_cdk_core.IResolvable] | Property netType: Network type. |
acl_entry_list | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] | Property aclEntryList: List of ACL entries. |
charge_type | typing.Union[str, ros_cdk_core.IResolvable] | Property chargeType: Billing mode, including PREPAY (annual\/monthly) and POSTPAY (pay-as-you-go). |
cluster_alias_name | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterAliasName: cluster alias name. |
connection_type | typing.Union[str, ros_cdk_core.IResolvable] | Property connectionType: Network access type, slb or single_eni; |
eip_enabled | typing.Union[bool, ros_cdk_core.IResolvable] | Property eipEnabled: Effective when ConnectionType is single_eni, indicates whether to enable public access (elastic IP). |
mse_version | typing.Union[str, ros_cdk_core.IResolvable] | Property mseVersion: Must be filled unless special circumstances. |
pub_network_flow | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property pubNetworkFlow: Public network flow. |
request_pars | typing.Union[str, ros_cdk_core.IResolvable] | Property requestPars: Extended request parameters in JSON format. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: Resource group id. |
security_group_type | typing.Union[str, ros_cdk_core.IResolvable] | Property securityGroupType: Effective when ConnectionType is single_eni, represents the security group type of the instance. |
tags | typing.List[TagsProperty] | Property tags: Tags to attach to cluster. |
vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Property vpcId: VPC ID. |
v_switch_id | typing.Union[str, ros_cdk_core.IResolvable] | Property vSwitchId: Switch ID. |
cluster_specificationRequired
cluster_specification: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterSpecification: Engine specification.
[Professional Edition]
MSE_SC_2_4_60_c: 2 cores 4GBMSE_SC_1_2_60_c: 1 core 2GBMSE_SC_4_8_60_c: 4 cores 8GBMSE_SC_8_16_60_c: 8 cores 16GBMSE_SC_16_32_60_c: 16 cores 32GB
[Development Edition]
MSE_SC_1_2_60_c: 1 core 2GBMSE_SC_2_4_60_c: 2 cores 4GB
[Serverless Edition]
- Ignore this parameter or fill with
MSE_SC_SERVERLESS.
cluster_typeRequired
cluster_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterType: Cluster type, including ZooKeeper, Nacos-Ans.
cluster_versionRequired
cluster_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterVersion: Cluster version.
[Professional Edition]
NACOS_2_0_0: Nacos 2.x.x version.ZooKeeper_3_8_0: ZooKeeper 3.8.x version.
[Development Edition]
NACOS_2_0_0: Nacos 2.x version.ZooKeeper_3_8_0: ZooKeeper 3.8.x version.
[Serverless Edition]
NACOS_2_0_0: Nacos 2.x version.ZooKeeper_3_8_0: ZooKeeper 3.8.x version.
instance_countRequired
instance_count: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property instanceCount: Number of instance nodes. Range: 1~15.
[Professional Edition]
- Must be >=3 and odd number.
[Development Edition]
- Only 1 allowed.
[Serverless Edition]
- Ignore this parameter.
net_typeRequired
net_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property netType: Network type.
Valid values:
privatenet: Private network.pubnet: Public network.
acl_entry_listOptional
acl_entry_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property aclEntryList: List of ACL entries.
charge_typeOptional
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property chargeType: Billing mode, including PREPAY (annual\/monthly) and POSTPAY (pay-as-you-go).
Ignored for Serverless Edition.
cluster_alias_nameOptional
cluster_alias_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterAliasName: cluster alias name.
connection_typeOptional
connection_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property connectionType: Network access type, slb or single_eni;
some regions only support single_eni for Development Edition.
eip_enabledOptional
eip_enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property eipEnabled: Effective when ConnectionType is single_eni, indicates whether to enable public access (elastic IP).
mse_versionOptional
mse_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property mseVersion: Must be filled unless special circumstances.
Valid values:
mse_pro: Professional Edition.mse_dev: Development Edition.mse_serverless: Serverless Edition.
pub_network_flowOptional
pub_network_flow: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property pubNetworkFlow: Public network flow.
Valid when ConnectionType is slb. 0 means do not create public SLB; 1 or above indicates fixed bandwidth value in Mbps. Range: 0~5000.
request_parsOptional
request_pars: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property requestPars: Extended request parameters in JSON format.
resource_group_idOptional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
security_group_typeOptional
security_group_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property securityGroupType: Effective when ConnectionType is single_eni, represents the security group type of the instance.
tagsOptional
tags: typing.List[TagsProperty]
- Type: typing.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.
vpc_idOptional
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: VPC ID.
v_switch_idOptional
v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vSwitchId: Switch ID.