Skip to content

WorkspaceResourceDlcProps

Properties for defining a WorkspaceResourceDlc.

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

Initializer

import ros_cdk_pai
ros_cdk_pai.WorkspaceResourceDlcProps(
  group_name: typing.Union[str, IResolvable],
  resources: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcesProperty]]],
  workspace_id: typing.Union[str, IResolvable],
  is_default: typing.Union[bool, IResolvable] = None,
  option: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
group_name typing.Union[str, ros_cdk_core.IResolvable] Property groupName: Resource group name.
resources typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ResourcesProperty]]] Property resources: Resource List.
workspace_id typing.Union[str, ros_cdk_core.IResolvable] Property workspaceId: The ID of the workspace to which the workspace belongs.
is_default typing.Union[bool, ros_cdk_core.IResolvable] Property isDefault: Indicates whether it is the default resource.
option typing.Union[str, ros_cdk_core.IResolvable] Property option: Create behavior that supports the following values: - CreateAndAttach: Create resource and bind to workspace - Attach: bind resource to workspace.

group_nameRequired

group_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property groupName: Resource group name.

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


resourcesRequired

resources: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ResourcesProperty]]]

Property resources: Resource List.


workspace_idRequired

workspace_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


is_defaultOptional

is_default: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property isDefault: Indicates whether it is the default resource.

Currently, this parameter only supports the input of true and does not support false.


optionOptional

option: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property option: Create behavior that supports the following values: - CreateAndAttach: Create resource and bind to workspace - Attach: bind resource to workspace.