Skip to content

DBProxyProps

Properties for defining a DBProxy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rds-dbproxy

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
&alicloudroscdkrds.DBProxyProps {
    DbInstanceId: interface{},
    VpcId: interface{},
    VSwitchId: interface{},
    DbProxyInstanceNum: interface{},
    DbProxyInstanceType: interface{},
    DbProxyNodes: interface{},
    PersistentConnectionStatus: interface{},
    ResourceGroupId: interface{},
}

Properties

Name Type Description
DbInstanceId interface{} Property dbInstanceId: Instance ID of the DB.
VpcId interface{} Property vpcId: The VPC ID to which the instance belongs.
VSwitchId interface{} Property vSwitchId: The virtual switch ID to which the instance belongs.
DbProxyInstanceNum interface{} Property dbProxyInstanceNum: The number of activated proxy instances, the value is: 1~16.Default value: 1. Description More proxy instances can handle more requests, you can understand the load of proxy instances based on the monitoring data, and then set a reasonable number of proxy instances.
DbProxyInstanceType interface{} Property dbProxyInstanceType: Database proxy instance type, value: common: general-purpose agent exclusive: exclusive proxy (default).
DbProxyNodes interface{} Property dbProxyNodes: List of proxy nodes.
PersistentConnectionStatus interface{} Property persistentConnectionStatus: Whether to enable connection hold.Value: Enabled: Turn on connection hold Disabled: Close connection hold illustrate Only RDS MySQL supports this parameter. When modifying the connection remains, the ConfigDBProxyService value is Modify.
ResourceGroupId interface{} Property resourceGroupId: Resource Group ID.

DbInstanceIdRequired

DbInstanceId interface{}
  • Type: interface{}

Property dbInstanceId: Instance ID of the DB.

DescribeDBInstances can be called to get it.


VpcIdRequired

VpcId interface{}
  • Type: interface{}

Property vpcId: The VPC ID to which the instance belongs.


VSwitchIdRequired

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The virtual switch ID to which the instance belongs.


DbProxyInstanceNumOptional

DbProxyInstanceNum interface{}
  • Type: interface{}

Property dbProxyInstanceNum: The number of activated proxy instances, the value is: 1~16.Default value: 1. Description More proxy instances can handle more requests, you can understand the load of proxy instances based on the monitoring data, and then set a reasonable number of proxy instances.


DbProxyInstanceTypeOptional

DbProxyInstanceType interface{}
  • Type: interface{}

Property dbProxyInstanceType: Database proxy instance type, value: common: general-purpose agent exclusive: exclusive proxy (default).


DbProxyNodesOptional

DbProxyNodes interface{}
  • Type: interface{}

Property dbProxyNodes: List of proxy nodes.


PersistentConnectionStatusOptional

PersistentConnectionStatus interface{}
  • Type: interface{}

Property persistentConnectionStatus: Whether to enable connection hold.Value: Enabled: Turn on connection hold Disabled: Close connection hold illustrate Only RDS MySQL supports this parameter. When modifying the connection remains, the ConfigDBProxyService value is Modify.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource Group ID.