Skip to content

Commit 752a039

Browse files
authored
feat: Adds globalClusterSelfManagedSharding to cluster (#300)
1 parent deec100 commit 752a039

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

API.md

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/l1-resources/cluster/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ export interface CfnClusterProps {
5555
*/
5656
readonly encryptionAtRestProvider?: CfnClusterPropsEncryptionAtRestProvider;
5757

58+
/**
59+
* (Optional) Flag that indicates if cluster uses Atlas-Managed Sharding (false, default) or Self-Managed Sharding (true). It can only be enabled for Global Clusters (`GEOSHARDED`). It cannot be changed once the cluster is created. Use this mode if you're an advanced user and the default configuration is too restrictive for your workload. If you select this option, you must manually configure the sharding strategy, more info [here](https://www.mongodb.com/docs/atlas/tutorial/create-global-cluster/#select-your-sharding-configuration).
60+
*
61+
* @schema CfnClusterProps#GlobalClusterSelfManagedSharding
62+
*/
63+
readonly globalClusterSelfManagedSharding?: boolean;
64+
5865
/**
5966
* Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used
6067
*
@@ -158,6 +165,7 @@ export function toJson_CfnClusterProps(
158165
ConnectionStrings: toJson_ConnectionStrings(obj.connectionStrings),
159166
DiskSizeGB: obj.diskSizeGb,
160167
EncryptionAtRestProvider: obj.encryptionAtRestProvider,
168+
GlobalClusterSelfManagedSharding: obj.globalClusterSelfManagedSharding,
161169
Profile: obj.profile,
162170
ProjectId: obj.projectId,
163171
Labels: obj.labels?.map((y) => toJson_CfnClusterPropsLabels(y)),

0 commit comments

Comments
 (0)