DbInstance
This class encapsulates and extends the ROS resource type DATASOURCE::GraphDatabase::DbInstance
.
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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
dbInstanceId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceId: The ID of the GDB Instance.
refreshOptions
Optional
- 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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrConnectionString
Required
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.
attrCreateTime
Required
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.
attrCurrentMinorVersion
Required
public IResolvable getAttrCurrentMinorVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CurrentMinorVersion: The current kernel image version.
attrDbInstanceCategory
Required
public IResolvable getAttrDbInstanceCategory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceCategory: The category of the db instance.
attrDbInstanceCpu
Required
public IResolvable getAttrDbInstanceCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count.
attrDbInstanceDescription
Required
public IResolvable getAttrDbInstanceDescription();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceDescription: According to the practical example or notes.
attrDbInstanceId
Required
public IResolvable getAttrDbInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceId: The ID of the GDB Instance.
attrDbInstanceIpArray
Required
public IResolvable getAttrDbInstanceIpArray();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list.
attrDbInstanceMemory
Required
public IResolvable getAttrDbInstanceMemory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceMemory: Instance memory, which is measured in MB.
attrDbInstanceNetworkType
Required
public IResolvable getAttrDbInstanceNetworkType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceNetworkType: The network type of the db instance.
attrDbInstanceStorageType
Required
public IResolvable getAttrDbInstanceStorageType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceStorageType: Cloud Disk.
attrDbInstanceType
Required
public IResolvable getAttrDbInstanceType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbInstanceType: The type of the db instance.
attrDbNodeClass
Required
public IResolvable getAttrDbNodeClass();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeClass: The class of the db node.
attrDbNodeCount
Required
public IResolvable getAttrDbNodeCount();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeCount: The count of the db node.
attrDbNodeStorage
Required
public IResolvable getAttrDbNodeStorage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbNodeStorage: Instance storage space, which is measured in GB.
attrDbVersion
Required
public IResolvable getAttrDbVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1.
attrEcsSecurityGroupRelations
Required
public IResolvable getAttrEcsSecurityGroupRelations();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EcsSecurityGroupRelations: Security group information array.
attrExpired
Required
public IResolvable getAttrExpired();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Expired: The expire status of the db instance.
attrExpireTime
Required
public IResolvable getAttrExpireTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ExpireTime: The instance after it expires time for subscription instance.
attrLatestMinorVersion
Required
public IResolvable getAttrLatestMinorVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LatestMinorVersion: The latest kernel image version.
attrLockMode
Required
public IResolvable getAttrLockMode();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LockMode: Instance lock state.
attrLockReason
Required
public IResolvable getAttrLockReason();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LockReason: An instance is locked the reason.
attrMaintainTime
Required
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.
attrPaymentType
Required
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: The DB instance attribute field representing the paid type is desirable.
attrPort
Required
public IResolvable getAttrPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Port: Application Port.
attrPublicConnectionString
Required
public IResolvable getAttrPublicConnectionString();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicConnectionString: The public connection string ID of the DB instance.
attrPublicPort
Required
public IResolvable getAttrPublicPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicPort: The public port ID of the DB instance.
attrReadOnlyDbInstanceIds
Required
public IResolvable getAttrReadOnlyDbInstanceIds();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.
attrResourceGroupId
Required
public IResolvable getAttrResourceGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: Resource Group ID.
attrTags
Required
public IResolvable getAttrTags();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the GDB Instance.
attrVpcId
Required
public IResolvable getAttrVpcId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: The vpc id of the db instance.
attrVSwitchId
Required
public IResolvable getAttrVSwitchId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchId: The vswitch id of the DB instance.
attrZoneId
Required
public IResolvable getAttrZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneId: The zone ID of the instance.