Skip to content

ResourceGroup

This class encapsulates and extends the ROS resource type ALIYUN::ADBLake::ResourceGroup.

Initializers

import ros_cdk_adblake
ros_cdk_adblake.ResourceGroup(
  scope: Construct,
  id: str,
  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,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No 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.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

db_cluster_idRequired

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

Property dbClusterId: The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.


engineRequired

  • 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

  • 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

  • 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

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

Property autoStopInterval: Automatically stop time, the unit is minutes (m).


cluster_modeOptional

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

Property clusterMode: This parameter is reserved.


cluster_size_resourceOptional

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

Property clusterSizeResource: A reserved parameter.


enable_spotOptional

  • 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

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property engineParams: Engine configuration.


max_cluster_countOptional

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

Property maxClusterCount: A reserved parameter.


max_compute_resourceOptional

  • 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

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

Property minClusterCount: A reserved parameter.


min_compute_resourceOptional

  • 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

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

Property rules: The job resubmission rules.


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.

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

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

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_adblake
ros_cdk_adblake.ResourceGroup.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.
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_group_name typing.Union[str, ros_cdk_core.IResolvable] Attribute GroupName: The name of the resource group.
attr_group_type typing.Union[str, ros_cdk_core.IResolvable] Attribute GroupType: The type of the resource group.
attr_group_users typing.Union[str, ros_cdk_core.IResolvable] Attribute GroupUsers: The list of users in the resource group.
props ResourceGroupProps 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_group_nameRequired

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

Attribute GroupName: The name of the resource group.


attr_group_typeRequired

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

Attribute GroupType: The type of the resource group.


attr_group_usersRequired

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

Attribute GroupUsers: The list of users in the resource group.


propsRequired

props: ResourceGroupProps