DatasetsProps
Properties for defining a Datasets
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-pai-datasets
Initializer
import com.aliyun.ros.cdk.pai.datasource.DatasetsProps;
DatasetsProps.builder()
.workspaceId(java.lang.String)
.workspaceId(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
// .sourceId(java.lang.String)
// .sourceId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
workspaceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property workspaceId: The ID of the workspace where the dataset is located. |
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. |
sourceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceId: The data source ID. |
workspaceId
Required
public java.lang.Object getWorkspaceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property workspaceId: The ID of the workspace where the dataset is located.
If this parameter is not configured, the default workspace is used. If the default workspace does not exist, an error is reported.
refreshOptions
Optional
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.
sourceId
Optional
public java.lang.Object getSourceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceId: The data source ID.
- When the SourceType is USER, SourceId can be customized.
- When SourceType is ITAG, that is, when the iTAG module labels the data set generated by the result, SourceId is the task ID of ITAG.
- When SourceType is PAI_PUBLIC_DATASET, that is, a dataset created using PAI public datasets, SourceId is empty by default.