ShardingInstanceProps
Properties for defining a ShardingInstance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardinginstance
Initializer
import ros_cdk_mongodb
ros_cdk_mongodb.ShardingInstanceProps(
config_server: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigServerProperty]]],
mongos: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, MongosProperty]]],
replica_set: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ReplicaSetProperty]]],
account_password: typing.Union[str, IResolvable] = None,
auto_renew: typing.Union[bool, IResolvable] = None,
charge_type: typing.Union[str, IResolvable] = None,
db_instance_description: typing.Union[str, IResolvable] = None,
engine_version: typing.Union[str, IResolvable] = None,
hidden_zone_id: typing.Union[str, IResolvable] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
protocol_type: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
restore_time: typing.Union[str, IResolvable] = None,
secondary_zone_id: typing.Union[str, IResolvable] = None,
security_ip_array: typing.Union[str, IResolvable] = None,
src_db_instance_id: typing.Union[str, IResolvable] = None,
storage_engine: typing.Union[str, IResolvable] = None,
storage_type: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
tde_status: typing.Union[bool, IResolvable] = None,
vpc_id: typing.Union[str, IResolvable] = None,
v_switch_id: typing.Union[str, IResolvable] = None,
zone_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
config_server |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ConfigServerProperty]]] |
Property configServer:. |
mongos |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, MongosProperty]]] |
Property mongos:. |
replica_set |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ReplicaSetProperty]]] |
Property replicaSet:. |
account_password |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountPassword: Root account password, can contain the letters, numbers or underscores the composition, length of 6~32 bit. |
auto_renew |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property autoRenew: Indicates whether automatic renewal is enabled for the instance. |
charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid. |
db_instance_description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property dbInstanceDescription: Description of created database instance. |
engine_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property engineVersion: Database instance version. |
hidden_zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment. |
period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property period: The subscription period of the instance.Default Unit: Month.Valid values: [1~9], 12, 24, 36. Default to 1. |
protocol_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property protocolType: Protocol type. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the resource group. |
restore_time |
typing.Union[str, ros_cdk_core.IResolvable] |
Property restoreTime: The time to restore the cloned instance to. |
secondary_zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment. |
security_ip_array |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityIpArray: Security ips to add or remove. |
src_db_instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property srcDbInstanceId: Create an instance of the backup set based on an instance. |
storage_engine |
typing.Union[str, ros_cdk_core.IResolvable] |
Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB. |
storage_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property storageType: The storage type of the instance. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
tde_status |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE). |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: The VPC id to create mongodb instance. |
v_switch_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vSwitchId: The vSwitch Id to create mongodb instance. |
zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property zoneId: On which zone to create the instance. |
config_server
Required
config_server: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigServerProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ConfigServerProperty]]]
Property configServer:.
mongos
Required
mongos: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, MongosProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, MongosProperty]]]
Property mongos:.
replica_set
Required
replica_set: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ReplicaSetProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ReplicaSetProperty]]]
Property replicaSet:.
account_password
Optional
account_password: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property accountPassword: Root account password, can contain the letters, numbers or underscores the composition, length of 6~32 bit.
auto_renew
Optional
auto_renew: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoRenew: Indicates whether automatic renewal is enabled for the instance.
Valid values:true: Automatic renewal is enabled.false: Automatic renewal is not enabled. You must renew the instance manually.Default value: false.
charge_type
Optional
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.
db_instance_description
Optional
db_instance_description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dbInstanceDescription: Description of created database instance.
engine_version
Optional
engine_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property engineVersion: Database instance version.
hidden_zone_id
Optional
hidden_zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment.
When the value of the EngineVersion is 4.4 and later, this parameter is available and required. The value of this parameter cannot be the same as that of ZoneId and SecondaryZoneId.
period
Optional
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 instance.Default Unit: Month.Valid values: [1~9], 12, 24, 36. Default to 1.
protocol_type
Optional
protocol_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property protocolType: Protocol type.
Valid value: mongodb or dynamodb.
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 resource group.
restore_time
Optional
restore_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property restoreTime: The time to restore the cloned instance to.
The format is yyyy-MM-ddTHH:mm:ssZ.This parameter can only be specified when this operation is called to clone instances.You must also specify theSrcDBInstanceIdparameter and theBackupIdparameter.You can clone instances to any restore time in the past seven days.
secondary_zone_id
Optional
secondary_zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment.
When the value of the EngineVersion is 4.4 and later, this parameter is available and required.The value of this parameter cannot be the same as that of ZoneId and HiddenZoneId.
security_ip_array
Optional
security_ip_array: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property securityIpArray: Security ips to add or remove.
src_db_instance_id
Optional
src_db_instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property srcDbInstanceId: Create an instance of the backup set based on an instance.
storage_engine
Optional
storage_engine: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.
storage_type
Optional
storage_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property storageType: The storage type of the instance.
Instances of MongoDB 4.4 and later only support cloud disks. cloud_essd1 is selected if you leave this parameter empty. Instances of MongoDB 4.2 and earlier support only local disks. local_ssd is selected if you leave this parameter empty.
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[TagsProperty]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
tde_status
Optional
tde_status: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE).
Valid values: true: enable TDE false: disable TDE (default) Note: You cannot disable TDE after it is enabled.
vpc_id
Optional
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: The VPC id to create mongodb instance.
v_switch_id
Optional
v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vSwitchId: The vSwitch Id to create mongodb instance.
zone_id
Optional
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneId: On which zone to create the instance.
If VpcId and VSwitchId is specified, ZoneId is required and VSwitch should be in same zone.