Skip to content

DBInstanceProps

Properties for defining a DBInstance.

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

Initializer

import { DBInstanceProps } from '@alicloud/ros-cdk-selectdb'
const dBInstanceProps: DBInstanceProps = { ... }

Properties

Name Type Description
cacheSize number | @alicloud/ros-cdk-core.IResolvable Property cacheSize: Reserve cache size.
chargeType string | @alicloud/ros-cdk-core.IResolvable Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).
dbInstanceClass string | @alicloud/ros-cdk-core.IResolvable Property dbInstanceClass: The class of the DB instance.
engineVersion string | @alicloud/ros-cdk-core.IResolvable Property engineVersion: The database version.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: VPC id.
vSwitchId string | @alicloud/ros-cdk-core.IResolvable Property vSwitchId: Switch ID.
zoneId string | @alicloud/ros-cdk-core.IResolvable Property zoneId: Availability Zone ID.
accountPassword string | @alicloud/ros-cdk-core.IResolvable Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.
connectionString string | @alicloud/ros-cdk-core.IResolvable Property connectionString: Database connection address.
dbInstanceDescription string | @alicloud/ros-cdk-core.IResolvable Property dbInstanceDescription: Example Notes Information.
engine string | @alicloud/ros-cdk-core.IResolvable Property engine: Database type, default value is selectdb.
period string | @alicloud/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 string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: Resource Group ID.
securityIpList @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property securityIpList: The default IP whitelist of the instance.
tags TagsProperty[] Property tags: The list of tags in the form of key\/value pairs.
usedTime number | @alicloud/ros-cdk-core.IResolvable Property usedTime: The subscription duration of the subscription instance.

cacheSizeRequired

public readonly cacheSize: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property cacheSize: Reserve cache size.


chargeTypeRequired

public readonly chargeType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


dbInstanceClassRequired

public readonly dbInstanceClass: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dbInstanceClass: The class of the DB instance.

Call DescribeAllDBInstanceClass API to check the latest class list


engineVersionRequired

public readonly engineVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property engineVersion: The database version.

The default value is 4.1. Valid values: - 4.0 - 4.1


vpcIdRequired

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: VPC id.


vSwitchIdRequired

public readonly vSwitchId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vSwitchId: Switch ID.


zoneIdRequired

public readonly zoneId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property zoneId: Availability Zone ID.


accountPasswordOptional

public readonly accountPassword: string | IResolvable;
  • Type: string | @alicloud/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 readonly connectionString: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property connectionString: Database connection address.


dbInstanceDescriptionOptional

public readonly dbInstanceDescription: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dbInstanceDescription: Example Notes Information.


engineOptional

public readonly engine: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property engine: Database type, default value is selectdb.


periodOptional

public readonly period: string | IResolvable;
  • Type: string | @alicloud/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 readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: Resource Group ID.


securityIpListOptional

public readonly securityIpList: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property securityIpList: The default IP whitelist of the instance.


tagsOptional

public readonly tags: TagsProperty[];

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

You can define a maximum of 20 tags.


usedTimeOptional

public readonly usedTime: number | IResolvable;
  • Type: number | @alicloud/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.