Skip to content

InstanceProps

Properties for defining a Instance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paidswapi-instance

Initializer

import com.aliyun.ros.cdk.paidswapi.InstanceProps;
InstanceProps.builder()
    .ecsSpec(java.lang.String)
    .ecsSpec(IResolvable)
    .imageUrl(java.lang.String)
    .imageUrl(IResolvable)
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
//  .accessibility(java.lang.String)
//  .accessibility(IResolvable)
//  .datasets(IResolvable)
//  .datasets(java.util.List<IResolvable)
//  .datasets(DatasetsProperty>)
//  .environmentVariables(IResolvable)
//  .environmentVariables(java.util.Map<java.lang.String, java.lang.Object>)
//  .labels(IResolvable)
//  .labels(java.util.List<IResolvable)
//  .labels(LabelsProperty>)
//  .saveImage(java.lang.Boolean)
//  .saveImage(IResolvable)
//  .userVpc(IResolvable)
//  .userVpc(UserVpcProperty)
//  .workspaceId(java.lang.String)
//  .workspaceId(IResolvable)
    .build();

Properties

Name Type Description
ecsSpec java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ecsSpec: The ECS specification of the instance.
imageUrl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageUrl: The mirror address.
instanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: The instance name.
accessibility java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property accessibility: Whether the workspace is visible to others.
datasets com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDatasetsProperty> Property datasets: A collection of datasets.
environmentVariables com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property environmentVariables: Environment variable.
labels com.aliyun.ros.cdk.core.IResolvable OR java.util.ListLabelsProperty> Property labels: User-defined labels.
saveImage java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property saveImage: Whether to close the instance after saving the environment.
userVpc com.aliyun.ros.cdk.core.IResolvable OR UserVpcProperty Property userVpc: User vpc configuration.
workspaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property workspaceId: The Id of the workspace.

ecsSpecRequired

public java.lang.Object getEcsSpec();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ecsSpec: The ECS specification of the instance.


imageUrlRequired

public java.lang.Object getImageUrl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imageUrl: The mirror address.


instanceNameRequired

public java.lang.Object getInstanceName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getAccessibility();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getDatasets();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDatasetsProperty>

Property datasets: A collection of datasets.


environmentVariablesOptional

public java.lang.Object getEnvironmentVariables();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property environmentVariables: Environment variable.


labelsOptional

public java.lang.Object getLabels();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListLabelsProperty>

Property labels: User-defined labels.


saveImageOptional

public java.lang.Object getSaveImage();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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


userVpcOptional

public java.lang.Object getUserVpc();

Property userVpc: User vpc configuration.


workspaceIdOptional

public java.lang.Object getWorkspaceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property workspaceId: The Id of the workspace.