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 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],
  accept_language: typing.Union[str, IResolvable] = None,
  acl_entry_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  cluster_alias_name: typing.Union[str, IResolvable] = None,
  connection_type: typing.Union[str, IResolvable] = None,
  disk_type: typing.Union[str, IResolvable] = None,
  mse_version: typing.Union[str, IResolvable] = None,
  private_slb_specification: typing.Union[str, IResolvable] = None,
  pub_network_flow: typing.Union[str, IResolvable] = None,
  pub_slb_specification: typing.Union[str, IResolvable] = None,
  request_pars: typing.Union[str, IResolvable] = 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: Cluster specifications.
cluster_type typing.Union[str, ros_cdk_core.IResolvable] Property clusterType: cluster type.
cluster_version typing.Union[str, ros_cdk_core.IResolvable] Property clusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
instance_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property instanceCount: instance count.
net_type typing.Union[str, ros_cdk_core.IResolvable] Property netType: Network type (whether private network is enabled or not).
accept_language typing.Union[str, ros_cdk_core.IResolvable] Property acceptLanguage:.
acl_entry_list typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property aclEntryList: The public network whitelist list is used only when the public network is enabled.
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 connect type.
disk_type typing.Union[str, ros_cdk_core.IResolvable] Property diskType: disk type.
mse_version typing.Union[str, ros_cdk_core.IResolvable] Property mseVersion: Required, the value is as follows:.
private_slb_specification typing.Union[str, ros_cdk_core.IResolvable] Property privateSlbSpecification:.
pub_network_flow typing.Union[str, ros_cdk_core.IResolvable] Property pubNetworkFlow: Public network bandwidth.
pub_slb_specification typing.Union[str, ros_cdk_core.IResolvable] Property pubSlbSpecification:.
request_pars typing.Union[str, ros_cdk_core.IResolvable] Property requestPars:.
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: switcher 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: 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"


cluster_typeRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterType: cluster type.


cluster_versionRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


instance_countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property instanceCount: instance count.


net_typeRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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

privatenet indicates that private network is enabled.


accept_languageOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property acceptLanguage:.


acl_entry_listOptional

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

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


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


disk_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property diskType: disk type.


