DbInstance
This class encapsulates and extends the ROS resource type DATASOURCE::GraphDatabase::DbInstance, which is used to query the information about an instance.
Initializers
import com.aliyun.ros.cdk.graphdatabase.datasource.DbInstance;
DbInstance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.dbInstanceId(java.lang.String)
.dbInstanceId(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. |
dbInstanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceId: The ID of the GDB 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
dbInstanceIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceId: The ID of the GDB 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.
- 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
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.graphdatabase.datasource.DbInstance;
DbInstance.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. |
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. |
attrConnectionString |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ConnectionString: Virtual Private Cloud (vpc connection such as a VPN connection or leased line domain name. |
attrCreateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CreateTime: Creation time, which follows the format of YYYY-MM-DD 'T'hh:mm:ssZ, such as 2011-05-30 T12:11:4Z. |
attrCurrentMinorVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CurrentMinorVersion: The current kernel image version. |
attrDbInstanceCategory |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceCategory: The category of the db instance. |
attrDbInstanceCpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count. |
attrDbInstanceDescription |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceDescription: According to the practical example or notes. |
attrDbInstanceId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceId: The ID of the GDB Instance. |
attrDbInstanceIpArray |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list. |
attrDbInstanceMemory |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceMemory: Instance memory, which is measured in MB. |
attrDbInstanceNetworkType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceNetworkType: The network type of the db instance. |
attrDbInstanceStorageType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceStorageType: Cloud Disk. |
attrDbInstanceType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbInstanceType: The type of the db instance. |
attrDbNodeClass |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbNodeClass: The class of the db node. |
attrDbNodeCount |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbNodeCount: The count of the db node. |
attrDbNodeStorage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbNodeStorage: Instance storage space, which is measured in GB. |
attrDbVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1. |
attrEcsSecurityGroupRelations |
com.aliyun.ros.cdk.core.IResolvable |
Attribute EcsSecurityGroupRelations: Security group information array. |
attrExpired |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Expired: The expire status of the db instance. |
attrExpireTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ExpireTime: The instance after it expires time for subscription instance. |
attrLatestMinorVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LatestMinorVersion: The latest kernel image version. |
attrLockMode |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LockMode: Instance lock state. |
attrLockReason |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LockReason: An instance is locked the reason. |
attrMaintainTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute MaintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance. |
attrPaymentType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PaymentType: The DB instance attribute field representing the paid type is desirable. |
attrPort |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Port: Application Port. |
attrPublicConnectionString |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PublicConnectionString: The public connection string ID of the DB instance. |
attrPublicPort |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PublicPort: The public port ID of the DB instance. |
attrReadOnlyDbInstanceIds |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances. |
attrResourceGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ResourceGroupId: Resource Group ID. |
attrTags |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Tags: The tags of the GDB Instance. |
attrVpcId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VpcId: The vpc id of the db instance. |
attrVSwitchId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VSwitchId: The vswitch id of the DB instance. |
attrZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ZoneId: The zone ID of the instance. |
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
attrConnectionStringRequired
public IResolvable getAttrConnectionString();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ConnectionString: Virtual Private Cloud (vpc connection such as a VPN connection or leased line domain name.
attrCreateTimeRequired
public IResolvable getAttrCreateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: Creation time, which follows the format of YYYY-MM-DD 'T'hh:mm:ssZ, such as 2011-05-30 T12:11:4Z.
attrCurrentMinorVersionRequired
public IResolvable getAttrCurrentMinorVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CurrentMinorVersion: The current kernel image version.
attrDbInstanceCategoryRequired
public IResolvable getAttrDbInstanceCategory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceCategory: The category of the db instance.
attrDbInstanceCpuRequired
public IResolvable getAttrDbInstanceCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count.
attrDbInstanceDescriptionRequired
public IResolvable getAttrDbInstanceDescription();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceDescription: According to the practical example or notes.
attrDbInstanceIdRequired
public IResolvable getAttrDbInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceId: The ID of the GDB Instance.
attrDbInstanceIpArrayRequired
public IResolvable getAttrDbInstanceIpArray();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list.
attrDbInstanceMemoryRequired
public IResolvable getAttrDbInstanceMemory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceMemory: Instance memory, which is measured in MB.
attrDbInstanceNetworkTypeRequired
public IResolvable getAttrDbInstanceNetworkType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceNetworkType: The network type of the db instance.
attrDbInstanceStorageTypeRequired
public IResolvable getAttrDbInstanceStorageType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceStorageType: Cloud Disk.
attrDbInstanceTypeRequired
public IResolvable getAttrDbInstanceType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceType: The type of the db instance.
attrDbNodeClassRequired
public IResolvable getAttrDbNodeClass();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeClass: The class of the db node.
attrDbNodeCountRequired
public IResolvable getAttrDbNodeCount();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeCount: The count of the db node.
attrDbNodeStorageRequired
public IResolvable getAttrDbNodeStorage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeStorage: Instance storage space, which is measured in GB.
attrDbVersionRequired
public IResolvable getAttrDbVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1.
attrEcsSecurityGroupRelationsRequired
public IResolvable getAttrEcsSecurityGroupRelations();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EcsSecurityGroupRelations: Security group information array.
attrExpiredRequired
public IResolvable getAttrExpired();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Expired: The expire status of the db instance.
attrExpireTimeRequired
public IResolvable getAttrExpireTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ExpireTime: The instance after it expires time for subscription instance.
attrLatestMinorVersionRequired
public IResolvable getAttrLatestMinorVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LatestMinorVersion: The latest kernel image version.
attrLockModeRequired
public IResolvable getAttrLockMode();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LockMode: Instance lock state.
attrLockReasonRequired
public IResolvable getAttrLockReason();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LockReason: An instance is locked the reason.
attrMaintainTimeRequired
public IResolvable getAttrMaintainTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute MaintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance.
attrPaymentTypeRequired
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: The DB instance attribute field representing the paid type is desirable.
attrPortRequired
public IResolvable getAttrPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Port: Application Port.
attrPublicConnectionStringRequired
public IResolvable getAttrPublicConnectionString();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicConnectionString: The public connection string ID of the DB instance.
attrPublicPortRequired
public IResolvable getAttrPublicPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicPort: The public port ID of the DB instance.
attrReadOnlyDbInstanceIdsRequired
public IResolvable getAttrReadOnlyDbInstanceIds();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.
attrResourceGroupIdRequired
public IResolvable getAttrResourceGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: Resource Group ID.
attrTagsRequired
public IResolvable getAttrTags();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the GDB Instance.
attrVpcIdRequired
public IResolvable getAttrVpcId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: The vpc id of the db instance.
attrVSwitchIdRequired
public IResolvable getAttrVSwitchId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchId: The vswitch id of the DB instance.
attrZoneIdRequired
public IResolvable getAttrZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneId: The zone ID of the instance.