ALIYUN::PaiDswApi::Instance is used to create a Data Science Workshop (DSW) 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 | Type | Required | Editable | Description | Constraint |
Datasets | List | No | Yes | The collection of the datasets. | None. |
InstanceName | String | Yes | Yes | The instance name. |
|
EnvironmentVariables | Map | No | No | The environment variables. | None. |
Accessibility | String | No | Yes | The accessibility of the workspace. | Valid values:
|
WorkspaceId | String | No | No | The workspace ID. | None. |
ImageUrl | String | Yes | Yes | The image URL. | None. |
EcsSpec | String | Yes | Yes | The Elastic Compute Service (ECS) instance type. | None. |
Labels | List | No | No | The custom tag. | None. |
SaveImage | Boolean | No | No | Specifies whether to shut down the instance after the environment is saved. | Valid values:
|
UserVpc | Map | No | No | The virtual private cloud (VPC) configurations. | None. |
Datasets syntax
"Datasets": [
{
"MountPath": String,
"DatasetId": String
}
]
Datasets properties
Property | Type | Required | Editable | Description | Constraint |
MountPath | String | No | Yes | The mount path in the container. | None. |
DatasetId | String | No | Yes | The dataset ID. | None. |
Labels syntax
"Labels": [
{
"Value": String,
"Key": String
}
]
Labels properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The label value. | The label value can be up to 128 characters in length, and cannot contain |
Key | String | No | No | The label key. | The label key must be 1 to 128 characters in length, and cannot contain |
UserVpc syntax
"UserVpc": {
"VpcId": String,
"SecurityGroupId": String
}
UserVpc properties
Property | Type | Required | Editable | Description | Constraint |
VpcId | String | No | Yes | The VPC ID. | None. |
SecurityGroupId | String | No | Yes | The ID of the security group. | None. |
Return values
Fn::GetAtt
Datasets: the collection of the datasets.
InstanceName: the instance name.
EnvironmentVariables: the environment variables.
Accessibility: the accessibility of the workspace.
InstanceId: the instance ID.
WorkspaceIds: the workspace ID.
ImageUrl: the image URL.
PaymentType: the billing method.
EcsSpec: the ECS instance type.
Labels: the custom tags of the instance.
UserVpc: the VPC configurations.
JupyterlabUrl: the Jupyterlab URL.
TerminalUrl: the terminal URL.
InstanceUrl: the instance URL.
WebIDEUrl: the Web IDE URL.