ActivationProps
Properties for defining a Activation
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-activation
Initializer
import com.aliyun.ros.cdk.ecs.ActivationProps;
ActivationProps.builder()
// .description(java.lang.String)
// .description(IResolvable)
// .instanceCount(java.lang.Number)
// .instanceCount(IResolvable)
// .instanceName(java.lang.String)
// .instanceName(IResolvable)
// .ipAddressRange(java.lang.String)
// .ipAddressRange(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .timeToLiveInHours(java.lang.Number)
// .timeToLiveInHours(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of the activation code. |
instanceCount |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceCount: The maximum number of times that you can use the activation code to register managed instances. |
instanceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceName: The default instance name prefix. |
ipAddressRange |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipAddressRange: The IP addresses of hosts that are allowed to use the activation code. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
timeToLiveInHours |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property timeToLiveInHours: The validity period of the activation code. |
description
Optional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the activation code.
It must be 1 to 100 characters in length.
instanceCount
Optional
public java.lang.Object getInstanceCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property instanceCount: The maximum number of times that you can use the activation code to register managed instances.
Valid values: 1 to 1000.Default value: 10.
instanceName
Optional
public java.lang.Object getInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: The default instance name prefix.
The instance name prefix must be 2 to 50 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). If you use the activation code that is created by calling this operation (CreateActivation) to register managed instances, the instances are assigned sequential names that are prefixed by the value of this parameter. You can also specify a new instance name to replace the assigned sequential name when you register a managed instance.If you specify InstanceName when you register a managed instance, an instance name in theformat of
ipAddressRange
Optional
public java.lang.Object getIpAddressRange();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipAddressRange: The IP addresses of hosts that are allowed to use the activation code.
The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
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.
timeToLiveInHours
Optional
public java.lang.Object getTimeToLiveInHours();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property timeToLiveInHours: The validity period of the activation code.
The activation code can no longer be used to register instances after the period ends. Unit: hours. Valid values: 1 to 876576, which represents a range of time from 1 hour to 100 years.Default value: 4.