Skip to content

ActivationProps

Properties for defining a Activation.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-activation

Initializer

import ros_cdk_ecs
ros_cdk_ecs.ActivationProps(
  description: typing.Union[str, IResolvable] = None,
  instance_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  instance_name: typing.Union[str, IResolvable] = None,
  ip_address_range: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  time_to_live_in_hours: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the activation code.
instance_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property instanceCount: The maximum number of times that you can use the activation code to register managed instances.
instance_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceName: The default instance name prefix.
ip_address_range typing.Union[str, ros_cdk_core.IResolvable] Property ipAddressRange: The IP addresses of hosts that are allowed to use the activation code.
tags typing.List[TagsProperty] Property tags: Tags to attach to instance.
time_to_live_in_hours typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property timeToLiveInHours: The validity period of the activation code.

descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the activation code.

It must be 1 to 100 characters in length.


instance_countOptional

instance_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


instance_nameOptional

instance_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 - is generated. The number of digits in the value isdetermined by that in the InstanceCount value. Example: 001. If you do not specify InstanceName, the hostname (Hostname) is used as the instance name.


ip_address_rangeOptional

ip_address_range: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


tagsOptional

tags: typing.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.


time_to_live_in_hoursOptional

time_to_live_in_hours: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.