Skip to content

InstanceV2Props

Properties for defining a InstanceV2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ots-instancev2

Initializer

import com.aliyun.ros.cdk.ots.InstanceV2Props;
InstanceV2Props.builder()
    .clusterType(java.lang.String)
    .clusterType(IResolvable)
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
//  .instanceDescription(java.lang.String)
//  .instanceDescription(IResolvable)
//  .networkSourceAcl(IResolvable)
//  .networkSourceAcl(java.util.List<java.lang.String)
//  .networkSourceAcl(IResolvable>)
//  .networkTypeAcl(IResolvable)
//  .networkTypeAcl(java.util.List<java.lang.String)
//  .networkTypeAcl(IResolvable>)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
clusterType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterType: Cluster type (i.e. instance specification). Enumeration values: SSD: High performance. HYBRID: Capacity type.
instanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: Instance name.The naming specifications for instances are as follows: Must consist of English letters, numbers or dash lines (-). The first character must be in English letters. The end character cannot be a dash (-). Insensitive case. The length is between 3 and 16 characters.
instanceDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceDescription: Example description.
networkSourceAcl com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property networkSourceAcl: The allowed-network source list.
networkTypeAcl com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property networkTypeAcl: The instance allows the network type list, which is allowed by default.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource Group ID.
tags java.util.List<TagsProperty> Property tags: The list of instance tags in the form of key\/value pairs.

clusterTypeRequired

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

Property clusterType: Cluster type (i.e. instance specification). Enumeration values: SSD: High performance. HYBRID: Capacity type.


instanceNameRequired

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

Property instanceName: Instance name.The naming specifications for instances are as follows: Must consist of English letters, numbers or dash lines (-). The first character must be in English letters. The end character cannot be a dash (-). Insensitive case. The length is between 3 and 16 characters.


instanceDescriptionOptional

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

Property instanceDescription: Example description.

The length is limited to between 3-256 characters.


networkSourceAclOptional

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

Property networkSourceAcl: The allowed-network source list.

All networks are allowed by default.


networkTypeAclOptional

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

Property networkTypeAcl: The instance allows the network type list, which is allowed by default.


resourceGroupIdOptional

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

Property resourceGroupId: Resource Group ID.


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: The list of instance tags in the form of key\/value pairs.

You can define a maximum of 20 tags for instance.