ResourceGroupProps
Properties for defining a ResourceGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adblake-resourcegroup
Initializer
import com.aliyun.ros.cdk.adblake.ResourceGroupProps;
ResourceGroupProps.builder()
.dbClusterId(java.lang.String)
.dbClusterId(IResolvable)
.engine(java.lang.String)
.engine(IResolvable)
.groupName(java.lang.String)
.groupName(IResolvable)
.groupType(java.lang.String)
.groupType(IResolvable)
// .autoStopInterval(java.lang.String)
// .autoStopInterval(IResolvable)
// .clusterMode(java.lang.String)
// .clusterMode(IResolvable)
// .clusterSizeResource(java.lang.String)
// .clusterSizeResource(IResolvable)
// .enableSpot(java.lang.Boolean)
// .enableSpot(IResolvable)
// .engineParams(IResolvable)
// .engineParams(java.util.Map<java.lang.String, java.lang.Object>)
// .maxClusterCount(java.lang.Number)
// .maxClusterCount(IResolvable)
// .maxComputeResource(java.lang.String)
// .maxComputeResource(IResolvable)
// .minClusterCount(java.lang.Number)
// .minClusterCount(IResolvable)
// .minComputeResource(java.lang.String)
// .minComputeResource(IResolvable)
// .rules(IResolvable)
// .rules(java.util.List<IResolvable)
// .rules(RulesProperty>)
.build();
Properties
| Name | Type | Description |
|---|---|---|
dbClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dbClusterId: The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster. |
engine | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property engine: The database engine. |
groupName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property groupName: The name of the resource group. |
groupType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property groupType: The type of the resource group. |
autoStopInterval | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property autoStopInterval: Automatically stop time, the unit is minutes (m). |
clusterMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterMode: This parameter is reserved. |
clusterSizeResource | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterSizeResource: A reserved parameter. |
enableSpot | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableSpot: Specifies whether to enable the spot instance feature for the resource group. |
engineParams | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property engineParams: Engine configuration. |
maxClusterCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxClusterCount: A reserved parameter. |
maxComputeResource | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property maxComputeResource: The maximum reserved computing resources. |
minClusterCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property minClusterCount: A reserved parameter. |
minComputeResource | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property minComputeResource: The minimum reserved computing resources. |
rules | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property rules: The job resubmission rules. |
dbClusterIdRequired
public java.lang.Object getDbClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbClusterId: The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.
engineRequired
public java.lang.Object getEngine();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property engine: The database engine.
Valid values:
- AnalyticDB (default): the AnalyticDB for MySQL engine.
- SparkWarehouse: the SparkWarehouse engine.
groupNameRequired
public java.lang.Object getGroupName();
- Type: java.lang.String OR com.aliyun.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 (_).
groupTypeRequired
public java.lang.Object getGroupType();
- Type: java.lang.String OR com.aliyun.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.
autoStopIntervalOptional
public java.lang.Object getAutoStopInterval();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoStopInterval: Automatically stop time, the unit is minutes (m).
clusterModeOptional
public java.lang.Object getClusterMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterMode: This parameter is reserved.
clusterSizeResourceOptional
public java.lang.Object getClusterSizeResource();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterSizeResource: A reserved parameter.
enableSpotOptional
public java.lang.Object getEnableSpot();
- Type: java.lang.Boolean OR com.aliyun.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
engineParamsOptional
public java.lang.Object getEngineParams();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property engineParams: Engine configuration.
maxClusterCountOptional
public java.lang.Object getMaxClusterCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxClusterCount: A reserved parameter.
maxComputeResourceOptional
public java.lang.Object getMaxComputeResource();
- Type: java.lang.String OR com.aliyun.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.
minClusterCountOptional
public java.lang.Object getMinClusterCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property minClusterCount: A reserved parameter.
minComputeResourceOptional
public java.lang.Object getMinComputeResource();
- Type: java.lang.String OR com.aliyun.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
public java.lang.Object getRules();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
RulesProperty>
Property rules: The job resubmission rules.