DBCluster
This class encapsulates and extends the ROS resource type ALIYUN::ClickHouse::DBCluster
, which is used to create an ApsaraDB for ClickHouse cluster.
Initializers
import { DBCluster } from '@alicloud/ros-cdk-clickhouse'
new DBCluster(scope: Construct, id: string, props: DBClusterProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
DBClusterProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: DBClusterProps
enableResourcePropertyConstraint
Optional
- Type: boolean
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { DBCluster } from '@alicloud/ros-cdk-clickhouse'
DBCluster.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
@alicloud/ros-cdk-core.ConstructNode |
The construct tree node associated with this construct. |
ref |
string |
No description. |
stack |
@alicloud/ros-cdk-core.Stack |
The stack in which this resource is defined. |
resource |
@alicloud/ros-cdk-core.RosResource |
No description. |
attrAliUid |
@alicloud/ros-cdk-core.IResolvable |
Attribute AliUid: AliUid. |
attrBid |
@alicloud/ros-cdk-core.IResolvable |
Attribute Bid: BusinessID. |
attrCategory |
@alicloud/ros-cdk-core.IResolvable |
Attribute Category: The edition of the cluster. |
attrCommodityCode |
@alicloud/ros-cdk-core.IResolvable |
Attribute CommodityCode: Product Code. |
attrConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute ConnectionString: ConnectionString. |
attrDbClusterDescription |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBClusterDescription: The description of the cluster. |
attrDbClusterId |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBClusterId: The id of DBCluster. |
attrDbClusterNetworkType |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBClusterNetworkType: Network type of the cluster instance, value: VPC. |
attrDbClusterType |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBClusterType: The specification of the cluster. |
attrDbClusterVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBClusterVersion: Version, value: 19.15.2.2. |
attrDbNodeClass |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBNodeClass: DBNodeClass. |
attrDbNodeCount |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBNodeCount: The number of nodes. |
attrDbNodeStorage |
@alicloud/ros-cdk-core.IResolvable |
Attribute DBNodeStorage: The storage capacity of a single node. |
attrDbNodeStorageType |
@alicloud/ros-cdk-core.IResolvable |
Attribute DbNodeStorageType: Instance node storage type. |
attrEncryptionKey |
@alicloud/ros-cdk-core.IResolvable |
Attribute EncryptionKey: KMS key ID. |
attrEncryptionType |
@alicloud/ros-cdk-core.IResolvable |
Attribute EncryptionType: Kms key type, only cloud disk encryption is supported and the value is CloudDisk. |
attrEngine |
@alicloud/ros-cdk-core.IResolvable |
Attribute Engine: Engine. |
attrEngineVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute EngineVersion: EngineVersion. |
attrIsExpired |
@alicloud/ros-cdk-core.IResolvable |
Attribute IsExpired: IsExpired. |
attrLockMode |
@alicloud/ros-cdk-core.IResolvable |
Attribute LockMode: LockMode. |
attrLockReason |
@alicloud/ros-cdk-core.IResolvable |
Attribute LockReason: Reason for lock. |
attrPaymentType |
@alicloud/ros-cdk-core.IResolvable |
Attribute PaymentType: PayType. |
attrPeriod |
@alicloud/ros-cdk-core.IResolvable |
Attribute Period: Prepaid time period.If the payment type is Prepaid, this parameter is mandatory. Specify the prepaid cluster as a yearly or monthly type. Valid values: Year, Month. |
attrPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute Port: Connection port. |
attrPublicConnectionString |
@alicloud/ros-cdk-core.IResolvable |
Attribute PublicConnectionString: Internet connection address. |
attrPublicPort |
@alicloud/ros-cdk-core.IResolvable |
Attribute PublicPort: PublicPort. |
attrStorageType |
@alicloud/ros-cdk-core.IResolvable |
Attribute StorageType: StorageType. |
attrVpcCloudInstanceId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcCloudInstanceId: VpcCloudInstanceId. |
attrVpcId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcId: VpcId. |
attrVSwitchId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VSwitchId: VSwitchId. |
attrZoneId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ZoneId: ZoneId. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAliUid
Required
public readonly attrAliUid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AliUid: AliUid.
attrBid
Required
public readonly attrBid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Bid: BusinessID.
attrCategory
Required
public readonly attrCategory: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Category: The edition of the cluster.
attrCommodityCode
Required
public readonly attrCommodityCode: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CommodityCode: Product Code.
attrConnectionString
Required
public readonly attrConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ConnectionString: ConnectionString.
attrDbClusterDescription
Required
public readonly attrDbClusterDescription: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBClusterDescription: The description of the cluster.
attrDbClusterId
Required
public readonly attrDbClusterId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBClusterId: The id of DBCluster.
attrDbClusterNetworkType
Required
public readonly attrDbClusterNetworkType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBClusterNetworkType: Network type of the cluster instance, value: VPC.
attrDbClusterType
Required
public readonly attrDbClusterType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBClusterType: The specification of the cluster.
attrDbClusterVersion
Required
public readonly attrDbClusterVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBClusterVersion: Version, value: 19.15.2.2.
attrDbNodeClass
Required
public readonly attrDbNodeClass: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBNodeClass: DBNodeClass.
attrDbNodeCount
Required
public readonly attrDbNodeCount: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBNodeCount: The number of nodes.
attrDbNodeStorage
Required
public readonly attrDbNodeStorage: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DBNodeStorage: The storage capacity of a single node.
attrDbNodeStorageType
Required
public readonly attrDbNodeStorageType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DbNodeStorageType: Instance node storage type.
Valid values: cloud_essd, cloud_efficiency.
attrEncryptionKey
Required
public readonly attrEncryptionKey: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EncryptionKey: KMS key ID.
attrEncryptionType
Required
public readonly attrEncryptionType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EncryptionType: Kms key type, only cloud disk encryption is supported and the value is CloudDisk.
attrEngine
Required
public readonly attrEngine: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Engine: Engine.
attrEngineVersion
Required
public readonly attrEngineVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EngineVersion: EngineVersion.
attrIsExpired
Required
public readonly attrIsExpired: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IsExpired: IsExpired.
attrLockMode
Required
public readonly attrLockMode: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LockMode: LockMode.
attrLockReason
Required
public readonly attrLockReason: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LockReason: Reason for lock.
attrPaymentType
Required
public readonly attrPaymentType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PaymentType: PayType.
attrPeriod
Required
public readonly attrPeriod: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Period: Prepaid time period.If the payment type is Prepaid, this parameter is mandatory. Specify the prepaid cluster as a yearly or monthly type. Valid values: Year, Month.
attrPort
Required
public readonly attrPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Port: Connection port.
attrPublicConnectionString
Required
public readonly attrPublicConnectionString: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PublicConnectionString: Internet connection address.
attrPublicPort
Required
public readonly attrPublicPort: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PublicPort: PublicPort.
attrStorageType
Required
public readonly attrStorageType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute StorageType: StorageType.
attrVpcCloudInstanceId
Required
public readonly attrVpcCloudInstanceId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcCloudInstanceId: VpcCloudInstanceId.
attrVpcId
Required
public readonly attrVpcId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcId: VpcId.
attrVSwitchId
Required
public readonly attrVSwitchId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VSwitchId: VSwitchId.
attrZoneId
Required
public readonly attrZoneId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: ZoneId.