Skip to content

InstanceProps

Properties for defining a Instance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-swas-instance

Initializer

import ros_cdk_swas
ros_cdk_swas.InstanceProps(
  image_id: typing.Union[str, IResolvable],
  period: typing.Union[typing.Union[int, float], IResolvable],
  plan_id: typing.Union[str, IResolvable],
  auto_renew: typing.Union[bool, IResolvable] = None,
  auto_renew_period: typing.Union[typing.Union[int, float], IResolvable] = None,
  data_disk_size: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
image_id typing.Union[str, ros_cdk_core.IResolvable] Property imageId: The image ID.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: The subscription period of the servers.
plan_id typing.Union[str, ros_cdk_core.IResolvable] Property planId: The plan ID.
auto_renew typing.Union[bool, ros_cdk_core.IResolvable] Property autoRenew: Specifies whether to enable auto-renewal.
auto_renew_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property autoRenewPeriod: The auto-renewal period.
data_disk_size typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property dataDiskSize: The size of the data disk that is attached to the server.

image_idRequired

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

Property imageId: The image ID.

You can call the ListImages operation to query the available images in the specified region.


periodRequired

period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property period: The subscription period of the servers.

Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.


plan_idRequired

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

Property planId: The plan ID.

You can call the ListPlans operation to query all plans provided by Simple Application Server in the specified region.


auto_renewOptional

auto_renew: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property autoRenew: Specifies whether to enable auto-renewal.

Valid values: true false Default value: false.


auto_renew_periodOptional

auto_renew_period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property autoRenewPeriod: The auto-renewal period.

This parameter is required only when you set AutoRenew to true. Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.


data_disk_sizeOptional

data_disk_size: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property dataDiskSize: The size of the data disk that is attached to the server.

Unit: GB. Valid values: 0 to 16380. The value must be an integral multiple of 20. A value of 0 indicates that no data disk is attached. If the disk included in the specified plan is a standard SSD, the data disk must be 20 GB or larger in size. Default value: 0.