Skip to content

DBInstanceProps

Properties for defining a DBInstance.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkselectdb"
&alicloudroscdkselectdb.DBInstanceProps {
    CacheSize: interface{},
    ChargeType: interface{},
    DbInstanceClass: interface{},
    EngineVersion: interface{},
    VpcId: interface{},
    VSwitchId: interface{},
    ZoneId: interface{},
    AccountPassword: interface{},
    ConnectionString: interface{},
    DbInstanceDescription: interface{},
    Engine: interface{},
    Period: interface{},
    ResourceGroupId: interface{},
    SecurityIpList: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkselectdb.RosDBInstance.TagsProperty,
    UsedTime: interface{},
}

Properties

Name Type Description
CacheSize interface{} Property cacheSize: Reserve cache size.
ChargeType interface{} Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).
DbInstanceClass interface{} Property dbInstanceClass: The class of the DB instance.
EngineVersion interface{} Property engineVersion: The database version.
VpcId interface{} Property vpcId: VPC id.
VSwitchId interface{} Property vSwitchId: Switch ID.
ZoneId interface{} Property zoneId: Availability Zone ID.
AccountPassword interface{} Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.
ConnectionString interface{} Property connectionString: Database connection address.
DbInstanceDescription interface{} Property dbInstanceDescription: Example Notes Information.
Engine interface{} Property engine: Database type, default value is selectdb.
Period interface{} 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 interface{} Property resourceGroupId: Resource Group ID.
SecurityIpList interface{} 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 interface{} Property usedTime: The subscription duration of the subscription instance.

CacheSizeRequired

CacheSize interface{}
  • Type: interface{}

Property cacheSize: Reserve cache size.


ChargeTypeRequired

ChargeType interface{}
  • Type: interface{}

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


DbInstanceClassRequired

DbInstanceClass interface{}
  • Type: interface{}

Property dbInstanceClass: The class of the DB instance.

Call DescribeAllDBInstanceClass API to check the latest class list


EngineVersionRequired

EngineVersion interface{}
  • Type: interface{}

Property engineVersion: The database version.

The default value is 4.1. Valid values:

  • 4.0
  • 4.1

VpcIdRequired

VpcId interface{}
  • Type: interface{}

Property vpcId: VPC id.


VSwitchIdRequired

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: Switch ID.


ZoneIdRequired

ZoneId interface{}
  • Type: interface{}

Property zoneId: Availability Zone ID.


AccountPasswordOptional

AccountPassword interface{}
  • Type: interface{}

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


ConnectionStringOptional

ConnectionString interface{}
  • Type: interface{}

Property connectionString: Database connection address.


DbInstanceDescriptionOptional

DbInstanceDescription interface{}
  • Type: interface{}

Property dbInstanceDescription: Example Notes Information.


EngineOptional

Engine interface{}
  • Type: interface{}

Property engine: Database type, default value is selectdb.


PeriodOptional

Period interface{}
  • Type: interface{}

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

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource Group ID.


SecurityIpListOptional

SecurityIpList interface{}
  • Type: interface{}

Property securityIpList: The default IP whitelist of the instance.


TagsOptional

Tags *[]TagsProperty

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

You can define a maximum of 20 tags.


UsedTimeOptional

UsedTime interface{}
  • Type: interface{}

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.