Skip to content

DatabaseProps

Properties for defining a Database.

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

Initializer

import com.aliyun.ros.cdk.dms.datasource.DatabaseProps;
DatabaseProps.builder()
    .host(java.lang.String)
    .host(IResolvable)
    .port(java.lang.Number)
    .port(IResolvable)
    .schemaName(java.lang.String)
    .schemaName(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .sid(java.lang.String)
//  .sid(IResolvable)
//  .tid(java.lang.Number)
//  .tid(IResolvable)
    .build();

Properties

Name Type Description
host java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property host: Database connection address.
port java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property port: Database connection port.
schemaName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property schemaName: Database schema name.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
sid java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sid: Database SID.
tid java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property tid: The tenant ID.

hostRequired

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

Property host: Database connection address.


portRequired

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

Property port: Database connection port.


schemaNameRequired

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

Property schemaName: Database schema name.


refreshOptionsOptional

public java.lang.Object getRefreshOptions();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getSid();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property sid: Database SID.


tidOptional

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

Property tid: The tenant ID.