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.List |
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.List |
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. |
ecsSpec
Required
public java.lang.Object getEcsSpec();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ecsSpec: The ECS specification of the instance.
imageUrl
Required
public java.lang.Object getImageUrl();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageUrl: The mirror address.
instanceName
Required
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.
accessibility
Optional
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.
datasets
Optional
public java.lang.Object getDatasets();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DatasetsProperty>
Property datasets: A collection of datasets.
environmentVariables
Optional
public java.lang.Object getEnvironmentVariables();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property environmentVariables: Environment variable.
labels
Optional
public java.lang.Object getLabels();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
LabelsProperty>
Property labels: User-defined labels.
saveImage
Optional
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.
userVpc
Optional
public java.lang.Object getUserVpc();
- Type: com.aliyun.ros.cdk.core.IResolvable OR UserVpcProperty
Property userVpc: User vpc configuration.
workspaceId
Optional
public java.lang.Object getWorkspaceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property workspaceId: The Id of the workspace.