EnterpriseDBCluster
- Implements: IEnterpriseDBCluster
This class encapsulates and extends the ROS resource type ALIYUN::ClickHouse::EnterpriseDBCluster.
Initializers
import com.aliyun.ros.cdk.clickhouse.EnterpriseDBCluster;
EnterpriseDBCluster.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.engine(java.lang.String)
.engine(IResolvable)
.nodeCount(java.lang.Number)
.nodeCount(IResolvable)
.nodeScaleMax(java.lang.Number)
.nodeScaleMax(IResolvable)
.nodeScaleMin(java.lang.Number)
.nodeScaleMin(IResolvable)
.vpcId(java.lang.String)
.vpcId(IResolvable)
.vSwitchId(java.lang.String)
.vSwitchId(IResolvable)
.zoneId(java.lang.String)
.zoneId(IResolvable)
// .backupSetId(java.lang.String)
// .backupSetId(IResolvable)
// .dbInstanceDescription(java.lang.String)
// .dbInstanceDescription(IResolvable)
// .dbTimeZone(java.lang.String)
// .dbTimeZone(IResolvable)
// .deploySchema(java.lang.String)
// .deploySchema(IResolvable)
// .multiZone(IResolvable)
// .multiZone(java.util.List<IResolvable)
// .multiZone(MultiZoneProperty>)
// .publicConnectionSetting(IResolvable)
// .publicConnectionSetting(PublicConnectionSettingProperty)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .sourceDbInstanceId(java.lang.String)
// .sourceDbInstanceId(IResolvable)
// .storageQuota(java.lang.Number)
// .storageQuota(IResolvable)
// .storageType(java.lang.String)
// .storageType(IResolvable)
// .tags(java.util.List<TagsProperty>)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
engine | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property engine: The engine type. |
nodeCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property nodeCount: The number of nodes. |
nodeScaleMax | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property nodeScaleMax: The maximum number of nodes for scaling. |
nodeScaleMin | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property nodeScaleMin: The minimum number of nodes for scaling. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The ID of the VPC. |
vSwitchId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vSwitchId: The ID of the VSwitch. |
zoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zoneId: The ID of the zone. |
backupSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property backupSetId: The ID of the backup set. |
dbInstanceDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dbInstanceDescription: The description of the database instance. |
dbTimeZone | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dbTimeZone: The time zone of the database, which must be an IANA time zone identifier. |
deploySchema | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property deploySchema: The deployment schema. |
multiZone | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property multiZone: Multi-zone configuration. |
publicConnectionSetting | com.aliyun.ros.cdk.core.IResolvable OR PublicConnectionSettingProperty | Property publicConnectionSetting: The public connection setting. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: The ID of the resource group. |
sourceDbInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourceDbInstanceId: The ID of the source instance. |
storageQuota | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property storageQuota: The storage quota. |
storageType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property storageType: The type of storage. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to clickhouse_enterprise_db. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
engineRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property engine: The engine type.
nodeCountRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property nodeCount: The number of nodes.
Valid values: 2 to 16. This parameter is required when you configure an elastic scaling range by using the NodeScaleMin and NodeScaleMax parameters.
nodeScaleMaxRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property nodeScaleMax: The maximum number of nodes for scaling.
nodeScaleMinRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property nodeScaleMin: The minimum number of nodes for scaling.
vpcIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the VPC.
vSwitchIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The ID of the VSwitch.
zoneIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: The ID of the zone.
backupSetIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property backupSetId: The ID of the backup set.
dbInstanceDescriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceDescription: The description of the database instance.
dbTimeZoneOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbTimeZone: The time zone of the database, which must be an IANA time zone identifier.
deploySchemaOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deploySchema: The deployment schema.
multiZoneOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
MultiZoneProperty>
Property multiZone: Multi-zone configuration.
publicConnectionSettingOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR PublicConnectionSettingProperty
Property publicConnectionSetting: The public connection setting.
resourceGroupIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
sourceDbInstanceIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceDbInstanceId: The ID of the source instance.
This parameter is required when restoring from a backup.
storageQuotaOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property storageQuota: The storage quota.
storageTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property storageType: The type of storage.
tagsOptional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to clickhouse_enterprise_db.
Max support 20 tags to add during create clickhouse_enterprise_db. Each tag with two properties Key and Value, and Key is required.
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. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
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: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.clickhouse.EnterpriseDBCluster;
EnterpriseDBCluster.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrDbInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DBInstanceId: The ID of the database instance. |
attrPrivateConnectionString | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PrivateConnectionString: The private connection string. |
attrPublicConnectionString | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PublicConnectionString: The public connection string. |
props | EnterpriseDBClusterProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.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
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrDbInstanceIdRequired
public java.lang.Object getAttrDbInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DBInstanceId: The ID of the database instance.
attrPrivateConnectionStringRequired
public java.lang.Object getAttrPrivateConnectionString();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PrivateConnectionString: The private connection string.
attrPublicConnectionStringRequired
public java.lang.Object getAttrPublicConnectionString();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PublicConnectionString: The public connection string.
propsRequired
public EnterpriseDBClusterProps getProps();
- Type: EnterpriseDBClusterProps