InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paidswapi-instance
Initializer
import { InstanceProps } from '@alicloud/ros-cdk-paidswapi'
const instanceProps: InstanceProps = { ... }
Properties
Name | Type | Description |
---|---|---|
ecsSpec |
string | @alicloud/ros-cdk-core.IResolvable |
Property ecsSpec: The ECS specification of the instance. |
imageUrl |
string | @alicloud/ros-cdk-core.IResolvable |
Property imageUrl: The mirror address. |
instanceName |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceName: The instance name. |
accessibility |
string | @alicloud/ros-cdk-core.IResolvable |
Property accessibility: Whether the workspace is visible to others. |
datasets |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DatasetsProperty[] |
Property datasets: A collection of datasets. |
environmentVariables |
@alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} |
Property environmentVariables: Environment variable. |
labels |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | LabelsProperty[] |
Property labels: User-defined labels. |
saveImage |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property saveImage: Whether to close the instance after saving the environment. |
userVpc |
@alicloud/ros-cdk-core.IResolvable | UserVpcProperty |
Property userVpc: User vpc configuration. |
workspaceId |
string | @alicloud/ros-cdk-core.IResolvable |
Property workspaceId: The Id of the workspace. |
ecsSpec
Required
public readonly ecsSpec: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property ecsSpec: The ECS specification of the instance.
imageUrl
Required
public readonly imageUrl: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property imageUrl: The mirror address.
instanceName
Required
public readonly instanceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceName: The instance name.
Format requirements: - Can only contain letters, numbers and underscores (_). - It cannot exceed 27 characters.
accessibility
Optional
public readonly accessibility: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accessibility: Whether the workspace is visible to others.
Valid values: - PUBLIC: Visible to all users of the workspace. - PRIVATE: Only visible to yourself and the administrator of the workspace.
datasets
Optional
public readonly datasets: IResolvable | IResolvable | DatasetsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DatasetsProperty[]
Property datasets: A collection of datasets.
environmentVariables
Optional
public readonly environmentVariables: IResolvable | {[ key: string ]: any};
- Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}
Property environmentVariables: Environment variable.
labels
Optional
public readonly labels: IResolvable | IResolvable | LabelsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | LabelsProperty[]
Property labels: User-defined labels.
saveImage
Optional
public readonly saveImage: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property saveImage: Whether to close the instance after saving the environment.
userVpc
Optional
public readonly userVpc: IResolvable | UserVpcProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | UserVpcProperty
Property userVpc: User vpc configuration.
workspaceId
Optional
public readonly workspaceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property workspaceId: The Id of the workspace.