DBCluster
- Implements: ros_cdk_clickhouse.datasource.IDBCluster
This class encapsulates and extends the ROS resource type DATASOURCE::ClickHouse::DBCluster, which is used to query the information about an ApsaraDB for ClickHouse cluster.
Initializers
from ros_cdk_clickhouse import datasource
datasource.DBCluster(
scope: Construct,
id: str,
db_cluster_id: typing.Union[str, IResolvable],
refresh_options: 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. |
db_cluster_id | typing.Union[str, ros_cdk_core.IResolvable] | Property dbClusterId: Instance ID. |
refresh_options | typing.Union[str, ros_cdk_core.IResolvable] | Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
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: Instance ID.
refresh_optionsOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
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.
- 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
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
- 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
from ros_cdk_clickhouse import datasource
datasource.DBCluster.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. |
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_ali_uid | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AliUid: Alibaba Cloud account. |
attr_bid | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Bid: The ID of the business process flow. |
attr_category | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Category: Copy configuration, value description:. |
attr_commodity_code | typing.Union[str, ros_cdk_core.IResolvable] | Attribute CommodityCode: Buy Product Code. |
attr_connection_string | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ConnectionString: Connection string. |
attr_create_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute CreateTime: The creation time of the resource. |
attr_db_cluster_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DBClusterId: Instance ID. |
attr_db_cluster_ip_array_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DBClusterIPArrayName: The name of the whitelist group to be modified. |
attr_db_cluster_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DBClusterName: The cluster description information. |
attr_db_cluster_network_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DbClusterNetworkType: Network type. |
attr_db_cluster_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DBClusterType: Instance type. |
attr_db_node_class | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DbNodeClass: Set the node type. |
attr_db_node_count | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DbNodeCount: Value range: S-Series: 1 to 48 C Series: 1-24 units:. |
attr_db_node_storage | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DbNodeStorage: Single-node storage space. |
attr_encryption_key | typing.Union[str, ros_cdk_core.IResolvable] | Attribute EncryptionKey: Key management service KMS key ID. |
attr_encryption_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute EncryptionType: Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. |
attr_engine | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Engine: Engine. |
attr_engine_version | typing.Union[str, ros_cdk_core.IResolvable] | Attribute EngineVersion: The engine version. |
attr_expire_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ExpireTime: The expiration time. |
attr_is_expired | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IsExpired: If the instance has expired. |
attr_lock_mode | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LockMode: The lock mode. |
attr_lock_reason | typing.Union[str, ros_cdk_core.IResolvable] | Attribute LockReason: Lock reason. |
attr_maintain_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MaintainTime: Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z. |
attr_payment_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PaymentType: The paymen type of the resource. |
attr_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Port: Connection port. |
attr_public_connection_string | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PublicConnectionString: A public IP address for the connection. |
attr_public_ip_addr | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PublicIpAddr: Public IP address. |
attr_public_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PublicPort: Public network port. |
attr_resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ResourceGroupId: The ID of the resource group. |
attr_scale_out_status | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ScaleOutStatus: Scale state. |
attr_security_ips | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SecurityIps: The whitelist supports the following two formats:. |
attr_storage_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute StorageType: Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud disk. |
attr_support_backup | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SupportBackup: Support fallback scheme. |
attr_support_https_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SupportHttpsPort: The system supports http port number. |
attr_support_mysql_port | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SupportMysqlPort: Supports Mysql, and those of the ports. |
attr_support_oss | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SupportOss: Whether hot and cold stratification is supported, 0 means not, and 1st generation table supports it. |
attr_vpc_cloud_instance_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VpcCloudInstanceId: Virtual Private Cloud (VPC cloud instance ID. |
attr_vpc_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VpcId: VPC ID. |
attr_vpc_ip_addr | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VpcIpAddr: VPC IP address. |
attr_v_switch_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute VSwitchId: Switch ID. |
attr_zone_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ZoneId: On behalf of the zone resource attribute field. |
props | DBClusterProps | 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_ali_uidRequired
attr_ali_uid: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AliUid: Alibaba Cloud account.
attr_bidRequired
attr_bid: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Bid: The ID of the business process flow.
attr_categoryRequired
attr_category: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Category: Copy configuration, value description:.
attr_commodity_codeRequired
attr_commodity_code: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute CommodityCode: Buy Product Code.
attr_connection_stringRequired
attr_connection_string: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ConnectionString: Connection string.
attr_create_timeRequired
attr_create_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute CreateTime: The creation time of the resource.
attr_db_cluster_idRequired
attr_db_cluster_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DBClusterId: Instance ID.
attr_db_cluster_ip_array_nameRequired
attr_db_cluster_ip_array_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DBClusterIPArrayName: The name of the whitelist group to be modified.
attr_db_cluster_nameRequired
attr_db_cluster_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DBClusterName: The cluster description information.
attr_db_cluster_network_typeRequired
attr_db_cluster_network_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DbClusterNetworkType: Network type.
Currently, only VPC is supported.
attr_db_cluster_typeRequired
attr_db_cluster_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DBClusterType: Instance type.
attr_db_node_classRequired
attr_db_node_class: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DbNodeClass: Set the node type.
attr_db_node_countRequired
attr_db_node_count: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DbNodeCount: Value range: S-Series: 1 to 48 C Series: 1-24 units:.
attr_db_node_storageRequired
attr_db_node_storage: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DbNodeStorage: Single-node storage space.
Value range: 100 GB to 32000GB.
attr_encryption_keyRequired
attr_encryption_key: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute EncryptionKey: Key management service KMS key ID.
attr_encryption_typeRequired
attr_encryption_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute EncryptionType: Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
attr_engineRequired
attr_engine: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Engine: Engine.
attr_engine_versionRequired
attr_engine_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute EngineVersion: The engine version.
attr_expire_timeRequired
attr_expire_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ExpireTime: The expiration time.
attr_is_expiredRequired
attr_is_expired: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IsExpired: If the instance has expired.
attr_lock_modeRequired
attr_lock_mode: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LockMode: The lock mode.
attr_lock_reasonRequired
attr_lock_reason: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute LockReason: Lock reason.
attr_maintain_timeRequired
attr_maintain_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MaintainTime: Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z.
attr_payment_typeRequired
attr_payment_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PaymentType: The paymen type of the resource.
attr_portRequired
attr_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Port: Connection port.
attr_public_connection_stringRequired
attr_public_connection_string: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PublicConnectionString: A public IP address for the connection.
attr_public_ip_addrRequired
attr_public_ip_addr: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PublicIpAddr: Public IP address.
attr_public_portRequired
attr_public_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PublicPort: Public network port.
attr_resource_group_idRequired
attr_resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ResourceGroupId: The ID of the resource group.
attr_scale_out_statusRequired
attr_scale_out_status: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ScaleOutStatus: Scale state.
attr_security_ipsRequired
attr_security_ips: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SecurityIps: The whitelist supports the following two formats:.
attr_storage_typeRequired
attr_storage_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute StorageType: Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud disk.
attr_support_backupRequired
attr_support_backup: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SupportBackup: Support fallback scheme.
attr_support_https_portRequired
attr_support_https_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SupportHttpsPort: The system supports http port number.
attr_support_mysql_portRequired
attr_support_mysql_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SupportMysqlPort: Supports Mysql, and those of the ports.
attr_support_ossRequired
attr_support_oss: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SupportOss: Whether hot and cold stratification is supported, 0 means not, and 1st generation table supports it.
attr_vpc_cloud_instance_idRequired
attr_vpc_cloud_instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VpcCloudInstanceId: Virtual Private Cloud (VPC cloud instance ID.
attr_vpc_idRequired
attr_vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VpcId: VPC ID.
attr_vpc_ip_addrRequired
attr_vpc_ip_addr: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VpcIpAddr: VPC IP address.
attr_v_switch_idRequired
attr_v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute VSwitchId: Switch ID.
attr_zone_idRequired
attr_zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ZoneId: On behalf of the zone resource attribute field.
propsRequired
props: DBClusterProps
- Type: DBClusterProps