WorkspaceResourceProps
Properties for defining a WorkspaceResource.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-workspaceresource
Initializer
import { WorkspaceResourceProps } from '@alicloud/ros-cdk-pai'
const workspaceResourceProps: WorkspaceResourceProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
envType | string | @alicloud/ros-cdk-core.IResolvable | Property envType: Environment type, possible values: - dev: Development environment. |
resourceType | string | @alicloud/ros-cdk-core.IResolvable | Property resourceType: The resource types. |
workspaceId | string | @alicloud/ros-cdk-core.IResolvable | Property workspaceId: The ID of the workspace to which the workspace belongs. |
workspaceResourceName | string | @alicloud/ros-cdk-core.IResolvable | Property workspaceResourceName: The resource name. |
groupName | string | @alicloud/ros-cdk-core.IResolvable | Property groupName: Resource group name. |
isDefault | boolean | @alicloud/ros-cdk-core.IResolvable | Property isDefault: Whether it is the default resource, each resource type has a default resource. |
spec | @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} | Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}. |
envTypeRequired
public readonly envType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property envType: Environment type, possible values: - dev: Development environment.
prod: Production environment.
resourceTypeRequired
public readonly resourceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceType: The resource types.
Valid values: MaxCompute ECS Lingjun ACS FLINK
workspaceIdRequired
public readonly workspaceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property workspaceId: The ID of the workspace to which the workspace belongs.
workspaceResourceNameRequired
public readonly workspaceResourceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property workspaceResourceName: The resource name.
groupNameOptional
public readonly groupName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property groupName: Resource group name.
If you want to obtain a resource group name, see ListResources.
isDefaultOptional
public readonly isDefault: boolean | IResolvable;
- Type: boolean | @alicloud/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 readonly spec: IResolvable | {[ key: string ]: any};
- Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}
Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.