WorkspaceResourceProps
Properties for defining a WorkspaceResource.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-workspaceresource
Initializer
import ros_cdk_pai
ros_cdk_pai.WorkspaceResourceProps(
env_type: typing.Union[str, IResolvable],
resource_type: typing.Union[str, IResolvable],
workspace_id: typing.Union[str, IResolvable],
workspace_resource_name: typing.Union[str, IResolvable],
group_name: typing.Union[str, IResolvable] = None,
is_default: typing.Union[bool, IResolvable] = None,
spec: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None
)
Properties
| Name | Type | Description |
|---|---|---|
env_type | typing.Union[str, ros_cdk_core.IResolvable] | Property envType: Environment type, possible values: - dev: Development environment. |
resource_type | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceType: The resource types. |
workspace_id | typing.Union[str, ros_cdk_core.IResolvable] | Property workspaceId: The ID of the workspace to which the workspace belongs. |
workspace_resource_name | typing.Union[str, ros_cdk_core.IResolvable] | Property workspaceResourceName: The resource name. |
group_name | typing.Union[str, ros_cdk_core.IResolvable] | Property groupName: Resource group name. |
is_default | typing.Union[bool, ros_cdk_core.IResolvable] | Property isDefault: Whether it is the default resource, each resource type has a default resource. |
spec | typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] | Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}. |
env_typeRequired
env_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property envType: Environment type, possible values: - dev: Development environment.
- prod: Production environment.
resource_typeRequired
resource_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceType: The resource types.
Valid values: MaxCompute ECS Lingjun ACS FLINK
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.
workspace_resource_nameRequired
workspace_resource_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property workspaceResourceName: The resource name.
group_nameOptional
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.
is_defaultOptional
is_default: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, 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
spec: typing.Union[IResolvable, typing.Mapping[typing.Any]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]
Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.