Skip to content

DBInstanceProps

Properties for defining a DBInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-selectdb-dbinstance

Initializer

import com.aliyun.ros.cdk.selectdb.DBInstanceProps;
DBInstanceProps.builder()
    .cacheSize(java.lang.Number)
    .cacheSize(IResolvable)
    .chargeType(java.lang.String)
    .chargeType(IResolvable)
    .dbInstanceClass(java.lang.String)
    .dbInstanceClass(IResolvable)
    .engineVersion(java.lang.String)
    .engineVersion(IResolvable)
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
    .vSwitchId(java.lang.String)
    .vSwitchId(IResolvable)
    .zoneId(java.lang.String)
    .zoneId(IResolvable)
//  .accountPassword(java.lang.String)
//  .accountPassword(IResolvable)
//  .connectionString(java.lang.String)
//  .connectionString(IResolvable)
//  .dbInstanceDescription(java.lang.String)
//  .dbInstanceDescription(IResolvable)
//  .engine(java.lang.String)
//  .engine(IResolvable)
//  .period(java.lang.String)
//  .period(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .securityIpList(IResolvable)
//  .securityIpList(java.util.List<java.lang.String)
//  .securityIpList(IResolvable>)
//  .tags(java.util.List<TagsProperty>)
//  .usedTime(java.lang.Number)
//  .usedTime(IResolvable)
    .build();

Properties

Name Type Description
cacheSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property cacheSize: Reserve cache size.
chargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).
dbInstanceClass java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbInstanceClass: The class of the DB instance.
engineVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property engineVersion: The database version.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: VPC id.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: Switch ID.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: Availability Zone ID.
accountPassword java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.
connectionString java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property connectionString: Database connection address.
dbInstanceDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbInstanceDescription: Example Notes Information.
engine java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property engine: Database type, default value is selectdb.
period java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property period: Specify the prepaid cluster as annual or monthly type.Value description: Year: Year-end type. Month: Month type. Note This parameter takes effect and is required only if ChargeType is Prepaid.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource Group ID.
securityIpList com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property securityIpList: The default IP whitelist of the instance.
tags java.util.List<TagsProperty> Property tags: The list of tags in the form of key\/value pairs.
usedTime java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property usedTime: The subscription duration of the subscription instance.

cacheSizeRequired

public java.lang.Object getCacheSize();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property cacheSize: Reserve cache size.


chargeTypeRequired

public java.lang.Object getChargeType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).


dbInstanceClassRequired

public java.lang.Object getDbInstanceClass();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbInstanceClass: The class of the DB instance.

Call DescribeAllDBInstanceClass API to check the latest class list


engineVersionRequired

public java.lang.Object getEngineVersion();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property engineVersion: The database version.

The default value is 4.1. Valid values:

  • 4.0
  • 4.1

vpcIdRequired

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcId: VPC id.


vSwitchIdRequired

public java.lang.Object getVSwitchId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchId: Switch ID.


zoneIdRequired

public java.lang.Object getZoneId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property zoneId: Availability Zone ID.


accountPasswordOptional

public java.lang.Object getAccountPassword();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.


connectionStringOptional

public java.lang.Object getConnectionString();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property connectionString: Database connection address.


dbInstanceDescriptionOptional

public java.lang.Object getDbInstanceDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbInstanceDescription: Example Notes Information.


engineOptional

public java.lang.Object getEngine();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property engine: Database type, default value is selectdb.


periodOptional

public java.lang.Object getPeriod();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property period: Specify the prepaid cluster as annual or monthly type.Value description: Year: Year-end type. Month: Month type. Note This parameter takes effect and is required only if ChargeType is Prepaid.


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource Group ID.


securityIpListOptional

public java.lang.Object getSecurityIpList();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property securityIpList: The default IP whitelist of the instance.


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: The list of tags in the form of key\/value pairs.

You can define a maximum of 20 tags.


usedTimeOptional

public java.lang.Object getUsedTime();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property usedTime: The subscription duration of the subscription instance.

Valid values:

  • If Period is set to Year, valid values are 1, 2, 3, 4, and 5.
  • If Period is set to Month, valid values are integers from 1 to 12.

This parameter is required and takes effect only when ChargeType is set to Prepaid.