@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.
- package/accessListApiKey.d.ts +4 -4
- package/accessListApiKey.js +4 -4
- package/advancedCluster.d.ts +28 -45
- package/advancedCluster.js +28 -45
- package/advancedCluster.js.map +1 -1
- package/alertConfiguration.d.ts +44 -44
- package/alertConfiguration.js +44 -44
- package/auditing.d.ts +2 -2
- package/auditing.js +2 -2
- package/backupCompliancePolicy.d.ts +85 -0
- package/backupCompliancePolicy.js +85 -0
- package/backupCompliancePolicy.js.map +1 -1
- package/cloudBackupSnapshot.d.ts +7 -7
- package/cloudBackupSnapshot.js +7 -7
- package/cloudBackupSnapshotExportBucket.d.ts +2 -2
- package/cloudBackupSnapshotExportBucket.js +2 -2
- package/cloudBackupSnapshotExportJob.d.ts +3 -3
- package/cloudBackupSnapshotExportJob.js +3 -3
- package/cloudBackupSnapshotRestoreJob.d.ts +78 -11
- package/cloudBackupSnapshotRestoreJob.js +78 -11
- package/cloudBackupSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +48 -64
- package/cluster.js +48 -64
- package/cluster.js.map +1 -1
- package/clusterOutageSimulation.d.ts +2 -2
- package/clusterOutageSimulation.js +2 -2
- package/customDbRole.d.ts +6 -6
- package/customDbRole.js +6 -6
- package/customDnsConfigurationClusterAws.d.ts +1 -1
- package/customDnsConfigurationClusterAws.js +1 -1
- package/databaseUser.d.ts +19 -19
- package/databaseUser.js +19 -19
- package/eventTrigger.d.ts +24 -20
- package/eventTrigger.js +24 -20
- package/eventTrigger.js.map +1 -1
- package/federatedDatabaseInstance.d.ts +10 -8
- package/federatedDatabaseInstance.js +10 -8
- package/federatedDatabaseInstance.js.map +1 -1
- package/federatedQueryLimit.d.ts +2 -2
- package/federatedQueryLimit.js +2 -2
- package/federatedSettingsIdentityProvider.d.ts +6 -5
- package/federatedSettingsIdentityProvider.js +6 -5
- package/federatedSettingsIdentityProvider.js.map +1 -1
- package/federatedSettingsOrgRoleMapping.d.ts +2 -2
- package/federatedSettingsOrgRoleMapping.js +2 -2
- package/get509AuthenticationDatabaseUser.d.ts +64 -0
- package/get509AuthenticationDatabaseUser.js +64 -0
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAdvancedCluster.d.ts +60 -0
- package/getAdvancedCluster.js +60 -0
- package/getAdvancedCluster.js.map +1 -1
- package/getAlertConfiguration.d.ts +202 -0
- package/getAlertConfiguration.js +202 -0
- package/getAlertConfiguration.js.map +1 -1
- package/getAtlasUsers.d.ts +2 -2
- package/getAtlasUsers.js +2 -2
- package/getAuditing.d.ts +38 -0
- package/getAuditing.js +38 -0
- package/getAuditing.js.map +1 -1
- package/getBackupCompliancePolicy.d.ts +170 -0
- package/getBackupCompliancePolicy.js +170 -0
- package/getBackupCompliancePolicy.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +58 -0
- package/getCloudBackupSchedule.js +58 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudBackupSnapshot.d.ts +42 -0
- package/getCloudBackupSnapshot.js +42 -0
- package/getCloudBackupSnapshot.js.map +1 -1
- package/getCloudBackupSnapshotExportBucket.d.ts +40 -0
- package/getCloudBackupSnapshotExportBucket.js +40 -0
- package/getCloudBackupSnapshotExportBucket.js.map +1 -1
- package/getCloudBackupSnapshotExportBuckets.d.ts +8 -8
- package/getCloudBackupSnapshotExportBuckets.js +8 -8
- package/getCloudBackupSnapshotExportJob.d.ts +62 -0
- package/getCloudBackupSnapshotExportJob.js +62 -0
- package/getCloudBackupSnapshotExportJob.js.map +1 -1
- package/getCloudBackupSnapshotExportJobs.d.ts +6 -6
- package/getCloudBackupSnapshotExportJobs.js +6 -6
- package/getCloudBackupSnapshotRestoreJobs.d.ts +6 -6
- package/getCloudBackupSnapshotRestoreJobs.js +6 -6
- package/getCloudProviderAccessSetup.d.ts +4 -4
- package/getCloudProviderAccessSetup.js +4 -4
- package/getCluster.d.ts +64 -0
- package/getCluster.js +64 -0
- package/getCluster.js.map +1 -1
- package/getClusterOutageSimulation.d.ts +2 -2
- package/getClusterOutageSimulation.js +2 -2
- package/getClusters.d.ts +6 -4
- package/getClusters.js +6 -4
- package/getClusters.js.map +1 -1
- package/getCustomDbRole.d.ts +2 -2
- package/getCustomDbRole.js +2 -2
- package/getCustomDnsConfigurationClusterAws.d.ts +34 -0
- package/getCustomDnsConfigurationClusterAws.js +34 -0
- package/getCustomDnsConfigurationClusterAws.js.map +1 -1
- package/getDatabaseUser.d.ts +132 -0
- package/getDatabaseUser.js +132 -0
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +14 -14
- package/getDatabaseUsers.js +14 -14
- package/getFederatedDatabaseInstance.d.ts +6 -6
- package/getFederatedDatabaseInstance.js +6 -6
- package/getFederatedQueryLimit.d.ts +2 -2
- package/getFederatedQueryLimit.js +2 -2
- package/getFederatedSettingsIdentityProvider.d.ts +4 -2
- package/getFederatedSettingsIdentityProvider.js +4 -2
- package/getFederatedSettingsIdentityProvider.js.map +1 -1
- package/getFederatedSettingsIdentityProviders.d.ts +4 -2
- package/getFederatedSettingsIdentityProviders.js +4 -2
- package/getFederatedSettingsIdentityProviders.js.map +1 -1
- package/getFederatedSettingsOrgConfig.d.ts +6 -6
- package/getFederatedSettingsOrgConfig.js +6 -6
- package/getFederatedSettingsOrgConfigs.d.ts +6 -6
- package/getFederatedSettingsOrgConfigs.js +6 -6
- package/getFederatedSettingsOrgRoleMapping.d.ts +4 -4
- package/getFederatedSettingsOrgRoleMapping.js +4 -4
- package/getGlobalClusterConfig.d.ts +114 -0
- package/getGlobalClusterConfig.js +114 -0
- package/getGlobalClusterConfig.js.map +1 -1
- package/getLdapConfiguration.d.ts +50 -0
- package/getLdapConfiguration.js +50 -0
- package/getLdapConfiguration.js.map +1 -1
- package/getLdapVerify.d.ts +70 -0
- package/getLdapVerify.js +70 -0
- package/getLdapVerify.js.map +1 -1
- package/getMaintenanceWindow.d.ts +68 -0
- package/getMaintenanceWindow.js +68 -0
- package/getMaintenanceWindow.js.map +1 -1
- package/getNetworkContainer.d.ts +40 -0
- package/getNetworkContainer.js +40 -0
- package/getNetworkContainer.js.map +1 -1
- package/getNetworkContainers.d.ts +4 -4
- package/getNetworkContainers.js +4 -4
- package/getNetworkPeering.d.ts +46 -0
- package/getNetworkPeering.js +46 -0
- package/getNetworkPeering.js.map +1 -1
- package/getNetworkPeerings.d.ts +4 -4
- package/getNetworkPeerings.js +4 -4
- package/getOrganizations.d.ts +2 -2
- package/getOrganizations.js +2 -2
- package/getPrivateLinkEndpoint.d.ts +46 -0
- package/getPrivateLinkEndpoint.js +46 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.d.ts +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.d.ts +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js.map +1 -1
- package/getPrivatelinkEndpointServiceServerless.d.ts +20 -16
- package/getPrivatelinkEndpointServiceServerless.js +20 -16
- package/getPrivatelinkEndpointServiceServerless.js.map +1 -1
- package/getPrivatelinkEndpointsServiceServerless.d.ts +20 -16
- package/getPrivatelinkEndpointsServiceServerless.js +20 -16
- package/getPrivatelinkEndpointsServiceServerless.js.map +1 -1
- package/getProject.d.ts +134 -0
- package/getProject.js +134 -0
- package/getProject.js.map +1 -1
- package/getProjectApiKey.d.ts +40 -0
- package/getProjectApiKey.js +40 -0
- package/getProjectApiKey.js.map +1 -1
- package/getProjectApiKeys.d.ts +2 -2
- package/getProjectApiKeys.js +2 -2
- package/getProjectInvitation.d.ts +38 -0
- package/getProjectInvitation.js +38 -0
- package/getProjectInvitation.js.map +1 -1
- package/getProjectIpAccessList.d.ts +146 -0
- package/getProjectIpAccessList.js +146 -0
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjects.d.ts +10 -8
- package/getProjects.js +10 -8
- package/getProjects.js.map +1 -1
- package/getSearchIndex.d.ts +2 -2
- package/getSearchIndex.js +2 -2
- package/getThirdPartyIntegration.d.ts +2 -2
- package/getThirdPartyIntegration.js +2 -2
- package/getThirdPartyIntegrations.d.ts +4 -4
- package/getThirdPartyIntegrations.js +4 -4
- package/getX509AuthenticationDatabaseUser.d.ts +64 -0
- package/getX509AuthenticationDatabaseUser.js +64 -0
- package/getX509AuthenticationDatabaseUser.js.map +1 -1
- package/globalClusterConfig.d.ts +4 -2
- package/globalClusterConfig.js +4 -2
- package/globalClusterConfig.js.map +1 -1
- package/ldapConfiguration.d.ts +12 -6
- package/ldapConfiguration.js +12 -6
- package/ldapConfiguration.js.map +1 -1
- package/ldapVerify.d.ts +9 -6
- package/ldapVerify.js +9 -6
- package/ldapVerify.js.map +1 -1
- package/maintenanceWindow.d.ts +2 -2
- package/maintenanceWindow.js +2 -2
- package/networkContainer.d.ts +3 -3
- package/networkContainer.js +3 -3
- package/networkPeering.d.ts +38 -143
- package/networkPeering.js +38 -143
- package/networkPeering.js.map +1 -1
- package/onlineArchive.d.ts +8 -8
- package/onlineArchive.js +8 -8
- package/orgInvitation.d.ts +4 -4
- package/orgInvitation.js +4 -4
- package/organization.d.ts +2 -1
- package/organization.js +2 -1
- package/organization.js.map +1 -1
- package/package.json +1 -1
- package/privateLinkEndpointService.d.ts +95 -22
- package/privateLinkEndpointService.js +95 -22
- package/privateLinkEndpointService.js.map +1 -1
- package/privatelinkEndpointServerless.d.ts +3 -2
- package/privatelinkEndpointServerless.js +3 -2
- package/privatelinkEndpointServerless.js.map +1 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.d.ts +4 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.js +4 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
- package/privatelinkEndpointServiceServerless.d.ts +54 -6
- package/privatelinkEndpointServiceServerless.js +54 -6
- package/privatelinkEndpointServiceServerless.js.map +1 -1
- package/project.d.ts +4 -3
- package/project.js +4 -3
- package/project.js.map +1 -1
- package/projectInvitation.d.ts +2 -2
- package/projectInvitation.js +2 -2
- package/projectIpAccessList.d.ts +8 -8
- package/projectIpAccessList.js +8 -8
- package/searchIndex.d.ts +4 -2
- package/searchIndex.js +4 -2
- package/searchIndex.js.map +1 -1
- package/serverlessInstance.d.ts +1 -0
- package/serverlessInstance.js +1 -0
- package/serverlessInstance.js.map +1 -1
- package/thirdPartyIntegration.d.ts +3 -3
- package/thirdPartyIntegration.js +3 -3
package/getCluster.d.ts
CHANGED
|
@@ -9,6 +9,38 @@ import * as outputs from "./types/output";
|
|
|
9
9
|
* <br> • 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> • Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
|
|
11
11
|
* <br> • 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> • 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> • Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
|
|
212
244
|
* <br> • 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> • 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> • Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
|
|
16
16
|
* <br> • 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> • 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> • Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
|
|
34
66
|
* <br> • 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
|
|
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("
|
|
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
|
|
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("
|
|
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
|
|
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("
|
|
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
|
|
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("
|
|
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
|
|
91
|
+
* const test = mongodbatlas.getClustersOutput({
|
|
90
92
|
* projectId: testCluster.projectId,
|
|
91
93
|
* });
|
|
92
94
|
* ```
|
package/getClusters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClusters.js","sourceRoot":"","sources":["../getClusters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
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"}
|
package/getCustomDbRole.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
86
|
+
* const testRole = new mongodbatlas.CustomDbRole("test_role", {
|
|
87
87
|
* projectId: "<PROJECT-ID>",
|
|
88
88
|
* roleName: "myCustomRole",
|
|
89
89
|
* actions: [
|
package/getCustomDbRole.js
CHANGED
|
@@ -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("
|
|
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("
|
|
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
|
|
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"}
|
package/getDatabaseUser.d.ts
CHANGED
|
@@ -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
|
/**
|