Cluster
- Implements: ICluster
This class encapsulates and extends the ROS resource type ALIYUN::MSE::Cluster.
Initializers
import ros_cdk_mse
ros_cdk_mse.Cluster(
scope: Construct,
id: str,
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,
enable_resource_property_constraint: bool = None
)
| Name | Type | Description |
|---|---|---|
scope | ros_cdk_core.Construct | No description. |
id | str | No 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. |
enable_resource_property_constraint | bool | No description. |
scopeRequired
- Type: ros_cdk_core.Construct
idRequired
- Type: str
cluster_specificationRequired
- 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
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterType: Cluster type, including ZooKeeper, Nacos-Ans.
cluster_versionRequired
- 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
- 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
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property netType: Network type.
Valid values:
privatenet: Private network.pubnet: Public network.
acl_entry_listOptional
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property aclEntryList: List of ACL entries.
charge_typeOptional
- 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
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterAliasName: cluster alias name.
connection_typeOptional
- 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
- 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
- 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
- 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
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property requestPars: Extended request parameters in JSON format.
resource_group_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
security_group_typeOptional
- 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
- 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
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: VPC ID.
v_switch_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vSwitchId: Switch ID.
enable_resource_property_constraintOptional
- Type: bool
Methods
| Name | Description |
|---|---|
to_string | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition | No description. |
add_count | No description. |
add_dependency | No description. |
add_resource_desc | No description. |
apply_removal_policy | No description. |
fetch_condition | No description. |
fetch_dependency | No description. |
fetch_resource_desc | No description. |
get_att | No description. |
set_metadata | No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
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: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
fetch_condition
def fetch_condition() -> RosCondition
fetch_dependency
def fetch_dependency() -> typing.List[str]
fetch_resource_desc
def fetch_resource_desc() -> str
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
| Name | Description |
|---|---|
is_construct | Return whether the given object is a Construct. |
is_construct
import ros_cdk_mse
ros_cdk_mse.Cluster.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
| Name | Type | Description |
|---|---|---|
node | ros_cdk_core.ConstructNode | The construct tree node associated with this construct. |
env | ros_cdk_core.IResourceEnvironment | The environment this resource belongs to. |
ref | str | No description. |
stack | ros_cdk_core.Stack | The stack in which this resource is defined. |
resource | ros_cdk_core.RosResource | No description. |
attr_acl_entry_list | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AclEntryList: The list of ACL entries. |
attr_acl_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AclId: The ID of the ACL. |
attr_app_version | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AppVersion: The version of the application. |
attr_arn | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Arn: The Alibaba Cloud Resource Name (ARN). |
attr_cluster_alias_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterAliasName: The alias name of the cluster. |
attr_cluster_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterId: The ID of the cluster. |
attr_cluster_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterName: The name of the cluster. |
attr_cluster_specification | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterSpecification: The specification of the cluster. |
attr_cluster_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterType: The type of the cluster. |
attr_cluster_version | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ClusterVersion: The version of the cluster. |
attr_config_auth_enabled | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ConfigAuthEnabled: Whether to enable the configuration authentication. |
attr_config_secret_enabled | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ConfigSecretEnabled: Whether to enable the configuration secret. |
attr_connection_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ConnectionType: The connection type. |
attr_cpu | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Cpu: The number of CPU cores. |
attr_disk_capacity | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DiskCapacity: The disk capacity. |
attr_disk_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DiskType: The disk type. |
attr_health_status | typing.Union[str, ros_cdk_core.IResolvable] | Attribute HealthStatus: The health status of the cluster. |
attr_instance_count | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InstanceCount: The number of instances. |
attr_instance_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InstanceId: The ID of the cluster instance. |
attr_internet_address | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InternetAddress: The public network address of the cluster. |
attr_internet_domain | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InternetDomain: The public network domain of the cluster. |
attr_internet_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InternetPort: The public network port of the cluster. |
attr_intranet_address | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IntranetAddress: The intranet address of the cluster. |
attr_intranet_domain | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IntranetDomain: The intranet domain of the cluster. |
attr_intranet_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IntranetPort: The intranet port of the cluster. |
attr_mcp_enabled | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MCPEnabled: Whether to enable the MCP. |
attr_memory_capacity | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MemoryCapacity: The memory capacity. |
attr_mse_version | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MseVersion: The MSE version. |
attr_net_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute NetType: The network type. |
attr_pay_info | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PayInfo: The payment information. |
attr_pub_network_flow | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PubNetworkFlow: The public network flow. |
attr_vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VpcId: The ID of the VPC. |
attr_v_switch_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VSwitchId: The ID of the VSwitch. |
props | ClusterProps | No description. |
nodeRequired
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
envRequired
env: IResourceEnvironment
- Type: 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
ref: str
- Type: str
stackRequired
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resourceOptional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_acl_entry_listRequired
attr_acl_entry_list: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AclEntryList: The list of ACL entries.
attr_acl_idRequired
attr_acl_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AclId: The ID of the ACL.
attr_app_versionRequired
attr_app_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AppVersion: The version of the application.
attr_arnRequired
attr_arn: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Arn: The Alibaba Cloud Resource Name (ARN).
attr_cluster_alias_nameRequired
attr_cluster_alias_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterAliasName: The alias name of the cluster.
attr_cluster_idRequired
attr_cluster_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterId: The ID of the cluster.
attr_cluster_nameRequired
attr_cluster_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterName: The name of the cluster.
attr_cluster_specificationRequired
attr_cluster_specification: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterSpecification: The specification of the cluster.
attr_cluster_typeRequired
attr_cluster_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterType: The type of the cluster.
attr_cluster_versionRequired
attr_cluster_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ClusterVersion: The version of the cluster.
attr_config_auth_enabledRequired
attr_config_auth_enabled: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ConfigAuthEnabled: Whether to enable the configuration authentication.
attr_config_secret_enabledRequired
attr_config_secret_enabled: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ConfigSecretEnabled: Whether to enable the configuration secret.
attr_connection_typeRequired
attr_connection_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ConnectionType: The connection type.
attr_cpuRequired
attr_cpu: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Cpu: The number of CPU cores.
attr_disk_capacityRequired
attr_disk_capacity: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DiskCapacity: The disk capacity.
attr_disk_typeRequired
attr_disk_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DiskType: The disk type.
attr_health_statusRequired
attr_health_status: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute HealthStatus: The health status of the cluster.
attr_instance_countRequired
attr_instance_count: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InstanceCount: The number of instances.
attr_instance_idRequired
attr_instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InstanceId: The ID of the cluster instance.
attr_internet_addressRequired
attr_internet_address: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InternetAddress: The public network address of the cluster.
attr_internet_domainRequired
attr_internet_domain: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InternetDomain: The public network domain of the cluster.
attr_internet_portRequired
attr_internet_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InternetPort: The public network port of the cluster.
attr_intranet_addressRequired
attr_intranet_address: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IntranetAddress: The intranet address of the cluster.
attr_intranet_domainRequired
attr_intranet_domain: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IntranetDomain: The intranet domain of the cluster.
attr_intranet_portRequired
attr_intranet_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IntranetPort: The intranet port of the cluster.
attr_mcp_enabledRequired
attr_mcp_enabled: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MCPEnabled: Whether to enable the MCP.
attr_memory_capacityRequired
attr_memory_capacity: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MemoryCapacity: The memory capacity.
attr_mse_versionRequired
attr_mse_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MseVersion: The MSE version.
attr_net_typeRequired
attr_net_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute NetType: The network type.
attr_pay_infoRequired
attr_pay_info: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PayInfo: The payment information.
attr_pub_network_flowRequired
attr_pub_network_flow: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PubNetworkFlow: The public network flow.
attr_vpc_idRequired
attr_vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VpcId: The ID of the VPC.
attr_v_switch_idRequired
attr_v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VSwitchId: The ID of the VSwitch.
propsRequired
props: ClusterProps
- Type: ClusterProps