Skip to content

WorkspaceResourceProps

Properties for defining a WorkspaceResource.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-workspaceresource

Initializer

import com.aliyun.ros.cdk.pai.WorkspaceResourceProps;
WorkspaceResourceProps.builder()
    .envType(java.lang.String)
    .envType(IResolvable)
    .resourceType(java.lang.String)
    .resourceType(IResolvable)
    .workspaceId(java.lang.String)
    .workspaceId(IResolvable)
    .workspaceResourceName(java.lang.String)
    .workspaceResourceName(IResolvable)
//  .groupName(java.lang.String)
//  .groupName(IResolvable)
//  .isDefault(java.lang.Boolean)
//  .isDefault(IResolvable)
//  .spec(IResolvable)
//  .spec(java.util.Map<java.lang.String, java.lang.Object>)
    .build();

Properties

Name Type Description
envType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property envType: Environment type, possible values: - dev: Development environment.
resourceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceType: The resource types.
workspaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property workspaceId: The ID of the workspace to which the workspace belongs.
workspaceResourceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property workspaceResourceName: The resource name.
groupName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property groupName: Resource group name.
isDefault java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property isDefault: Whether it is the default resource, each resource type has a default resource.
spec com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.

envTypeRequired

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

Property envType: Environment type, possible values: - dev: Development environment.

  • prod: Production environment.

resourceTypeRequired

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

Property resourceType: The resource types.

Valid values: MaxCompute ECS Lingjun ACS FLINK


workspaceIdRequired

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

Property workspaceId: The ID of the workspace to which the workspace belongs.


workspaceResourceNameRequired

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

Property workspaceResourceName: The resource name.


groupNameOptional

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

Property groupName: Resource group name.

If you want to obtain a resource group name, see ListResources.


isDefaultOptional

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

Property isDefault: Whether it is the default resource, each resource type has a default resource.

Possible values:

  • true: is the default resource.
  • false: Not the default resource.

specOptional

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

Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.