Skip to content

DatasourceProps

Properties for defining a Datasource.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paifeaturestore-datasource

Initializer

import com.aliyun.ros.cdk.paifeaturestore.DatasourceProps;
DatasourceProps.builder()
    .datasourceName(java.lang.String)
    .datasourceName(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .type(java.lang.String)
    .type(IResolvable)
    .uri(java.lang.String)
    .uri(IResolvable)
    .workspaceId(java.lang.String)
    .workspaceId(IResolvable)
//  .config(IResolvable)
//  .config(java.util.Map<java.lang.String, java.lang.Object>)
    .build();

Properties

Name Type Description
datasourceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property datasourceName: The datasource name.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of FeatureStore instance, which can be obtained through the ListInstances interface.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: Data source type.
uri java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property uri: The resource address of the datasource.
workspaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property workspaceId: PAI workspace ID, which can be obtained through the ListWorkspaces interface.
config com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property config: Resource configuration information.

datasourceNameRequired

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

Property datasourceName: The datasource name.

Start with a letter or number and contain only letters, numbers, and underscores. The maximum length cannot exceed 63.


instanceIdRequired

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

Property instanceId: The ID of FeatureStore instance, which can be obtained through the ListInstances interface.


typeRequired

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

Property type: Data source type.

The value is as follows:

  • Hologres
  • GraphCompute
  • FeatureDB
  • MaxCompute.

uriRequired

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

Property uri: The resource address of the datasource.

The maximum length cannot exceed 64.


workspaceIdRequired

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

Property workspaceId: PAI workspace ID, which can be obtained through the ListWorkspaces interface.


configOptional

public java.lang.Object getConfig();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property config: Resource configuration information.

The string format is json.