Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import ros_cdk_hologram
ros_cdk_hologram.InstanceProps(
  endpoints: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, EndpointsProperty]]],
  instance_name: typing.Union[str, IResolvable],
  instance_type: typing.Union[str, IResolvable],
  payment_type: typing.Union[str, IResolvable],
  zone_id: typing.Union[str, IResolvable],
  auto_pay: typing.Union[bool, IResolvable] = None,
  cold_storage_size: typing.Union[typing.Union[int, float], IResolvable] = None,
  cpu: typing.Union[typing.Union[int, float], IResolvable] = None,
  duration: typing.Union[typing.Union[int, float], IResolvable] = None,
  gateway_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  initial_databases: typing.Union[str, IResolvable] = None,
  leader_instance_id: typing.Union[str, IResolvable] = None,
  pricing_cycle: typing.Union[str, IResolvable] = None,
  product_code: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  scale_type: typing.Union[str, IResolvable] = None,
  storage_size: typing.Union[typing.Union[int, float], IResolvable] = None,
  tags: typing.List[TagsProperty] = None
)

Properties

Name Type Description
endpoints typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, EndpointsProperty]]] Property endpoints: List of domain names.
instance_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceName: The name of the resource.
instance_type typing.Union[str, ros_cdk_core.IResolvable] Property instanceType: The instance type.
payment_type typing.Union[str, ros_cdk_core.IResolvable] Property paymentType: The payment type of the resource.
zone_id typing.Union[str, ros_cdk_core.IResolvable] Property zoneId: The zone Id.
auto_pay typing.Union[bool, ros_cdk_core.IResolvable] Property autoPay: Whether to pay automatically.
cold_storage_size typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property coldStorageSize: Instance low-frequency storage space.
cpu typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property cpu: Instance specifications.
duration typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property duration: The buying cycle.
gateway_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property gatewayCount: Number of gateway nodes.
initial_databases typing.Union[str, ros_cdk_core.IResolvable] Property initialDatabases: Initialize the database and split multiple database names ",".
leader_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property leaderInstanceId: The id of leader instance.
pricing_cycle typing.Union[str, ros_cdk_core.IResolvable] Property pricingCycle: Billing cycle.
product_code typing.Union[str, ros_cdk_core.IResolvable] Property productCode: product code.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
scale_type typing.Union[str, ros_cdk_core.IResolvable] Property scaleType: Change matching type.
storage_size typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property storageSize: The standard storage space of the instance.
tags typing.List[TagsProperty] Property tags: Tags of instance.

endpointsRequired

endpoints: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, EndpointsProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, EndpointsProperty]]]

Property endpoints: List of domain names.


instance_nameRequired

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

Property instanceName: The name of the resource.


instance_typeRequired

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

Property instanceType: The instance type.

Value:

  • Standard: Universal.
  • Follower: Read-only slave instance.
  • Warehouse: calculation group type.
  • Shared: Shared.

payment_typeRequired

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

Property paymentType: The payment type of the resource.


zone_idRequired

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

Property zoneId: The zone Id.


auto_payOptional

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


cold_storage_sizeOptional

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

Property coldStorageSize: Instance low-frequency storage space.

Unit: GB.

Pay-As-You-Go (PostPaid) instances ignore this parameter.


cpuOptional

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

durationOptional

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


gateway_countOptional

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

Property gatewayCount: Number of gateway nodes.


initial_databasesOptional

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

Property initialDatabases: Initialize the database and split multiple database names ",".


leader_instance_idOptional

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

Property leaderInstanceId: The id of leader instance.


pricing_cycleOptional

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

product_codeOptional

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

Property productCode: product code.


resource_group_idOptional

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

Property resourceGroupId: The ID of the resource group.


scale_typeOptional

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

storage_sizeOptional

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

Property storageSize: The standard storage space of the instance.

Unit: GB.

Pay-As-You-Go instances (PostPaid) ignore this parameter.


tagsOptional

tags: typing.List[TagsProperty]

Property tags: Tags of instance.