InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-swas-instance
Initializer
import { InstanceProps } from '@alicloud/ros-cdk-swas'
const instanceProps: InstanceProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
imageId | string | @alicloud/ros-cdk-core.IResolvable | Property imageId: The image ID. |
period | number | @alicloud/ros-cdk-core.IResolvable | Property period: The subscription period of the servers. |
planId | string | @alicloud/ros-cdk-core.IResolvable | Property planId: The plan ID. |
autoRenew | boolean | @alicloud/ros-cdk-core.IResolvable | Property autoRenew: Specifies whether to enable auto-renewal. |
autoRenewPeriod | number | @alicloud/ros-cdk-core.IResolvable | Property autoRenewPeriod: The auto-renewal period. |
dataDiskSize | number | @alicloud/ros-cdk-core.IResolvable | Property dataDiskSize: The size of the data disk that is attached to the server. |
tags | TagsProperty[] | Property tags: Tags to attach to swas. |
imageIdRequired
public readonly imageId: string | IResolvable;
- Type: string | @alicloud/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
public readonly period: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property period: The subscription period of the servers.
Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.
planIdRequired
public readonly planId: string | IResolvable;
- Type: string | @alicloud/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.
autoRenewOptional
public readonly autoRenew: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property autoRenew: Specifies whether to enable auto-renewal.
Valid values: true false Default value: false.
autoRenewPeriodOptional
public readonly autoRenewPeriod: number | IResolvable;
- Type: number | @alicloud/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.
dataDiskSizeOptional
public readonly dataDiskSize: number | IResolvable;
- Type: number | @alicloud/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.
tagsOptional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags: Tags to attach to swas.
Max support 20 tags to add during create swas. Each tag with two properties Key and Value, and Key is required.