@pulumi/mongodbatlas 4.17.0 → 4.17.1-alpha.1791908823

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.
@@ -134,7 +134,7 @@ import * as outputs from "./types/output";
134
134
  * pointInTime: true,
135
135
  * targetClusterName: clusterTest.name,
136
136
  * targetProjectId: clusterTest.projectId,
137
- * pointInTimeUtcSeconds: Number(pointInTimeUtcSeconds),
137
+ * pointInTimeUtcSeconds: pointInTimeUtcSeconds,
138
138
  * },
139
139
  * }));
140
140
  * }
@@ -161,7 +161,7 @@ const utilities = __importStar(require("./utilities"));
161
161
  * pointInTime: true,
162
162
  * targetClusterName: clusterTest.name,
163
163
  * targetProjectId: clusterTest.projectId,
164
- * pointInTimeUtcSeconds: Number(pointInTimeUtcSeconds),
164
+ * pointInTimeUtcSeconds: pointInTimeUtcSeconds,
165
165
  * },
166
166
  * }));
167
167
  * }
@@ -12,7 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
14
14
  *
15
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
15
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
16
16
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
17
17
  * projectId: projectId,
18
18
  * clusterName: clusterName,
@@ -41,7 +41,7 @@ const utilities = __importStar(require("./utilities"));
41
41
  * import * as pulumi from "@pulumi/pulumi";
42
42
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
43
43
  *
44
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
44
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
45
45
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
46
46
  * projectId: projectId,
47
47
  * clusterName: clusterName,
@@ -35,7 +35,7 @@ import * as outputs from "./types/output";
35
35
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
36
36
  * projectId: thisAdvancedCluster.projectId,
37
37
  * clusterName: thisAdvancedCluster.name,
38
- * durationSeconds: Number(durationSeconds),
38
+ * durationSeconds: durationSeconds,
39
39
  * });
40
40
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
41
41
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -62,7 +62,7 @@ const utilities = __importStar(require("./utilities"));
62
62
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
63
63
  * projectId: thisAdvancedCluster.projectId,
64
64
  * clusterName: thisAdvancedCluster.name,
65
- * durationSeconds: Number(durationSeconds),
65
+ * durationSeconds: durationSeconds,
66
66
  * });
67
67
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
68
68
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -29,7 +29,7 @@ import * as outputs from "./types/output";
29
29
  * const jobId = std.coalesce({
30
30
  * input: [
31
31
  * jobIdConfig,
32
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
32
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
33
33
  * ],
34
34
  * }).result;
