@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/accessListApiKey.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
10
10
|
*
|
|
11
11
|
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
12
|
-
* apiKeyId: "a29120e123cd",
|
|
13
|
-
* cidrBlock: "1.2.3.4/32",
|
|
14
12
|
* orgId: "<ORG-ID>",
|
|
13
|
+
* cidrBlock: "1.2.3.4/32",
|
|
14
|
+
* apiKeyId: "a29120e123cd",
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
17
17
|
* <!--End PulumiCodeChooser -->
|
|
@@ -23,9 +23,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
24
24
|
*
|
|
25
25
|
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
26
|
-
* apiKeyId: "a29120e123cd",
|
|
27
|
-
* ipAddress: "2.3.4.5",
|
|
28
26
|
* orgId: "<ORG-ID>",
|
|
27
|
+
* ipAddress: "2.3.4.5",
|
|
28
|
+
* apiKeyId: "a29120e123cd",
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
* <!--End PulumiCodeChooser -->
|
package/accessListApiKey.js
CHANGED
|
@@ -15,9 +15,9 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
16
16
|
*
|
|
17
17
|
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
18
|
-
* apiKeyId: "a29120e123cd",
|
|
19
|
-
* cidrBlock: "1.2.3.4/32",
|
|
20
18
|
* orgId: "<ORG-ID>",
|
|
19
|
+
* cidrBlock: "1.2.3.4/32",
|
|
20
|
+
* apiKeyId: "a29120e123cd",
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
* <!--End PulumiCodeChooser -->
|
|
@@ -29,9 +29,9 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
30
30
|
*
|
|
31
31
|
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
32
|
-
* apiKeyId: "a29120e123cd",
|
|
33
|
-
* ipAddress: "2.3.4.5",
|
|
34
32
|
* orgId: "<ORG-ID>",
|
|
33
|
+
* ipAddress: "2.3.4.5",
|
|
34
|
+
* apiKeyId: "a29120e123cd",
|
|
35
35
|
* });
|
|
36
36
|
* ```
|
|
37
37
|
* <!--End PulumiCodeChooser -->
|
package/advancedCluster.d.ts
CHANGED
|
@@ -31,20 +31,21 @@ import * as outputs from "./types/output";
|
|
|
31
31
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
32
32
|
*
|
|
33
33
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
34
|
-
* clusterType: "REPLICASET",
|
|
35
34
|
* projectId: "PROJECT ID",
|
|
35
|
+
* name: "NAME OF CLUSTER",
|
|
36
|
+
* clusterType: "REPLICASET",
|
|
36
37
|
* replicationSpecs: [{
|
|
37
38
|
* regionConfigs: [{
|
|
38
|
-
* analyticsSpecs: {
|
|
39
|
-
* instanceSize: "M10",
|
|
40
|
-
* nodeCount: 1,
|
|
41
|
-
* },
|
|
42
39
|
* electableSpecs: {
|
|
43
40
|
* instanceSize: "M10",
|
|
44
41
|
* nodeCount: 3,
|
|
45
42
|
* },
|
|
46
|
-
*
|
|
43
|
+
* analyticsSpecs: {
|
|
44
|
+
* instanceSize: "M10",
|
|
45
|
+
* nodeCount: 1,
|
|
46
|
+
* },
|
|
47
47
|
* providerName: "AWS",
|
|
48
|
+
* priority: 7,
|
|
48
49
|
* regionName: "US_EAST_1",
|
|
49
50
|
* }],
|
|
50
51
|
* }],
|
|
@@ -60,17 +61,18 @@ import * as outputs from "./types/output";
|
|
|
60
61
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
61
62
|
*
|
|
62
63
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
63
|
-
* clusterType: "REPLICASET",
|
|
64
64
|
* projectId: "PROJECT ID",
|
|
65
|
+
* name: "NAME OF CLUSTER",
|
|
66
|
+
* clusterType: "REPLICASET",
|
|
65
67
|
* replicationSpecs: [{
|
|
66
68
|
* regionConfigs: [{
|
|
67
|
-
* backingProviderName: "AWS",
|
|
68
69
|
* electableSpecs: {
|
|
69
70
|
* instanceSize: "M5",
|
|
70
71
|
* },
|
|
71
|
-
* priority: 7,
|
|
72
72
|
* providerName: "TENANT",
|
|
73
|
+
* backingProviderName: "AWS",
|
|
73
74
|
* regionName: "US_EAST_1",
|
|
75
|
+
* priority: 7,
|
|
74
76
|
* }],
|
|
75
77
|
* }],
|
|
76
78
|
* });
|
|
@@ -85,16 +87,17 @@ import * as outputs from "./types/output";
|
|
|
85
87
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
86
88
|
*
|
|
87
89
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
88
|
-
* clusterType: "REPLICASET",
|
|
89
90
|
* projectId: "PROJECT ID",
|
|
91
|
+
* name: "NAME OF CLUSTER",
|
|
92
|
+
* clusterType: "REPLICASET",
|
|
90
93
|
* replicationSpecs: [{
|
|
91
94
|
* regionConfigs: [{
|
|
92
95
|
* electableSpecs: {
|
|
93
96
|
* instanceSize: "M10",
|
|
94
97
|
* },
|
|
95
|
-
* priority: 7,
|
|
96
98
|
* providerName: "AWS",
|
|
97
99
|
* regionName: "US_EAST_1",
|
|
100
|
+
* priority: 7,
|
|
98
101
|
* }],
|
|
99
102
|
* }],
|
|
100
103
|
* });
|
|
@@ -108,21 +111,22 @@ import * as outputs from "./types/output";
|
|
|
108
111
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
109
112
|
*
|
|
110
113
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
111
|
-
* clusterType: "REPLICASET",
|
|
112
114
|
* projectId: "PROJECT ID",
|
|
115
|
+
* name: "NAME OF CLUSTER",
|
|
116
|
+
* clusterType: "REPLICASET",
|
|
113
117
|
* replicationSpecs: [{
|
|
114
118
|
* regionConfigs: [
|
|
115
119
|
* {
|
|
116
|
-
* analyticsSpecs: {
|
|
117
|
-
* instanceSize: "M10",
|
|
118
|
-
* nodeCount: 1,
|
|
119
|
-
* },
|
|
120
120
|
* electableSpecs: {
|
|
121
121
|
* instanceSize: "M10",
|
|
122
122
|
* nodeCount: 3,
|
|
123
123
|
* },
|
|
124
|
-
*
|
|
124
|
+
* analyticsSpecs: {
|
|
125
|
+
* instanceSize: "M10",
|
|
126
|
+
* nodeCount: 1,
|
|
127
|
+
* },
|
|
125
128
|
* providerName: "AWS",
|
|
129
|
+
* priority: 7,
|
|
126
130
|
* regionName: "US_EAST_1",
|
|
127
131
|
* },
|
|
128
132
|
* {
|
|
@@ -130,8 +134,8 @@ import * as outputs from "./types/output";
|
|
|
130
134
|
* instanceSize: "M10",
|
|
131
135
|
* nodeCount: 2,
|
|
132
136
|
* },
|
|
133
|
-
* priority: 6,
|
|
134
137
|
* providerName: "GCP",
|
|
138
|
+
* priority: 6,
|
|
135
139
|
* regionName: "NORTH_AMERICA_NORTHEAST_1",
|
|
136
140
|
* },
|
|
137
141
|
* ],
|
|
@@ -147,7 +151,8 @@ import * as outputs from "./types/output";
|
|
|
147
151
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
148
152
|
*
|
|
149
153
|
* const cluster = new mongodbatlas.AdvancedCluster("cluster", {
|
|
150
|
-
* projectId:
|
|
154
|
+
* projectId: project.id,
|
|
155
|
+
* name: clusterName,
|
|
151
156
|
* clusterType: "SHARDED",
|
|
152
157
|
* backupEnabled: true,
|
|
153
158
|
* replicationSpecs: [{
|
|
@@ -210,7 +215,8 @@ import * as outputs from "./types/output";
|
|
|
210
215
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
211
216
|
*
|
|
212
217
|
* const cluster = new mongodbatlas.AdvancedCluster("cluster", {
|
|
213
|
-
* projectId:
|
|
218
|
+
* projectId: project.id,
|
|
219
|
+
* name: clusterName,
|
|
214
220
|
* clusterType: "GEOSHARDED",
|
|
215
221
|
* backupEnabled: true,
|
|
216
222
|
* replicationSpecs: [
|
|
@@ -320,7 +326,7 @@ import * as outputs from "./types/output";
|
|
|
320
326
|
* ```typescript
|
|
321
327
|
* import * as pulumi from "@pulumi/pulumi";
|
|
322
328
|
*
|
|
323
|
-
* export const standard =
|
|
329
|
+
* export const standard = cluster_test.connectionStrings[0].standard;
|
|
324
330
|
* ```
|
|
325
331
|
* <!--End PulumiCodeChooser -->
|
|
326
332
|
* Standard srv
|
|
@@ -328,33 +334,10 @@ import * as outputs from "./types/output";
|
|
|
328
334
|
* ```typescript
|
|
329
335
|
* import * as pulumi from "@pulumi/pulumi";
|
|
330
336
|
*
|
|
331
|
-
* export const standardSrv =
|
|
337
|
+
* export const standardSrv = cluster_test.connectionStrings[0].standardSrv;
|
|
332
338
|
* ```
|
|
333
339
|
* <!--End PulumiCodeChooser -->
|
|
334
340
|
* Private with Network peering and Custom DNS AWS enabled
|
|
335
|
-
* <!--Start PulumiCodeChooser -->
|
|
336
|
-
* ```typescript
|
|
337
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
338
|
-
*
|
|
339
|
-
* export = async () => {
|
|
340
|
-
* // Example return string: private = "mongodb://cluster-atlas-shard-00-00-pri.ygo1m.mongodb.net:27017,cluster-atlas-shard-00-01-pri.ygo1m.mongodb.net:27017,cluster-atlas-shard-00-02-pri.ygo1m.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=atlas-12diht-shard-0"
|
|
341
|
-
* const private = "mongodb+srv://cluster-atlas-pri.ygo1m.mongodb.net";
|
|
342
|
-
* return {
|
|
343
|
-
* "private": mongodbatlas_cluster["cluster-test"].connection_strings[0]["private"],
|
|
344
|
-
* };
|
|
345
|
-
* }
|
|
346
|
-
* ```
|
|
347
|
-
* <!--End PulumiCodeChooser -->
|
|
348
|
-
* Private srv with Network peering and Custom DNS AWS enabled
|
|
349
|
-
* <!--Start PulumiCodeChooser -->
|
|
350
|
-
* ```typescript
|
|
351
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
352
|
-
*
|
|
353
|
-
* export const privateSrv = mongodbatlas_cluster["cluster-test"].connection_strings[0].private_srv;
|
|
354
|
-
* ```
|
|
355
|
-
* <!--End PulumiCodeChooser -->
|
|
356
|
-
*
|
|
357
|
-
* By endpointServiceId
|
|
358
341
|
* ## Import
|
|
359
342
|
*
|
|
360
343
|
* Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTERNAME`, e.g.
|
package/advancedCluster.js
CHANGED
|
@@ -35,20 +35,21 @@ const utilities = require("./utilities");
|
|
|
35
35
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
36
36
|
*
|
|
37
37
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
38
|
-
* clusterType: "REPLICASET",
|
|
39
38
|
* projectId: "PROJECT ID",
|
|
39
|
+
* name: "NAME OF CLUSTER",
|
|
40
|
+
* clusterType: "REPLICASET",
|
|
40
41
|
* replicationSpecs: [{
|
|
41
42
|
* regionConfigs: [{
|
|
42
|
-
* analyticsSpecs: {
|
|
43
|
-
* instanceSize: "M10",
|
|
44
|
-
* nodeCount: 1,
|
|
45
|
-
* },
|
|
46
43
|
* electableSpecs: {
|
|
47
44
|
* instanceSize: "M10",
|
|
48
45
|
* nodeCount: 3,
|
|
49
46
|
* },
|
|
50
|
-
*
|
|
47
|
+
* analyticsSpecs: {
|
|
48
|
+
* instanceSize: "M10",
|
|
49
|
+
* nodeCount: 1,
|
|
50
|
+
* },
|
|
51
51
|
* providerName: "AWS",
|
|
52
|
+
* priority: 7,
|
|
52
53
|
* regionName: "US_EAST_1",
|
|
53
54
|
* }],
|
|
54
55
|
* }],
|
|
@@ -64,17 +65,18 @@ const utilities = require("./utilities");
|
|
|
64
65
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
65
66
|
*
|
|
66
67
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
67
|
-
* clusterType: "REPLICASET",
|
|
68
68
|
* projectId: "PROJECT ID",
|
|
69
|
+
* name: "NAME OF CLUSTER",
|
|
70
|
+
* clusterType: "REPLICASET",
|
|
69
71
|
* replicationSpecs: [{
|
|
70
72
|
* regionConfigs: [{
|
|
71
|
-
* backingProviderName: "AWS",
|
|
72
73
|
* electableSpecs: {
|
|
73
74
|
* instanceSize: "M5",
|
|
74
75
|
* },
|
|
75
|
-
* priority: 7,
|
|
76
76
|
* providerName: "TENANT",
|
|
77
|
+
* backingProviderName: "AWS",
|
|
77
78
|
* regionName: "US_EAST_1",
|
|
79
|
+
* priority: 7,
|
|
78
80
|
* }],
|
|
79
81
|
* }],
|
|
80
82
|
* });
|
|
@@ -89,16 +91,17 @@ const utilities = require("./utilities");
|
|
|
89
91
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
90
92
|
*
|
|
91
93
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
92
|
-
* clusterType: "REPLICASET",
|
|
93
94
|
* projectId: "PROJECT ID",
|
|
95
|
+
* name: "NAME OF CLUSTER",
|
|
96
|
+
* clusterType: "REPLICASET",
|
|
94
97
|
* replicationSpecs: [{
|
|
95
98
|
* regionConfigs: [{
|
|
96
99
|
* electableSpecs: {
|
|
97
100
|
* instanceSize: "M10",
|
|
98
101
|
* },
|
|
99
|
-
* priority: 7,
|
|
100
102
|
* providerName: "AWS",
|
|
101
103
|
* regionName: "US_EAST_1",
|
|
104
|
+
* priority: 7,
|
|
102
105
|
* }],
|
|
103
106
|
* }],
|
|
104
107
|
* });
|
|
@@ -112,21 +115,22 @@ const utilities = require("./utilities");
|
|
|
112
115
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
113
116
|
*
|
|
114
117
|
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
115
|
-
* clusterType: "REPLICASET",
|
|
116
118
|
* projectId: "PROJECT ID",
|
|
119
|
+
* name: "NAME OF CLUSTER",
|
|
120
|
+
* clusterType: "REPLICASET",
|
|
117
121
|
* replicationSpecs: [{
|
|
118
122
|
* regionConfigs: [
|
|
119
123
|
* {
|
|
120
|
-
* analyticsSpecs: {
|
|
121
|
-
* instanceSize: "M10",
|
|
122
|
-
* nodeCount: 1,
|
|
123
|
-
* },
|
|
124
124
|
* electableSpecs: {
|
|
125
125
|
* instanceSize: "M10",
|
|
126
126
|
* nodeCount: 3,
|
|
127
127
|
* },
|
|
128
|
-
*
|
|
128
|
+
* analyticsSpecs: {
|
|
129
|
+
* instanceSize: "M10",
|
|
130
|
+
* nodeCount: 1,
|
|
131
|
+
* },
|
|
129
132
|
* providerName: "AWS",
|
|
133
|
+
* priority: 7,
|
|
130
134
|
* regionName: "US_EAST_1",
|
|
131
135
|
* },
|
|
132
136
|
* {
|
|
@@ -134,8 +138,8 @@ const utilities = require("./utilities");
|
|
|
134
138
|
* instanceSize: "M10",
|
|
135
139
|
* nodeCount: 2,
|
|
136
140
|
* },
|
|
137
|
-
* priority: 6,
|
|
138
141
|
* providerName: "GCP",
|
|
142
|
+
* priority: 6,
|
|
139
143
|
* regionName: "NORTH_AMERICA_NORTHEAST_1",
|
|
140
144
|
* },
|
|
141
145
|
* ],
|
|
@@ -151,7 +155,8 @@ const utilities = require("./utilities");
|
|
|
151
155
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
152
156
|
*
|
|
153
157
|
* const cluster = new mongodbatlas.AdvancedCluster("cluster", {
|
|
154
|
-
* projectId:
|
|
158
|
+
* projectId: project.id,
|
|
159
|
+
* name: clusterName,
|
|
155
160
|
* clusterType: "SHARDED",
|
|
156
161
|
* backupEnabled: true,
|
|
157
162
|
* replicationSpecs: [{
|
|
@@ -214,7 +219,8 @@ const utilities = require("./utilities");
|
|
|
214
219
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
215
220
|
*
|
|
216
221
|
* const cluster = new mongodbatlas.AdvancedCluster("cluster", {
|
|
217
|
-
* projectId:
|
|
222
|
+
* projectId: project.id,
|
|
223
|
+
* name: clusterName,
|
|
218
224
|
* clusterType: "GEOSHARDED",
|
|
219
225
|
* backupEnabled: true,
|
|
220
226
|
* replicationSpecs: [
|
|
@@ -324,7 +330,7 @@ const utilities = require("./utilities");
|
|
|
324
330
|
* ```typescript
|
|
325
331
|
* import * as pulumi from "@pulumi/pulumi";
|
|
326
332
|
*
|
|
327
|
-
* export const standard =
|
|
333
|
+
* export const standard = cluster_test.connectionStrings[0].standard;
|
|
328
334
|
* ```
|
|
329
335
|
* <!--End PulumiCodeChooser -->
|
|
330
336
|
* Standard srv
|
|
@@ -332,33 +338,10 @@ const utilities = require("./utilities");
|
|
|
332
338
|
* ```typescript
|
|
333
339
|
* import * as pulumi from "@pulumi/pulumi";
|
|
334
340
|
*
|
|
335
|
-
* export const standardSrv =
|
|
341
|
+
* export const standardSrv = cluster_test.connectionStrings[0].standardSrv;
|
|
336
342
|
* ```
|
|
337
343
|
* <!--End PulumiCodeChooser -->
|
|
338
344
|
* Private with Network peering and Custom DNS AWS enabled
|
|
339
|
-
* <!--Start PulumiCodeChooser -->
|
|
340
|
-
* ```typescript
|
|
341
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
342
|
-
*
|
|
343
|
-
* export = async () => {
|
|
344
|
-
* // Example return string: private = "mongodb://cluster-atlas-shard-00-00-pri.ygo1m.mongodb.net:27017,cluster-atlas-shard-00-01-pri.ygo1m.mongodb.net:27017,cluster-atlas-shard-00-02-pri.ygo1m.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=atlas-12diht-shard-0"
|
|
345
|
-
* const private = "mongodb+srv://cluster-atlas-pri.ygo1m.mongodb.net";
|
|
346
|
-
* return {
|
|
347
|
-
* "private": mongodbatlas_cluster["cluster-test"].connection_strings[0]["private"],
|
|
348
|
-
* };
|
|
349
|
-
* }
|
|
350
|
-
* ```
|
|
351
|
-
* <!--End PulumiCodeChooser -->
|
|
352
|
-
* Private srv with Network peering and Custom DNS AWS enabled
|
|
353
|
-
* <!--Start PulumiCodeChooser -->
|
|
354
|
-
* ```typescript
|
|
355
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
356
|
-
*
|
|
357
|
-
* export const privateSrv = mongodbatlas_cluster["cluster-test"].connection_strings[0].private_srv;
|
|
358
|
-
* ```
|
|
359
|
-
* <!--End PulumiCodeChooser -->
|
|
360
|
-
*
|
|
361
|
-
* By endpointServiceId
|
|
362
345
|
* ## Import
|
|
363
346
|
*
|
|
364
347
|
* Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTERNAME`, e.g.
|
package/advancedCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAhNL,0CAiNC;AAnMG,gBAAgB;AACO,4BAAY,GAAG,oDAAoD,CAAC"}
|
package/alertConfiguration.d.ts
CHANGED
|
@@ -14,8 +14,20 @@ import * as outputs from "./types/output";
|
|
|
14
14
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
15
15
|
*
|
|
16
16
|
* const test = new mongodbatlas.AlertConfiguration("test", {
|
|
17
|
-
*
|
|
17
|
+
* projectId: "<PROJECT-ID>",
|
|
18
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
|
+
* roles: [
|
|
27
|
+
* "GROUP_CHARTS_ADMIN",
|
|
28
|
+
* "GROUP_CLUSTER_MANAGER",
|
|
29
|
+
* ],
|
|
30
|
+
* }],
|
|
19
31
|
* matchers: [{
|
|
20
32
|
* fieldName: "HOSTNAME_AND_PORT",
|
|
21
33
|
* operator: "EQUALS",
|
|
@@ -23,23 +35,11 @@ import * as outputs from "./types/output";
|
|
|
23
35
|
* }],
|
|
24
36
|
* metricThresholdConfig: {
|
|
25
37
|
* metricName: "ASSERT_REGULAR",
|
|
26
|
-
* mode: "AVERAGE",
|
|
27
38
|
* operator: "LESS_THAN",
|
|
28
39
|
* threshold: 99,
|
|
29
40
|
* units: "RAW",
|
|
41
|
+
* mode: "AVERAGE",
|
|
30
42
|
* },
|
|
31
|
-
* notifications: [{
|
|
32
|
-
* delayMin: 0,
|
|
33
|
-
* emailEnabled: true,
|
|
34
|
-
* intervalMin: 5,
|
|
35
|
-
* roles: [
|
|
36
|
-
* "GROUP_CHARTS_ADMIN",
|
|
37
|
-
* "GROUP_CLUSTER_MANAGER",
|
|
38
|
-
* ],
|
|
39
|
-
* smsEnabled: false,
|
|
40
|
-
* typeName: "GROUP",
|
|
41
|
-
* }],
|
|
42
|
-
* projectId: "<PROJECT-ID>",
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
45
|
* <!--End PulumiCodeChooser -->
|
|
@@ -52,25 +52,25 @@ import * as outputs from "./types/output";
|
|
|
52
52
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
53
53
|
*
|
|
54
54
|
* const test = new mongodbatlas.AlertConfiguration("test", {
|
|
55
|
-
*
|
|
55
|
+
* projectId: "<PROJECT-ID>",
|
|
56
56
|
* eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
|
|
57
|
-
*
|
|
58
|
-
* fieldName: "HOSTNAME_AND_PORT",
|
|
59
|
-
* operator: "EQUALS",
|
|
60
|
-
* value: "SECONDARY",
|
|
61
|
-
* }],
|
|
57
|
+
* enabled: true,
|
|
62
58
|
* notifications: [{
|
|
59
|
+
* typeName: "GROUP",
|
|
60
|
+
* intervalMin: 5,
|
|
63
61
|
* delayMin: 0,
|
|
62
|
+
* smsEnabled: false,
|
|
64
63
|
* emailEnabled: true,
|
|
65
|
-
* intervalMin: 5,
|
|
66
64
|
* roles: [
|
|
67
65
|
* "GROUP_CHARTS_ADMIN",
|
|
68
66
|
* "GROUP_CLUSTER_MANAGER",
|
|
69
67
|
* ],
|
|
70
|
-
* smsEnabled: false,
|
|
71
|
-
* typeName: "GROUP",
|
|
72
68
|
* }],
|
|
73
|
-
*
|
|
69
|
+
* matchers: [{
|
|
70
|
+
* fieldName: "HOSTNAME_AND_PORT",
|
|
71
|
+
* operator: "EQUALS",
|
|
72
|
+
* value: "SECONDARY",
|
|
73
|
+
* }],
|
|
74
74
|
* thresholdConfig: {
|
|
75
75
|
* operator: "LESS_THAN",
|
|
76
76
|
* threshold: 1,
|
|
@@ -88,42 +88,42 @@ import * as outputs from "./types/output";
|
|
|
88
88
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
89
89
|
*
|
|
90
90
|
* const test = new mongodbatlas.AlertConfiguration("test", {
|
|
91
|
-
*
|
|
91
|
+
* projectId: "PROJECT ID",
|
|
92
92
|
* eventType: "OUTSIDE_METRIC_THRESHOLD",
|
|
93
|
-
*
|
|
94
|
-
* fieldName: "HOSTNAME_AND_PORT",
|
|
95
|
-
* operator: "EQUALS",
|
|
96
|
-
* value: "SECONDARY",
|
|
97
|
-
* }],
|
|
98
|
-
* metricThresholdConfig: {
|
|
99
|
-
* metricName: "ASSERT_REGULAR",
|
|
100
|
-
* mode: "AVERAGE",
|
|
101
|
-
* operator: "LESS_THAN",
|
|
102
|
-
* threshold: 99,
|
|
103
|
-
* units: "RAW",
|
|
104
|
-
* },
|
|
93
|
+
* enabled: true,
|
|
105
94
|
* notifications: [
|
|
106
95
|
* {
|
|
96
|
+
* typeName: "GROUP",
|
|
97
|
+
* intervalMin: 5,
|
|
107
98
|
* delayMin: 0,
|
|
99
|
+
* smsEnabled: false,
|
|
108
100
|
* emailEnabled: true,
|
|
109
|
-
* intervalMin: 5,
|
|
110
101
|
* roles: [
|
|
111
102
|
* "GROUP_DATA_ACCESS_READ_ONLY",
|
|
112
103
|
* "GROUP_CLUSTER_MANAGER",
|
|
113
104
|
* "GROUP_DATA_ACCESS_ADMIN",
|
|
114
105
|
* ],
|
|
115
|
-
* smsEnabled: false,
|
|
116
|
-
* typeName: "GROUP",
|
|
117
106
|
* },
|
|
118
107
|
* {
|
|
119
|
-
*
|
|
120
|
-
* emailEnabled: false,
|
|
108
|
+
* typeName: "ORG",
|
|
121
109
|
* intervalMin: 5,
|
|
110
|
+
* delayMin: 0,
|
|
122
111
|
* smsEnabled: true,
|
|
123
|
-
*
|
|
112
|
+
* emailEnabled: false,
|
|
124
113
|
* },
|
|
125
114
|
* ],
|
|
126
|
-
*
|
|
115
|
+
* matchers: [{
|
|
116
|
+
* fieldName: "HOSTNAME_AND_PORT",
|
|
117
|
+
* operator: "EQUALS",
|
|
118
|
+
* value: "SECONDARY",
|
|
119
|
+
* }],
|
|
120
|
+
* metricThresholdConfig: {
|
|
121
|
+
* metricName: "ASSERT_REGULAR",
|
|
122
|
+
* operator: "LESS_THAN",
|
|
123
|
+
* threshold: 99,
|
|
124
|
+
* units: "RAW",
|
|
125
|
+
* mode: "AVERAGE",
|
|
126
|
+
* },
|
|
127
127
|
* });
|
|
128
128
|
* ```
|
|
129
129
|
* <!--End PulumiCodeChooser -->
|