@pulumi/mongodbatlas 4.17.0-alpha.1790576414 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/advancedCluster.d.ts +71 -10
- package/advancedCluster.d.ts.map +1 -1
- package/advancedCluster.js +43 -4
- package/advancedCluster.js.map +1 -1
- package/clusterAdaptiveSettings.d.ts +117 -0
- package/clusterAdaptiveSettings.d.ts.map +1 -0
- package/clusterAdaptiveSettings.js +120 -0
- package/clusterAdaptiveSettings.js.map +1 -0
- package/clusterOverloadSimulation.d.ts +181 -0
- package/clusterOverloadSimulation.d.ts.map +1 -0
- package/clusterOverloadSimulation.js +150 -0
- package/clusterOverloadSimulation.js.map +1 -0
- package/databaseUser.d.ts +1 -1
- package/databaseUser.js +1 -1
- package/getAdvancedCluster.d.ts +8 -0
- package/getAdvancedCluster.d.ts.map +1 -1
- package/getAdvancedCluster.js.map +1 -1
- package/getClusterAdaptiveSettings.d.ts +103 -0
- package/getClusterAdaptiveSettings.d.ts.map +1 -0
- package/getClusterAdaptiveSettings.js +99 -0
- package/getClusterAdaptiveSettings.js.map +1 -0
- package/getClusterOverloadSimulation.d.ts +153 -0
- package/getClusterOverloadSimulation.d.ts.map +1 -0
- package/getClusterOverloadSimulation.js +127 -0
- package/getClusterOverloadSimulation.js.map +1 -0
- package/getDatabaseUser.d.ts +2 -2
- package/getDatabaseUser.js +2 -2
- package/getDatabaseUsers.d.ts +2 -2
- package/getDatabaseUsers.js +2 -2
- package/getOrgLogIntegration.d.ts +91 -0
- package/getOrgLogIntegration.d.ts.map +1 -0
- package/getOrgLogIntegration.js +83 -0
- package/getOrgLogIntegration.js.map +1 -0
- package/getOrgLogIntegrations.d.ts +70 -0
- package/getOrgLogIntegrations.d.ts.map +1 -0
- package/getOrgLogIntegrations.js +79 -0
- package/getOrgLogIntegrations.js.map +1 -0
- package/getProjectServiceAccount.d.ts +36 -0
- package/getProjectServiceAccount.d.ts.map +1 -1
- package/getProjectServiceAccount.js +36 -0
- package/getProjectServiceAccount.js.map +1 -1
- package/getProjectServiceAccounts.d.ts +36 -0
- package/getProjectServiceAccounts.d.ts.map +1 -1
- package/getProjectServiceAccounts.js +36 -0
- package/getProjectServiceAccounts.js.map +1 -1
- package/getServiceAccount.d.ts +36 -0
- package/getServiceAccount.d.ts.map +1 -1
- package/getServiceAccount.js +36 -0
- package/getServiceAccount.js.map +1 -1
- package/getServiceAccounts.d.ts +36 -0
- package/getServiceAccounts.d.ts.map +1 -1
- package/getServiceAccounts.js +36 -0
- package/getServiceAccounts.js.map +1 -1
- package/getStreamProcessor.d.ts +2 -2
- package/getStreamProcessor.js +2 -2
- package/getStreamProcessors.d.ts +2 -2
- package/getStreamProcessors.js +2 -2
- package/index.d.ts +21 -0
- package/index.d.ts.map +1 -1
- package/index.js +36 -8
- package/index.js.map +1 -1
- package/mcpConfigSecret.d.ts +1 -1
- package/mcpConfigSecret.js +1 -1
- package/orgLogIntegration.d.ts +139 -0
- package/orgLogIntegration.d.ts.map +1 -0
- package/orgLogIntegration.js +125 -0
- package/orgLogIntegration.js.map +1 -0
- package/package.json +2 -2
- package/projectMcpConfigSecret.d.ts +1 -1
- package/projectMcpConfigSecret.js +1 -1
- package/projectServiceAccount.d.ts +44 -4
- package/projectServiceAccount.d.ts.map +1 -1
- package/projectServiceAccount.js +31 -1
- package/projectServiceAccount.js.map +1 -1
- package/serviceAccount.d.ts +44 -4
- package/serviceAccount.d.ts.map +1 -1
- package/serviceAccount.js +31 -1
- package/serviceAccount.js.map +1 -1
- package/streamConnection.d.ts +3 -3
- package/streamConnection.js +3 -3
- package/streamProcessor.d.ts +1 -1
- package/streamProcessor.js +1 -1
- package/types/input.d.ts +42 -12
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +88 -12
- package/types/output.d.ts.map +1 -1
package/advancedCluster.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters.
|
|
5
|
+
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters, including clusters that use the Atlas Infinite Database.
|
|
6
|
+
*
|
|
7
|
+
* To create an Atlas Infinite Database cluster, set the `databaseEdition` attribute to `INFINITE`. For more information, including supported features and limitations, see the [Atlas Infinite Database documentation](https://www.mongodb.com/docs/atlas/infinite/atlas-infinite-landing/). The `INFINITE` edition is currently only supported for `REPLICASET` clusters: the provider rejects the configuration if you combine `INFINITE` with the `SHARDED` or `GEOSHARDED` cluster type.
|
|
6
8
|
*
|
|
7
9
|
* We recommend all MongoDB Atlas Terraform users start with the `Official MongoDB Atlas Cluster Module`. This module simplifies cluster deployment and implements MongoDB Atlas best practices by default.
|
|
8
10
|
*
|
|
@@ -46,6 +48,37 @@ import * as outputs from "./types/output";
|
|
|
46
48
|
* });
|
|
47
49
|
* ```
|
|
48
50
|
*
|
|
51
|
+
* ### Example Atlas Infinite Database cluster with a per-shard data-size limit
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
56
|
+
*
|
|
57
|
+
* const infinite = new mongodbatlas.AdvancedCluster("infinite", {
|
|
58
|
+
* projectId: "PROJECT ID",
|
|
59
|
+
* name: "NAME OF CLUSTER",
|
|
60
|
+
* clusterType: "REPLICASET",
|
|
61
|
+
* databaseEdition: "INFINITE",
|
|
62
|
+
* replicationSpecs: [{
|
|
63
|
+
* regionConfigs: [{
|
|
64
|
+
* providerName: "AWS",
|
|
65
|
+
* priority: 7,
|
|
66
|
+
* regionName: "US_EAST_1",
|
|
67
|
+
* electableSpecs: {
|
|
68
|
+
* instanceSize: "M10",
|
|
69
|
+
* nodeCount: 2,
|
|
70
|
+
* },
|
|
71
|
+
* autoScaling: {
|
|
72
|
+
* computeEnabled: false,
|
|
73
|
+
* storageConfig: {
|
|
74
|
+
* shardSizeLimitGb: 1024,
|
|
75
|
+
* },
|
|
76
|
+
* },
|
|
77
|
+
* }],
|
|
78
|
+
* }],
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
49
82
|
* ### Example using effective fields with auto-scaling
|
|
50
83
|
*
|
|
51
84
|
* ```typescript
|
|
@@ -521,7 +554,9 @@ import * as outputs from "./types/output";
|
|
|
521
554
|
*
|
|
522
555
|
* ### How useEffectiveFields works
|
|
523
556
|
*
|
|
524
|
-
* The `useEffectiveFields` attribute changes how the provider handles specification attributes
|
|
557
|
+
* The `useEffectiveFields` attribute changes how the provider handles specification attributes. When auto-scaling is enabled, Atlas adjusts the cluster's compute and storage resources within the configured bounds (`computeMinInstanceSize` through `computeMaxInstanceSize`, disk auto-scaling limits).
|
|
558
|
+
*
|
|
559
|
+
* **When does Atlas apply requested spec values?** Atlas preserves the running spec values and ignores configured `instanceSize`, `diskSizeGb`, and `diskIops` only when auto-scaling is enabled both before and after an update. If an update toggles auto-scaling (enabling or disabling compute or disk auto-scaling), Atlas applies the requested spec values in that update, as if `useEffectiveFields` were not set. This is why the manual update workflow below works: disabling auto-scaling in the same apply allows the requested spec values to take effect.
|
|
525
560
|
*
|
|
526
561
|
* **When `useEffectiveFields = false` (default - current behavior):**
|
|
527
562
|
* - Spec attributes (`electableSpecs`, `analyticsSpecs`, `readOnlySpecs`) behavior:
|
|
@@ -544,7 +579,7 @@ import * as outputs from "./types/output";
|
|
|
544
579
|
*
|
|
545
580
|
* ### Manually Updating Specs with useEffectiveFields
|
|
546
581
|
*
|
|
547
|
-
* When `useEffectiveFields = true` and auto-scaling
|
|
582
|
+
* When `useEffectiveFields = true` and auto-scaling remains enabled, you can update `instanceSize`, `diskSizeGb`, or `diskIops` in your configuration at any time without validation errors. However, Atlas preserves the auto-scaled values and the configured values do not take effect. An update that disables auto-scaling is not subject to this preservation, so to have your configured values take effect, temporarily disable auto-scaling:
|
|
548
583
|
*
|
|
549
584
|
* 1. Set `computeEnabled = false` and `diskGbEnabled = false` in the `autoScaling` block, update `instanceSize`, `diskSizeGb`, or `diskIops` to your desired values, and apply.
|
|
550
585
|
* 2. Re-enable auto-scaling by setting `computeEnabled` and/or `diskGbEnabled` back to `true` and apply.
|
|
@@ -560,7 +595,7 @@ import * as outputs from "./types/output";
|
|
|
560
595
|
* - Raising `computeMinInstanceSize` above the effective size.
|
|
561
596
|
* - Lowering `computeMaxInstanceSize` below the effective size.
|
|
562
597
|
*
|
|
563
|
-
* Atlas validates the new range against the current effective instance size, so attempting either in a single apply fails with a validation error from Atlas. Updating `instanceSize` in the same apply as changing the range does not avoid the error, because the updated `instanceSize` value is not applied while auto-scaling
|
|
598
|
+
* Atlas validates the new range against the current effective instance size, so attempting either in a single apply fails with a validation error from Atlas. Updating `instanceSize` in the same apply as changing the range does not avoid the error, because the updated `instanceSize` value is not applied while auto-scaling remains enabled, even with `useEffectiveFields = true`.
|
|
564
599
|
*
|
|
565
600
|
* To adjust the range when the new range would exclude the current effective instance size, move the effective instance size into the new range before changing the bounds:
|
|
566
601
|
*
|
|
@@ -682,9 +717,17 @@ export declare class AdvancedCluster extends pulumi.CustomResource {
|
|
|
682
717
|
*/
|
|
683
718
|
readonly createDate: pulumi.Output<string>;
|
|
684
719
|
/**
|
|
685
|
-
*
|
|
720
|
+
* Database edition for the cluster. Valid values are `CORE` and `INFINITE`. If you omit this attribute, MongoDB Cloud selects the default database edition. Only `REPLICASET` clusters currently support the `INFINITE` edition: the provider rejects the configuration if you combine `INFINITE` with the `SHARDED` or `GEOSHARDED` cluster type.
|
|
721
|
+
*/
|
|
722
|
+
readonly databaseEdition: pulumi.Output<string | undefined>;
|
|
723
|
+
/**
|
|
724
|
+
* Indicates whether to delete the cluster if a timeout is reached while waiting for Atlas to finish creating it. When set to `true` and a timeout occurs, the provider deletes the cluster and returns immediately without waiting for deletion to complete. When set to `false`, the provider does not delete the cluster on timeout. If you suspect a transient error when the value is `true`, wait before retrying to allow the deletion to finish. Default is `true`.
|
|
686
725
|
*/
|
|
687
726
|
readonly deleteOnCreateTimeout: pulumi.Output<boolean>;
|
|
727
|
+
/**
|
|
728
|
+
* Database edition that the cluster currently uses. Valid values are `CORE` and `INFINITE`.
|
|
729
|
+
*/
|
|
730
|
+
readonly effectiveDatabaseEdition: pulumi.Output<string>;
|
|
688
731
|
/**
|
|
689
732
|
* Possible values are AWS, GCP, AZURE or NONE. Only needed if you desire to manage the keys, see [Encryption at Rest using Customer Key Management](https://www.mongodb.com/docs/atlas/security-kms-encryption/) for complete documentation. You must configure encryption at rest for the Atlas project before enabling it on any cluster in the project. For Documentation, see [AWS](https://www.mongodb.com/docs/atlas/security-aws-kms/), [GCP](https://www.mongodb.com/docs/atlas/security-kms-encryption/) and [Azure](https://www.mongodb.com/docs/atlas/security-azure-kms/#std-label-security-azure-kms). Requirements are if `replication_specs[#].region_configs[#].<type>Specs.instance_size` is M10 or greater and `backupEnabled` is false or omitted.
|
|
690
733
|
*/
|
|
@@ -702,6 +745,8 @@ export declare class AdvancedCluster extends pulumi.CustomResource {
|
|
|
702
745
|
/**
|
|
703
746
|
* Version of the cluster to deploy. Atlas supports all the MongoDB versions that have **not** reached [End of Live](https://www.mongodb.com/legal/support-policy/lifecycles) for M10+ clusters. If omitted, Atlas deploys the cluster with the default version. For more details, see [documentation](https://www.mongodb.com/docs/atlas/reference/faq/database/#which-versions-of-mongodb-do-service-clusters-use-). Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
704
747
|
*
|
|
748
|
+
* > **NOTE:** Terraform supports deploying clusters on new MongoDB major versions as soon as Atlas enables them for your project. No provider configuration changes are required.
|
|
749
|
+
*
|
|
705
750
|
* > **NOTE:** If the major version is modified outside of Terraform, the provider will emit a warning at plan time, along with an empty plan. Update this attribute in your configuration to match the current version to clear the warning. In an upcoming major version of the provider, this drift will result in a non-empty plan.
|
|
706
751
|
*/
|
|
707
752
|
readonly mongoDbMajorVersion: pulumi.Output<string>;
|
|
@@ -794,7 +839,7 @@ export declare class AdvancedCluster extends pulumi.CustomResource {
|
|
|
794
839
|
*/
|
|
795
840
|
readonly useAwsTimeBasedSnapshotCopyForFastInitialSync: pulumi.Output<boolean>;
|
|
796
841
|
/**
|
|
797
|
-
* Controls how hardware specification fields are returned in the response. When set to true
|
|
842
|
+
* Controls how hardware specification fields are returned in the response. When set to `true`, the non-effective specs (`electableSpecs`, `readOnlySpecs`, `analyticsSpecs`) fields return the hardware specifications that the client provided. When set to `false` (default), the non-effective specs fields show the **current** hardware specifications. Cluster auto-scaling is the primary cause for differences between initial and current hardware specifications. This opt-in feature enhances auto-scaling workflows by eliminating the need for `lifecycle.ignore_changes` blocks and preventing plan drift from Atlas-managed changes. The spec-preserving behavior applies only while auto-scaling remains enabled. If an update toggles auto-scaling on or off, Atlas applies the requested spec values in that update. This attribute applies to dedicated clusters, not to tenant or flex clusters. See Auto-Scaling with Effective Fields for more details.
|
|
798
843
|
* If your cluster has more than one `replicationSpecs` entry, see Multi-shard clusters and topology changes before enabling this attribute.
|
|
799
844
|
* **Important:** Toggle this flag and remove any existing `lifecycle.ignore_changes` blocks for spec fields in the same apply, without combining other changes. Toggling will result in increased plan verbosity with `(known after apply)` markers, which can be safely ignored. If you previously removed `readOnlySpecs` or `analyticsSpecs` attributes from your configuration, you'll get a validation error for safety reasons to prevent accidental node loss. To resolve: add the blocks back (to keep nodes) or with `nodeCount = 0` (to delete nodes), apply without toggling the flag, then toggle in a separate apply.
|
|
800
845
|
*/
|
|
@@ -875,9 +920,17 @@ export interface AdvancedClusterState {
|
|
|
875
920
|
*/
|
|
876
921
|
createDate?: pulumi.Input<string | undefined>;
|
|
877
922
|
/**
|
|
878
|
-
*
|
|
923
|
+
* Database edition for the cluster. Valid values are `CORE` and `INFINITE`. If you omit this attribute, MongoDB Cloud selects the default database edition. Only `REPLICASET` clusters currently support the `INFINITE` edition: the provider rejects the configuration if you combine `INFINITE` with the `SHARDED` or `GEOSHARDED` cluster type.
|
|
924
|
+
*/
|
|
925
|
+
databaseEdition?: pulumi.Input<string | undefined>;
|
|
926
|
+
/**
|
|
927
|
+
* Indicates whether to delete the cluster if a timeout is reached while waiting for Atlas to finish creating it. When set to `true` and a timeout occurs, the provider deletes the cluster and returns immediately without waiting for deletion to complete. When set to `false`, the provider does not delete the cluster on timeout. If you suspect a transient error when the value is `true`, wait before retrying to allow the deletion to finish. Default is `true`.
|
|
879
928
|
*/
|
|
880
929
|
deleteOnCreateTimeout?: pulumi.Input<boolean | undefined>;
|
|
930
|
+
/**
|
|
931
|
+
* Database edition that the cluster currently uses. Valid values are `CORE` and `INFINITE`.
|
|
932
|
+
*/
|
|
933
|
+
effectiveDatabaseEdition?: pulumi.Input<string | undefined>;
|
|
881
934
|
/**
|
|
882
935
|
* Possible values are AWS, GCP, AZURE or NONE. Only needed if you desire to manage the keys, see [Encryption at Rest using Customer Key Management](https://www.mongodb.com/docs/atlas/security-kms-encryption/) for complete documentation. You must configure encryption at rest for the Atlas project before enabling it on any cluster in the project. For Documentation, see [AWS](https://www.mongodb.com/docs/atlas/security-aws-kms/), [GCP](https://www.mongodb.com/docs/atlas/security-kms-encryption/) and [Azure](https://www.mongodb.com/docs/atlas/security-azure-kms/#std-label-security-azure-kms). Requirements are if `replication_specs[#].region_configs[#].<type>Specs.instance_size` is M10 or greater and `backupEnabled` is false or omitted.
|
|
883
936
|
*/
|
|
@@ -895,6 +948,8 @@ export interface AdvancedClusterState {
|
|
|
895
948
|
/**
|
|
896
949
|
* Version of the cluster to deploy. Atlas supports all the MongoDB versions that have **not** reached [End of Live](https://www.mongodb.com/legal/support-policy/lifecycles) for M10+ clusters. If omitted, Atlas deploys the cluster with the default version. For more details, see [documentation](https://www.mongodb.com/docs/atlas/reference/faq/database/#which-versions-of-mongodb-do-service-clusters-use-). Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
897
950
|
*
|
|
951
|
+
* > **NOTE:** Terraform supports deploying clusters on new MongoDB major versions as soon as Atlas enables them for your project. No provider configuration changes are required.
|
|
952
|
+
*
|
|
898
953
|
* > **NOTE:** If the major version is modified outside of Terraform, the provider will emit a warning at plan time, along with an empty plan. Update this attribute in your configuration to match the current version to clear the warning. In an upcoming major version of the provider, this drift will result in a non-empty plan.
|
|
899
954
|
*/
|
|
900
955
|
mongoDbMajorVersion?: pulumi.Input<string | undefined>;
|
|
@@ -987,7 +1042,7 @@ export interface AdvancedClusterState {
|
|
|
987
1042
|
*/
|
|
988
1043
|
useAwsTimeBasedSnapshotCopyForFastInitialSync?: pulumi.Input<boolean | undefined>;
|
|
989
1044
|
/**
|
|
990
|
-
* Controls how hardware specification fields are returned in the response. When set to true
|
|
1045
|
+
* Controls how hardware specification fields are returned in the response. When set to `true`, the non-effective specs (`electableSpecs`, `readOnlySpecs`, `analyticsSpecs`) fields return the hardware specifications that the client provided. When set to `false` (default), the non-effective specs fields show the **current** hardware specifications. Cluster auto-scaling is the primary cause for differences between initial and current hardware specifications. This opt-in feature enhances auto-scaling workflows by eliminating the need for `lifecycle.ignore_changes` blocks and preventing plan drift from Atlas-managed changes. The spec-preserving behavior applies only while auto-scaling remains enabled. If an update toggles auto-scaling on or off, Atlas applies the requested spec values in that update. This attribute applies to dedicated clusters, not to tenant or flex clusters. See Auto-Scaling with Effective Fields for more details.
|
|
991
1046
|
* If your cluster has more than one `replicationSpecs` entry, see Multi-shard clusters and topology changes before enabling this attribute.
|
|
992
1047
|
* **Important:** Toggle this flag and remove any existing `lifecycle.ignore_changes` blocks for spec fields in the same apply, without combining other changes. Toggling will result in increased plan verbosity with `(known after apply)` markers, which can be safely ignored. If you previously removed `readOnlySpecs` or `analyticsSpecs` attributes from your configuration, you'll get a validation error for safety reasons to prevent accidental node loss. To resolve: add the blocks back (to keep nodes) or with `nodeCount = 0` (to delete nodes), apply without toggling the flag, then toggle in a separate apply.
|
|
993
1048
|
*/
|
|
@@ -1044,7 +1099,11 @@ export interface AdvancedClusterArgs {
|
|
|
1044
1099
|
*/
|
|
1045
1100
|
configServerManagementMode?: pulumi.Input<string | undefined>;
|
|
1046
1101
|
/**
|
|
1047
|
-
*
|
|
1102
|
+
* Database edition for the cluster. Valid values are `CORE` and `INFINITE`. If you omit this attribute, MongoDB Cloud selects the default database edition. Only `REPLICASET` clusters currently support the `INFINITE` edition: the provider rejects the configuration if you combine `INFINITE` with the `SHARDED` or `GEOSHARDED` cluster type.
|
|
1103
|
+
*/
|
|
1104
|
+
databaseEdition?: pulumi.Input<string | undefined>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Indicates whether to delete the cluster if a timeout is reached while waiting for Atlas to finish creating it. When set to `true` and a timeout occurs, the provider deletes the cluster and returns immediately without waiting for deletion to complete. When set to `false`, the provider does not delete the cluster on timeout. If you suspect a transient error when the value is `true`, wait before retrying to allow the deletion to finish. Default is `true`.
|
|
1048
1107
|
*/
|
|
1049
1108
|
deleteOnCreateTimeout?: pulumi.Input<boolean | undefined>;
|
|
1050
1109
|
/**
|
|
@@ -1064,6 +1123,8 @@ export interface AdvancedClusterArgs {
|
|
|
1064
1123
|
/**
|
|
1065
1124
|
* Version of the cluster to deploy. Atlas supports all the MongoDB versions that have **not** reached [End of Live](https://www.mongodb.com/legal/support-policy/lifecycles) for M10+ clusters. If omitted, Atlas deploys the cluster with the default version. For more details, see [documentation](https://www.mongodb.com/docs/atlas/reference/faq/database/#which-versions-of-mongodb-do-service-clusters-use-). Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
1066
1125
|
*
|
|
1126
|
+
* > **NOTE:** Terraform supports deploying clusters on new MongoDB major versions as soon as Atlas enables them for your project. No provider configuration changes are required.
|
|
1127
|
+
*
|
|
1067
1128
|
* > **NOTE:** If the major version is modified outside of Terraform, the provider will emit a warning at plan time, along with an empty plan. Update this attribute in your configuration to match the current version to clear the warning. In an upcoming major version of the provider, this drift will result in a non-empty plan.
|
|
1068
1129
|
*/
|
|
1069
1130
|
mongoDbMajorVersion?: pulumi.Input<string | undefined>;
|
|
@@ -1141,7 +1202,7 @@ export interface AdvancedClusterArgs {
|
|
|
1141
1202
|
*/
|
|
1142
1203
|
useAwsTimeBasedSnapshotCopyForFastInitialSync?: pulumi.Input<boolean | undefined>;
|
|
1143
1204
|
/**
|
|
1144
|
-
* Controls how hardware specification fields are returned in the response. When set to true
|
|
1205
|
+
* Controls how hardware specification fields are returned in the response. When set to `true`, the non-effective specs (`electableSpecs`, `readOnlySpecs`, `analyticsSpecs`) fields return the hardware specifications that the client provided. When set to `false` (default), the non-effective specs fields show the **current** hardware specifications. Cluster auto-scaling is the primary cause for differences between initial and current hardware specifications. This opt-in feature enhances auto-scaling workflows by eliminating the need for `lifecycle.ignore_changes` blocks and preventing plan drift from Atlas-managed changes. The spec-preserving behavior applies only while auto-scaling remains enabled. If an update toggles auto-scaling on or off, Atlas applies the requested spec values in that update. This attribute applies to dedicated clusters, not to tenant or flex clusters. See Auto-Scaling with Effective Fields for more details.
|
|
1145
1206
|
* If your cluster has more than one `replicationSpecs` entry, see Multi-shard clusters and topology changes before enabling this attribute.
|
|
1146
1207
|
* **Important:** Toggle this flag and remove any existing `lifecycle.ignore_changes` blocks for spec fields in the same apply, without combining other changes. Toggling will result in increased plan verbosity with `(known after apply)` markers, which can be safely ignored. If you previously removed `readOnlySpecs` or `analyticsSpecs` attributes from your configuration, you'll get a validation error for safety reasons to prevent accidental node loss. To resolve: add the blocks back (to keep nodes) or with `nodeCount = 0` (to delete nodes), apply without toggling the flag, then toggle in a separate apply.
|
|
1147
1208
|
*/
|
package/advancedCluster.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedCluster.d.ts","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"advancedCluster.d.ts","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAC;IACpE;;OAEG;IACH,6CAA6C,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClF;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACvD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3D"}
|
package/advancedCluster.js
CHANGED
|
@@ -29,7 +29,9 @@ exports.AdvancedCluster = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters.
|
|
32
|
+
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters, including clusters that use the Atlas Infinite Database.
|
|
33
|
+
*
|
|
34
|
+
* To create an Atlas Infinite Database cluster, set the `databaseEdition` attribute to `INFINITE`. For more information, including supported features and limitations, see the [Atlas Infinite Database documentation](https://www.mongodb.com/docs/atlas/infinite/atlas-infinite-landing/). The `INFINITE` edition is currently only supported for `REPLICASET` clusters: the provider rejects the configuration if you combine `INFINITE` with the `SHARDED` or `GEOSHARDED` cluster type.
|
|
33
35
|
*
|
|
34
36
|
* We recommend all MongoDB Atlas Terraform users start with the `Official MongoDB Atlas Cluster Module`. This module simplifies cluster deployment and implements MongoDB Atlas best practices by default.
|
|
35
37
|
*
|
|
@@ -73,6 +75,37 @@ const utilities = __importStar(require("./utilities"));
|
|
|
73
75
|
* });
|
|
74
76
|
* ```
|
|
75
77
|
*
|
|
78
|
+
* ### Example Atlas Infinite Database cluster with a per-shard data-size limit
|
|
79
|
+
*
|
|
80
|
+
* ```typescript
|
|
81
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
82
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
83
|
+
*
|
|
84
|
+
* const infinite = new mongodbatlas.AdvancedCluster("infinite", {
|
|
85
|
+
* projectId: "PROJECT ID",
|
|
86
|
+
* name: "NAME OF CLUSTER",
|
|
87
|
+
* clusterType: "REPLICASET",
|
|
88
|
+
* databaseEdition: "INFINITE",
|
|
89
|
+
* replicationSpecs: [{
|
|
90
|
+
* regionConfigs: [{
|
|
91
|
+
* providerName: "AWS",
|
|
92
|
+
* priority: 7,
|
|
93
|
+
* regionName: "US_EAST_1",
|
|
94
|
+
* electableSpecs: {
|
|
95
|
+
* instanceSize: "M10",
|
|
96
|
+
* nodeCount: 2,
|
|
97
|
+
* },
|
|
98
|
+
* autoScaling: {
|
|
99
|
+
* computeEnabled: false,
|
|
100
|
+
* storageConfig: {
|
|
101
|
+
* shardSizeLimitGb: 1024,
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* }],
|
|
105
|
+
* }],
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
76
109
|
* ### Example using effective fields with auto-scaling
|
|
77
110
|
*
|
|
78
111
|
* ```typescript
|
|
@@ -548,7 +581,9 @@ const utilities = __importStar(require("./utilities"));
|
|
|
548
581
|
*
|
|
549
582
|
* ### How useEffectiveFields works
|
|
550
583
|
*
|
|
551
|
-
* The `useEffectiveFields` attribute changes how the provider handles specification attributes
|
|
584
|
+
* The `useEffectiveFields` attribute changes how the provider handles specification attributes. When auto-scaling is enabled, Atlas adjusts the cluster's compute and storage resources within the configured bounds (`computeMinInstanceSize` through `computeMaxInstanceSize`, disk auto-scaling limits).
|
|
585
|
+
*
|
|
586
|
+
* **When does Atlas apply requested spec values?** Atlas preserves the running spec values and ignores configured `instanceSize`, `diskSizeGb`, and `diskIops` only when auto-scaling is enabled both before and after an update. If an update toggles auto-scaling (enabling or disabling compute or disk auto-scaling), Atlas applies the requested spec values in that update, as if `useEffectiveFields` were not set. This is why the manual update workflow below works: disabling auto-scaling in the same apply allows the requested spec values to take effect.
|
|
552
587
|
*
|
|
553
588
|
* **When `useEffectiveFields = false` (default - current behavior):**
|
|
554
589
|
* - Spec attributes (`electableSpecs`, `analyticsSpecs`, `readOnlySpecs`) behavior:
|
|
@@ -571,7 +606,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
571
606
|
*
|
|
572
607
|
* ### Manually Updating Specs with useEffectiveFields
|
|
573
608
|
*
|
|
574
|
-
* When `useEffectiveFields = true` and auto-scaling
|
|
609
|
+
* When `useEffectiveFields = true` and auto-scaling remains enabled, you can update `instanceSize`, `diskSizeGb`, or `diskIops` in your configuration at any time without validation errors. However, Atlas preserves the auto-scaled values and the configured values do not take effect. An update that disables auto-scaling is not subject to this preservation, so to have your configured values take effect, temporarily disable auto-scaling:
|
|
575
610
|
*
|
|
576
611
|
* 1. Set `computeEnabled = false` and `diskGbEnabled = false` in the `autoScaling` block, update `instanceSize`, `diskSizeGb`, or `diskIops` to your desired values, and apply.
|
|
577
612
|
* 2. Re-enable auto-scaling by setting `computeEnabled` and/or `diskGbEnabled` back to `true` and apply.
|
|
@@ -587,7 +622,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
587
622
|
* - Raising `computeMinInstanceSize` above the effective size.
|
|
588
623
|
* - Lowering `computeMaxInstanceSize` below the effective size.
|
|
589
624
|
*
|
|
590
|
-
* Atlas validates the new range against the current effective instance size, so attempting either in a single apply fails with a validation error from Atlas. Updating `instanceSize` in the same apply as changing the range does not avoid the error, because the updated `instanceSize` value is not applied while auto-scaling
|
|
625
|
+
* Atlas validates the new range against the current effective instance size, so attempting either in a single apply fails with a validation error from Atlas. Updating `instanceSize` in the same apply as changing the range does not avoid the error, because the updated `instanceSize` value is not applied while auto-scaling remains enabled, even with `useEffectiveFields = true`.
|
|
591
626
|
*
|
|
592
627
|
* To adjust the range when the new range would exclude the current effective instance size, move the effective instance size into the new range before changing the bounds:
|
|
593
628
|
*
|
|
@@ -677,7 +712,9 @@ class AdvancedCluster extends pulumi.CustomResource {
|
|
|
677
712
|
resourceInputs["configServerType"] = state?.configServerType;
|
|
678
713
|
resourceInputs["connectionStrings"] = state?.connectionStrings;
|
|
679
714
|
resourceInputs["createDate"] = state?.createDate;
|
|
715
|
+
resourceInputs["databaseEdition"] = state?.databaseEdition;
|
|
680
716
|
resourceInputs["deleteOnCreateTimeout"] = state?.deleteOnCreateTimeout;
|
|
717
|
+
resourceInputs["effectiveDatabaseEdition"] = state?.effectiveDatabaseEdition;
|
|
681
718
|
resourceInputs["encryptionAtRestProvider"] = state?.encryptionAtRestProvider;
|
|
682
719
|
resourceInputs["globalClusterSelfManagedSharding"] = state?.globalClusterSelfManagedSharding;
|
|
683
720
|
resourceInputs["labels"] = state?.labels;
|
|
@@ -719,6 +756,7 @@ class AdvancedCluster extends pulumi.CustomResource {
|
|
|
719
756
|
resourceInputs["biConnectorConfig"] = args?.biConnectorConfig;
|
|
720
757
|
resourceInputs["clusterType"] = args?.clusterType;
|
|
721
758
|
resourceInputs["configServerManagementMode"] = args?.configServerManagementMode;
|
|
759
|
+
resourceInputs["databaseEdition"] = args?.databaseEdition;
|
|
722
760
|
resourceInputs["deleteOnCreateTimeout"] = args?.deleteOnCreateTimeout;
|
|
723
761
|
resourceInputs["encryptionAtRestProvider"] = args?.encryptionAtRestProvider;
|
|
724
762
|
resourceInputs["globalClusterSelfManagedSharding"] = args?.globalClusterSelfManagedSharding;
|
|
@@ -744,6 +782,7 @@ class AdvancedCluster extends pulumi.CustomResource {
|
|
|
744
782
|
resourceInputs["configServerType"] = undefined /*out*/;
|
|
745
783
|
resourceInputs["connectionStrings"] = undefined /*out*/;
|
|
746
784
|
resourceInputs["createDate"] = undefined /*out*/;
|
|
785
|
+
resourceInputs["effectiveDatabaseEdition"] = undefined /*out*/;
|
|
747
786
|
resourceInputs["mongoDbVersion"] = undefined /*out*/;
|
|
748
787
|
resourceInputs["stateName"] = undefined /*out*/;
|
|
749
788
|
}
|
package/advancedCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;;AA1TL,0CA2TC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `mongodbatlas.ClusterAdaptiveSettings` provides a resource for managing Adaptive Settings overrides for one MongoDB Atlas cluster.
|
|
4
|
+
*
|
|
5
|
+
* > **NOTE:** Set `adaptiveSettingsOverrides` with `jsonencode`. See [Intelligent Workload Management](https://www.mongodb.com/docs/atlas/intelligent-workload-management/#load-shedding) for the current list of supported keys. If omitted on create, no overrides are modified. If set to `{}` or removed after being set, all overrides are reset. The configured map replaces the entire override map in Atlas, so removing a key resets that override. Destroying this resource resets all overrides to Atlas-managed defaults, including any set outside this resource. The cluster itself is not deleted. Manage Adaptive Settings for a cluster with only one `mongodbatlas.ClusterAdaptiveSettings` resource. If multiple resources target the same cluster, each resource can overwrite the others, causing Terraform to repeatedly report and reapply changes.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### S
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
14
|
+
*
|
|
15
|
+
* // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
|
|
16
|
+
* const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
|
|
17
|
+
* projectId: projectId,
|
|
18
|
+
* clusterName: clusterName,
|
|
19
|
+
* adaptiveSettingsOverrides: JSON.stringify({
|
|
20
|
+
* LOAD_SHEDDING: loadSheddingEnabled,
|
|
21
|
+
* SEARCH_LOAD_SHEDDING: searchLoadSheddingEnabled,
|
|
22
|
+
* }),
|
|
23
|
+
* });
|
|
24
|
+
* const _this = mongodbatlas.getClusterAdaptiveSettingsOutput({
|
|
25
|
+
* projectId: thisClusterAdaptiveSettings.projectId,
|
|
26
|
+
* clusterName: thisClusterAdaptiveSettings.clusterName,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* Import cluster Adaptive Settings by using the project ID and cluster name in the format `PROJECT_ID/CLUSTER_NAME`, for example:
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import mongodbatlas:index/clusterAdaptiveSettings:ClusterAdaptiveSettings this 0123456789abcdef01234567/Cluster0
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class ClusterAdaptiveSettings extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing ClusterAdaptiveSettings resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterAdaptiveSettingsState, opts?: pulumi.CustomResourceOptions): ClusterAdaptiveSettings;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of ClusterAdaptiveSettings. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is ClusterAdaptiveSettings;
|
|
54
|
+
/**
|
|
55
|
+
* JSON-encoded map of customer-specified Adaptive Settings overrides, applied on a best-effort basis. Use `jsonencode` to configure this attribute. Each supported entry that you specify takes precedence over the corresponding Atlas-managed default.
|
|
56
|
+
*/
|
|
57
|
+
readonly adaptiveSettingsOverrides: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Human-readable label that identifies the cluster.
|
|
60
|
+
*/
|
|
61
|
+
readonly clusterName: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* JSON-encoded map of the effective Adaptive Settings currently applied to your cluster, based on your overrides and Atlas-managed defaults. Atlas-managed defaults can vary by MongoDB version. An override for a setting unsupported by the cluster's MongoDB version doesn't take effect, and the effective value reflects the Atlas-managed default.
|
|
64
|
+
*/
|
|
65
|
+
readonly effectiveAdaptiveSettings: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Unique 24-hexadecimal digit string that identifies your project, also known as `groupId` in the official documentation.
|
|
68
|
+
*/
|
|
69
|
+
readonly projectId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Create a ClusterAdaptiveSettings resource with the given unique name, arguments, and options.
|
|
72
|
+
*
|
|
73
|
+
* @param name The _unique_ name of the resource.
|
|
74
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
75
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
76
|
+
*/
|
|
77
|
+
constructor(name: string, args: ClusterAdaptiveSettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Input properties used for looking up and filtering ClusterAdaptiveSettings resources.
|
|
81
|
+
*/
|
|
82
|
+
export interface ClusterAdaptiveSettingsState {
|
|
83
|
+
/**
|
|
84
|
+
* JSON-encoded map of customer-specified Adaptive Settings overrides, applied on a best-effort basis. Use `jsonencode` to configure this attribute. Each supported entry that you specify takes precedence over the corresponding Atlas-managed default.
|
|
85
|
+
*/
|
|
86
|
+
adaptiveSettingsOverrides?: pulumi.Input<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Human-readable label that identifies the cluster.
|
|
89
|
+
*/
|
|
90
|
+
clusterName?: pulumi.Input<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* JSON-encoded map of the effective Adaptive Settings currently applied to your cluster, based on your overrides and Atlas-managed defaults. Atlas-managed defaults can vary by MongoDB version. An override for a setting unsupported by the cluster's MongoDB version doesn't take effect, and the effective value reflects the Atlas-managed default.
|
|
93
|
+
*/
|
|
94
|
+
effectiveAdaptiveSettings?: pulumi.Input<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Unique 24-hexadecimal digit string that identifies your project, also known as `groupId` in the official documentation.
|
|
97
|
+
*/
|
|
98
|
+
projectId?: pulumi.Input<string | undefined>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a ClusterAdaptiveSettings resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface ClusterAdaptiveSettingsArgs {
|
|
104
|
+
/**
|
|
105
|
+
* JSON-encoded map of customer-specified Adaptive Settings overrides, applied on a best-effort basis. Use `jsonencode` to configure this attribute. Each supported entry that you specify takes precedence over the corresponding Atlas-managed default.
|
|
106
|
+
*/
|
|
107
|
+
adaptiveSettingsOverrides?: pulumi.Input<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Human-readable label that identifies the cluster.
|
|
110
|
+
*/
|
|
111
|
+
clusterName: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Unique 24-hexadecimal digit string that identifies your project, also known as `groupId` in the official documentation.
|
|
114
|
+
*/
|
|
115
|
+
projectId: pulumi.Input<string>;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=clusterAdaptiveSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterAdaptiveSettings.d.ts","sourceRoot":"","sources":["../clusterAdaptiveSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE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