Skip to content

DrdsInstance

This class encapsulates and extends the ROS resource type DATASOURCE::DRDS::DrdsInstance, which is used to query the information about a PolarDB-X 1.0 instance.

Initializers

import com.aliyun.ros.cdk.drds.datasource.DrdsInstance;
DrdsInstance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .drdsInstanceId(java.lang.String)
    .drdsInstanceId(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
    .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.
drdsInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property drdsInstanceId: The ID of the Drds instance.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

drdsInstanceIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property drdsInstanceId: The ID of the Drds instance.


refreshOptionsOptional

  • Type: java.lang.String OR com.aliyun.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.

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

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

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

isConstruct

import com.aliyun.ros.cdk.drds.datasource.DrdsInstance;
DrdsInstance.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
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.
attrCommodityCode com.aliyun.ros.cdk.core.IResolvable Attribute CommodityCode: The commodity code of the service.
attrCreateTime com.aliyun.ros.cdk.core.IResolvable Attribute CreateTime: The timestamp that indicates when the instance is created.
attrDescription com.aliyun.ros.cdk.core.IResolvable Attribute Description: The description of the instance.
attrDrdsInstanceId com.aliyun.ros.cdk.core.IResolvable Attribute DrdsInstanceId: The ID of the Drds instance.
attrExpireDate com.aliyun.ros.cdk.core.IResolvable Attribute ExpireDate: The timestamp that indicates when the instance expires.
attrInstanceSeries com.aliyun.ros.cdk.core.IResolvable Attribute InstanceSeries: The edition of the instance.
attrInstanceSpec com.aliyun.ros.cdk.core.IResolvable Attribute InstanceSpec: The specification of the instance.
attrInstRole com.aliyun.ros.cdk.core.IResolvable Attribute InstRole: The role of the instance.
attrLabel com.aliyun.ros.cdk.core.IResolvable Attribute Label: The tag of the instance.
attrMachineType com.aliyun.ros.cdk.core.IResolvable Attribute MachineType: The machine type of the instance.
attrMasterInstanceId com.aliyun.ros.cdk.core.IResolvable Attribute MasterInstanceId: The ID of the primary instance.
attrMysqlVersion com.aliyun.ros.cdk.core.IResolvable Attribute MysqlVersion: Engine version.
attrNetworkType com.aliyun.ros.cdk.core.IResolvable Attribute NetworkType: The network type of the instance.
attrOrderInstanceId com.aliyun.ros.cdk.core.IResolvable Attribute OrderInstanceId: The ID of the purchased instance.
attrReadOnlyDbInstanceIds com.aliyun.ros.cdk.core.IResolvable Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.
attrResourceGroupId com.aliyun.ros.cdk.core.IResolvable Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
attrStorageType com.aliyun.ros.cdk.core.IResolvable Attribute StorageType: The storage type of the Drds database.
attrType com.aliyun.ros.cdk.core.IResolvable Attribute Type: The type of the instance.
attrVersion com.aliyun.ros.cdk.core.IResolvable Attribute Version: The version of the instance.
attrVersionAction com.aliyun.ros.cdk.core.IResolvable Attribute VersionAction: Indicates whether the version of the instance can be upgraded.
attrVips com.aliyun.ros.cdk.core.IResolvable Attribute Vips: The list of returned virtual IP addresses (VIPs).
attrVpcCloudInstanceId com.aliyun.ros.cdk.core.IResolvable Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.
attrZoneId com.aliyun.ros.cdk.core.IResolvable Attribute ZoneId: The ID of the zone in which the resource is located.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


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

attrCommodityCodeRequired

public IResolvable getAttrCommodityCode();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CommodityCode: The commodity code of the service.


attrCreateTimeRequired

public IResolvable getAttrCreateTime();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CreateTime: The timestamp that indicates when the instance is created.


attrDescriptionRequired

public IResolvable getAttrDescription();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Description: The description of the instance.


attrDrdsInstanceIdRequired

public IResolvable getAttrDrdsInstanceId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DrdsInstanceId: The ID of the Drds instance.


attrExpireDateRequired

public IResolvable getAttrExpireDate();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ExpireDate: The timestamp that indicates when the instance expires.


attrInstanceSeriesRequired

public IResolvable getAttrInstanceSeries();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstanceSeries: The edition of the instance.

Valid values: starter: Starter Edition enterprise: Enterprise Edition standard: Standard Edition


attrInstanceSpecRequired

public IResolvable getAttrInstanceSpec();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstanceSpec: The specification of the instance.


attrInstRoleRequired

public IResolvable getAttrInstRole();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute InstRole: The role of the instance.

Valid values: MASTER: The instance is a primary instance. SLAVE: The instance is a read-only instance to analyze complex queries. SLAVE_FLOW: The instance is a read-only instance for high-concurrency scenarios.


attrLabelRequired

public IResolvable getAttrLabel();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Label: The tag of the instance.

Valid values: NORMAL: The instance is a standard instance. HA: The instance is a high-availability (HA) instance. VPC: The instance is a VPC-based instance.


attrMachineTypeRequired

public IResolvable getAttrMachineType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MachineType: The machine type of the instance.

Valid value: ecs.


attrMasterInstanceIdRequired

public IResolvable getAttrMasterInstanceId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MasterInstanceId: The ID of the primary instance.


attrMysqlVersionRequired

public IResolvable getAttrMysqlVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute MysqlVersion: Engine version.


attrNetworkTypeRequired

public IResolvable getAttrNetworkType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute NetworkType: The network type of the instance.

Valid values: CLASSIC VPC


attrOrderInstanceIdRequired

public IResolvable getAttrOrderInstanceId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute OrderInstanceId: The ID of the purchased instance.


attrReadOnlyDbInstanceIdsRequired

public IResolvable getAttrReadOnlyDbInstanceIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.


attrResourceGroupIdRequired

public IResolvable getAttrResourceGroupId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.


attrStorageTypeRequired

public IResolvable getAttrStorageType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute StorageType: The storage type of the Drds database.

Valid values: RDS PolarDB


attrTypeRequired

public IResolvable getAttrType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Type: The type of the instance.

Valid values: PUBLIC: The returned instance is a shared instance. PRIVATE: The returned instance is a dedicated instance.


attrVersionRequired

public IResolvable getAttrVersion();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Version: The version of the instance.


attrVersionActionRequired

public IResolvable getAttrVersionAction();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VersionAction: Indicates whether the version of the instance can be upgraded.


attrVipsRequired

public IResolvable getAttrVips();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Vips: The list of returned virtual IP addresses (VIPs).


attrVpcCloudInstanceIdRequired

public IResolvable getAttrVpcCloudInstanceId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.


attrZoneIdRequired

public IResolvable getAttrZoneId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ZoneId: The ID of the zone in which the resource is located.