Skip to content

DBProxyProps

Properties for defining a DBProxy.

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

Initializer

import com.aliyun.ros.cdk.rds.DBProxyProps;
DBProxyProps.builder()
    .dbInstanceId(java.lang.String)
    .dbInstanceId(IResolvable)
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
    .vSwitchId(java.lang.String)
    .vSwitchId(IResolvable)
//  .dbProxyInstanceNum(java.lang.Number)
//  .dbProxyInstanceNum(IResolvable)
//  .dbProxyInstanceType(java.lang.String)
//  .dbProxyInstanceType(IResolvable)
//  .dbProxyNodes(IResolvable)
//  .dbProxyNodes(java.util.List<IResolvable)
//  .dbProxyNodes(DBProxyNodesProperty>)
//  .persistentConnectionStatus(java.lang.String)
//  .persistentConnectionStatus(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
    .build();

Properties

Name Type Description
dbInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbInstanceId: Instance ID of the DB.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The VPC ID to which the instance belongs.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: The virtual switch ID to which the instance belongs.
dbProxyInstanceNum java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable 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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbProxyInstanceType: Database proxy instance type, value: common: general-purpose agent exclusive: exclusive proxy (default).
dbProxyNodes com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDBProxyNodesProperty> Property dbProxyNodes: List of proxy nodes.
persistentConnectionStatus java.lang.String OR com.aliyun.ros.cdk.core.IResolvable 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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource Group ID.

dbInstanceIdRequired

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

Property dbInstanceId: Instance ID of the DB.

DescribeDBInstances can be called to get it.


vpcIdRequired

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

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


vSwitchIdRequired

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

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


dbProxyInstanceNumOptional

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

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

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

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


dbProxyNodesOptional

public java.lang.Object getDbProxyNodes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDBProxyNodesProperty>

Property dbProxyNodes: List of proxy nodes.


persistentConnectionStatusOptional

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

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

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

Property resourceGroupId: Resource Group ID.