Skip to content

DBProxyProps

Properties for defining a DBProxy.

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

Initializer

import ros_cdk_rds
ros_cdk_rds.DBProxyProps(
  db_instance_id: typing.Union[str, IResolvable],
  vpc_id: typing.Union[str, IResolvable],
  v_switch_id: typing.Union[str, IResolvable],
  db_proxy_instance_num: typing.Union[typing.Union[int, float], IResolvable] = None,
  db_proxy_instance_type: typing.Union[str, IResolvable] = None,
  db_proxy_nodes: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DBProxyNodesProperty]]] = None,
  persistent_connection_status: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
db_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property dbInstanceId: Instance ID of the DB.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The VPC ID to which the instance belongs.
v_switch_id typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchId: The virtual switch ID to which the instance belongs.
db_proxy_instance_num typing.Union[typing.Union[int, float], 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.
db_proxy_instance_type typing.Union[str, ros_cdk_core.IResolvable] Property dbProxyInstanceType: Database proxy instance type, value: common: general-purpose agent exclusive: exclusive proxy (default).
db_proxy_nodes typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DBProxyNodesProperty]]] Property dbProxyNodes: List of proxy nodes.
persistent_connection_status typing.Union[str, 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.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: Resource Group ID.

db_instance_idRequired

db_instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dbInstanceId: Instance ID of the DB.

DescribeDBInstances can be called to get it.


vpc_idRequired

vpc_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


v_switch_idRequired

v_switch_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


db_proxy_instance_numOptional

db_proxy_instance_num: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


db_proxy_instance_typeOptional

db_proxy_instance_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


db_proxy_nodesOptional

db_proxy_nodes: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DBProxyNodesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DBProxyNodesProperty]]]

Property dbProxyNodes: List of proxy nodes.


persistent_connection_statusOptional

persistent_connection_status: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


resource_group_idOptional

resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: Resource Group ID.