Skip to content

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.

ecsSpecRequired

public readonly ecsSpec: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ecsSpec: The ECS specification of the instance.


imageUrlRequired

public readonly imageUrl: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageUrl: The mirror address.


instanceNameRequired

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.


accessibilityOptional

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.


datasetsOptional

public readonly datasets: IResolvable | IResolvable | DatasetsProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DatasetsProperty[]

Property datasets: A collection of datasets.


environmentVariablesOptional

public readonly environmentVariables: IResolvable | {[ key: string ]: any};
  • Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}

Property environmentVariables: Environment variable.


labelsOptional

public readonly labels: IResolvable | IResolvable | LabelsProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | LabelsProperty[]

Property labels: User-defined labels.


saveImageOptional

public readonly saveImage: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property saveImage: Whether to close the instance after saving the environment.


userVpcOptional

public readonly userVpc: IResolvable | UserVpcProperty;

Property userVpc: User vpc configuration.


workspaceIdOptional

public readonly workspaceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property workspaceId: The Id of the workspace.