@pulumi/mongodbatlas 3.15.0-alpha.1713333524 → 3.15.0-alpha.1713461951

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.
Files changed (232) hide show
  1. package/accessListApiKey.d.ts +4 -4
  2. package/accessListApiKey.js +4 -4
  3. package/advancedCluster.d.ts +28 -45
  4. package/advancedCluster.js +28 -45
  5. package/advancedCluster.js.map +1 -1
  6. package/alertConfiguration.d.ts +44 -44
  7. package/alertConfiguration.js +44 -44
  8. package/auditing.d.ts +2 -2
  9. package/auditing.js +2 -2
  10. package/backupCompliancePolicy.d.ts +85 -0
  11. package/backupCompliancePolicy.js +85 -0
  12. package/backupCompliancePolicy.js.map +1 -1
  13. package/cloudBackupSnapshot.d.ts +7 -7
  14. package/cloudBackupSnapshot.js +7 -7
  15. package/cloudBackupSnapshotExportBucket.d.ts +2 -2
  16. package/cloudBackupSnapshotExportBucket.js +2 -2
  17. package/cloudBackupSnapshotExportJob.d.ts +3 -3
  18. package/cloudBackupSnapshotExportJob.js +3 -3
  19. package/cloudBackupSnapshotRestoreJob.d.ts +78 -11
  20. package/cloudBackupSnapshotRestoreJob.js +78 -11
  21. package/cloudBackupSnapshotRestoreJob.js.map +1 -1
  22. package/cluster.d.ts +48 -64
  23. package/cluster.js +48 -64
  24. package/cluster.js.map +1 -1
  25. package/clusterOutageSimulation.d.ts +2 -2
  26. package/clusterOutageSimulation.js +2 -2
  27. package/customDbRole.d.ts +6 -6
  28. package/customDbRole.js +6 -6
  29. package/customDnsConfigurationClusterAws.d.ts +1 -1
  30. package/customDnsConfigurationClusterAws.js +1 -1
  31. package/databaseUser.d.ts +19 -19
  32. package/databaseUser.js +19 -19
  33. package/eventTrigger.d.ts +24 -20
  34. package/eventTrigger.js +24 -20
  35. package/eventTrigger.js.map +1 -1
  36. package/federatedDatabaseInstance.d.ts +10 -8
  37. package/federatedDatabaseInstance.js +10 -8
  38. package/federatedDatabaseInstance.js.map +1 -1
  39. package/federatedQueryLimit.d.ts +2 -2
  40. package/federatedQueryLimit.js +2 -2
  41. package/federatedSettingsIdentityProvider.d.ts +6 -5
  42. package/federatedSettingsIdentityProvider.js +6 -5
  43. package/federatedSettingsIdentityProvider.js.map +1 -1
  44. package/federatedSettingsOrgRoleMapping.d.ts +2 -2
  45. package/federatedSettingsOrgRoleMapping.js +2 -2
  46. package/get509AuthenticationDatabaseUser.d.ts +64 -0
  47. package/get509AuthenticationDatabaseUser.js +64 -0
  48. package/get509AuthenticationDatabaseUser.js.map +1 -1
  49. package/getAdvancedCluster.d.ts +60 -0
  50. package/getAdvancedCluster.js +60 -0
  51. package/getAdvancedCluster.js.map +1 -1
  52. package/getAlertConfiguration.d.ts +202 -0
  53. package/getAlertConfiguration.js +202 -0
  54. package/getAlertConfiguration.js.map +1 -1
  55. package/getAtlasUsers.d.ts +2 -2
  56. package/getAtlasUsers.js +2 -2
  57. package/getAuditing.d.ts +38 -0
  58. package/getAuditing.js +38 -0
  59. package/getAuditing.js.map +1 -1
  60. package/getBackupCompliancePolicy.d.ts +170 -0
  61. package/getBackupCompliancePolicy.js +170 -0
  62. package/getBackupCompliancePolicy.js.map +1 -1
  63. package/getCloudBackupSchedule.d.ts +58 -0
  64. package/getCloudBackupSchedule.js +58 -0
  65. package/getCloudBackupSchedule.js.map +1 -1
  66. package/getCloudBackupSnapshot.d.ts +42 -0
  67. package/getCloudBackupSnapshot.js +42 -0
  68. package/getCloudBackupSnapshot.js.map +1 -1
  69. package/getCloudBackupSnapshotExportBucket.d.ts +40 -0
  70. package/getCloudBackupSnapshotExportBucket.js +40 -0
  71. package/getCloudBackupSnapshotExportBucket.js.map +1 -1
  72. package/getCloudBackupSnapshotExportBuckets.d.ts +8 -8
  73. package/getCloudBackupSnapshotExportBuckets.js +8 -8
  74. package/getCloudBackupSnapshotExportJob.d.ts +62 -0
  75. package/getCloudBackupSnapshotExportJob.js +62 -0
  76. package/getCloudBackupSnapshotExportJob.js.map +1 -1
  77. package/getCloudBackupSnapshotExportJobs.d.ts +6 -6
  78. package/getCloudBackupSnapshotExportJobs.js +6 -6
  79. package/getCloudBackupSnapshotRestoreJobs.d.ts +6 -6
  80. package/getCloudBackupSnapshotRestoreJobs.js +6 -6
  81. package/getCloudProviderAccessSetup.d.ts +4 -4
  82. package/getCloudProviderAccessSetup.js +4 -4
  83. package/getCluster.d.ts +64 -0
  84. package/getCluster.js +64 -0
  85. package/getCluster.js.map +1 -1
  86. package/getClusterOutageSimulation.d.ts +2 -2
  87. package/getClusterOutageSimulation.js +2 -2
  88. package/getClusters.d.ts +6 -4
  89. package/getClusters.js +6 -4
  90. package/getClusters.js.map +1 -1
  91. package/getCustomDbRole.d.ts +2 -2
  92. package/getCustomDbRole.js +2 -2
  93. package/getCustomDnsConfigurationClusterAws.d.ts +34 -0
  94. package/getCustomDnsConfigurationClusterAws.js +34 -0
  95. package/getCustomDnsConfigurationClusterAws.js.map +1 -1
  96. package/getDatabaseUser.d.ts +132 -0
  97. package/getDatabaseUser.js +132 -0
  98. package/getDatabaseUser.js.map +1 -1
  99. package/getDatabaseUsers.d.ts +14 -14
  100. package/getDatabaseUsers.js +14 -14
  101. package/getFederatedDatabaseInstance.d.ts +6 -6
  102. package/getFederatedDatabaseInstance.js +6 -6
  103. package/getFederatedQueryLimit.d.ts +2 -2
  104. package/getFederatedQueryLimit.js +2 -2
  105. package/getFederatedSettingsIdentityProvider.d.ts +4 -2
  106. package/getFederatedSettingsIdentityProvider.js +4 -2
  107. package/getFederatedSettingsIdentityProvider.js.map +1 -1
  108. package/getFederatedSettingsIdentityProviders.d.ts +4 -2
  109. package/getFederatedSettingsIdentityProviders.js +4 -2
  110. package/getFederatedSettingsIdentityProviders.js.map +1 -1
  111. package/getFederatedSettingsOrgConfig.d.ts +6 -6
  112. package/getFederatedSettingsOrgConfig.js +6 -6
  113. package/getFederatedSettingsOrgConfigs.d.ts +6 -6
  114. package/getFederatedSettingsOrgConfigs.js +6 -6
  115. package/getFederatedSettingsOrgRoleMapping.d.ts +4 -4
  116. package/getFederatedSettingsOrgRoleMapping.js +4 -4
  117. package/getGlobalClusterConfig.d.ts +114 -0
  118. package/getGlobalClusterConfig.js +114 -0
  119. package/getGlobalClusterConfig.js.map +1 -1
  120. package/getLdapConfiguration.d.ts +50 -0
  121. package/getLdapConfiguration.js +50 -0
  122. package/getLdapConfiguration.js.map +1 -1
  123. package/getLdapVerify.d.ts +70 -0
  124. package/getLdapVerify.js +70 -0
  125. package/getLdapVerify.js.map +1 -1
  126. package/getMaintenanceWindow.d.ts +68 -0
  127. package/getMaintenanceWindow.js +68 -0
  128. package/getMaintenanceWindow.js.map +1 -1
  129. package/getNetworkContainer.d.ts +40 -0
  130. package/getNetworkContainer.js +40 -0
  131. package/getNetworkContainer.js.map +1 -1
  132. package/getNetworkContainers.d.ts +4 -4
  133. package/getNetworkContainers.js +4 -4
  134. package/getNetworkPeering.d.ts +46 -0
  135. package/getNetworkPeering.js +46 -0
  136. package/getNetworkPeering.js.map +1 -1
  137. package/getNetworkPeerings.d.ts +4 -4
  138. package/getNetworkPeerings.js +4 -4
  139. package/getOrganizations.d.ts +2 -2
  140. package/getOrganizations.js +2 -2
  141. package/getPrivateLinkEndpoint.d.ts +46 -0
  142. package/getPrivateLinkEndpoint.js +46 -0
  143. package/getPrivateLinkEndpoint.js.map +1 -1
  144. package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.d.ts +8 -2
  145. package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js +8 -2
  146. package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
  147. package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.d.ts +8 -2
  148. package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js +8 -2
  149. package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js.map +1 -1
  150. package/getPrivatelinkEndpointServiceServerless.d.ts +20 -16
  151. package/getPrivatelinkEndpointServiceServerless.js +20 -16
  152. package/getPrivatelinkEndpointServiceServerless.js.map +1 -1
  153. package/getPrivatelinkEndpointsServiceServerless.d.ts +20 -16
  154. package/getPrivatelinkEndpointsServiceServerless.js +20 -16
  155. package/getPrivatelinkEndpointsServiceServerless.js.map +1 -1
  156. package/getProject.d.ts +134 -0
  157. package/getProject.js +134 -0
  158. package/getProject.js.map +1 -1
  159. package/getProjectApiKey.d.ts +40 -0
  160. package/getProjectApiKey.js +40 -0
  161. package/getProjectApiKey.js.map +1 -1
  162. package/getProjectApiKeys.d.ts +2 -2
  163. package/getProjectApiKeys.js +2 -2
  164. package/getProjectInvitation.d.ts +38 -0
  165. package/getProjectInvitation.js +38 -0
  166. package/getProjectInvitation.js.map +1 -1
  167. package/getProjectIpAccessList.d.ts +146 -0
  168. package/getProjectIpAccessList.js +146 -0
  169. package/getProjectIpAccessList.js.map +1 -1
  170. package/getProjects.d.ts +10 -8
  171. package/getProjects.js +10 -8
  172. package/getProjects.js.map +1 -1
  173. package/getSearchIndex.d.ts +2 -2
  174. package/getSearchIndex.js +2 -2
  175. package/getThirdPartyIntegration.d.ts +2 -2
  176. package/getThirdPartyIntegration.js +2 -2
  177. package/getThirdPartyIntegrations.d.ts +4 -4
  178. package/getThirdPartyIntegrations.js +4 -4
  179. package/getX509AuthenticationDatabaseUser.d.ts +64 -0
  180. package/getX509AuthenticationDatabaseUser.js +64 -0
  181. package/getX509AuthenticationDatabaseUser.js.map +1 -1
  182. package/globalClusterConfig.d.ts +4 -2
  183. package/globalClusterConfig.js +4 -2
  184. package/globalClusterConfig.js.map +1 -1
  185. package/ldapConfiguration.d.ts +12 -6
  186. package/ldapConfiguration.js +12 -6
  187. package/ldapConfiguration.js.map +1 -1
  188. package/ldapVerify.d.ts +9 -6
  189. package/ldapVerify.js +9 -6
  190. package/ldapVerify.js.map +1 -1
  191. package/maintenanceWindow.d.ts +2 -2
  192. package/maintenanceWindow.js +2 -2
  193. package/networkContainer.d.ts +3 -3
  194. package/networkContainer.js +3 -3
  195. package/networkPeering.d.ts +38 -143
  196. package/networkPeering.js +38 -143
  197. package/networkPeering.js.map +1 -1
  198. package/onlineArchive.d.ts +8 -8
  199. package/onlineArchive.js +8 -8
  200. package/orgInvitation.d.ts +4 -4
  201. package/orgInvitation.js +4 -4
  202. package/organization.d.ts +2 -1
  203. package/organization.js +2 -1
  204. package/organization.js.map +1 -1
  205. package/package.json +1 -1
  206. package/privateLinkEndpointService.d.ts +95 -22
  207. package/privateLinkEndpointService.js +95 -22
  208. package/privateLinkEndpointService.js.map +1 -1
  209. package/privatelinkEndpointServerless.d.ts +3 -2
  210. package/privatelinkEndpointServerless.js +3 -2
  211. package/privatelinkEndpointServerless.js.map +1 -1
  212. package/privatelinkEndpointServiceDataFederationOnlineArchive.d.ts +4 -1
  213. package/privatelinkEndpointServiceDataFederationOnlineArchive.js +4 -1
  214. package/privatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
  215. package/privatelinkEndpointServiceServerless.d.ts +54 -6
  216. package/privatelinkEndpointServiceServerless.js +54 -6
  217. package/privatelinkEndpointServiceServerless.js.map +1 -1
  218. package/project.d.ts +4 -3
  219. package/project.js +4 -3
  220. package/project.js.map +1 -1
  221. package/projectInvitation.d.ts +2 -2
  222. package/projectInvitation.js +2 -2
  223. package/projectIpAccessList.d.ts +8 -8
  224. package/projectIpAccessList.js +8 -8
  225. package/searchIndex.d.ts +4 -2
  226. package/searchIndex.js +4 -2
  227. package/searchIndex.js.map +1 -1
  228. package/serverlessInstance.d.ts +1 -0
  229. package/serverlessInstance.js +1 -0
  230. package/serverlessInstance.js.map +1 -1
  231. package/thirdPartyIntegration.d.ts +3 -3
  232. package/thirdPartyIntegration.js +3 -3
