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. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
cluster_specification
Required
- 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_type
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterType: cluster type.
cluster_version
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterVersion: Cluster version, such as ZooKeeper_3_8_0,NACOS_2_0_0.
instance_count
Required
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property instanceCount: instance count.
net_type
Required
- 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_language
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acceptLanguage:.
acl_entry_list
Optional
- 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_name
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterAliasName: cluster alias name.
connection_type
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property connectionType: network connect type.
disk_type
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskType: disk type.
mse_version
Optional
- 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_specification
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property privateSlbSpecification:.
pub_network_flow
Optional
- 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_specification
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property pubSlbSpecification:.
request_pars
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property requestPars:.
vpc_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: vpc id.
v_switch_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vSwitchId: switcher Id.
enable_resource_property_constraint
Optional
- 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.
- 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
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. |
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. |
node
Required
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_acl_entry_list
Required
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_id
Required
attr_acl_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AclId: acl id.
attr_app_version
Required
attr_app_version: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AppVersion: app version.
attr_cluster_alias_name
Required
attr_cluster_alias_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ClusterAliasName: cluster alias name.
attr_cluster_id
Required
attr_cluster_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ClusterId: cluster id.
attr_cluster_name
Required
attr_cluster_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ClusterName: cluster name.
attr_cluster_specification
Required
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_type
Required
attr_cluster_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ClusterType: cluster type.
attr_cluster_version
Required
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_enabled
Required
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_enabled
Required
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_type
Required
attr_connection_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ConnectionType: network connect type.
attr_cpu
Required
attr_cpu: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Cpu: cpu core size.
attr_disk_capacity
Required
attr_disk_capacity: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskCapacity: disk capacity, unit: G.
attr_disk_type
Required
attr_disk_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskType: disk type.
attr_health_status
Required
attr_health_status: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute HealthStatus: health status.
attr_instance_count
Required
attr_instance_count: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceCount: instance count.
attr_instance_id
Required
attr_instance_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceId: instance id.
attr_internet_address
Required
attr_internet_address: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetAddress: internet address.
attr_internet_domain
Required
attr_internet_domain: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetDomain: internet domain.
attr_internet_port
Required
attr_internet_port: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InternetPort: internet port.
attr_intranet_address
Required
attr_intranet_address: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IntranetAddress: intranet address.
attr_intranet_domain
Required
attr_intranet_domain: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IntranetDomain: intranet domain.
attr_intranet_port
Required
attr_intranet_port: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IntranetPort: intranet port.
attr_mcp_enabled
Required
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_capacity
Required
attr_memory_capacity: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute MemoryCapacity: memory capacity.
attr_mse_version
Required
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_type
Required
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_info
Required
attr_pay_info: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PayInfo: pay info.
attr_pub_network_flow
Required
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_id
Required
attr_vpc_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute VpcId: vpc id.
attr_v_switch_id
Required
attr_v_switch_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute VSwitchId: switcher Id.