Skip to content

ShardingInstanceProps

Properties for defining a ShardingInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardinginstance

Initializer

import { ShardingInstanceProps } from '@alicloud/ros-cdk-mongodb'
const shardingInstanceProps: ShardingInstanceProps = { ... }

Properties

Name Type Description
configServer @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ConfigServerProperty[] Property configServer: The information of Configserver nodes.
mongos @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | MongosProperty[] Property mongos: The information of Mongos nodes.
replicaSet @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ReplicaSetProperty[] Property replicaSet: The information of shard nodes.
accountPassword string | @alicloud/ros-cdk-core.IResolvable Property accountPassword: The password of the root account.
autoRenew boolean | @alicloud/ros-cdk-core.IResolvable Property autoRenew: Specifies whether to enable auto-renewal for the instance.
chargeType string | @alicloud/ros-cdk-core.IResolvable Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.
dbInstanceDescription string | @alicloud/ros-cdk-core.IResolvable Property dbInstanceDescription: The name of the instance.
engineVersion string | @alicloud/ros-cdk-core.IResolvable Property engineVersion: The database version.
hiddenZoneId string | @alicloud/ros-cdk-core.IResolvable Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment.
period number | @alicloud/ros-cdk-core.IResolvable Property period: The subscription duration of the instance.
protocolType string | @alicloud/ros-cdk-core.IResolvable Property protocolType: Protocol type.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.
restoreTime string | @alicloud/ros-cdk-core.IResolvable Property restoreTime: The time to restore the cloned instance to.
secondaryZoneId string | @alicloud/ros-cdk-core.IResolvable Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment.
securityIpArray string | @alicloud/ros-cdk-core.IResolvable Property securityIpArray: Security ips to add or remove.
srcDbInstanceId string | @alicloud/ros-cdk-core.IResolvable Property srcDbInstanceId: The source instance ID.
storageEngine string | @alicloud/ros-cdk-core.IResolvable Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.
storageType string | @alicloud/ros-cdk-core.IResolvable Property storageType: The storage type of the instance.
tags TagsProperty[] Property tags: Tags to attach to instance.
tdeStatus boolean | @alicloud/ros-cdk-core.IResolvable Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE).
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: The VPC id to create mongodb instance.
vSwitchId string | @alicloud/ros-cdk-core.IResolvable Property vSwitchId: The vSwitch Id to create mongodb instance.
zoneId string | @alicloud/ros-cdk-core.IResolvable Property zoneId: On which zone to create the instance.

configServerRequired

public readonly configServer: IResolvable | IResolvable | ConfigServerProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ConfigServerProperty[]

Property configServer: The information of Configserver nodes.


mongosRequired

public readonly mongos: IResolvable | IResolvable | MongosProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | MongosProperty[]

Property mongos: The information of Mongos nodes.


replicaSetRequired

public readonly replicaSet: IResolvable | IResolvable | ReplicaSetProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ReplicaSetProperty[]

Property replicaSet: The information of shard nodes.


accountPasswordOptional

public readonly accountPassword: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly autoRenew: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

public readonly chargeType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.


dbInstanceDescriptionOptional

public readonly dbInstanceDescription: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly engineVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly hiddenZoneId: string | IResolvable;
  • Type: string | @alicloud/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

public readonly period: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly protocolType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property protocolType: Protocol type.

Valid value: mongodb or dynamodb.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group.


restoreTimeOptional

public readonly restoreTime: string | IResolvable;
  • Type: string | @alicloud/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.


secondaryZoneIdOptional

public readonly secondaryZoneId: string | IResolvable;
  • Type: string | @alicloud/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.


securityIpArrayOptional

public readonly securityIpArray: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property securityIpArray: Security ips to add or remove.

Update to this property will cover the current security ips.


srcDbInstanceIdOptional

public readonly srcDbInstanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly storageEngine: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.


storageTypeOptional

public readonly storageType: string | IResolvable;
  • Type: string | @alicloud/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

public readonly tags: 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

public readonly tdeStatus: boolean | IResolvable;
  • Type: boolean | @alicloud/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.


vpcIdOptional

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: The VPC id to create mongodb instance.


vSwitchIdOptional

public readonly vSwitchId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vSwitchId: The vSwitch Id to create mongodb instance.


zoneIdOptional

public readonly zoneId: string | IResolvable;
  • Type: string | @alicloud/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.