@@ -5,6 +5,107 @@ import * as outputs from "./types/output";
5
5
  * `mongodbatlas.AlertConfiguration` describes an Alert Configuration.
6
6
  *
7
7
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * <!--Start PulumiCodeChooser -->
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
15
+ *
16
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
17
+ * projectId: "<PROJECT-ID>",
18
+ * eventType: "OUTSIDE_METRIC_THRESHOLD",
19
+ * enabled: true,
20
+ * notifications: [{
21
+ * typeName: "GROUP",
22
+ * intervalMin: 5,
23
+ * delayMin: 0,
24
+ * smsEnabled: false,
25
+ * emailEnabled: true,
26
+ * }],
27
+ * matchers: [{
28
+ * fieldName: "HOSTNAME_AND_PORT",
29
+ * operator: "EQUALS",
30
+ * value: "SECONDARY",
31
+ * }],
32
+ * metricThresholdConfig: {
33
+ * metricName: "ASSERT_REGULAR",
34
+ * operator: "LESS_THAN",
35
+ * threshold: 99,
36
+ * units: "RAW",
37
+ * mode: "AVERAGE",
38
+ * },
39
+ * });
40
+ * const test = mongodbatlas.getAlertConfigurationOutput({
41
+ * projectId: testAlertConfiguration.projectId,
42
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
43
+ * });
44
+ * ```
45
+ * <!--End PulumiCodeChooser -->
46
+ *
47
+ * > **NOTE:** In order to allow for a fast pace of change to alert variables some validations have been removed from this resource in order to unblock alert creation. Impacted areas have links to the MongoDB Atlas API documentation so always check it for the most current information: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
48
+ *
49
+ * <!--Start PulumiCodeChooser -->
50
+ * ```typescript
51
+ * import * as pulumi from "@pulumi/pulumi";
52
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
53
+ *
54
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
55
+ * projectId: "<PROJECT-ID>",
56
+ * eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
57
+ * enabled: true,
58
+ * notifications: [{
59
+ * typeName: "GROUP",
60
+ * intervalMin: 5,
61
+ * delayMin: 0,
62
+ * smsEnabled: false,
63
+ * emailEnabled: true,
64
+ * roles: [
65
+ * "GROUP_CHARTS_ADMIN",
66
+ * "GROUP_CLUSTER_MANAGER",
67
+ * ],
68
+ * }],
69
+ * matchers: [{
70
+ * fieldName: "HOSTNAME_AND_PORT",
71
+ * operator: "EQUALS",
72
+ * value: "SECONDARY",
73
+ * }],
74
+ * thresholdConfig: {
75
+ * operator: "LESS_THAN",
76
+ * threshold: 1,
77
+ * units: "HOURS",
78
+ * },
79
+ * });
80
+ * const test = mongodbatlas.getAlertConfigurationOutput({
81
+ * projectId: testAlertConfiguration.projectId,
82
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
83
+ * });
84
+ * ```
85
+ * <!--End PulumiCodeChooser -->
86
+ *
87
+ * Utilize dataSource to generate resource hcl and import statement. Useful if you have a specific alertConfigurationId and are looking to manage it as is in state. To import all alerts, refer to the documentation on dataSourceMongodbatlasAlertConfigurations
88
+ * <!--Start PulumiCodeChooser -->
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
92
+ *
93
+ * const test = mongodbatlas.getAlertConfiguration({
94
+ * projectId: projectId,
95
+ * alertConfigurationId: alertConfigurationId,
96
+ * outputs: [
97
+ * {
98
+ * type: "resource_hcl",
99
+ * label: "test",
100
+ * },
101
+ * {
102
+ * type: "resource_import",
103
+ * label: "test",
104
+ * },
105
+ * ],
106
+ * });
107
+ * ```
108
+ * <!--End PulumiCodeChooser -->
8
109
  */