35
35
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -195,7 +195,7 @@ export interface GetCloudBackupCollectionRestoreJobResult {
195
195
  * const jobId = std.coalesce({
196
196
  * input: [
197
197
  * jobIdConfig,
198
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
198
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
199
199
  * ],
200
200
  * }).result;
201
201
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -57,7 +57,7 @@ const utilities = __importStar(require("./utilities"));
57
57
  * const jobId = std.coalesce({
58
58
  * input: [
59
59
  * jobIdConfig,
60
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
60
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
61
61
  * ],
62
62
  * }).result;
63
63
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -121,7 +121,7 @@ exports.getCloudBackupCollectionRestoreJob = getCloudBackupCollectionRestoreJob;
121
121
  * const jobId = std.coalesce({
122
122
  * input: [
123
123
  * jobIdConfig,
124
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
124
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
125
125
  * ],
126
126
  * }).result;
127
127
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -31,7 +31,7 @@ import * as outputs from "./types/output";
31
31
  * const sourceNamespace = std.coalesce({
32
32
  * input: [
33
33
  * sourceNamespaceConfig,
34
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
34
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
35
35
  * ],
36
36
  * }).result;
37
37
  * export const collectionStates = .map(c => ({
@@ -155,7 +155,7 @@ export interface GetCloudBackupCollectionRestoreJobCollectionResult {
155
155
  * const sourceNamespace = std.coalesce({
156
156
  * input: [
157
157
  * sourceNamespaceConfig,
158
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
158
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
159
159
  * ],
160
160
  * }).result;
161
161
  * export const collectionStates = .map(c => ({
@@ -59,7 +59,7 @@ const utilities = __importStar(require("./utilities"));
59
59
  * const sourceNamespace = std.coalesce({
60
60
  * input: [
61
61
  * sourceNamespaceConfig,
62
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
62
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
63
63
  * ],
64
64
  * }).result;
65
65
  * export const collectionStates = .map(c => ({
@@ -126,7 +126,7 @@ exports.getCloudBackupCollectionRestoreJobCollection = getCloudBackupCollectionR
126
126
  * const sourceNamespace = std.coalesce({
127
127
  * input: [
128
128
  * sourceNamespaceConfig,
129
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
129
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
130
130
  * ],
131
131
  * }).result;
132
132
  * export const collectionStates = .map(c => ({
@@ -31,7 +31,7 @@ import * as outputs from "./types/output";
31
31
  * const sourceNamespace = std.coalesce({
32
32
  * input: [
33
33
  * sourceNamespaceConfig,
34
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
34
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
35
35
  * ],
36
36
  * }).result;
37
37
  * export const collectionStates = .map(c => ({
@@ -151,7 +151,7 @@ export interface GetCloudBackupCollectionRestoreJobCollectionsResult {
151
151
  * const sourceNamespace = std.coalesce({
152
152
  * input: [
153
153
  * sourceNamespaceConfig,
154
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
154
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
155
155
  * ],
156
156
  * }).result;
157
157
  * export const collectionStates = .map(c => ({
@@ -59,7 +59,7 @@ const utilities = __importStar(require("./utilities"));
59
59
  * const sourceNamespace = std.coalesce({
60
60
  * input: [
61
61
  * sourceNamespaceConfig,
62
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
62
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
63
63
  * ],
64
64
  * }).result;
65
65
  * export const collectionStates = .map(c => ({
@@ -128,7 +128,7 @@ exports.getCloudBackupCollectionRestoreJobCollections = getCloudBackupCollection
128
128
  * const sourceNamespace = std.coalesce({
129
129
  * input: [
130
130
  * sourceNamespaceConfig,
131
- * collections.length > 0 ? collections[collections.length - 1].sourceNamespace : null,
131
+ * Object.keys(collections).length > 0 ? collections[Object.keys(collections).length - 1].sourceNamespace : null,
132
132
  * ],
133
133
  * }).result;
134
134
  * export const collectionStates = .map(c => ({
@@ -29,7 +29,7 @@ import * as outputs from "./types/output";
29
29
  * const jobId = std.coalesce({
30
30
  * input: [
31
31
  * jobIdConfig,
32
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
32
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
33
33
  * ],
34
34
  * }).result;
35
35
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -115,7 +115,7 @@ export interface GetCloudBackupCollectionRestoreJobsResult {
115
115
  * const jobId = std.coalesce({
116
116
  * input: [
117
117
  * jobIdConfig,
118
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
118
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
119
119
  * ],
120
120
  * }).result;
121
121
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -57,7 +57,7 @@ const utilities = __importStar(require("./utilities"));
57
57
  * const jobId = std.coalesce({
58
58
  * input: [
59
59
  * jobIdConfig,
60
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
60
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
61
61
  * ],
62
62
  * }).result;
63
63
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -120,7 +120,7 @@ exports.getCloudBackupCollectionRestoreJobs = getCloudBackupCollectionRestoreJob
120
120
  * const jobId = std.coalesce({
121
121
  * input: [
122
122
  * jobIdConfig,
123
- * jobs.length > 0 ? jobs[jobs.length - 1].jobId : null,
123
+ * Object.keys(jobs).length > 0 ? jobs[Object.keys(jobs).length - 1].jobId : null,
124
124
  * ],
125
125
  * }).result;
126
126
  * const thisGetCloudBackupCollectionRestoreJob = await mongodbatlas.getCloudBackupCollectionRestoreJob({
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
12
12
  *
13
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
13
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
14
14
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
15
15
  * projectId: projectId,
16
16
  * clusterName: clusterName,
@@ -71,7 +71,7 @@ export interface GetClusterAdaptiveSettingsResult {
71
71
  * import * as pulumi from "@pulumi/pulumi";
72
72
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
73
73
  *
74
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
74
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
75
75
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
76
76
  * projectId: projectId,
77
77
  * clusterName: clusterName,
@@ -39,7 +39,7 @@ const utilities = __importStar(require("./utilities"));
39
39
  * import * as pulumi from "@pulumi/pulumi";
40
40
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
41
41
  *
42
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
42
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
43
43
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
44
44
  * projectId: projectId,
45
45
  * clusterName: clusterName,
@@ -73,7 +73,7 @@ exports.getClusterAdaptiveSettings = getClusterAdaptiveSettings;
73
73
  * import * as pulumi from "@pulumi/pulumi";
74
74
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
75
75
  *
76
- * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding data source.
76
+ * // Manage Adaptive Settings overrides for an existing MongoDB Atlas cluster and read the resulting effective settings with the corresponding function.
77
77
  * const thisClusterAdaptiveSettings = new mongodbatlas.ClusterAdaptiveSettings("this", {
78
78
  * projectId: projectId,
79
79
  * clusterName: clusterName,
@@ -29,7 +29,7 @@ import * as pulumi from "@pulumi/pulumi";
29
29
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
30
30
  * projectId: thisAdvancedCluster.projectId,
31
31
  * clusterName: thisAdvancedCluster.name,
32
- * durationSeconds: Number(durationSeconds),
32
+ * durationSeconds: durationSeconds,
33
33
  * });
34
34
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
35
35
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -123,7 +123,7 @@ export interface GetClusterOverloadSimulationResult {
123
123
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
124
124
  * projectId: thisAdvancedCluster.projectId,
125
125
  * clusterName: thisAdvancedCluster.name,
126
- * durationSeconds: Number(durationSeconds),
126
+ * durationSeconds: durationSeconds,
127
127
  * });
128
128
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
129
129
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -58,7 +58,7 @@ const utilities = __importStar(require("./utilities"));
58
58
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
59
59
  * projectId: thisAdvancedCluster.projectId,
60
60
  * clusterName: thisAdvancedCluster.name,
61
- * durationSeconds: Number(durationSeconds),
61
+ * durationSeconds: durationSeconds,
62
62
  * });
63
63
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
64
64
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -106,7 +106,7 @@ exports.getClusterOverloadSimulation = getClusterOverloadSimulation;
106
106
  * const thisClusterOverloadSimulation = new mongodbatlas.ClusterOverloadSimulation("this", {
107
107
  * projectId: thisAdvancedCluster.projectId,
108
108
  * clusterName: thisAdvancedCluster.name,
109
- * durationSeconds: Number(durationSeconds),
109
+ * durationSeconds: durationSeconds,
110
110
  * });
111
111
  * const _this = mongodbatlas.getClusterOverloadSimulationOutput({
112
112
  * projectId: thisClusterOverloadSimulation.projectId,
@@ -20,7 +20,7 @@ import * as outputs from "./types/output";
20
20
  * projectId: atlasProjectId,
21
21
  * cloudProvider: "AZURE",
22
22
  * });
23
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
23
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
24
24
  * ```
25
25
  *
26
26
  * ### Encryption At Rest AWS KMS Private Endpoint
@@ -32,7 +32,7 @@ import * as outputs from "./types/output";
32
32
  * projectId: atlasProjectId,
33
33
  * cloudProvider: "AWS",
34
34
  * });
35
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
35
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
36
36
  * ```
37
37
  */
38
38
  export declare function getEncryptionAtRestPrivateEndpoints(args: GetEncryptionAtRestPrivateEndpointsArgs, opts?: pulumi.InvokeOptions): Promise<GetEncryptionAtRestPrivateEndpointsResult>;
@@ -86,7 +86,7 @@ export interface GetEncryptionAtRestPrivateEndpointsResult {
86
86
  * projectId: atlasProjectId,
87
87
  * cloudProvider: "AZURE",
88
88
  * });
89
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
89
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
90
90
  * ```
91
91
  *
92
92
  * ### Encryption At Rest AWS KMS Private Endpoint
@@ -98,7 +98,7 @@ export interface GetEncryptionAtRestPrivateEndpointsResult {
98
98
  * projectId: atlasProjectId,
99
99
  * cloudProvider: "AWS",
100
100
  * });
101
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
101
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
102
102
  * ```
103
103
  */
104
104
  export declare function getEncryptionAtRestPrivateEndpointsOutput(args: GetEncryptionAtRestPrivateEndpointsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEncryptionAtRestPrivateEndpointsResult>;
@@ -48,7 +48,7 @@ const utilities = __importStar(require("./utilities"));
48
48
  * projectId: atlasProjectId,
49
49
  * cloudProvider: "AZURE",
50
50
  * });
51
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
51
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
52
52
  * ```
53
53
  *
54
54
  * ### Encryption At Rest AWS KMS Private Endpoint
@@ -60,7 +60,7 @@ const utilities = __importStar(require("./utilities"));
60
60
  * projectId: atlasProjectId,
61
61
  * cloudProvider: "AWS",
62
62
  * });
63
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
63
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
64
64
  * ```
65
65
  */
66
66
  function getEncryptionAtRestPrivateEndpoints(args, opts) {
@@ -91,7 +91,7 @@ exports.getEncryptionAtRestPrivateEndpoints = getEncryptionAtRestPrivateEndpoint
91
91
  * projectId: atlasProjectId,
92
92
  * cloudProvider: "AZURE",
93
93
  * });
94
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
94
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
95
95
  * ```
96
96
  *
97
97
  * ### Encryption At Rest AWS KMS Private Endpoint
@@ -103,7 +103,7 @@ exports.getEncryptionAtRestPrivateEndpoints = getEncryptionAtRestPrivateEndpoint
103
103
  * projectId: atlasProjectId,
104
104
  * cloudProvider: "AWS",
105
105
  * });
106
- * export const numberOfEndpoints = plural.then(plural => plural.results).length;
106
+ * export const numberOfEndpoints = plural.then(plural => plural.results.length);
107
107
  * ```
108
108
  */
109
109
  function getEncryptionAtRestPrivateEndpointsOutput(args, opts) {
@@ -37,7 +37,7 @@ import * as outputs from "./types/output";
37
37
  * bucketName: logBucket.bucket,
38
38
  * iamRoleId: auth.roleId,
39
39
  * prefixPath: "atlas-logs",
40
- * useLegacyPathStructure: useLegacyPathStructure === "true",
40
+ * useLegacyPathStructure: useLegacyPathStructure,
41
41
  * });
42
42
  * ```
43
43
  *
package/logIntegration.js CHANGED
@@ -64,7 +64,7 @@ const utilities = __importStar(require("./utilities"));
64
64
  * bucketName: logBucket.bucket,
65
65
  * iamRoleId: auth.roleId,
66
66
  * prefixPath: "atlas-logs",
67
- * useLegacyPathStructure: useLegacyPathStructure === "true",
67
+ * useLegacyPathStructure: useLegacyPathStructure,
68
68
  * });
69
69
  * ```
70
70
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/mongodbatlas",
3
- "version": "4.17.0",
3
+ "version": "4.17.1-alpha.1791908823",
4
4
  "description": "A Pulumi package for creating and managing mongodbatlas cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "mongodbatlas",
26
- "version": "4.17.0"
26
+ "version": "4.17.1-alpha.1791908823"
27
27
  }
28
28
  }