@pulumi/mongodbatlas 3.15.0-alpha.1712987729 → 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
package/getCluster.d.ts CHANGED
@@ -9,6 +9,38 @@ import * as outputs from "./types/output";
9
9
  * <br> &#8226; Multi Region Cluster: The `mongodbatlas.Cluster` data source doesn't return the `containerId` for each region utilized by the cluster. For retrieving the `containerId`, we recommend the `mongodbatlas.AdvancedCluster` data source instead.
10
10
  * <br> &#8226; Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
11
11
  * <br> &#8226; If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
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 testCluster = new mongodbatlas.Cluster("test", {
21
+ * projectId: "<YOUR-PROJECT-ID>",
22
+ * name: "cluster-test",
23
+ * clusterType: "REPLICASET",
24
+ * replicationSpecs: [{
25
+ * numShards: 1,
26
+ * regionsConfigs: [{
27
+ * regionName: "US_EAST_1",
28
+ * electableNodes: 3,
29
+ * priority: 7,
30
+ * readOnlyNodes: 0,
31
+ * }],
32
+ * }],
33
+ * cloudBackup: true,
34
+ * autoScalingDiskGbEnabled: true,
35
+ * providerName: "AWS",
36
+ * providerInstanceSizeName: "M40",
37
+ * });
38
+ * const test = mongodbatlas.getClusterOutput({
39
+ * projectId: testCluster.projectId,
40
+ * name: testCluster.name,
41
+ * });
42
+ * ```
43
+ * <!--End PulumiCodeChooser -->
12
44
  */
13
45
  export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
14
46
  /**
@@ -210,6 +242,38 @@ export interface GetClusterResult {
210
242
  * <br> &#8226; Multi Region Cluster: The `mongodbatlas.Cluster` data source doesn't return the `containerId` for each region utilized by the cluster. For retrieving the `containerId`, we recommend the `mongodbatlas.AdvancedCluster` data source instead.
211
243
  * <br> &#8226; Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
212
244
  * <br> &#8226; If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
245
+ *
246
+ * ## Example Usage
247
+ *
248
+ * <!--Start PulumiCodeChooser -->
249
+ * ```typescript
250
+ * import * as pulumi from "@pulumi/pulumi";
251
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
252
+ *
253
+ * const testCluster = new mongodbatlas.Cluster("test", {
254
+ * projectId: "<YOUR-PROJECT-ID>",
255
+ * name: "cluster-test",
256
+ * clusterType: "REPLICASET",
257
+ * replicationSpecs: [{
258
+ * numShards: 1,
259
+ * regionsConfigs: [{
260
+ * regionName: "US_EAST_1",
261
+ * electableNodes: 3,
262
+ * priority: 7,
263
+ * readOnlyNodes: 0,
264
+ * }],
265
+ * }],
266
+ * cloudBackup: true,
267
+ * autoScalingDiskGbEnabled: true,
268
+ * providerName: "AWS",
269
+ * providerInstanceSizeName: "M40",
270
+ * });
271
+ * const test = mongodbatlas.getClusterOutput({
272
+ * projectId: testCluster.projectId,
273
+ * name: testCluster.name,
274
+ * });
275
+ * ```
276
+ * <!--End PulumiCodeChooser -->
213
277
  */
214
278
  export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
215
279
  /**
package/getCluster.js CHANGED
@@ -14,6 +14,38 @@ const utilities = require("./utilities");
14
14
  * <br> &#8226; Multi Region Cluster: The `mongodbatlas.Cluster` data source doesn't return the `containerId` for each region utilized by the cluster. For retrieving the `containerId`, we recommend the `mongodbatlas.AdvancedCluster` data source instead.
15
15
  * <br> &#8226; Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
16
16
  * <br> &#8226; If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
17
+ *
18
+ * ## Example Usage
19
+ *
20
+ * <!--Start PulumiCodeChooser -->
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
24
+ *
25
+ * const testCluster = new mongodbatlas.Cluster("test", {
26
+ * projectId: "<YOUR-PROJECT-ID>",
27
+ * name: "cluster-test",
28
+ * clusterType: "REPLICASET",
29
+ * replicationSpecs: [{
30
+ * numShards: 1,
31
+ * regionsConfigs: [{
32
+ * regionName: "US_EAST_1",
33
+ * electableNodes: 3,
34
+ * priority: 7,
35
+ * readOnlyNodes: 0,
36
+ * }],
37
+ * }],
38
+ * cloudBackup: true,
39
+ * autoScalingDiskGbEnabled: true,
40
+ * providerName: "AWS",
41
+ * providerInstanceSizeName: "M40",
42
+ * });
43
+ * const test = mongodbatlas.getClusterOutput({
44
+ * projectId: testCluster.projectId,
45
+ * name: testCluster.name,
46
+ * });
47
+ * ```
48
+ * <!--End PulumiCodeChooser -->
17
49
  */