9
110
  export declare function getAlertConfiguration(args: GetAlertConfigurationArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertConfigurationResult>;
10
111
  /**
@@ -67,6 +168,107 @@ export interface GetAlertConfigurationResult {
67
168
  * `mongodbatlas.AlertConfiguration` describes an Alert Configuration.
68
169
  *
69
170
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
171
+ *
172
+ * ## Example Usage
173
+ *
174
+ * <!--Start PulumiCodeChooser -->
175
+ * ```typescript
176
+ * import * as pulumi from "@pulumi/pulumi";
177
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
178
+ *
179
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
180
+ * projectId: "<PROJECT-ID>",
181
+ * eventType: "OUTSIDE_METRIC_THRESHOLD",
182
+ * enabled: true,
183
+ * notifications: [{
184
+ * typeName: "GROUP",
185
+ * intervalMin: 5,
186
+ * delayMin: 0,
187
+ * smsEnabled: false,
188
+ * emailEnabled: true,
189
+ * }],
190
+ * matchers: [{
191
+ * fieldName: "HOSTNAME_AND_PORT",
192
+ * operator: "EQUALS",
193
+ * value: "SECONDARY",
194
+ * }],
195
+ * metricThresholdConfig: {
196
+ * metricName: "ASSERT_REGULAR",
197
+ * operator: "LESS_THAN",
198
+ * threshold: 99,
199
+ * units: "RAW",
200
+ * mode: "AVERAGE",
201
+ * },
202
+ * });
203
+ * const test = mongodbatlas.getAlertConfigurationOutput({
204
+ * projectId: testAlertConfiguration.projectId,
205
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
206
+ * });
207
+ * ```
208
+ * <!--End PulumiCodeChooser -->
209
+ *
210
+ * > **NOTE:** In order to allow for a fast pace of change to alert variables some validations have been removed from this resource in order to unblock alert creation. Impacted areas have links to the MongoDB Atlas API documentation so always check it for the most current information: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
211
+ *
212
+ * <!--Start PulumiCodeChooser -->
213
+ * ```typescript
214
+ * import * as pulumi from "@pulumi/pulumi";
215
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
216
+ *
217
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
218
+ * projectId: "<PROJECT-ID>",
219
+ * eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
220
+ * enabled: true,
221
+ * notifications: [{
222
+ * typeName: "GROUP",
223
+ * intervalMin: 5,
224
+ * delayMin: 0,
225
+ * smsEnabled: false,
226
+ * emailEnabled: true,
227
+ * roles: [
228
+ * "GROUP_CHARTS_ADMIN",
229
+ * "GROUP_CLUSTER_MANAGER",
230
+ * ],
231
+ * }],
232
+ * matchers: [{
233
+ * fieldName: "HOSTNAME_AND_PORT",
234
+ * operator: "EQUALS",
235
+ * value: "SECONDARY",
236
+ * }],
237
+ * thresholdConfig: {
238
+ * operator: "LESS_THAN",
239
+ * threshold: 1,
240
+ * units: "HOURS",
241
+ * },
242
+ * });
243
+ * const test = mongodbatlas.getAlertConfigurationOutput({
244
+ * projectId: testAlertConfiguration.projectId,
245
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
246
+ * });
247
+ * ```
248
+ * <!--End PulumiCodeChooser -->
249
+ *
250
+ * Utilize dataSource to generate resource hcl and import statement. Useful if you have a specific alertConfigurationId and are looking to manage it as is in state. To import all alerts, refer to the documentation on dataSourceMongodbatlasAlertConfigurations
251
+ * <!--Start PulumiCodeChooser -->
252
+ * ```typescript
253
+ * import * as pulumi from "@pulumi/pulumi";
254
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
255
+ *
256
+ * const test = mongodbatlas.getAlertConfiguration({
257
+ * projectId: projectId,
258
+ * alertConfigurationId: alertConfigurationId,
259
+ * outputs: [
260
+ * {
261
+ * type: "resource_hcl",
262
+ * label: "test",
263
+ * },
264
+ * {
265
+ * type: "resource_import",
266
+ * label: "test",
267
+ * },
268
+ * ],
269
+ * });
270
+ * ```
271
+ * <!--End PulumiCodeChooser -->
70
272
  */
71
273
  export declare function getAlertConfigurationOutput(args: GetAlertConfigurationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlertConfigurationResult>;
72
274
  /**
@@ -9,6 +9,107 @@ const utilities = require("./utilities");
9
9
  * `mongodbatlas.AlertConfiguration` describes an Alert Configuration.
10
10
  *
11
11
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * <!--Start PulumiCodeChooser -->
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
+ *
20
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
21
+ * projectId: "<PROJECT-ID>",
22
+ * eventType: "OUTSIDE_METRIC_THRESHOLD",
23
+ * enabled: true,
24
+ * notifications: [{
25
+ * typeName: "GROUP",
26
+ * intervalMin: 5,
27
+ * delayMin: 0,
28
+ * smsEnabled: false,
29
+ * emailEnabled: true,
30
+ * }],
31
+ * matchers: [{
32
+ * fieldName: "HOSTNAME_AND_PORT",
33
+ * operator: "EQUALS",
34
+ * value: "SECONDARY",
35
+ * }],
36
+ * metricThresholdConfig: {
37
+ * metricName: "ASSERT_REGULAR",
38
+ * operator: "LESS_THAN",
39
+ * threshold: 99,
40
+ * units: "RAW",
41
+ * mode: "AVERAGE",
42
+ * },
43
+ * });
44
+ * const test = mongodbatlas.getAlertConfigurationOutput({
45
+ * projectId: testAlertConfiguration.projectId,
46
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
47
+ * });
48
+ * ```
49
+ * <!--End PulumiCodeChooser -->
50
+ *
51
+ * > **NOTE:** In order to allow for a fast pace of change to alert variables some validations have been removed from this resource in order to unblock alert creation. Impacted areas have links to the MongoDB Atlas API documentation so always check it for the most current information: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
52
+ *
53
+ * <!--Start PulumiCodeChooser -->
54
+ * ```typescript
55
+ * import * as pulumi from "@pulumi/pulumi";
56
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
57
+ *
58
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
59
+ * projectId: "<PROJECT-ID>",
60
+ * eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
61
+ * enabled: true,
62
+ * notifications: [{
63
+ * typeName: "GROUP",
64
+ * intervalMin: 5,
65
+ * delayMin: 0,
66
+ * smsEnabled: false,
67
+ * emailEnabled: true,
68
+ * roles: [
69
+ * "GROUP_CHARTS_ADMIN",
70
+ * "GROUP_CLUSTER_MANAGER",
71
+ * ],
72
+ * }],
73
+ * matchers: [{
74
+ * fieldName: "HOSTNAME_AND_PORT",
75
+ * operator: "EQUALS",
76
+ * value: "SECONDARY",
77
+ * }],
78
+ * thresholdConfig: {
79
+ * operator: "LESS_THAN",
80
+ * threshold: 1,
81
+ * units: "HOURS",
82
+ * },
83
+ * });
84
+ * const test = mongodbatlas.getAlertConfigurationOutput({
85
+ * projectId: testAlertConfiguration.projectId,
86
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
87
+ * });
88
+ * ```
89
+ * <!--End PulumiCodeChooser -->
90
+ *
91
+ * Utilize dataSource to generate resource hcl and import statement. Useful if you have a specific alertConfigurationId and are looking to manage it as is in state. To import all alerts, refer to the documentation on dataSourceMongodbatlasAlertConfigurations
92
+ * <!--Start PulumiCodeChooser -->
93
+ * ```typescript
94
+ * import * as pulumi from "@pulumi/pulumi";
95
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
96
+ *
97
+ * const test = mongodbatlas.getAlertConfiguration({
98
+ * projectId: projectId,
99
+ * alertConfigurationId: alertConfigurationId,
100
+ * outputs: [
101
+ * {
102
+ * type: "resource_hcl",
103
+ * label: "test",
104
+ * },
105
+ * {
106
+ * type: "resource_import",
107
+ * label: "test",
108
+ * },
109
+ * ],
110
+ * });
111
+ * ```
112
+ * <!--End PulumiCodeChooser -->
12
113
  */
13
114
  function getAlertConfiguration(args, opts) {
14
115
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -23,6 +124,107 @@ exports.getAlertConfiguration = getAlertConfiguration;
23
124
  * `mongodbatlas.AlertConfiguration` describes an Alert Configuration.
24
125
  *
25
126
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
127
+ *
128
+ * ## Example Usage
129
+ *
130
+ * <!--Start PulumiCodeChooser -->
131
+ * ```typescript
132
+ * import * as pulumi from "@pulumi/pulumi";
133
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
134
+ *
135
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
136
+ * projectId: "<PROJECT-ID>",
137
+ * eventType: "OUTSIDE_METRIC_THRESHOLD",
138
+ * enabled: true,
139
+ * notifications: [{
140
+ * typeName: "GROUP",
141
+ * intervalMin: 5,
142
+ * delayMin: 0,
143
+ * smsEnabled: false,
144
+ * emailEnabled: true,
145
+ * }],
146
+ * matchers: [{
147
+ * fieldName: "HOSTNAME_AND_PORT",
148
+ * operator: "EQUALS",
149
+ * value: "SECONDARY",
150
+ * }],
151
+ * metricThresholdConfig: {
152
+ * metricName: "ASSERT_REGULAR",
153
+ * operator: "LESS_THAN",
154
+ * threshold: 99,
155
+ * units: "RAW",
156
+ * mode: "AVERAGE",
157
+ * },
158
+ * });
159
+ * const test = mongodbatlas.getAlertConfigurationOutput({
160
+ * projectId: testAlertConfiguration.projectId,
161
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
162
+ * });
163
+ * ```
164
+ * <!--End PulumiCodeChooser -->
165
+ *
166
+ * > **NOTE:** In order to allow for a fast pace of change to alert variables some validations have been removed from this resource in order to unblock alert creation. Impacted areas have links to the MongoDB Atlas API documentation so always check it for the most current information: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
167
+ *
168
+ * <!--Start PulumiCodeChooser -->
169
+ * ```typescript
170
+ * import * as pulumi from "@pulumi/pulumi";
171
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
172
+ *
173
+ * const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
174
+ * projectId: "<PROJECT-ID>",
175
+ * eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
176
+ * enabled: true,
177
+ * notifications: [{
178
+ * typeName: "GROUP",
179
+ * intervalMin: 5,
180
+ * delayMin: 0,
181
+ * smsEnabled: false,
182
+ * emailEnabled: true,
183
+ * roles: [
184
+ * "GROUP_CHARTS_ADMIN",
185
+ * "GROUP_CLUSTER_MANAGER",
186
+ * ],
187
+ * }],
188
+ * matchers: [{
189
+ * fieldName: "HOSTNAME_AND_PORT",
190
+ * operator: "EQUALS",
191
+ * value: "SECONDARY",
192
+ * }],
193
+ * thresholdConfig: {
194
+ * operator: "LESS_THAN",
195
+ * threshold: 1,
196
+ * units: "HOURS",
197
+ * },
198
+ * });
199
+ * const test = mongodbatlas.getAlertConfigurationOutput({
200
+ * projectId: testAlertConfiguration.projectId,
201
+ * alertConfigurationId: testAlertConfiguration.alertConfigurationId,
202
+ * });
203
+ * ```
204
+ * <!--End PulumiCodeChooser -->
205
+ *
206
+ * Utilize dataSource to generate resource hcl and import statement. Useful if you have a specific alertConfigurationId and are looking to manage it as is in state. To import all alerts, refer to the documentation on dataSourceMongodbatlasAlertConfigurations
207
+ * <!--Start PulumiCodeChooser -->
208
+ * ```typescript
209
+ * import * as pulumi from "@pulumi/pulumi";
210
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
211
+ *
212
+ * const test = mongodbatlas.getAlertConfiguration({
213
+ * projectId: projectId,
214
+ * alertConfigurationId: alertConfigurationId,
215
+ * outputs: [
216
+ * {
217
+ * type: "resource_hcl",
218
+ * label: "test",
219
+ * },
220
+ * {
221
+ * type: "resource_import",
222
+ * label: "test",
223
+ * },
224
+ * ],
225
+ * });
226
+ * ```
227
+ * <!--End PulumiCodeChooser -->
26
228
  */
27
229
  function getAlertConfigurationOutput(args, opts) {
28
230
  return pulumi.output(args).apply((a) => getAlertConfiguration(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getAlertConfiguration.js","sourceRoot":"","sources":["../getAlertConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AA2DD;;;;GAIG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
1
+ {"version":3,"file":"getAlertConfiguration.js","sourceRoot":"","sources":["../getAlertConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AA2DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
@@ -41,8 +41,8 @@ import * as outputs from "./types/output";
41
41
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
42
42
  *
43
43
  * const test = mongodbatlas.getAtlasUsers({
44
- * orgId: "<ORG_ID>",
45
44
  * teamId: "<TEAM_ID>",
45
+ * orgId: "<ORG_ID>",
46
46
  * });
47
47
  * ```
48
48
  * <!--End PulumiCodeChooser -->
@@ -138,8 +138,8 @@ export interface GetAtlasUsersResult {
138
138
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
139
139
  *
140
140
  * const test = mongodbatlas.getAtlasUsers({
141
- * orgId: "<ORG_ID>",
142
141
  * teamId: "<TEAM_ID>",
142
+ * orgId: "<ORG_ID>",
143
143
  * });
144
144
  * ```
145
145
  * <!--End PulumiCodeChooser -->
package/getAtlasUsers.js CHANGED
@@ -46,8 +46,8 @@ const utilities = require("./utilities");
46
46
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
47
47
  *
48
48
  * const test = mongodbatlas.getAtlasUsers({
49
- * orgId: "<ORG_ID>",
50
49
  * teamId: "<TEAM_ID>",
50
+ * orgId: "<ORG_ID>",
51
51
  * });
52
52
  * ```
53
53
  * <!--End PulumiCodeChooser -->
@@ -105,8 +105,8 @@ exports.getAtlasUsers = getAtlasUsers;
105
105
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
106
106
  *
107
107
  * const test = mongodbatlas.getAtlasUsers({
108
- * orgId: "<ORG_ID>",
109
108
  * teamId: "<TEAM_ID>",
109
+ * orgId: "<ORG_ID>",
110
110
  * });
111
111
  * ```
112
112
  * <!--End PulumiCodeChooser -->
package/getAuditing.d.ts CHANGED
@@ -3,6 +3,25 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * `mongodbatlas.Auditing` describes a Auditing.
4
4
  *
5
5
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * <!--Start PulumiCodeChooser -->
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
13
+ *
14
+ * const testAuditing = new mongodbatlas.Auditing("test", {
15
+ * projectId: "<project-id>",
16
+ * auditFilter: "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
17
+ * auditAuthorizationSuccess: false,
18
+ * enabled: true,
19
+ * });
20
+ * const test = mongodbatlas.getAuditingOutput({
21
+ * projectId: testAuditing.id,
22
+ * });
23
+ * ```
24
+ * <!--End PulumiCodeChooser -->
6
25
  */
7
26
  export declare function getAuditing(args: GetAuditingArgs, opts?: pulumi.InvokeOptions): Promise<GetAuditingResult>;
8
27
  /**
@@ -44,6 +63,25 @@ export interface GetAuditingResult {
44
63
  * `mongodbatlas.Auditing` describes a Auditing.
45
64
  *
46
65
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
66
+ *
67
+ * ## Example Usage
68
+ *
69
+ * <!--Start PulumiCodeChooser -->
70
+ * ```typescript
71
+ * import * as pulumi from "@pulumi/pulumi";
72
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
73
+ *
74
+ * const testAuditing = new mongodbatlas.Auditing("test", {
75
+ * projectId: "<project-id>",
76
+ * auditFilter: "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
77
+ * auditAuthorizationSuccess: false,
78
+ * enabled: true,
79
+ * });
80
+ * const test = mongodbatlas.getAuditingOutput({
81
+ * projectId: testAuditing.id,
82
+ * });
83
+ * ```
84
+ * <!--End PulumiCodeChooser -->
47
85
  */
48
86
  export declare function getAuditingOutput(args: GetAuditingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAuditingResult>;
49
87
  /**
package/getAuditing.js CHANGED
@@ -9,6 +9,25 @@ const utilities = require("./utilities");
9
9
  * `mongodbatlas.Auditing` describes a Auditing.
10
10
  *
11
11
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * <!--Start PulumiCodeChooser -->
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
+ *
20
+ * const testAuditing = new mongodbatlas.Auditing("test", {
21
+ * projectId: "<project-id>",
22
+ * auditFilter: "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
23
+ * auditAuthorizationSuccess: false,
24
+ * enabled: true,
25
+ * });
26
+ * const test = mongodbatlas.getAuditingOutput({
27
+ * projectId: testAuditing.id,
28
+ * });
29
+ * ```
30
+ * <!--End PulumiCodeChooser -->
12
31
  */
13
32
  function getAuditing(args, opts) {
14
33
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -21,6 +40,25 @@ exports.getAuditing = getAuditing;
21
40
  * `mongodbatlas.Auditing` describes a Auditing.
22
41
  *
23
42
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * <!--Start PulumiCodeChooser -->
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
50
+ *
51
+ * const testAuditing = new mongodbatlas.Auditing("test", {
52
+ * projectId: "<project-id>",
53
+ * auditFilter: "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
54
+ * auditAuthorizationSuccess: false,
55
+ * enabled: true,
56
+ * });
57
+ * const test = mongodbatlas.getAuditingOutput({
58
+ * projectId: testAuditing.id,
59
+ * });
60
+ * ```
61
+ * <!--End PulumiCodeChooser -->
24
62
  */
25
63
  function getAuditingOutput(args, opts) {
26
64
  return pulumi.output(args).apply((a) => getAuditing(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getAuditing.js","sourceRoot":"","sources":["../getAuditing.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AAsCD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"getAuditing.js","sourceRoot":"","sources":["../getAuditing.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AAsCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}