ResourceGroupProps
Properties for defining a ResourceGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adblake-resourcegroup
Initializer
import ros_cdk_adblake
ros_cdk_adblake.ResourceGroupProps(
db_cluster_id: typing.Union[str, IResolvable],
engine: typing.Union[str, IResolvable],
group_name: typing.Union[str, IResolvable],
group_type: typing.Union[str, IResolvable],
auto_stop_interval: typing.Union[str, IResolvable] = None,
cluster_mode: typing.Union[str, IResolvable] = None,
cluster_size_resource: typing.Union[str, IResolvable] = None,
enable_spot: typing.Union[bool, IResolvable] = None,
engine_params: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
max_cluster_count: typing.Union[typing.Union[int, float], IResolvable] = None,
max_compute_resource: typing.Union[str, IResolvable] = None,
min_cluster_count: typing.Union[typing.Union[int, float], IResolvable] = None,
min_compute_resource: typing.Union[str, IResolvable] = None,
rules: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RulesProperty]]] = None
)
Properties
| Name | Type | Description |
|---|---|---|
db_cluster_id | typing.Union[str, ros_cdk_core.IResolvable] | Property dbClusterId: The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster. |
engine | typing.Union[str, ros_cdk_core.IResolvable] | Property engine: The database engine. |
group_name | typing.Union[str, ros_cdk_core.IResolvable] | Property groupName: The name of the resource group. |
group_type | typing.Union[str, ros_cdk_core.IResolvable] | Property groupType: The type of the resource group. |
auto_stop_interval | typing.Union[str, ros_cdk_core.IResolvable] | Property autoStopInterval: Automatically stop time, the unit is minutes (m). |
cluster_mode | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterMode: This parameter is reserved. |
cluster_size_resource | typing.Union[str, ros_cdk_core.IResolvable] | Property clusterSizeResource: A reserved parameter. |
enable_spot | typing.Union[bool, ros_cdk_core.IResolvable] | Property enableSpot: Specifies whether to enable the spot instance feature for the resource group. |
engine_params | typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] | Property engineParams: Engine configuration. |
max_cluster_count | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property maxClusterCount: A reserved parameter. |
max_compute_resource | typing.Union[str, ros_cdk_core.IResolvable] | Property maxComputeResource: The maximum reserved computing resources. |
min_cluster_count | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property minClusterCount: A reserved parameter. |
min_compute_resource | typing.Union[str, ros_cdk_core.IResolvable] | Property minComputeResource: The minimum reserved computing resources. |
rules | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RulesProperty]]] | Property rules: The job resubmission rules. |
db_cluster_idRequired
db_cluster_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dbClusterId: The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.
engineRequired
engine: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property engine: The database engine.
Valid values:
- AnalyticDB (default): the AnalyticDB for MySQL engine.
- SparkWarehouse: the SparkWarehouse engine.
group_nameRequired
group_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property groupName: The name of the resource group.
The name can be up to 255 characters in length. The name must start with a letter or digit. The name can contain letters, digits, hyphens (-), and underscores (_).
group_typeRequired
group_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property groupType: The type of the resource group.
Valid values: Interactive Job Note For more information about resource groups, see Resource group overview.
auto_stop_intervalOptional
auto_stop_interval: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoStopInterval: Automatically stop time, the unit is minutes (m).
cluster_modeOptional
cluster_mode: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterMode: This parameter is reserved.
cluster_size_resourceOptional
cluster_size_resource: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterSizeResource: A reserved parameter.
enable_spotOptional
enable_spot: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property enableSpot: Specifies whether to enable the spot instance feature for the resource group.
After you enable the spot instance feature, you are charged for resources at a lower unit price but the resources are probably released. You can enable the spot instance feature only for job resource groups. Valid values: True False
engine_paramsOptional
engine_params: typing.Union[IResolvable, typing.Mapping[typing.Any]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]
Property engineParams: Engine configuration.
max_cluster_countOptional
max_cluster_count: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property maxClusterCount: A reserved parameter.
max_compute_resourceOptional
max_compute_resource: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property maxComputeResource: The maximum reserved computing resources.
If GroupType is set to Interactive, the maximum amount of reserved computing resources refers to the amount of resources that are not allocated in the cluster. Set this parameter to a value in increments of 16ACU. If GroupType is set to Job, the maximum amount of reserved computing resources refers to the amount of resources that are not allocated in the cluster. Set this parameter to a value in increments of 8ACU.
min_cluster_countOptional
min_cluster_count: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property minClusterCount: A reserved parameter.
min_compute_resourceOptional
min_compute_resource: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property minComputeResource: The minimum reserved computing resources.
When GroupType is set to Interactive, set this parameter to 16ACU. When GroupType is set to Job, set this parameter to 0ACU.
rulesOptional
rules: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RulesProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RulesProperty]]]
Property rules: The job resubmission rules.