InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hologram-instance
Initializer
import { InstanceProps } from '@alicloud/ros-cdk-hologram'
const instanceProps: InstanceProps = { ... }
Properties
Name | Type | Description |
---|---|---|
endpoints |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | EndpointsProperty[] |
Property endpoints: List of domain names. |
instanceName |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceName: The name of the resource. |
instanceType |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceType: The instance type. |
paymentType |
string | @alicloud/ros-cdk-core.IResolvable |
Property paymentType: The payment type of the resource. |
zoneId |
string | @alicloud/ros-cdk-core.IResolvable |
Property zoneId: The zone Id. |
autoPay |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property autoPay: Whether to pay automatically. |
coldStorageSize |
number | @alicloud/ros-cdk-core.IResolvable |
Property coldStorageSize: Instance low-frequency storage space. |
cpu |
number | @alicloud/ros-cdk-core.IResolvable |
Property cpu: Instance specifications. |
duration |
number | @alicloud/ros-cdk-core.IResolvable |
Property duration: The buying cycle. |
gatewayCount |
number | @alicloud/ros-cdk-core.IResolvable |
Property gatewayCount: Number of gateway nodes. |
initialDatabases |
string | @alicloud/ros-cdk-core.IResolvable |
Property initialDatabases: Initialize the database and split multiple database names ",". |
leaderInstanceId |
string | @alicloud/ros-cdk-core.IResolvable |
Property leaderInstanceId: The id of leader instance. |
pricingCycle |
string | @alicloud/ros-cdk-core.IResolvable |
Property pricingCycle: Billing cycle. |
productCode |
string | @alicloud/ros-cdk-core.IResolvable |
Property productCode: product code. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
scaleType |
string | @alicloud/ros-cdk-core.IResolvable |
Property scaleType: Change matching type. |
storageSize |
number | @alicloud/ros-cdk-core.IResolvable |
Property storageSize: The standard storage space of the instance. |
tags |
TagsProperty[] |
Property tags: Tags of instance. |
endpoints
Required
public readonly endpoints: IResolvable | IResolvable | EndpointsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | EndpointsProperty[]
Property endpoints: List of domain names.
instanceName
Required
public readonly instanceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceName: The name of the resource.
instanceType
Required
public readonly instanceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceType: The instance type.
Value: - Standard: Universal. - Follower: Read-only slave instance. - Warehouse: calculation group type. - Shared: Shared.
paymentType
Required
public readonly paymentType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property paymentType: The payment type of the resource.
zoneId
Required
public readonly zoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property zoneId: The zone Id.
autoPay
Optional
public readonly autoPay: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property autoPay: Whether to pay automatically.
The default value is true. Value: - true: automatic payment - false: only generate orders, not pay
The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
coldStorageSize
Optional
public readonly coldStorageSize: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property coldStorageSize: Instance low-frequency storage space.
Unit: GB.
Pay-As-You-Go (PostPaid) instances ignore this parameter.
cpu
Optional
public readonly cpu: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property cpu: Instance specifications.
Value: - 8 cores 32 GB (number of compute nodes: 1) - 16 cores 64 GB (number of compute nodes: 1) - 32 core 128 GB (number of compute nodes: 2) - 64 core 256 GB (number of compute nodes: 4) - 96 core 384 GB (number of computing nodes: 6) - 128 core 512 GB (number of compute nodes: 8) - Wait
- just fill in the audit number.
- Please submit a work order application for purchasing 1024 or above specifications.
- Shared instance types do not need to specify specifications. The specification of -8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
duration
Optional
public readonly duration: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property duration: The buying cycle.
Buy for 2 months.
If the Payment type is PostPaid, you do not need to specify it.
gatewayCount
Optional
public readonly gatewayCount: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property gatewayCount: Number of gateway nodes.
initialDatabases
Optional
public readonly initialDatabases: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property initialDatabases: Initialize the database and split multiple database names ",".
leaderInstanceId
Optional
public readonly leaderInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property leaderInstanceId: The id of leader instance.
pricingCycle
Optional
public readonly pricingCycle: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property pricingCycle: Billing cycle.
Value: - Month: monthly billing - Hour: hourly billing
- PrePaid only supports Month
- PostPaid only supports Hour
- The Shared type is automatically set to Hour without specifying it.
productCode
Optional
public readonly productCode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property productCode: product code.
resourceGroupId
Optional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: The ID of the resource group.
scaleType
Optional
public readonly scaleType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property scaleType: Change matching type.
Value: - UPGRADE: UPGRADE - DOWNGRADE: Downgrading
- The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification.
- The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
storageSize
Optional
public readonly storageSize: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property storageSize: The standard storage space of the instance.
Unit: GB.
Pay-As-You-Go instances (PostPaid) ignore this parameter.
tags
Optional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags: Tags of instance.