Skip to content

CenInstanceProps

Properties for defining a CenInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cen-ceninstance

Initializer

import com.aliyun.ros.cdk.cen.CenInstanceProps;
CenInstanceProps.builder()
//  .description(java.lang.String)
//  .description(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
//  .protectionLevel(java.lang.String)
//  .protectionLevel(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the instance.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property name: The name of the instance.
protectionLevel java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property protectionLevel: The level of CIDR block overlapping.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
tags java.util.List<TagsProperty> Property tags: Tags to attach to instance.

descriptionOptional

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

Property description: The description of the instance.

The name can be 2-256 characters in length. It can start with an uppercase letter, lowercase letter, or Chinese character. It can contain numbers, underscores (_), and hyphens (-), but cannot start with http:// or https://.


nameOptional

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

Property name: The name of the instance.

The name can be 2-128 characters in length. It can start with an uppercase letter, lowercase letter, or Chinese character. It can contain numbers, underscores (_), and hyphens (-), but cannot start with http:// or https://.


protectionLevelOptional

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

Property protectionLevel: The level of CIDR block overlapping.

Set the value to REDUCED. REDUCED indicates that the CIDR blocks can overlap with each other but must not be the same.


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: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.