InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-instance
Initializer
import ros_cdk_mongodb
ros_cdk_mongodb.InstanceProps(
db_instance_class: typing.Union[str, IResolvable],
db_instance_storage: typing.Union[typing.Union[int, float], IResolvable],
account_password: typing.Union[str, IResolvable] = None,
auto_renew: typing.Union[bool, IResolvable] = None,
backup_id: typing.Union[str, IResolvable] = None,
business_info: typing.Union[str, IResolvable] = None,
charge_type: typing.Union[str, IResolvable] = None,
coupon_no: typing.Union[str, IResolvable] = None,
database_names: 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,
private_connections: typing.Union[IResolvable, PrivateConnectionsProperty] = None,
readonly_replicas: typing.Union[typing.Union[int, float], IResolvable] = None,
replication_factor: typing.Union[typing.Union[int, float], 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_group_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,
vpc_password_free: typing.Union[bool, IResolvable] = None,
v_switch_id: typing.Union[str, IResolvable] = None,
zone_id: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
db_instance_class |
typing.Union[str, ros_cdk_core.IResolvable] |
Property dbInstanceClass: MongoDB instance supported instance type, make sure it should be correct. |
db_instance_storage |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property dbInstanceStorage: Database instance storage size. |
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. |
backup_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property backupId: Specific backup set Id. |
business_info |
typing.Union[str, ros_cdk_core.IResolvable] |
Property businessInfo: The business information. |
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. |
coupon_no |
typing.Union[str, ros_cdk_core.IResolvable] |
Property couponNo: The coupon code. |
database_names |
typing.Union[str, ros_cdk_core.IResolvable] |
Property databaseNames: The name of the database. |
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. |
private_connections |
typing.Union[ros_cdk_core.IResolvable, PrivateConnectionsProperty] |
Property privateConnections: Connection configs of private connection. |
readonly_replicas |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property readonlyReplicas: Number of read-only nodes, in the range of 1-5. |
replication_factor |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property replicationFactor: The number of nodes in the replica set. |
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_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityGroupId: The ID of the ECS security group. |
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. |
vpc_password_free |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC. |
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. |
db_instance_classRequired
db_instance_class: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dbInstanceClass: MongoDB instance supported instance type, make sure it should be correct.
db_instance_storageRequired
db_instance_storage: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property dbInstanceStorage: Database instance storage size.
MongoDB is [5,3000], increased every 10 GB, Unit in GB
account_passwordOptional
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_renewOptional
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.
backup_idOptional
backup_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property backupId: Specific backup set Id.
business_infoOptional
business_info: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property businessInfo: The business information.
It is an additional parameter.
charge_typeOptional
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.
coupon_noOptional
coupon_no: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property couponNo: The coupon code.
Default value:youhuiquan_promotion_option_id_for_blank.
database_namesOptional
database_names: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property databaseNames: The name of the database.
db_instance_descriptionOptional
db_instance_description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dbInstanceDescription: Description of created database instance.
engine_versionOptional
engine_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property engineVersion: Database instance version.
hidden_zone_idOptional
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.
periodOptional
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.
private_connectionsOptional
private_connections: typing.Union[IResolvable, PrivateConnectionsProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, PrivateConnectionsProperty]
Property privateConnections: Connection configs of private connection.
readonly_replicasOptional
readonly_replicas: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property readonlyReplicas: Number of read-only nodes, in the range of 1-5.
replication_factorOptional
replication_factor: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property replicationFactor: The number of nodes in the replica set.
Allowed values: [3, 5, 7], default to 3.
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.
restore_timeOptional
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_idOptional
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_group_idOptional
security_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property securityGroupId: The ID of the ECS security group.
Each ApsaraDB for MongoDB instance can be added in up to 10 security group. You can call the ECS DescribeSecurityGroup to describe the ID of the security group in the target region.
security_ip_arrayOptional
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_idOptional
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_engineOptional
storage_engine: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.
storage_typeOptional
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.
tagsOptional
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_statusOptional
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_idOptional
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: The VPC id to create mongodb instance.
vpc_password_freeOptional
vpc_password_free: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
If set to:
- true: enables password free.
- false: disables password free.
v_switch_idOptional
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_idOptional
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.