18
50
  function getCluster(args, opts) {
19
51
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -32,6 +64,38 @@ exports.getCluster = getCluster;
32
64
  * <br> &#8226; Multi Region Cluster: The `mongodbatlas.Cluster` data source doesn't return the `containerId` for each region utilized by the cluster. For retrieving the `containerId`, we recommend the `mongodbatlas.AdvancedCluster` data source instead.
33
65
  * <br> &#8226; Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
34
66
  * <br> &#8226; If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
67
+ *
68
+ * ## Example Usage
69
+ *
70
+ * <!--Start PulumiCodeChooser -->
71
+ * ```typescript
72
+ * import * as pulumi from "@pulumi/pulumi";
73
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
74
+ *
75
+ * const testCluster = new mongodbatlas.Cluster("test", {
76
+ * projectId: "<YOUR-PROJECT-ID>",
77
+ * name: "cluster-test",
78
+ * clusterType: "REPLICASET",
79
+ * replicationSpecs: [{
80
+ * numShards: 1,
81
+ * regionsConfigs: [{
82
+ * regionName: "US_EAST_1",
83
+ * electableNodes: 3,
84
+ * priority: 7,
85
+ * readOnlyNodes: 0,
86
+ * }],
87
+ * }],
88
+ * cloudBackup: true,
89
+ * autoScalingDiskGbEnabled: true,
90
+ * providerName: "AWS",
91
+ * providerInstanceSizeName: "M40",
92
+ * });
93
+ * const test = mongodbatlas.getClusterOutput({
94
+ * projectId: testCluster.projectId,
95
+ * name: testCluster.name,
96
+ * });
97
+ * ```
98
+ * <!--End PulumiCodeChooser -->
35
99
  */
36
100
  function getClusterOutput(args, opts) {
37
101
  return pulumi.output(args).apply((a) => getCluster(a, opts));
package/getCluster.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;GASG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAiMD;;;;;;;;;GASG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAiMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -11,8 +11,8 @@ import * as outputs from "./types/output";
11
11
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
12
12
  *
13
13
  * const outageSimulation = mongodbatlas.getClusterOutageSimulation({
14
- * clusterName: "Cluster0",
15
14
  * projectId: "64707f06c519c20c3a2b1b03",
15
+ * clusterName: "Cluster0",
16
16
  * });
17
17
  * ```
18
18
  * <!--End PulumiCodeChooser -->
@@ -69,8 +69,8 @@ export interface GetClusterOutageSimulationResult {
69
69
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
70
70
  *
71
71
  * const outageSimulation = mongodbatlas.getClusterOutageSimulation({
72
- * clusterName: "Cluster0",
73
72
  * projectId: "64707f06c519c20c3a2b1b03",
73
+ * clusterName: "Cluster0",
74
74
  * });
75
75
  * ```
76
76
  * <!--End PulumiCodeChooser -->
@@ -16,8 +16,8 @@ const utilities = require("./utilities");
16
16
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
17
17
  *
18
18
  * const outageSimulation = mongodbatlas.getClusterOutageSimulation({
19
- * clusterName: "Cluster0",
20
19
  * projectId: "64707f06c519c20c3a2b1b03",
20
+ * clusterName: "Cluster0",
21
21
  * });
22
22
  * ```
23
23
  * <!--End PulumiCodeChooser -->
@@ -41,8 +41,8 @@ exports.getClusterOutageSimulation = getClusterOutageSimulation;
41
41
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
42
42
  *
43
43
  * const outageSimulation = mongodbatlas.getClusterOutageSimulation({
44
- * clusterName: "Cluster0",
45
44
  * projectId: "64707f06c519c20c3a2b1b03",
45
+ * clusterName: "Cluster0",
46
46
  * });
47
47
  * ```
48
48
  * <!--End PulumiCodeChooser -->
package/getClusters.d.ts CHANGED
@@ -17,8 +17,9 @@ import * as outputs from "./types/output";
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
19
  *
20
- * const testCluster = new mongodbatlas.Cluster("testCluster", {
20
+ * const testCluster = new mongodbatlas.Cluster("test", {
21
21
  * projectId: "<YOUR-PROJECT-ID>",
22
+ * name: "cluster-test",
22
23
  * clusterType: "REPLICASET",
23
24
  * replicationSpecs: [{
24
25
  * numShards: 1,
@@ -34,7 +35,7 @@ import * as outputs from "./types/output";
34
35
  * providerName: "AWS",
35
36
  * providerInstanceSizeName: "M40",
36
37
  * });
37
- * const testClusters = mongodbatlas.getClustersOutput({
38
+ * const test = mongodbatlas.getClustersOutput({
38
39
  * projectId: testCluster.projectId,
39
40
  * });
40
41
  * ```
@@ -81,8 +82,9 @@ export interface GetClustersResult {
81
82
  * import * as pulumi from "@pulumi/pulumi";
82
83
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
83
84
  *
84
- * const testCluster = new mongodbatlas.Cluster("testCluster", {
85
+ * const testCluster = new mongodbatlas.Cluster("test", {
85
86
  * projectId: "<YOUR-PROJECT-ID>",
87
+ * name: "cluster-test",
86
88
  * clusterType: "REPLICASET",
87
89
  * replicationSpecs: [{
88
90
  * numShards: 1,
@@ -98,7 +100,7 @@ export interface GetClustersResult {
98
100
  * providerName: "AWS",
99
101
  * providerInstanceSizeName: "M40",
100
102
  * });
101
- * const testClusters = mongodbatlas.getClustersOutput({
103
+ * const test = mongodbatlas.getClustersOutput({
102
104
  * projectId: testCluster.projectId,
103
105
  * });
104
106
  * ```
package/getClusters.js CHANGED
@@ -22,8 +22,9 @@ const utilities = require("./utilities");
22
22
  * import * as pulumi from "@pulumi/pulumi";
23
23
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
24
24
  *
25
- * const testCluster = new mongodbatlas.Cluster("testCluster", {
25
+ * const testCluster = new mongodbatlas.Cluster("test", {
26
26
  * projectId: "<YOUR-PROJECT-ID>",
27
+ * name: "cluster-test",
27
28
  * clusterType: "REPLICASET",
28
29
  * replicationSpecs: [{
29
30
  * numShards: 1,
@@ -39,7 +40,7 @@ const utilities = require("./utilities");
39
40
  * providerName: "AWS",
40
41
  * providerInstanceSizeName: "M40",
41
42
  * });
42
- * const testClusters = mongodbatlas.getClustersOutput({
43
+ * const test = mongodbatlas.getClustersOutput({
43
44
  * projectId: testCluster.projectId,
44
45
  * });
45
46
  * ```
@@ -69,8 +70,9 @@ exports.getClusters = getClusters;
69
70
  * import * as pulumi from "@pulumi/pulumi";
70
71
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
71
72
  *
72
- * const testCluster = new mongodbatlas.Cluster("testCluster", {
73
+ * const testCluster = new mongodbatlas.Cluster("test", {
73
74
  * projectId: "<YOUR-PROJECT-ID>",
75
+ * name: "cluster-test",
74
76
  * clusterType: "REPLICASET",
75
77
  * replicationSpecs: [{
76
78
  * numShards: 1,
@@ -86,7 +88,7 @@ exports.getClusters = getClusters;
86
88
  * providerName: "AWS",
87
89
  * providerInstanceSizeName: "M40",
88
90
  * });
89
- * const testClusters = mongodbatlas.getClustersOutput({
91
+ * const test = mongodbatlas.getClustersOutput({
90
92
  * projectId: testCluster.projectId,
91
93
  * });
92
94
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"getClusters.js","sourceRoot":"","sources":["../getClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;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;AA0BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;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":"getClusters.js","sourceRoot":"","sources":["../getClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;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;AA0BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;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"}
@@ -13,7 +13,7 @@ import * as outputs from "./types/output";
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
15
15
  *
16
- * const testRole = new mongodbatlas.CustomDbRole("testRole", {
16
+ * const testRole = new mongodbatlas.CustomDbRole("test_role", {
17
17
  * projectId: "<PROJECT-ID>",
18
18
  * roleName: "myCustomRole",
19
19
  * actions: [
@@ -83,7 +83,7 @@ export interface GetCustomDbRoleResult {
83
83
  * import * as pulumi from "@pulumi/pulumi";
84
84
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
85
85
  *
86
- * const testRole = new mongodbatlas.CustomDbRole("testRole", {
86
+ * const testRole = new mongodbatlas.CustomDbRole("test_role", {
87
87
  * projectId: "<PROJECT-ID>",
88
88
  * roleName: "myCustomRole",
89
89
  * actions: [
@@ -17,7 +17,7 @@ const utilities = require("./utilities");
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
19
  *
20
- * const testRole = new mongodbatlas.CustomDbRole("testRole", {
20
+ * const testRole = new mongodbatlas.CustomDbRole("test_role", {
21
21
  * projectId: "<PROJECT-ID>",
22
22
  * roleName: "myCustomRole",
23
23
  * actions: [
@@ -65,7 +65,7 @@ exports.getCustomDbRole = getCustomDbRole;
65
65
  * import * as pulumi from "@pulumi/pulumi";
66
66
  * import * as mongodbatlas from "@pulumi/mongodbatlas";
67
67
  *
68
- * const testRole = new mongodbatlas.CustomDbRole("testRole", {
68
+ * const testRole = new mongodbatlas.CustomDbRole("test_role", {
69
69
  * projectId: "<PROJECT-ID>",
70
70
  * roleName: "myCustomRole",
71
71
  * actions: [
@@ -3,6 +3,23 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * `mongodbatlas.CustomDnsConfigurationClusterAws` describes a Custom DNS Configuration for Atlas Clusters on AWS.
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 testCustomDnsConfigurationClusterAws = new mongodbatlas.CustomDnsConfigurationClusterAws("test", {
15
+ * projectId: "<project-id>",
16
+ * enabled: true,
17
+ * });
18
+ * const test = mongodbatlas.getCustomDnsConfigurationClusterAwsOutput({
19
+ * projectId: testCustomDnsConfigurationClusterAws.id,
20
+ * });
21
+ * ```
22
+ * <!--End PulumiCodeChooser -->
6
23
  */
7
24
  export declare function getCustomDnsConfigurationClusterAws(args: GetCustomDnsConfigurationClusterAwsArgs, opts?: pulumi.InvokeOptions): Promise<GetCustomDnsConfigurationClusterAwsResult>;
8
25
  /**
@@ -32,6 +49,23 @@ export interface GetCustomDnsConfigurationClusterAwsResult {
32
49
  * `mongodbatlas.CustomDnsConfigurationClusterAws` describes a Custom DNS Configuration for Atlas Clusters on AWS.
33
50
  *
34
51
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
52
+ *
53
+ * ## Example Usage
54
+ *
55
+ * <!--Start PulumiCodeChooser -->
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
59
+ *
60
+ * const testCustomDnsConfigurationClusterAws = new mongodbatlas.CustomDnsConfigurationClusterAws("test", {
61
+ * projectId: "<project-id>",
62
+ * enabled: true,
63
+ * });
64
+ * const test = mongodbatlas.getCustomDnsConfigurationClusterAwsOutput({
65
+ * projectId: testCustomDnsConfigurationClusterAws.id,
66
+ * });
67
+ * ```
68
+ * <!--End PulumiCodeChooser -->
35
69
  */
36
70
  export declare function getCustomDnsConfigurationClusterAwsOutput(args: GetCustomDnsConfigurationClusterAwsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCustomDnsConfigurationClusterAwsResult>;
37
71
  /**
@@ -9,6 +9,23 @@ const utilities = require("./utilities");
9
9
  * `mongodbatlas.CustomDnsConfigurationClusterAws` describes a Custom DNS Configuration for Atlas Clusters on AWS.
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 testCustomDnsConfigurationClusterAws = new mongodbatlas.CustomDnsConfigurationClusterAws("test", {
21
+ * projectId: "<project-id>",
22
+ * enabled: true,
23
+ * });
24
+ * const test = mongodbatlas.getCustomDnsConfigurationClusterAwsOutput({
25
+ * projectId: testCustomDnsConfigurationClusterAws.id,
26
+ * });
27
+ * ```
28
+ * <!--End PulumiCodeChooser -->
12
29
  */
13
30
  function getCustomDnsConfigurationClusterAws(args, opts) {
14
31
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -21,6 +38,23 @@ exports.getCustomDnsConfigurationClusterAws = getCustomDnsConfigurationClusterAw
21
38
  * `mongodbatlas.CustomDnsConfigurationClusterAws` describes a Custom DNS Configuration for Atlas Clusters on AWS.
22
39
  *
23
40
  * > **NOTE:** Groups and projects are synonymous terms. You may find **group_id** in the official documentation.
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * <!--Start PulumiCodeChooser -->
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
48
+ *
49
+ * const testCustomDnsConfigurationClusterAws = new mongodbatlas.CustomDnsConfigurationClusterAws("test", {
50
+ * projectId: "<project-id>",
51
+ * enabled: true,
52
+ * });
53
+ * const test = mongodbatlas.getCustomDnsConfigurationClusterAwsOutput({
54
+ * projectId: testCustomDnsConfigurationClusterAws.id,
55
+ * });
56
+ * ```
57
+ * <!--End PulumiCodeChooser -->
24
58
  */
25
59
  function getCustomDnsConfigurationClusterAwsOutput(args, opts) {
26
60
  return pulumi.output(args).apply((a) => getCustomDnsConfigurationClusterAws(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getCustomDnsConfigurationClusterAws.js","sourceRoot":"","sources":["../getCustomDnsConfigurationClusterAws.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAE1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4FAA4F,EAAE;QACvH,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AA0BD;;;;GAIG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAA2B;IACtI,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mCAAmC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9F,CAAC;AAFD,8FAEC"}
1
+ {"version":3,"file":"getCustomDnsConfigurationClusterAws.js","sourceRoot":"","sources":["../getCustomDnsConfigurationClusterAws.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAE1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4FAA4F,EAAE;QACvH,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAA2B;IACtI,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mCAAmC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9F,CAAC;AAFD,8FAEC"}
@@ -6,6 +6,72 @@ import * as outputs from "./types/output";
6
6
  * Each user has a set of roles that provide access to the project’s databases. User's roles apply to all the clusters in the project: if two clusters have a `products` database and a user has a role granting `read` access on the products database, the user has that access on both clusters.
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
+ * <!--Start PulumiCodeChooser -->
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
16
+ *
17
+ * const testDatabaseUser = new mongodbatlas.DatabaseUser("test", {
18
+ * username: "test-acc-username",
19
+ * password: "test-acc-password",
20
+ * projectId: "<PROJECT-ID>",
21
+ * authDatabaseName: "admin",
22
+ * roles: [
23
+ * {
24
+ * roleName: "readWrite",
25
+ * databaseName: "admin",
26
+ * },
27
+ * {
28
+ * roleName: "atlasAdmin",
29
+ * databaseName: "admin",
30
+ * },
31
+ * ],
32
+ * labels: [
33
+ * {
34
+ * key: "key 1",
35
+ * value: "value 1",
36
+ * },
37
+ * {
38
+ * key: "key 2",
39
+ * value: "value 2",
40
+ * },
41
+ * ],
42
+ * });
43
+ * const test = mongodbatlas.getDatabaseUserOutput({
44
+ * projectId: testDatabaseUser.projectId,
45
+ * username: testDatabaseUser.username,
46
+ * });
47
+ * ```
48
+ * <!--End PulumiCodeChooser -->
49
+ *
50
+ * **Example of usage with a OIDC federated authentication user**
51
+ *
52
+ * <!--Start PulumiCodeChooser -->
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
56
+ *
57
+ * const testDatabaseUser = new mongodbatlas.DatabaseUser("test", {
58
+ * username: "64d613677e1ad50839cce4db/testUserOrGroup",
59
+ * projectId: "6414908c207f4d22f4d8f232",
60
+ * authDatabaseName: "admin",
61
+ * oidcAuthType: "IDP_GROUP",
62
+ * roles: [{
63
+ * roleName: "readWriteAnyDatabase",
64
+ * databaseName: "admin",
65
+ * }],
66
+ * });
67
+ * const test = mongodbatlas.getDatabaseUserOutput({
68
+ * username: testDatabaseUser.username,
69
+ * projectId: "6414908c207f4d22f4d8f232",
70
+ * authDatabaseName: "admin",
71
+ * });
72
+ * ```
73
+ * <!--End PulumiCodeChooser -->
74
+ * Note: OIDC support is only avalible starting in [MongoDB 7.0](https://www.mongodb.com/evolved#mdbsevenzero) or later. To learn more, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
9
75
  */
10
76
  export declare function getDatabaseUser(args: GetDatabaseUserArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseUserResult>;
11
77
  /**
@@ -72,6 +138,72 @@ export interface GetDatabaseUserResult {
72
138
  * Each user has a set of roles that provide access to the project’s databases. User's roles apply to all the clusters in the project: if two clusters have a `products` database and a user has a role granting `read` access on the products database, the user has that access on both clusters.
73
139
  *
74
140
  * > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
141
+ *
142
+ * ## Example Usage
143
+ *
144
+ * <!--Start PulumiCodeChooser -->
145
+ * ```typescript
146
+ * import * as pulumi from "@pulumi/pulumi";
147
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
148
+ *
149
+ * const testDatabaseUser = new mongodbatlas.DatabaseUser("test", {
150
+ * username: "test-acc-username",
151
+ * password: "test-acc-password",
152
+ * projectId: "<PROJECT-ID>",
153
+ * authDatabaseName: "admin",
154
+ * roles: [
155
+ * {
156
+ * roleName: "readWrite",
157
+ * databaseName: "admin",
158
+ * },
159
+ * {
160
+ * roleName: "atlasAdmin",
161
+ * databaseName: "admin",
162
+ * },
163
+ * ],
164
+ * labels: [
165
+ * {
166
+ * key: "key 1",
167
+ * value: "value 1",
168
+ * },
169
+ * {
170
+ * key: "key 2",
171
+ * value: "value 2",
172
+ * },
173
+ * ],
174
+ * });
175
+ * const test = mongodbatlas.getDatabaseUserOutput({
176
+ * projectId: testDatabaseUser.projectId,
177
+ * username: testDatabaseUser.username,
178
+ * });
179
+ * ```
180
+ * <!--End PulumiCodeChooser -->
181
+ *
182
+ * **Example of usage with a OIDC federated authentication user**
183
+ *
184
+ * <!--Start PulumiCodeChooser -->
185
+ * ```typescript
186
+ * import * as pulumi from "@pulumi/pulumi";
187
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
188
+ *
189
+ * const testDatabaseUser = new mongodbatlas.DatabaseUser("test", {
190
+ * username: "64d613677e1ad50839cce4db/testUserOrGroup",
191
+ * projectId: "6414908c207f4d22f4d8f232",
192
+ * authDatabaseName: "admin",
193
+ * oidcAuthType: "IDP_GROUP",
194
+ * roles: [{
195
+ * roleName: "readWriteAnyDatabase",
196
+ * databaseName: "admin",
197
+ * }],
198
+ * });
199
+ * const test = mongodbatlas.getDatabaseUserOutput({
200
+ * username: testDatabaseUser.username,
201
+ * projectId: "6414908c207f4d22f4d8f232",
202
+ * authDatabaseName: "admin",
203
+ * });
204
+ * ```
205
+ * <!--End PulumiCodeChooser -->
206
+ * Note: OIDC support is only avalible starting in [MongoDB 7.0](https://www.mongodb.com/evolved#mdbsevenzero) or later. To learn more, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
75
207
  */
76
208
  export declare function getDatabaseUserOutput(args: GetDatabaseUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseUserResult>;
77
209
  /**