ShardingInstanceProps
Properties for defining a ShardingInstance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardinginstance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb"
&alicloudroscdkmongodb.ShardingInstanceProps {
ConfigServer: interface{},
Mongos: interface{},
ReplicaSet: interface{},
AccountPassword: interface{},
AutoRenew: interface{},
ChargeType: interface{},
DbInstanceDescription: interface{},
EngineVersion: interface{},
HiddenZoneId: interface{},
Period: interface{},
ProtocolType: interface{},
ResourceGroupId: interface{},
RestoreTime: interface{},
SecondaryZoneId: interface{},
SecurityIpArray: interface{},
SrcDbInstanceId: interface{},
StorageEngine: interface{},
StorageType: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkmongodb.RosShardingInstance.TagsProperty,
TdeStatus: interface{},
VpcId: interface{},
VSwitchId: interface{},
ZoneId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
ConfigServer | interface{} | Property configServer: The information of Configserver nodes. |
Mongos | interface{} | Property mongos: The information of Mongos nodes. |
ReplicaSet | interface{} | Property replicaSet: The information of shard nodes. |
AccountPassword | interface{} | Property accountPassword: The password of the root account. |
AutoRenew | interface{} | Property autoRenew: Specifies whether to enable auto-renewal for the instance. |
ChargeType | interface{} | Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid. |
DbInstanceDescription | interface{} | Property dbInstanceDescription: The name of the instance. |
EngineVersion | interface{} | Property engineVersion: The database version. |
HiddenZoneId | interface{} | Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment. |
Period | interface{} | Property period: The subscription duration of the instance. |
ProtocolType | interface{} | Property protocolType: Protocol type. |
ResourceGroupId | interface{} | Property resourceGroupId: The ID of the resource group. |
RestoreTime | interface{} | Property restoreTime: The time to restore the cloned instance to. |
SecondaryZoneId | interface{} | Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment. |
SecurityIpArray | interface{} | Property securityIpArray: Security ips to add or remove. |
SrcDbInstanceId | interface{} | Property srcDbInstanceId: The source instance ID. |
StorageEngine | interface{} | Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB. |
StorageType | interface{} | Property storageType: The storage type of the instance. |
Tags | *[]TagsProperty | Property tags: Tags to attach to instance. |
TdeStatus | interface{} | Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE). |
VpcId | interface{} | Property vpcId: The VPC id to create mongodb instance. |
VSwitchId | interface{} | Property vSwitchId: The vSwitch Id to create mongodb instance. |
ZoneId | interface{} | Property zoneId: On which zone to create the instance. |
ConfigServerRequired
ConfigServer interface{}
- Type: interface{}
Property configServer: The information of Configserver nodes.
MongosRequired
Mongos interface{}
- Type: interface{}
Property mongos: The information of Mongos nodes.
ReplicaSetRequired
ReplicaSet interface{}
- Type: interface{}
Property replicaSet: The information of shard nodes.
AccountPasswordOptional
AccountPassword interface{}
- Type: interface{}
Property accountPassword: The password of the root account.
The password must meet the following requirements:
- It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Special characters include !@#$%^&*()_+-=
- It must be 8 to 32 characters in length.
AutoRenewOptional
AutoRenew interface{}
- Type: interface{}
Property autoRenew: Specifies whether to enable auto-renewal for the instance.
Valid values:
- true: Auto-renewal is enabled.
- false: Auto-renewal is disabled. You must manually renew the instance. This is the default value.
This parameter is optional and takes effect only when you set the ChargeType parameter to PrePaid.
ChargeTypeOptional
ChargeType interface{}
- Type: interface{}
Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.
DbInstanceDescriptionOptional
DbInstanceDescription interface{}
- Type: interface{}
Property dbInstanceDescription: The name of the instance.
The name must meet the following requirements:
- It must start with a Chinese character or a letter.
- It can contain digits, Chinese characters, letters, underscores (_), periods (.), and hyphens (-).
- It must be 2 to 256 characters in length.
EngineVersionOptional
EngineVersion interface{}
- Type: interface{}
Property engineVersion: The database version.
Valid values:
- 8.0
- 7.0
- 6.0
- 5.0
- 4.4
- 4.2
- 4.0
- When you clone an instance by calling this operation, the value of this parameter must be the same as that of the source instance.
HiddenZoneIdOptional
HiddenZoneId interface{}
- Type: interface{}
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 interface{}
- Type: interface{}
Property period: The subscription duration of the instance.
Unit: month. Valid values: 1 to 9 (integer), 12, 24, 36, and 60.
This parameter is required and takes effect only when you set the ChargeType parameter to PrePaid.
ProtocolTypeOptional
ProtocolType interface{}
- Type: interface{}
Property protocolType: Protocol type.
Valid value: mongodb or dynamodb.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group.
RestoreTimeOptional
RestoreTime interface{}
- Type: interface{}
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.
SecondaryZoneIdOptional
SecondaryZoneId interface{}
- Type: interface{}
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.
SecurityIpArrayOptional
SecurityIpArray interface{}
- Type: interface{}
Property securityIpArray: Security ips to add or remove.
Update to this property will cover the current security ips.
SrcDbInstanceIdOptional
SrcDbInstanceId interface{}
- Type: interface{}
Property srcDbInstanceId: The source instance ID.
This parameter is required only when you clone an instance by calling this operation. You must also specify the RestoreTime parameter.
StorageEngineOptional
StorageEngine interface{}
- Type: interface{}
Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.
StorageTypeOptional
StorageType interface{}
- Type: interface{}
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 *[]TagsProperty
- Type: *[]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.
TdeStatusOptional
TdeStatus interface{}
- Type: interface{}
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.
VpcIdOptional
VpcId interface{}
- Type: interface{}
Property vpcId: The VPC id to create mongodb instance.
VSwitchIdOptional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The vSwitch Id to create mongodb instance.
ZoneIdOptional
ZoneId interface{}
- Type: interface{}
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.