Skip to content

ScriptExecutionProps

Properties for defining a ScriptExecution.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dms-scriptexecution

Initializer

import ros_cdk_dms
ros_cdk_dms.ScriptExecutionProps(
  db_id: typing.Union[typing.Union[int, float], IResolvable],
  logic: typing.Union[bool, IResolvable],
  script: typing.Union[str, IResolvable],
  tid: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
db_id typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property dbId: The database ID.
logic typing.Union[bool, ros_cdk_core.IResolvable] Property logic: Whether it is a logical database.
script typing.Union[str, ros_cdk_core.IResolvable] Property script: The specific SQL script to execute.
tid typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property tid: The tenant ID.

db_idRequired

db_id: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property dbId: The database ID.

This parameter corresponds to the DatabaseId parameter in interfaces like SearchDatabase, ListDatabases, GetDatabase, etc. You can call these interfaces to obtain the value.


logicRequired

logic: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property logic: Whether it is a logical database.


scriptRequired

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

Property script: The specific SQL script to execute.

Includes DQL, DDL, and DML. Whether DDL and DML are allowed depends on the security configuration of the instance.


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.

Obtain this from the tenant ID information displayed when hovering over the top-right corner avatar.