Skip to content

DatabaseProps

Properties for defining a Database.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-dms-database

Initializer

import { datasource } from '@alicloud/ros-cdk-dms'
const databaseProps: datasource.DatabaseProps = { ... }

Properties

Name Type Description
host string | @alicloud/ros-cdk-core.IResolvable Property host: Database connection address.
port number | @alicloud/ros-cdk-core.IResolvable Property port: Database connection port.
schemaName string | @alicloud/ros-cdk-core.IResolvable Property schemaName: Database schema name.
refreshOptions string | @alicloud/ros-cdk-core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
sid string | @alicloud/ros-cdk-core.IResolvable Property sid: Database SID.
tid number | @alicloud/ros-cdk-core.IResolvable Property tid: The tenant ID.

hostRequired

public readonly host: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property host: Database connection address.


portRequired

public readonly port: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property port: Database connection port.


schemaNameRequired

public readonly schemaName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property schemaName: Database schema name.


refreshOptionsOptional

public readonly refreshOptions: string | IResolvable;
  • Type: string | @alicloud/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

public readonly sid: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property sid: Database SID.


tidOptional

public readonly tid: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property tid: The tenant ID.