@pulumi/mongodbatlas 3.17.0-alpha.1723037969 → 3.17.0-alpha.1723714844
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 +95 -80
- package/advancedCluster.js +81 -74
- package/advancedCluster.js.map +1 -1
- package/apiKey.d.ts +6 -18
- package/apiKey.js +6 -0
- package/apiKey.js.map +1 -1
- package/cloudBackupSchedule.d.ts +33 -15
- package/cloudBackupSchedule.js.map +1 -1
- package/cloudBackupSnapshotExportBucket.d.ts +65 -11
- package/cloudBackupSnapshotExportBucket.js +24 -3
- package/cloudBackupSnapshotExportBucket.js.map +1 -1
- package/cloudBackupSnapshotRestoreJob.d.ts +0 -12
- package/cloudBackupSnapshotRestoreJob.js +0 -2
- package/cloudBackupSnapshotRestoreJob.js.map +1 -1
- package/getAdvancedCluster.d.ts +104 -3
- package/getAdvancedCluster.js +91 -0
- package/getAdvancedCluster.js.map +1 -1
- package/getAdvancedClusters.d.ts +99 -0
- package/getAdvancedClusters.js +91 -0
- package/getAdvancedClusters.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +20 -77
- package/getCloudBackupSchedule.js +1 -72
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudBackupSnapshotExportBucket.d.ts +15 -14
- package/getCloudBackupSnapshotExportBucket.js +0 -1
- package/getCloudBackupSnapshotExportBucket.js.map +1 -1
- package/getCloudBackupSnapshotExportJob.d.ts +0 -11
- package/getCloudBackupSnapshotExportJob.js +0 -1
- package/getCloudBackupSnapshotExportJob.js.map +1 -1
- package/getCloudBackupSnapshotRestoreJob.d.ts +5 -27
- package/getCloudBackupSnapshotRestoreJob.js +0 -1
- package/getCloudBackupSnapshotRestoreJob.js.map +1 -1
- package/getCluster.d.ts +4 -4
- package/getCluster.js +4 -4
- package/getClusters.d.ts +4 -4
- package/getClusters.js +4 -4
- package/getFederatedSettingsIdentityProviders.d.ts +2 -70
- package/getFederatedSettingsIdentityProviders.js +2 -40
- package/getFederatedSettingsIdentityProviders.js.map +1 -1
- package/getGlobalClusterConfig.d.ts +76 -24
- package/getGlobalClusterConfig.js +76 -24
- package/getGlobalClusterConfig.js.map +1 -1
- package/getNetworkPeering.d.ts +0 -4
- package/getNetworkPeering.js +0 -4
- package/getNetworkPeering.js.map +1 -1
- package/getThirdPartyIntegration.d.ts +0 -18
- package/getThirdPartyIntegration.js +0 -1
- package/getThirdPartyIntegration.js.map +1 -1
- package/globalClusterConfig.d.ts +16 -14
- package/globalClusterConfig.js +16 -14
- package/globalClusterConfig.js.map +1 -1
- package/networkContainer.d.ts +0 -2
- package/networkContainer.js +0 -2
- package/networkContainer.js.map +1 -1
- package/networkPeering.d.ts +7 -2
- package/networkPeering.js +7 -2
- package/networkPeering.js.map +1 -1
- package/package.json +2 -2
- package/thirdPartyIntegration.d.ts +0 -12
- package/thirdPartyIntegration.js +0 -2
- package/thirdPartyIntegration.js.map +1 -1
- package/types/input.d.ts +48 -18
- package/types/output.d.ts +164 -70
package/getAdvancedCluster.d.ts
CHANGED
|
@@ -38,6 +38,51 @@ import * as outputs from "./types/output";
|
|
|
38
38
|
* name: exampleAdvancedCluster.name,
|
|
39
39
|
* });
|
|
40
40
|
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
47
|
+
*
|
|
48
|
+
* const exampleAdvancedCluster = new mongodbatlas.AdvancedCluster("example", {
|
|
49
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
50
|
+
* name: "cluster-test",
|
|
51
|
+
* backupEnabled: false,
|
|
52
|
+
* clusterType: "SHARDED",
|
|
53
|
+
* replicationSpecs: [
|
|
54
|
+
* {
|
|
55
|
+
* regionConfigs: [{
|
|
56
|
+
* electableSpecs: {
|
|
57
|
+
* instanceSize: "M30",
|
|
58
|
+
* diskIops: 3000,
|
|
59
|
+
* nodeCount: 3,
|
|
60
|
+
* },
|
|
61
|
+
* providerName: "AWS",
|
|
62
|
+
* priority: 7,
|
|
63
|
+
* regionName: "EU_WEST_1",
|
|
64
|
+
* }],
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* regionConfigs: [{
|
|
68
|
+
* electableSpecs: {
|
|
69
|
+
* instanceSize: "M40",
|
|
70
|
+
* diskIops: 3000,
|
|
71
|
+
* nodeCount: 3,
|
|
72
|
+
* },
|
|
73
|
+
* providerName: "AWS",
|
|
74
|
+
* priority: 7,
|
|
75
|
+
* regionName: "EU_WEST_1",
|
|
76
|
+
* }],
|
|
77
|
+
* },
|
|
78
|
+
* ],
|
|
79
|
+
* });
|
|
80
|
+
* const example = mongodbatlas.getAdvancedClusterOutput({
|
|
81
|
+
* projectId: exampleAdvancedCluster.projectId,
|
|
82
|
+
* name: exampleAdvancedCluster.name,
|
|
83
|
+
* useReplicationSpecPerShard: true,
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
41
86
|
*/
|
|
42
87
|
export declare function getAdvancedCluster(args: GetAdvancedClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetAdvancedClusterResult>;
|
|
43
88
|
/**
|
|
@@ -56,6 +101,10 @@ export interface GetAdvancedClusterArgs {
|
|
|
56
101
|
* The unique ID for the project to create the database user.
|
|
57
102
|
*/
|
|
58
103
|
projectId: string;
|
|
104
|
+
/**
|
|
105
|
+
* Set this field to true to allow the data source to use the latest schema representing each shard with an individual `replicationSpecs` object. This enables representing clusters with independent shard scaling.
|
|
106
|
+
*/
|
|
107
|
+
useReplicationSpecPerShard?: boolean;
|
|
59
108
|
}
|
|
60
109
|
/**
|
|
61
110
|
* A collection of values returned by getAdvancedCluster.
|
|
@@ -80,7 +129,9 @@ export interface GetAdvancedClusterResult {
|
|
|
80
129
|
readonly connectionStrings: outputs.GetAdvancedClusterConnectionString[];
|
|
81
130
|
readonly createDate: string;
|
|
82
131
|
/**
|
|
83
|
-
*
|
|
132
|
+
* Storage capacity that the host's root volume possesses expressed in gigabytes. If disk size specified is below the minimum (10 GB), this parameter defaults to the minimum disk size value. Storage charge calculations depend on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier.
|
|
133
|
+
*
|
|
134
|
+
* @deprecated This parameter is deprecated. Please refer to our examples, documentation, and 1.18.0 migration guide for more details at https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/1.18.0-upgrade-guide.html.markdown
|
|
84
135
|
*/
|
|
85
136
|
readonly diskSizeGb: number;
|
|
86
137
|
/**
|
|
@@ -96,7 +147,7 @@ export interface GetAdvancedClusterResult {
|
|
|
96
147
|
*/
|
|
97
148
|
readonly id: string;
|
|
98
149
|
/**
|
|
99
|
-
* Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below. **DEPRECATED** Use `tags` instead.
|
|
150
|
+
* Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below. **(DEPRECATED.)** Use `tags` instead.
|
|
100
151
|
*
|
|
101
152
|
* @deprecated This parameter is deprecated and will be removed by September 2024. Please transition to tags.
|
|
102
153
|
*/
|
|
@@ -120,7 +171,7 @@ export interface GetAdvancedClusterResult {
|
|
|
120
171
|
readonly pitEnabled: boolean;
|
|
121
172
|
readonly projectId: string;
|
|
122
173
|
/**
|
|
123
|
-
*
|
|
174
|
+
* List of settings that configure your cluster regions. If `useReplicationSpecPerShard = true`, this array has one object per shard representing node configurations in each shard. For replica sets there is only one object representing node configurations. See below.
|
|
124
175
|
*/
|
|
125
176
|
readonly replicationSpecs: outputs.GetAdvancedClusterReplicationSpec[];
|
|
126
177
|
/**
|
|
@@ -139,6 +190,7 @@ export interface GetAdvancedClusterResult {
|
|
|
139
190
|
* Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
|
|
140
191
|
*/
|
|
141
192
|
readonly terminationProtectionEnabled: boolean;
|
|
193
|
+
readonly useReplicationSpecPerShard?: boolean;
|
|
142
194
|
/**
|
|
143
195
|
* Release cadence that Atlas uses for this cluster.
|
|
144
196
|
*/
|
|
@@ -182,6 +234,51 @@ export interface GetAdvancedClusterResult {
|
|
|
182
234
|
* name: exampleAdvancedCluster.name,
|
|
183
235
|
* });
|
|
184
236
|
* ```
|
|
237
|
+
*
|
|
238
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
239
|
+
*
|
|
240
|
+
* ```typescript
|
|
241
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
242
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
243
|
+
*
|
|
244
|
+
* const exampleAdvancedCluster = new mongodbatlas.AdvancedCluster("example", {
|
|
245
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
246
|
+
* name: "cluster-test",
|
|
247
|
+
* backupEnabled: false,
|
|
248
|
+
* clusterType: "SHARDED",
|
|
249
|
+
* replicationSpecs: [
|
|
250
|
+
* {
|
|
251
|
+
* regionConfigs: [{
|
|
252
|
+
* electableSpecs: {
|
|
253
|
+
* instanceSize: "M30",
|
|
254
|
+
* diskIops: 3000,
|
|
255
|
+
* nodeCount: 3,
|
|
256
|
+
* },
|
|
257
|
+
* providerName: "AWS",
|
|
258
|
+
* priority: 7,
|
|
259
|
+
* regionName: "EU_WEST_1",
|
|
260
|
+
* }],
|
|
261
|
+
* },
|
|
262
|
+
* {
|
|
263
|
+
* regionConfigs: [{
|
|
264
|
+
* electableSpecs: {
|
|
265
|
+
* instanceSize: "M40",
|
|
266
|
+
* diskIops: 3000,
|
|
267
|
+
* nodeCount: 3,
|
|
268
|
+
* },
|
|
269
|
+
* providerName: "AWS",
|
|
270
|
+
* priority: 7,
|
|
271
|
+
* regionName: "EU_WEST_1",
|
|
272
|
+
* }],
|
|
273
|
+
* },
|
|
274
|
+
* ],
|
|
275
|
+
* });
|
|
276
|
+
* const example = mongodbatlas.getAdvancedClusterOutput({
|
|
277
|
+
* projectId: exampleAdvancedCluster.projectId,
|
|
278
|
+
* name: exampleAdvancedCluster.name,
|
|
279
|
+
* useReplicationSpecPerShard: true,
|
|
280
|
+
* });
|
|
281
|
+
* ```
|
|
185
282
|
*/
|
|
186
283
|
export declare function getAdvancedClusterOutput(args: GetAdvancedClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAdvancedClusterResult>;
|
|
187
284
|
/**
|
|
@@ -200,4 +297,8 @@ export interface GetAdvancedClusterOutputArgs {
|
|
|
200
297
|
* The unique ID for the project to create the database user.
|
|
201
298
|
*/
|
|
202
299
|
projectId: pulumi.Input<string>;
|
|
300
|
+
/**
|
|
301
|
+
* Set this field to true to allow the data source to use the latest schema representing each shard with an individual `replicationSpecs` object. This enables representing clusters with independent shard scaling.
|
|
302
|
+
*/
|
|
303
|
+
useReplicationSpecPerShard?: pulumi.Input<boolean>;
|
|
203
304
|
}
|
package/getAdvancedCluster.js
CHANGED
|
@@ -43,6 +43,51 @@ const utilities = require("./utilities");
|
|
|
43
43
|
* name: exampleAdvancedCluster.name,
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
|
+
*
|
|
47
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
52
|
+
*
|
|
53
|
+
* const exampleAdvancedCluster = new mongodbatlas.AdvancedCluster("example", {
|
|
54
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
55
|
+
* name: "cluster-test",
|
|
56
|
+
* backupEnabled: false,
|
|
57
|
+
* clusterType: "SHARDED",
|
|
58
|
+
* replicationSpecs: [
|
|
59
|
+
* {
|
|
60
|
+
* regionConfigs: [{
|
|
61
|
+
* electableSpecs: {
|
|
62
|
+
* instanceSize: "M30",
|
|
63
|
+
* diskIops: 3000,
|
|
64
|
+
* nodeCount: 3,
|
|
65
|
+
* },
|
|
66
|
+
* providerName: "AWS",
|
|
67
|
+
* priority: 7,
|
|
68
|
+
* regionName: "EU_WEST_1",
|
|
69
|
+
* }],
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* regionConfigs: [{
|
|
73
|
+
* electableSpecs: {
|
|
74
|
+
* instanceSize: "M40",
|
|
75
|
+
* diskIops: 3000,
|
|
76
|
+
* nodeCount: 3,
|
|
77
|
+
* },
|
|
78
|
+
* providerName: "AWS",
|
|
79
|
+
* priority: 7,
|
|
80
|
+
* regionName: "EU_WEST_1",
|
|
81
|
+
* }],
|
|
82
|
+
* },
|
|
83
|
+
* ],
|
|
84
|
+
* });
|
|
85
|
+
* const example = mongodbatlas.getAdvancedClusterOutput({
|
|
86
|
+
* projectId: exampleAdvancedCluster.projectId,
|
|
87
|
+
* name: exampleAdvancedCluster.name,
|
|
88
|
+
* useReplicationSpecPerShard: true,
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
46
91
|
*/
|
|
47
92
|
function getAdvancedCluster(args, opts) {
|
|
48
93
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -50,6 +95,7 @@ function getAdvancedCluster(args, opts) {
|
|
|
50
95
|
"name": args.name,
|
|
51
96
|
"pitEnabled": args.pitEnabled,
|
|
52
97
|
"projectId": args.projectId,
|
|
98
|
+
"useReplicationSpecPerShard": args.useReplicationSpecPerShard,
|
|
53
99
|
}, opts);
|
|
54
100
|
}
|
|
55
101
|
exports.getAdvancedCluster = getAdvancedCluster;
|
|
@@ -91,6 +137,51 @@ exports.getAdvancedCluster = getAdvancedCluster;
|
|
|
91
137
|
* name: exampleAdvancedCluster.name,
|
|
92
138
|
* });
|
|
93
139
|
* ```
|
|
140
|
+
*
|
|
141
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
142
|
+
*
|
|
143
|
+
* ```typescript
|
|
144
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
145
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
146
|
+
*
|
|
147
|
+
* const exampleAdvancedCluster = new mongodbatlas.AdvancedCluster("example", {
|
|
148
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
149
|
+
* name: "cluster-test",
|
|
150
|
+
* backupEnabled: false,
|
|
151
|
+
* clusterType: "SHARDED",
|
|
152
|
+
* replicationSpecs: [
|
|
153
|
+
* {
|
|
154
|
+
* regionConfigs: [{
|
|
155
|
+
* electableSpecs: {
|
|
156
|
+
* instanceSize: "M30",
|
|
157
|
+
* diskIops: 3000,
|
|
158
|
+
* nodeCount: 3,
|
|
159
|
+
* },
|
|
160
|
+
* providerName: "AWS",
|
|
161
|
+
* priority: 7,
|
|
162
|
+
* regionName: "EU_WEST_1",
|
|
163
|
+
* }],
|
|
164
|
+
* },
|
|
165
|
+
* {
|
|
166
|
+
* regionConfigs: [{
|
|
167
|
+
* electableSpecs: {
|
|
168
|
+
* instanceSize: "M40",
|
|
169
|
+
* diskIops: 3000,
|
|
170
|
+
* nodeCount: 3,
|
|
171
|
+
* },
|
|
172
|
+
* providerName: "AWS",
|
|
173
|
+
* priority: 7,
|
|
174
|
+
* regionName: "EU_WEST_1",
|
|
175
|
+
* }],
|
|
176
|
+
* },
|
|
177
|
+
* ],
|
|
178
|
+
* });
|
|
179
|
+
* const example = mongodbatlas.getAdvancedClusterOutput({
|
|
180
|
+
* projectId: exampleAdvancedCluster.projectId,
|
|
181
|
+
* name: exampleAdvancedCluster.name,
|
|
182
|
+
* useReplicationSpecPerShard: true,
|
|
183
|
+
* });
|
|
184
|
+
* ```
|
|
94
185
|
*/
|
|
95
186
|
function getAdvancedClusterOutput(args, opts) {
|
|
96
187
|
return pulumi.output(args).apply((a) => getAdvancedCluster(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAdvancedCluster.js","sourceRoot":"","sources":["../getAdvancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAdvancedCluster.js","sourceRoot":"","sources":["../getAdvancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,4BAA4B,EAAE,IAAI,CAAC,0BAA0B;KAChE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC;AAkHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
|
package/getAdvancedClusters.d.ts
CHANGED
|
@@ -37,6 +37,51 @@ import * as outputs from "./types/output";
|
|
|
37
37
|
* projectId: exampleAdvancedCluster.projectId,
|
|
38
38
|
* });
|
|
39
39
|
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
46
|
+
*
|
|
47
|
+
* const example = new mongodbatlas.AdvancedCluster("example", {
|
|
48
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
49
|
+
* name: "cluster-test",
|
|
50
|
+
* backupEnabled: false,
|
|
51
|
+
* clusterType: "SHARDED",
|
|
52
|
+
* replicationSpecs: [
|
|
53
|
+
* {
|
|
54
|
+
* regionConfigs: [{
|
|
55
|
+
* electableSpecs: {
|
|
56
|
+
* instanceSize: "M30",
|
|
57
|
+
* diskIops: 3000,
|
|
58
|
+
* nodeCount: 3,
|
|
59
|
+
* },
|
|
60
|
+
* providerName: "AWS",
|
|
61
|
+
* priority: 7,
|
|
62
|
+
* regionName: "EU_WEST_1",
|
|
63
|
+
* }],
|
|
64
|
+
* },
|
|
65
|
+
* {
|
|
66
|
+
* regionConfigs: [{
|
|
67
|
+
* electableSpecs: {
|
|
68
|
+
* instanceSize: "M40",
|
|
69
|
+
* diskIops: 3000,
|
|
70
|
+
* nodeCount: 3,
|
|
71
|
+
* },
|
|
72
|
+
* providerName: "AWS",
|
|
73
|
+
* priority: 7,
|
|
74
|
+
* regionName: "EU_WEST_1",
|
|
75
|
+
* }],
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* });
|
|
79
|
+
* const example-asym = mongodbatlas.getAdvancedClusterOutput({
|
|
80
|
+
* projectId: example.projectId,
|
|
81
|
+
* name: example.name,
|
|
82
|
+
* useReplicationSpecPerShard: true,
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
40
85
|
*/
|
|
41
86
|
export declare function getAdvancedClusters(args: GetAdvancedClustersArgs, opts?: pulumi.InvokeOptions): Promise<GetAdvancedClustersResult>;
|
|
42
87
|
/**
|
|
@@ -47,6 +92,10 @@ export interface GetAdvancedClustersArgs {
|
|
|
47
92
|
* The unique ID for the project to get the clusters.
|
|
48
93
|
*/
|
|
49
94
|
projectId: string;
|
|
95
|
+
/**
|
|
96
|
+
* Set this field to true to allow the data source to use the latest schema representing each shard with an individual `replicationSpecs` object. This enables representing clusters with independent shard scaling. **Note:** If not set to true, this data source return all clusters except clusters with asymmetric shards.
|
|
97
|
+
*/
|
|
98
|
+
useReplicationSpecPerShard?: boolean;
|
|
50
99
|
}
|
|
51
100
|
/**
|
|
52
101
|
* A collection of values returned by getAdvancedClusters.
|
|
@@ -61,6 +110,7 @@ export interface GetAdvancedClustersResult {
|
|
|
61
110
|
* A list where each represents a Cluster. See below for more details.
|
|
62
111
|
*/
|
|
63
112
|
readonly results: outputs.GetAdvancedClustersResult[];
|
|
113
|
+
readonly useReplicationSpecPerShard?: boolean;
|
|
64
114
|
}
|
|
65
115
|
/**
|
|
66
116
|
* ## # Data Source: mongodbatlas.getAdvancedClusters
|
|
@@ -99,6 +149,51 @@ export interface GetAdvancedClustersResult {
|
|
|
99
149
|
* projectId: exampleAdvancedCluster.projectId,
|
|
100
150
|
* });
|
|
101
151
|
* ```
|
|
152
|
+
*
|
|
153
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
154
|
+
*
|
|
155
|
+
* ```typescript
|
|
156
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
157
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
158
|
+
*
|
|
159
|
+
* const example = new mongodbatlas.AdvancedCluster("example", {
|
|
160
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
161
|
+
* name: "cluster-test",
|
|
162
|
+
* backupEnabled: false,
|
|
163
|
+
* clusterType: "SHARDED",
|
|
164
|
+
* replicationSpecs: [
|
|
165
|
+
* {
|
|
166
|
+
* regionConfigs: [{
|
|
167
|
+
* electableSpecs: {
|
|
168
|
+
* instanceSize: "M30",
|
|
169
|
+
* diskIops: 3000,
|
|
170
|
+
* nodeCount: 3,
|
|
171
|
+
* },
|
|
172
|
+
* providerName: "AWS",
|
|
173
|
+
* priority: 7,
|
|
174
|
+
* regionName: "EU_WEST_1",
|
|
175
|
+
* }],
|
|
176
|
+
* },
|
|
177
|
+
* {
|
|
178
|
+
* regionConfigs: [{
|
|
179
|
+
* electableSpecs: {
|
|
180
|
+
* instanceSize: "M40",
|
|
181
|
+
* diskIops: 3000,
|
|
182
|
+
* nodeCount: 3,
|
|
183
|
+
* },
|
|
184
|
+
* providerName: "AWS",
|
|
185
|
+
* priority: 7,
|
|
186
|
+
* regionName: "EU_WEST_1",
|
|
187
|
+
* }],
|
|
188
|
+
* },
|
|
189
|
+
* ],
|
|
190
|
+
* });
|
|
191
|
+
* const example-asym = mongodbatlas.getAdvancedClusterOutput({
|
|
192
|
+
* projectId: example.projectId,
|
|
193
|
+
* name: example.name,
|
|
194
|
+
* useReplicationSpecPerShard: true,
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
102
197
|
*/
|
|
103
198
|
export declare function getAdvancedClustersOutput(args: GetAdvancedClustersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAdvancedClustersResult>;
|
|
104
199
|
/**
|
|
@@ -109,4 +204,8 @@ export interface GetAdvancedClustersOutputArgs {
|
|
|
109
204
|
* The unique ID for the project to get the clusters.
|
|
110
205
|
*/
|
|
111
206
|
projectId: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Set this field to true to allow the data source to use the latest schema representing each shard with an individual `replicationSpecs` object. This enables representing clusters with independent shard scaling. **Note:** If not set to true, this data source return all clusters except clusters with asymmetric shards.
|
|
209
|
+
*/
|
|
210
|
+
useReplicationSpecPerShard?: pulumi.Input<boolean>;
|
|
112
211
|
}
|
package/getAdvancedClusters.js
CHANGED
|
@@ -42,11 +42,57 @@ const utilities = require("./utilities");
|
|
|
42
42
|
* projectId: exampleAdvancedCluster.projectId,
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
|
+
*
|
|
46
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
51
|
+
*
|
|
52
|
+
* const example = new mongodbatlas.AdvancedCluster("example", {
|
|
53
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
54
|
+
* name: "cluster-test",
|
|
55
|
+
* backupEnabled: false,
|
|
56
|
+
* clusterType: "SHARDED",
|
|
57
|
+
* replicationSpecs: [
|
|
58
|
+
* {
|
|
59
|
+
* regionConfigs: [{
|
|
60
|
+
* electableSpecs: {
|
|
61
|
+
* instanceSize: "M30",
|
|
62
|
+
* diskIops: 3000,
|
|
63
|
+
* nodeCount: 3,
|
|
64
|
+
* },
|
|
65
|
+
* providerName: "AWS",
|
|
66
|
+
* priority: 7,
|
|
67
|
+
* regionName: "EU_WEST_1",
|
|
68
|
+
* }],
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* regionConfigs: [{
|
|
72
|
+
* electableSpecs: {
|
|
73
|
+
* instanceSize: "M40",
|
|
74
|
+
* diskIops: 3000,
|
|
75
|
+
* nodeCount: 3,
|
|
76
|
+
* },
|
|
77
|
+
* providerName: "AWS",
|
|
78
|
+
* priority: 7,
|
|
79
|
+
* regionName: "EU_WEST_1",
|
|
80
|
+
* }],
|
|
81
|
+
* },
|
|
82
|
+
* ],
|
|
83
|
+
* });
|
|
84
|
+
* const example-asym = mongodbatlas.getAdvancedClusterOutput({
|
|
85
|
+
* projectId: example.projectId,
|
|
86
|
+
* name: example.name,
|
|
87
|
+
* useReplicationSpecPerShard: true,
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
45
90
|
*/
|
|
46
91
|
function getAdvancedClusters(args, opts) {
|
|
47
92
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
48
93
|
return pulumi.runtime.invoke("mongodbatlas:index/getAdvancedClusters:getAdvancedClusters", {
|
|
49
94
|
"projectId": args.projectId,
|
|
95
|
+
"useReplicationSpecPerShard": args.useReplicationSpecPerShard,
|
|
50
96
|
}, opts);
|
|
51
97
|
}
|
|
52
98
|
exports.getAdvancedClusters = getAdvancedClusters;
|
|
@@ -87,6 +133,51 @@ exports.getAdvancedClusters = getAdvancedClusters;
|
|
|
87
133
|
* projectId: exampleAdvancedCluster.projectId,
|
|
88
134
|
* });
|
|
89
135
|
* ```
|
|
136
|
+
*
|
|
137
|
+
* ## Example using latest sharding schema with independent shard scaling in the cluster
|
|
138
|
+
*
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
141
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
142
|
+
*
|
|
143
|
+
* const example = new mongodbatlas.AdvancedCluster("example", {
|
|
144
|
+
* projectId: "<YOUR-PROJECT-ID>",
|
|
145
|
+
* name: "cluster-test",
|
|
146
|
+
* backupEnabled: false,
|
|
147
|
+
* clusterType: "SHARDED",
|
|
148
|
+
* replicationSpecs: [
|
|
149
|
+
* {
|
|
150
|
+
* regionConfigs: [{
|
|
151
|
+
* electableSpecs: {
|
|
152
|
+
* instanceSize: "M30",
|
|
153
|
+
* diskIops: 3000,
|
|
154
|
+
* nodeCount: 3,
|
|
155
|
+
* },
|
|
156
|
+
* providerName: "AWS",
|
|
157
|
+
* priority: 7,
|
|
158
|
+
* regionName: "EU_WEST_1",
|
|
159
|
+
* }],
|
|
160
|
+
* },
|
|
161
|
+
* {
|
|
162
|
+
* regionConfigs: [{
|
|
163
|
+
* electableSpecs: {
|
|
164
|
+
* instanceSize: "M40",
|
|
165
|
+
* diskIops: 3000,
|
|
166
|
+
* nodeCount: 3,
|
|
167
|
+
* },
|
|
168
|
+
* providerName: "AWS",
|
|
169
|
+
* priority: 7,
|
|
170
|
+
* regionName: "EU_WEST_1",
|
|
171
|
+
* }],
|
|
172
|
+
* },
|
|
173
|
+
* ],
|
|
174
|
+
* });
|
|
175
|
+
* const example-asym = mongodbatlas.getAdvancedClusterOutput({
|
|
176
|
+
* projectId: example.projectId,
|
|
177
|
+
* name: example.name,
|
|
178
|
+
* useReplicationSpecPerShard: true,
|
|
179
|
+
* });
|
|
180
|
+
* ```
|
|
90
181
|
*/
|
|
91
182
|
function getAdvancedClustersOutput(args, opts) {
|
|
92
183
|
return pulumi.output(args).apply((a) => getAdvancedClusters(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAdvancedClusters.js","sourceRoot":"","sources":["../getAdvancedClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAdvancedClusters.js","sourceRoot":"","sources":["../getAdvancedClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,4BAA4B,EAAE,IAAI,CAAC,0BAA0B;KAChE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AA+BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
|
|
@@ -6,42 +6,6 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
* `mongodbatlas.CloudBackupSchedule` provides a Cloud Backup Schedule datasource. An Atlas Cloud Backup Schedule provides the current cloud backup schedule for the cluster.
|
|
7
7
|
*
|
|
8
8
|
* > **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
9
|
-
*
|
|
10
|
-
* ## Example Usage
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
15
|
-
*
|
|
16
|
-
* const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
|
|
17
|
-
* projectId: "<PROJECT-ID>",
|
|
18
|
-
* name: "clusterTest",
|
|
19
|
-
* clusterType: "REPLICASET",
|
|
20
|
-
* backupEnabled: true,
|
|
21
|
-
* replicationSpecs: [{
|
|
22
|
-
* regionConfigs: [{
|
|
23
|
-
* priority: 7,
|
|
24
|
-
* providerName: "AWS",
|
|
25
|
-
* regionName: "EU_CENTRAL_1",
|
|
26
|
-
* electableSpecs: {
|
|
27
|
-
* instanceSize: "M10",
|
|
28
|
-
* nodeCount: 3,
|
|
29
|
-
* },
|
|
30
|
-
* }],
|
|
31
|
-
* }],
|
|
32
|
-
* });
|
|
33
|
-
* const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
|
|
34
|
-
* projectId: myCluster.projectId,
|
|
35
|
-
* clusterName: myCluster.name,
|
|
36
|
-
* referenceHourOfDay: 3,
|
|
37
|
-
* referenceMinuteOfHour: 45,
|
|
38
|
-
* restoreWindowDays: 4,
|
|
39
|
-
* });
|
|
40
|
-
* const test = mongodbatlas.getCloudBackupScheduleOutput({
|
|
41
|
-
* projectId: testCloudBackupSchedule.projectId,
|
|
42
|
-
* clusterName: testCloudBackupSchedule.clusterName,
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
9
|
*/
|
|
46
10
|
export declare function getCloudBackupSchedule(args: GetCloudBackupScheduleArgs, opts?: pulumi.InvokeOptions): Promise<GetCloudBackupScheduleResult>;
|
|
47
11
|
/**
|
|
@@ -56,6 +20,10 @@ export interface GetCloudBackupScheduleArgs {
|
|
|
56
20
|
* The unique identifier of the project for the Atlas cluster.
|
|
57
21
|
*/
|
|
58
22
|
projectId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Set this field to `true` to allow the data source to use the latest schema that populates `copy_settings.#.zone_id` instead of the deprecated `copy_settings.#.replication_spec_id`. These fields also enable you to reference cluster zones using independent shard scaling, which no longer supports `replication_spec.*.id`. To learn more, see the 1.18.0 upgrade guide.
|
|
25
|
+
*/
|
|
26
|
+
useZoneIdForCopySettings?: boolean;
|
|
59
27
|
}
|
|
60
28
|
/**
|
|
61
29
|
* A collection of values returned by getCloudBackupSchedule.
|
|
@@ -72,7 +40,13 @@ export interface GetCloudBackupScheduleResult {
|
|
|
72
40
|
*/
|
|
73
41
|
readonly clusterId: string;
|
|
74
42
|
readonly clusterName: string;
|
|
43
|
+
/**
|
|
44
|
+
* List that contains a document for each copy setting item in the desired backup policy. See below
|
|
45
|
+
*/
|
|
75
46
|
readonly copySettings: outputs.GetCloudBackupScheduleCopySetting[];
|
|
47
|
+
/**
|
|
48
|
+
* Policy for automatically exporting Cloud Backup Snapshots. See below
|
|
49
|
+
*/
|
|
76
50
|
readonly exports: outputs.GetCloudBackupScheduleExport[];
|
|
77
51
|
/**
|
|
78
52
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -87,23 +61,23 @@ export interface GetCloudBackupScheduleResult {
|
|
|
87
61
|
*/
|
|
88
62
|
readonly nextSnapshot: string;
|
|
89
63
|
/**
|
|
90
|
-
* Daily policy item
|
|
64
|
+
* (Optional) Daily policy item. See below
|
|
91
65
|
*/
|
|
92
66
|
readonly policyItemDailies: outputs.GetCloudBackupSchedulePolicyItemDaily[];
|
|
93
67
|
/**
|
|
94
|
-
* Hourly policy item
|
|
68
|
+
* (Optional) Hourly policy item. See below
|
|
95
69
|
*/
|
|
96
70
|
readonly policyItemHourlies: outputs.GetCloudBackupSchedulePolicyItemHourly[];
|
|
97
71
|
/**
|
|
98
|
-
* Monthly policy item
|
|
72
|
+
* (Optional) Monthly policy item. See below
|
|
99
73
|
*/
|
|
100
74
|
readonly policyItemMonthlies: outputs.GetCloudBackupSchedulePolicyItemMonthly[];
|
|
101
75
|
/**
|
|
102
|
-
* Weekly policy item
|
|
76
|
+
* (Optional) Weekly policy item. See below
|
|
103
77
|
*/
|
|
104
78
|
readonly policyItemWeeklies: outputs.GetCloudBackupSchedulePolicyItemWeekly[];
|
|
105
79
|
/**
|
|
106
|
-
* Yearly policy item
|
|
80
|
+
* (Optional) Yearly policy item. See below
|
|
107
81
|
*/
|
|
108
82
|
readonly policyItemYearlies: outputs.GetCloudBackupSchedulePolicyItemYearly[];
|
|
109
83
|
readonly projectId: string;
|
|
@@ -123,6 +97,7 @@ export interface GetCloudBackupScheduleResult {
|
|
|
123
97
|
* Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your S3 bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see [Export Cloud Backup Snapshot](https://www.mongodb.com/docs/atlas/backup/cloud-backup/export/#std-label-cloud-provider-snapshot-export).
|
|
124
98
|
*/
|
|
125
99
|
readonly useOrgAndGroupNamesInExportPrefix: boolean;
|
|
100
|
+
readonly useZoneIdForCopySettings?: boolean;
|
|
126
101
|
}
|
|
127
102
|
/**
|
|
128
103
|
* ## # Data Source: mongodbatlas.CloudBackupSchedule
|
|
@@ -130,42 +105,6 @@ export interface GetCloudBackupScheduleResult {
|
|
|
130
105
|
* `mongodbatlas.CloudBackupSchedule` provides a Cloud Backup Schedule datasource. An Atlas Cloud Backup Schedule provides the current cloud backup schedule for the cluster.
|
|
131
106
|
*
|
|
132
107
|
* > **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
133
|
-
*
|
|
134
|
-
* ## Example Usage
|
|
135
|
-
*
|
|
136
|
-
* ```typescript
|
|
137
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
138
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
139
|
-
*
|
|
140
|
-
* const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
|
|
141
|
-
* projectId: "<PROJECT-ID>",
|
|
142
|
-
* name: "clusterTest",
|
|
143
|
-
* clusterType: "REPLICASET",
|
|
144
|
-
* backupEnabled: true,
|
|
145
|
-
* replicationSpecs: [{
|
|
146
|
-
* regionConfigs: [{
|
|
147
|
-
* priority: 7,
|
|
148
|
-
* providerName: "AWS",
|
|
149
|
-
* regionName: "EU_CENTRAL_1",
|
|
150
|
-
* electableSpecs: {
|
|
151
|
-
* instanceSize: "M10",
|
|
152
|
-
* nodeCount: 3,
|
|
153
|
-
* },
|
|
154
|
-
* }],
|
|
155
|
-
* }],
|
|
156
|
-
* });
|
|
157
|
-
* const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
|
|
158
|
-
* projectId: myCluster.projectId,
|
|
159
|
-
* clusterName: myCluster.name,
|
|
160
|
-
* referenceHourOfDay: 3,
|
|
161
|
-
* referenceMinuteOfHour: 45,
|
|
162
|
-
* restoreWindowDays: 4,
|
|
163
|
-
* });
|
|
164
|
-
* const test = mongodbatlas.getCloudBackupScheduleOutput({
|
|
165
|
-
* projectId: testCloudBackupSchedule.projectId,
|
|
166
|
-
* clusterName: testCloudBackupSchedule.clusterName,
|
|
167
|
-
* });
|
|
168
|
-
* ```
|
|
169
108
|
*/
|
|
170
109
|
export declare function getCloudBackupScheduleOutput(args: GetCloudBackupScheduleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCloudBackupScheduleResult>;
|
|
171
110
|
/**
|
|
@@ -180,4 +119,8 @@ export interface GetCloudBackupScheduleOutputArgs {
|
|
|
180
119
|
* The unique identifier of the project for the Atlas cluster.
|
|
181
120
|
*/
|
|
182
121
|
projectId: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Set this field to `true` to allow the data source to use the latest schema that populates `copy_settings.#.zone_id` instead of the deprecated `copy_settings.#.replication_spec_id`. These fields also enable you to reference cluster zones using independent shard scaling, which no longer supports `replication_spec.*.id`. To learn more, see the 1.18.0 upgrade guide.
|
|
124
|
+
*/
|
|
125
|
+
useZoneIdForCopySettings?: pulumi.Input<boolean>;
|
|
183
126
|
}
|