mse_versionOptional

  • Type: typing.Union[str, 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.


private_slb_specificationOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property privateSlbSpecification:.


pub_network_flowOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property pubNetworkFlow: Public network bandwidth.

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


pub_slb_specificationOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property pubSlbSpecification:.


request_parsOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property requestPars:.


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

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

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

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
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 ros_cdk_core.IResolvable Attribute AclEntryList: The public network whitelist list is used only when the public network is enabled.
attr_acl_id ros_cdk_core.IResolvable Attribute AclId: acl id.
attr_app_version ros_cdk_core.IResolvable Attribute AppVersion: app version.
attr_cluster_alias_name ros_cdk_core.IResolvable Attribute ClusterAliasName: cluster alias name.
attr_cluster_id ros_cdk_core.IResolvable Attribute ClusterId: cluster id.
attr_cluster_name ros_cdk_core.IResolvable Attribute ClusterName: cluster name.
attr_cluster_specification ros_cdk_core.IResolvable Attribute ClusterSpecification: Cluster specifications.
attr_cluster_type ros_cdk_core.IResolvable Attribute ClusterType: cluster type.
attr_cluster_version ros_cdk_core.IResolvable Attribute ClusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
attr_config_auth_enabled ros_cdk_core.IResolvable Attribute ConfigAuthEnabled: Whether the configuration supports it.
attr_config_secret_enabled ros_cdk_core.IResolvable Attribute ConfigSecretEnabled: Whether the configuration password takes effect.
attr_connection_type ros_cdk_core.IResolvable Attribute ConnectionType: network connect type.
attr_cpu ros_cdk_core.IResolvable Attribute Cpu: cpu core size.
attr_disk_capacity ros_cdk_core.IResolvable Attribute DiskCapacity: disk capacity, unit: G.
attr_disk_type ros_cdk_core.IResolvable Attribute DiskType: disk type.
attr_health_status ros_cdk_core.IResolvable Attribute HealthStatus: health status.
attr_instance_count ros_cdk_core.IResolvable Attribute InstanceCount: instance count.
attr_instance_id ros_cdk_core.IResolvable Attribute InstanceId: instance id.
attr_internet_address ros_cdk_core.IResolvable Attribute InternetAddress: internet address.
attr_internet_domain ros_cdk_core.IResolvable Attribute InternetDomain: internet domain.
attr_internet_port ros_cdk_core.IResolvable Attribute InternetPort: internet port.
attr_intranet_address ros_cdk_core.IResolvable Attribute IntranetAddress: intranet address.
attr_intranet_domain ros_cdk_core.IResolvable Attribute IntranetDomain: intranet domain.
attr_intranet_port ros_cdk_core.IResolvable Attribute IntranetPort: intranet port.
attr_mcp_enabled ros_cdk_core.IResolvable Attribute MCPEnabled: Whether MCP takes effect, the value is as follows: true: valid false: not valid.
attr_memory_capacity ros_cdk_core.IResolvable Attribute MemoryCapacity: memory capacity.
attr_mse_version ros_cdk_core.IResolvable Attribute MseVersion: Required, the value is as follows:.
attr_net_type ros_cdk_core.IResolvable Attribute NetType: Network type (whether private network is enabled or not).
attr_pay_info ros_cdk_core.IResolvable Attribute PayInfo: pay info.
attr_pub_network_flow ros_cdk_core.IResolvable Attribute PubNetworkFlow: Public network bandwidth.
attr_vpc_id ros_cdk_core.IResolvable Attribute VpcId: vpc id.
attr_v_switch_id ros_cdk_core.IResolvable Attribute VSwitchId: switcher Id.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


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: IResolvable
  • Type: ros_cdk_core.IResolvable

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


attr_acl_idRequired

attr_acl_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute AclId: acl id.


attr_app_versionRequired

attr_app_version: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute AppVersion: app version.


attr_cluster_alias_nameRequired

attr_cluster_alias_name: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ClusterAliasName: cluster alias name.


attr_cluster_idRequired

attr_cluster_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ClusterId: cluster id.


attr_cluster_nameRequired

attr_cluster_name: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ClusterName: cluster name.


attr_cluster_specificationRequired

attr_cluster_specification: IResolvable
  • Type: 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"


attr_cluster_typeRequired

attr_cluster_type: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ClusterType: cluster type.


attr_cluster_versionRequired

attr_cluster_version: IResolvable
  • Type: ros_cdk_core.IResolvable

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


attr_config_auth_enabledRequired

attr_config_auth_enabled: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ConfigAuthEnabled: Whether the configuration supports it.

Valid values: true: false: not supported


attr_config_secret_enabledRequired

attr_config_secret_enabled: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ConfigSecretEnabled: Whether the configuration password takes effect.

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


attr_connection_typeRequired

attr_connection_type: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute ConnectionType: network connect type.


attr_cpuRequired

attr_cpu: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute Cpu: cpu core size.


attr_disk_capacityRequired

attr_disk_capacity: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute DiskCapacity: disk capacity, unit: G.


attr_disk_typeRequired

attr_disk_type: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute DiskType: disk type.


attr_health_statusRequired

attr_health_status: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute HealthStatus: health status.


attr_instance_countRequired

attr_instance_count: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute InstanceCount: instance count.


attr_instance_idRequired

attr_instance_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute InstanceId: instance id.


attr_internet_addressRequired

attr_internet_address: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute InternetAddress: internet address.


attr_internet_domainRequired

attr_internet_domain: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute InternetDomain: internet domain.


attr_internet_portRequired

attr_internet_port: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute InternetPort: internet port.


attr_intranet_addressRequired

attr_intranet_address: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute IntranetAddress: intranet address.


attr_intranet_domainRequired

attr_intranet_domain: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute IntranetDomain: intranet domain.


attr_intranet_portRequired

attr_intranet_port: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute IntranetPort: intranet port.


attr_mcp_enabledRequired

attr_mcp_enabled: IResolvable
  • Type: ros_cdk_core.IResolvable

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


attr_memory_capacityRequired

attr_memory_capacity: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute MemoryCapacity: memory capacity.


attr_mse_versionRequired

attr_mse_version: IResolvable
  • Type: 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.


attr_net_typeRequired

attr_net_type: IResolvable
  • Type: ros_cdk_core.IResolvable

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

privatenet indicates that private network is enabled.


attr_pay_infoRequired

attr_pay_info: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute PayInfo: pay info.


attr_pub_network_flowRequired

attr_pub_network_flow: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute PubNetworkFlow: Public network bandwidth.

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


attr_vpc_idRequired

attr_vpc_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute VpcId: vpc id.


attr_v_switch_idRequired

attr_v_switch_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute VSwitchId: switcher Id.