Skip to content

DBCluster

This class encapsulates and extends the ROS resource type ALIYUN::POLARDB::DBCluster, which is used to create a PolarDB cluster.

Initializers

import { DBCluster } from '@alicloud/ros-cdk-polardb'
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.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • 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.

sessionRequired

  • Type: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import { DBCluster } from '@alicloud/ros-cdk-polardb'
DBCluster.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • 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.
attrClusterConnectionString @alicloud/ros-cdk-core.IResolvable Attribute ClusterConnectionString: The cluster connection string of the db cluster.
attrClusterEndpointId @alicloud/ros-cdk-core.IResolvable Attribute ClusterEndpointId: The cluster endpoint ID of the db cluster.
attrColdStorageInstanceId @alicloud/ros-cdk-core.IResolvable Attribute ColdStorageInstanceId: The ID of the cold storage instance.
attrCustomConnectionStrings @alicloud/ros-cdk-core.IResolvable Attribute CustomConnectionStrings: The custom connection strings of the db cluster.
attrCustomEndpointIds @alicloud/ros-cdk-core.IResolvable Attribute CustomEndpointIds: The custom endpoint IDs of the db cluster.
attrDbClusterDescription @alicloud/ros-cdk-core.IResolvable Attribute DBClusterDescription: The description of the db cluster.
attrDbClusterId @alicloud/ros-cdk-core.IResolvable Attribute DBClusterId: The ID of the ApsaraDB for POLARDB cluster.
attrDbNodeIds @alicloud/ros-cdk-core.IResolvable Attribute DBNodeIds: The ID list of cluster nodes.
attrOrderId @alicloud/ros-cdk-core.IResolvable Attribute OrderId: The Order ID.
attrPrimaryConnectionString @alicloud/ros-cdk-core.IResolvable Attribute PrimaryConnectionString: The primary connection string of the db cluster.
attrPrimaryConnectionStrings @alicloud/ros-cdk-core.IResolvable Attribute PrimaryConnectionStrings: The primary connection strings of the db cluster.
attrPrimaryEndpointId @alicloud/ros-cdk-core.IResolvable Attribute PrimaryEndpointId: The primary endpoint ID of the db cluster.
attrPrimaryEndpointIds @alicloud/ros-cdk-core.IResolvable Attribute PrimaryEndpointIds: The primary endpoint IDs of the db cluster.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


refRequired

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrClusterConnectionStringRequired

public readonly attrClusterConnectionString: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ClusterConnectionString: The cluster connection string of the db cluster.


attrClusterEndpointIdRequired

public readonly attrClusterEndpointId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ClusterEndpointId: The cluster endpoint ID of the db cluster.


attrColdStorageInstanceIdRequired

public readonly attrColdStorageInstanceId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ColdStorageInstanceId: The ID of the cold storage instance.


attrCustomConnectionStringsRequired

public readonly attrCustomConnectionStrings: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CustomConnectionStrings: The custom connection strings of the db cluster.


attrCustomEndpointIdsRequired

public readonly attrCustomEndpointIds: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CustomEndpointIds: The custom endpoint IDs of the db cluster.


attrDbClusterDescriptionRequired

public readonly attrDbClusterDescription: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute DBClusterDescription: The description of the db cluster.


attrDbClusterIdRequired

public readonly attrDbClusterId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute DBClusterId: The ID of the ApsaraDB for POLARDB cluster.


attrDbNodeIdsRequired

public readonly attrDbNodeIds: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute DBNodeIds: The ID list of cluster nodes.


attrOrderIdRequired

public readonly attrOrderId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute OrderId: The Order ID.


attrPrimaryConnectionStringRequired

public readonly attrPrimaryConnectionString: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PrimaryConnectionString: The primary connection string of the db cluster.


attrPrimaryConnectionStringsRequired

public readonly attrPrimaryConnectionStrings: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PrimaryConnectionStrings: The primary connection strings of the db cluster.


attrPrimaryEndpointIdRequired

public readonly attrPrimaryEndpointId: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PrimaryEndpointId: The primary endpoint ID of the db cluster.


attrPrimaryEndpointIdsRequired

public readonly attrPrimaryEndpointIds: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PrimaryEndpointIds: The primary endpoint IDs of the db cluster.