InstanceClassesProps
Properties for defining a InstanceClasses
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-redis-instanceclasses
Initializer
from ros_cdk_redis import datasource
datasource.InstanceClassesProps(
accept_language: typing.Union[str, IResolvable] = None,
engine: typing.Union[str, IResolvable] = None,
instance_charge_type: typing.Union[str, IResolvable] = None,
instance_id: typing.Union[str, IResolvable] = None,
node_id: typing.Union[str, IResolvable] = None,
order_type: typing.Union[str, IResolvable] = None,
product_type: typing.Union[str, IResolvable] = None,
refresh_options: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
zone_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
accept_language |
typing.Union[str, ros_cdk_core.IResolvable] |
Property acceptLanguage: The language of the return values. |
engine |
typing.Union[str, ros_cdk_core.IResolvable] |
Property engine: The engine type. |
instance_charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceChargeType: The billing method. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: The ID of the resource group. |
node_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property nodeId: The ID of the data node for which you want to query available instance types. |
order_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property orderType: The order type. |
product_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property productType: The edition or series of instances. |
refresh_options |
typing.Union[str, ros_cdk_core.IResolvable] |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the instance. |
zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property zoneId: The ID of the zone where PolarDB resources that you want to query reside. |
accept_language
Optional
accept_language: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acceptLanguage: The language of the return values.
Valid values: zh-CN: Chinese. This is the default value. en-US: English.
engine
Optional
engine: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property engine: The engine type.
Valid values: Redis Memcache
instance_charge_type
Optional
instance_charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceChargeType: The billing method.
Valid values: PrePaid: subscription PostPaid: pay-as-you-go Note Default value: PrePaid.
instance_id
Optional
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: The ID of the resource group.
You can call the ListResourceGroups operation to query the IDs of resource groups. Note You can also query the IDs of resource groups in the Resource Management console. For more information, see View basic information about a resource group.
node_id
Optional
node_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property nodeId: The ID of the data node for which you want to query available instance types.
You can call the DescribeLogicInstanceTopology operation to query the ID of the data node. Remove the number sign (#) and the content that follows the number sign. For example, retain only r-bp10noxlhcoim2****-db-0. Note Before you set this parameter, you must set the InstanceId parameter to the ID of an instance in the cluster or read/write splitting architecture.
order_type
Optional
order_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property orderType: The order type.
Valid values: BUY: the orders that are used to purchase instances. UPGRADE: the orders that are used to upgrade instances. DOWNGRADE: the orders that are used to downgrade instances.
product_type
Optional
product_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property productType: The edition or series of instances.
Valid values: Local: ApsaraDB for Redis Community Edition instances or performance-enhanced instances of ApsaraDB for Redis Enhanced Edition (Tair) Tair_scm: persistent memory-optimized instances Tair_essd: storage-optimized instances
refresh_options
Optional
refresh_options: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
resource_group_id
Optional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the instance.
Note This parameter is required only if the OrderType parameter is set to UPGRADE or RENEW.
zone_id
Optional
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneId: The ID of the zone where PolarDB resources that you want to query reside.
Note You can call the DescribeRegions operation to query information about zones.