Creates a PAI-DSW (Data Science Workshop) instance.
Syntax
{
"Type": "ALIYUN::PaiDswApi::Instance",
"Properties": {
"Datasets": List,
"InstanceName": String,
"EnvironmentVariables": Map,
"Accessibility": String,
"WorkspaceId": String,
"ImageUrl": String,
"EcsSpec": String,
"Labels": List,
"SaveImage": Boolean,
"UserVpc": Map
}
}Properties
Property Name | Type | Required | Update allowed | Description | Constraints |
Datasets | List | No | Yes | Datasets to mount on the instance. | None |
InstanceName | String | Yes | Yes | The name of the instance. | Format:
|
EnvironmentVariables | Map | No | No | The environment variables. | None |
Accessibility | String | No | Yes | Whether the instance is visible to other workspace users. | Valid values:
|
WorkspaceId | String | No | No | The ID of the workspace. | Obtain the workspace ID from List workspaces. |
ImageUrl | String | Yes | Yes | The container image URL. | Obtain the image URL from List images. |
EcsSpec | String | Yes | Yes | The ECS instance type. | Obtain available types from List ECS instance types. |
Labels | List | No | No | The custom tags. | None |
SaveImage | Boolean | No | No | Whether to shut down the instance after saving the environment. | Valid values:
|
UserVpc | Map | No | No | The VPC configuration. | None |
Datasets syntax
"Datasets": [
{
"MountPath": String,
"DatasetId": String
}
]Datasets properties
Property Name | Type | Required | Update allowed | Description | Constraints |
MountPath | String | No | Yes | The mount path in the container. | None |
DatasetId | String | No | Yes | The ID of the dataset. | Obtain the dataset ID from List datasets. |
Labels syntax
"Labels": [
{
"Value": String,
"Key": String
}
]Labels properties
Property Name | Type | Required | Update allowed | Description | Constraints |
Value | String | No | No | The tag value. | 0–128 characters. Cannot start with |
Key | String | No | No | The tag key. | 1–128 characters. Cannot start with |
UserVpc syntax
"UserVpc": {
"VpcId": String,
"SecurityGroupId": String
}UserVpc properties
Property Name | Type | Required | Update allowed | Description | Constraints |
VpcId | String | No | Yes | The VPC ID. | None |
SecurityGroupId | String | No | Yes | The security group ID. | None |
Return values
Fn::GetAtt
Datasets: The mounted datasets.
InstanceName: The name of the instance.
EnvironmentVariables: The environment variables.
Accessibility: Instance visibility to other workspace users.
InstanceId: The ID of the instance.
WorkspaceId: The ID of the workspace.
ImageUrl: The container image URL.
PaymentType: The billing method.
EcsSpec: The ECS instance type.
Labels: The custom tags.
UserVpc: The VPC configuration.
JupyterlabUrl: The JupyterLab URL.
TerminalUrl: The terminal URL.
InstanceUrl: The instance URL.
WebIDEUrl: The Web IDE URL.