DbInstance
This class encapsulates and extends the ROS resource type ALIYUN::GraphDatabase::DbInstance
, which is used to create a Graph Database (GDB) instance.
Initializers
import com.aliyun.ros.cdk.graphdatabase.DbInstance;
DbInstance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.dbInstanceCategory(java.lang.String)
.dbInstanceCategory(IResolvable)
.dbInstanceNetworkType(java.lang.String)
.dbInstanceNetworkType(IResolvable)
.dbInstanceStorageType(java.lang.String)
.dbInstanceStorageType(IResolvable)
.dbNodeClass(java.lang.String)
.dbNodeClass(IResolvable)
.dbNodeStorage(java.lang.Number)
.dbNodeStorage(IResolvable)
.dbVersion(java.lang.String)
.dbVersion(IResolvable)
// .backupSetId(java.lang.String)
// .backupSetId(IResolvable)
// .createType(java.lang.String)
// .createType(IResolvable)
// .dbInstanceDescription(java.lang.String)
// .dbInstanceDescription(IResolvable)
// .dbInstanceIpArray(IResolvable)
// .dbInstanceIpArray(java.util.List<IResolvable)
// .dbInstanceIpArray(DBInstanceIPArrayProperty>)
// .ecsSecurityGroupRelations(IResolvable)
// .ecsSecurityGroupRelations(java.util.List<IResolvable)
// .ecsSecurityGroupRelations(EcsSecurityGroupRelationsProperty>)
// .maintainTime(java.lang.String)
// .maintainTime(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .restoreType(java.lang.String)
// .restoreType(IResolvable)
// .sourceDbInstanceId(java.lang.String)
// .sourceDbInstanceId(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
// .zoneId(java.lang.String)
// .zoneId(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. |
dbInstanceCategory |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceCategory: The category of the db instance. |
dbInstanceNetworkType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceNetworkType: The network type of the db instance. |
dbInstanceStorageType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceStorageType: Instance storage type, Valid values: - cloud_essd. |
dbNodeClass |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbNodeClass: The class of the db node. |
dbNodeStorage |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property dbNodeStorage: Instance storage space, which is measured in GB. |
dbVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbVersion: Kernel version 1.0 is represented as gremlin,1.0-OpenCypher said opencypher. |
backupSetId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property backupSetId: Backup set id. |
createType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property createType: The creation method. |
dbInstanceDescription |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceDescription: According to the practical example or notes. |
dbInstanceIpArray |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property dbInstanceIpArray: IP address whitelist for the instance group list. |
ecsSecurityGroupRelations |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property ecsSecurityGroupRelations: Security group information array. |
maintainTime |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property maintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: The resource attribute field representing the paid type is desirable: - PayAsYouGo: Postpaid. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group id. |
restoreType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property restoreType: Restore type. |
sourceDbInstanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceDbInstanceId: Source Instance Id. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags of db instance. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The vpc id of the db instance. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The vpc switch id of the resource. |
zoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property zoneId: ZoneId. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
dbInstanceCategory
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceCategory: The category of the db instance.
dbInstanceNetworkType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceNetworkType: The network type of the db instance.
dbInstanceStorageType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceStorageType: Instance storage type, Valid values: - cloud_essd.
dbNodeClass
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbNodeClass: The class of the db node.
Valid values: gdb.r.xlarge, gdb.r.2xlarge, gdb.r.4xlarge, gdb.r.8xlarge,gdb.r.16xlarge, gdb.re.13xlarge, gdb.re.26xlarge, gdb.re.52xlarge
dbNodeStorage
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property dbNodeStorage: Instance storage space, which is measured in GB.
The minimum storage space is 20 GB and the step size is 10GB.
dbVersion
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbVersion: Kernel version 1.0 is represented as gremlin,1.0-OpenCypher said opencypher.
backupSetId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property backupSetId: Backup set id.
createType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property createType: The creation method.
Valid values:
- CreateDBInstance: Create instance
- CloneDBInstance: Clone instance
- CreateReadDBInstance: Create a read-only instance
dbInstanceDescription
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceDescription: According to the practical example or notes.
dbInstanceIpArray
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DBInstanceIPArrayProperty>
Property dbInstanceIpArray: IP address whitelist for the instance group list.
ecsSecurityGroupRelations
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
EcsSecurityGroupRelationsProperty>
Property ecsSecurityGroupRelations: Security group information array.
maintainTime
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property maintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance.
paymentType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: The resource attribute field representing the paid type is desirable: - PayAsYouGo: Postpaid.
resourceGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
restoreType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property restoreType: Restore type.
sourceDbInstanceId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceDbInstanceId: Source Instance Id.
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags of db instance.
vpcId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The vpc id of the db instance.
vSwitchId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The vpc switch id of the resource.
zoneId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: ZoneId.
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.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 first ID of the resource. |
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 resource 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 resource. |
attrPublicPort |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PublicPort: The public port ID of the resource. |
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: resource Tag group. |
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 vpc switch id of the resource. |
attrZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ZoneId: ZoneId. |
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 first ID of the resource.
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 resource 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 resource.
attrPublicPort
Required
public IResolvable getAttrPublicPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicPort: The public port ID of the resource.
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: resource Tag group.
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 vpc switch id of the resource.
attrZoneId
Required
public IResolvable getAttrZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneId: ZoneId.