DatabaseProps
Properties for defining a Database.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-dms-database
Initializer
from ros_cdk_dms import datasource
datasource.DatabaseProps(
host: typing.Union[str, IResolvable],
port: typing.Union[typing.Union[int, float], IResolvable],
schema_name: typing.Union[str, IResolvable],
refresh_options: typing.Union[str, IResolvable] = None,
sid: typing.Union[str, IResolvable] = None,
tid: typing.Union[typing.Union[int, float], IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
host | typing.Union[str, ros_cdk_core.IResolvable] | Property host: Database connection address. |
port | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property port: Database connection port. |
schema_name | typing.Union[str, ros_cdk_core.IResolvable] | Property schemaName: Database schema name. |
refresh_options | typing.Union[str, ros_cdk_core.IResolvable] | Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
sid | typing.Union[str, ros_cdk_core.IResolvable] | Property sid: Database SID. |
tid | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property tid: The tenant ID. |
hostRequired
host: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property host: Database connection address.
portRequired
port: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property port: Database connection port.
schema_nameRequired
schema_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property schemaName: Database schema name.
refresh_optionsOptional
refresh_options: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
sidOptional
sid: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property sid: Database SID.
tidOptional
tid: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property tid: The tenant ID.