@pulumi/mongodbatlas 3.17.0-alpha.1723454188 → 3.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 +95 -80
- package/advancedCluster.js +81 -74
- package/advancedCluster.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.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
|
}
|
|
@@ -11,48 +11,13 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* `mongodbatlas.CloudBackupSchedule` provides a Cloud Backup Schedule datasource. An Atlas Cloud Backup Schedule provides the current cloud backup schedule for the cluster.
|
|
12
12
|
*
|
|
13
13
|
* > **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
14
|
-
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
20
|
-
*
|
|
21
|
-
* const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
|
|
22
|
-
* projectId: "<PROJECT-ID>",
|
|
23
|
-
* name: "clusterTest",
|
|
24
|
-
* clusterType: "REPLICASET",
|
|
25
|
-
* backupEnabled: true,
|
|
26
|
-
* replicationSpecs: [{
|
|
27
|
-
* regionConfigs: [{
|
|
28
|
-
* priority: 7,
|
|
29
|
-
* providerName: "AWS",
|
|
30
|
-
* regionName: "EU_CENTRAL_1",
|
|
31
|
-
* electableSpecs: {
|
|
32
|
-
* instanceSize: "M10",
|
|
33
|
-
* nodeCount: 3,
|
|
34
|
-
* },
|
|
35
|
-
* }],
|
|
36
|
-
* }],
|
|
37
|
-
* });
|
|
38
|
-
* const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
|
|
39
|
-
* projectId: myCluster.projectId,
|
|
40
|
-
* clusterName: myCluster.name,
|
|
41
|
-
* referenceHourOfDay: 3,
|
|
42
|
-
* referenceMinuteOfHour: 45,
|
|
43
|
-
* restoreWindowDays: 4,
|
|
44
|
-
* });
|
|
45
|
-
* const test = mongodbatlas.getCloudBackupScheduleOutput({
|
|
46
|
-
* projectId: testCloudBackupSchedule.projectId,
|
|
47
|
-
* clusterName: testCloudBackupSchedule.clusterName,
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
14
|
*/
|
|
51
15
|
function getCloudBackupSchedule(args, opts) {
|
|
52
16
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
53
17
|
return pulumi.runtime.invoke("mongodbatlas:index/getCloudBackupSchedule:getCloudBackupSchedule", {
|
|
54
18
|
"clusterName": args.clusterName,
|
|
55
19
|
"projectId": args.projectId,
|
|
20
|
+
"useZoneIdForCopySettings": args.useZoneIdForCopySettings,
|
|
56
21
|
}, opts);
|
|
57
22
|
}
|
|
58
23
|
exports.getCloudBackupSchedule = getCloudBackupSchedule;
|
|
@@ -62,42 +27,6 @@ exports.getCloudBackupSchedule = getCloudBackupSchedule;
|
|
|
62
27
|
* `mongodbatlas.CloudBackupSchedule` provides a Cloud Backup Schedule datasource. An Atlas Cloud Backup Schedule provides the current cloud backup schedule for the cluster.
|
|
63
28
|
*
|
|
64
29
|
* > **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
65
|
-
*
|
|
66
|
-
* ## Example Usage
|
|
67
|
-
*
|
|
68
|
-
* ```typescript
|
|
69
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
71
|
-
*
|
|
72
|
-
* const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
|
|
73
|
-
* projectId: "<PROJECT-ID>",
|
|
74
|
-
* name: "clusterTest",
|
|
75
|
-
* clusterType: "REPLICASET",
|
|
76
|
-
* backupEnabled: true,
|
|
77
|
-
* replicationSpecs: [{
|
|
78
|
-
* regionConfigs: [{
|
|
79
|
-
* priority: 7,
|
|
80
|
-
* providerName: "AWS",
|
|
81
|
-
* regionName: "EU_CENTRAL_1",
|
|
82
|
-
* electableSpecs: {
|
|
83
|
-
* instanceSize: "M10",
|
|
84
|
-
* nodeCount: 3,
|
|
85
|
-
* },
|
|
86
|
-
* }],
|
|
87
|
-
* }],
|
|
88
|
-
* });
|
|
89
|
-
* const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
|
|
90
|
-
* projectId: myCluster.projectId,
|
|
91
|
-
* clusterName: myCluster.name,
|
|
92
|
-
* referenceHourOfDay: 3,
|
|
93
|
-
* referenceMinuteOfHour: 45,
|
|
94
|
-
* restoreWindowDays: 4,
|
|
95
|
-
* });
|
|
96
|
-
* const test = mongodbatlas.getCloudBackupScheduleOutput({
|
|
97
|
-
* projectId: testCloudBackupSchedule.projectId,
|
|
98
|
-
* clusterName: testCloudBackupSchedule.clusterName,
|
|
99
|
-
* });
|
|
100
|
-
* ```
|
|
101
30
|
*/
|
|
102
31
|
function getCloudBackupScheduleOutput(args, opts) {
|
|
103
32
|
return pulumi.output(args).apply((a) => getCloudBackupSchedule(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCloudBackupSchedule.js","sourceRoot":"","sources":["../getCloudBackupSchedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getCloudBackupSchedule.js","sourceRoot":"","sources":["../getCloudBackupSchedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAEhG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kEAAkE,EAAE;QAC7F,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,0BAA0B,EAAE,IAAI,CAAC,wBAAwB;KAC5D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wDAQC;AA8FD;;;;;;GAMG;AACH,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAA2B;IAC5G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjF,CAAC;AAFD,oEAEC"}
|
|
@@ -33,10 +33,6 @@ export interface GetCloudBackupSnapshotExportBucketArgs {
|
|
|
33
33
|
* Unique identifier of the snapshot export bucket.
|
|
34
34
|
*/
|
|
35
35
|
exportBucketId: string;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.
|
|
38
|
-
*/
|
|
39
|
-
id?: string;
|
|
40
36
|
/**
|
|
41
37
|
* The unique identifier of the project for the Atlas cluster.
|
|
42
38
|
*/
|
|
@@ -47,23 +43,32 @@ export interface GetCloudBackupSnapshotExportBucketArgs {
|
|
|
47
43
|
*/
|
|
48
44
|
export interface GetCloudBackupSnapshotExportBucketResult {
|
|
49
45
|
/**
|
|
50
|
-
* Name of the bucket that the provided role ID is authorized to access.
|
|
46
|
+
* Name of the bucket that the provided role ID is authorized to access.
|
|
51
47
|
*/
|
|
52
48
|
readonly bucketName: string;
|
|
53
49
|
/**
|
|
54
|
-
* Name of the provider of the cloud service where Atlas can access the S3 bucket.
|
|
50
|
+
* Name of the provider of the cloud service where Atlas can access the S3 bucket.
|
|
55
51
|
*/
|
|
56
52
|
readonly cloudProvider: string;
|
|
57
53
|
readonly exportBucketId: string;
|
|
58
54
|
/**
|
|
59
|
-
* Unique identifier of the role that Atlas can use to access the bucket.
|
|
55
|
+
* Unique identifier of the role that Atlas can use to access the bucket.
|
|
60
56
|
*/
|
|
61
57
|
readonly iamRoleId: string;
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.
|
|
64
|
-
*/
|
|
65
58
|
readonly id: string;
|
|
66
59
|
readonly projectId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Unique identifier of the Azure Service Principal that Atlas can use to access the Azure Blob Storage Container.
|
|
62
|
+
*/
|
|
63
|
+
readonly roleId: string;
|
|
64
|
+
/**
|
|
65
|
+
* URL that identifies the blob Endpoint of the Azure Blob Storage Account.
|
|
66
|
+
*/
|
|
67
|
+
readonly serviceUrl: string;
|
|
68
|
+
/**
|
|
69
|
+
* UUID that identifies the Azure Active Directory Tenant ID.
|
|
70
|
+
*/
|
|
71
|
+
readonly tenantId: string;
|
|
67
72
|
}
|
|
68
73
|
/**
|
|
69
74
|
* ## # Data Source: mongodbatlas.CloudBackupSnapshotExportBucket
|
|
@@ -99,10 +104,6 @@ export interface GetCloudBackupSnapshotExportBucketOutputArgs {
|
|
|
99
104
|
* Unique identifier of the snapshot export bucket.
|
|
100
105
|
*/
|
|
101
106
|
exportBucketId: pulumi.Input<string>;
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.
|
|
104
|
-
*/
|
|
105
|
-
id?: pulumi.Input<string>;
|
|
106
107
|
/**
|
|
107
108
|
* The unique identifier of the project for the Atlas cluster.
|
|
108
109
|
*/
|