@pulumi/mongodbatlas 3.0.1 → 3.1.0
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/README.md +1 -1
- package/alertConfiguration.d.ts +21 -21
- package/alertConfiguration.js +27 -26
- package/alertConfiguration.js.map +1 -1
- package/auditing.d.ts +9 -9
- package/auditing.js +13 -12
- package/auditing.js.map +1 -1
- package/cloudBackupSchedule.d.ts +23 -23
- package/cloudBackupSchedule.js +29 -28
- package/cloudBackupSchedule.js.map +1 -1
- package/cloudProviderAccess.d.ts +12 -12
- package/cloudProviderAccess.js +21 -20
- package/cloudProviderAccess.js.map +1 -1
- package/cloudProviderAccessAuthorization.d.ts +8 -8
- package/cloudProviderAccessAuthorization.js +13 -12
- package/cloudProviderAccessAuthorization.js.map +1 -1
- package/cloudProviderAccessSetup.d.ts +8 -8
- package/cloudProviderAccessSetup.js +15 -14
- package/cloudProviderAccessSetup.js.map +1 -1
- package/cloudProviderSnapshot.d.ts +17 -17
- package/cloudProviderSnapshot.js +29 -28
- package/cloudProviderSnapshot.js.map +1 -1
- package/cloudProviderSnapshotBackupPolicy.d.ts +16 -16
- package/cloudProviderSnapshotBackupPolicy.js +21 -20
- package/cloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/cloudProviderSnapshotRestoreJob.d.ts +18 -18
- package/cloudProviderSnapshotRestoreJob.js +29 -28
- package/cloudProviderSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +72 -72
- package/cluster.js +87 -86
- package/cluster.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +4 -4
- package/config/vars.js +25 -17
- package/config/vars.js.map +1 -1
- package/customDbRole.d.ts +8 -8
- package/customDbRole.js +11 -10
- package/customDbRole.js.map +1 -1
- package/customDnsConfigurationClusterAws.d.ts +4 -4
- package/customDnsConfigurationClusterAws.js +7 -6
- package/customDnsConfigurationClusterAws.js.map +1 -1
- package/dataLake.d.ts +12 -12
- package/dataLake.js +19 -18
- package/dataLake.js.map +1 -1
- package/databaseUser.d.ts +22 -22
- package/databaseUser.js +25 -24
- package/databaseUser.js.map +1 -1
- package/encryptionAtRest.d.ts +14 -14
- package/encryptionAtRest.js +17 -16
- package/encryptionAtRest.js.map +1 -1
- package/eventTrigger.d.ts +39 -39
- package/eventTrigger.js +45 -44
- package/eventTrigger.js.map +1 -1
- package/get509AuthenticationDatabaseUser.d.ts +20 -6
- package/get509AuthenticationDatabaseUser.js +9 -4
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAlertConfiguration.d.ts +16 -2
- package/getAlertConfiguration.js +5 -0
- package/getAlertConfiguration.js.map +1 -1
- package/getAuditing.d.ts +11 -1
- package/getAuditing.js +5 -0
- package/getAuditing.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +16 -2
- package/getCloudBackupSchedule.js +5 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudProviderAccess.d.ts +14 -4
- package/getCloudProviderAccess.js +8 -3
- package/getCloudProviderAccess.js.map +1 -1
- package/getCloudProviderAccessSetup.d.ts +26 -8
- package/getCloudProviderAccessSetup.js +10 -5
- package/getCloudProviderAccessSetup.js.map +1 -1
- package/getCloudProviderSnapshot.d.ts +18 -3
- package/getCloudProviderSnapshot.js +5 -0
- package/getCloudProviderSnapshot.js.map +1 -1
- package/getCloudProviderSnapshotBackupPolicy.d.ts +16 -2
- package/getCloudProviderSnapshotBackupPolicy.js +5 -0
- package/getCloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJob.d.ts +21 -3
- package/getCloudProviderSnapshotRestoreJob.js +5 -0
- package/getCloudProviderSnapshotRestoreJob.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJobs.d.ts +27 -5
- package/getCloudProviderSnapshotRestoreJobs.js +6 -1
- package/getCloudProviderSnapshotRestoreJobs.js.map +1 -1
- package/getCloudProviderSnapshots.d.ts +23 -4
- package/getCloudProviderSnapshots.js +5 -0
- package/getCloudProviderSnapshots.js.map +1 -1
- package/getCluster.d.ts +16 -2
- package/getCluster.js +5 -0
- package/getCluster.js.map +1 -1
- package/getClusters.d.ts +14 -4
- package/getClusters.js +8 -3
- package/getClusters.js.map +1 -1
- package/getCustomDbRole.d.ts +22 -7
- package/getCustomDbRole.js +9 -4
- package/getCustomDbRole.js.map +1 -1
- package/getCustomDbRoles.d.ts +11 -1
- package/getCustomDbRoles.js +5 -0
- package/getCustomDbRoles.js.map +1 -1
- package/getCustomDnsConfigurationClusterAws.d.ts +11 -1
- package/getCustomDnsConfigurationClusterAws.js +5 -0
- package/getCustomDnsConfigurationClusterAws.js.map +1 -1
- package/getDataLake.d.ts +16 -2
- package/getDataLake.js +5 -0
- package/getDataLake.js.map +1 -1
- package/getDataLakes.d.ts +12 -2
- package/getDataLakes.js +6 -1
- package/getDataLakes.js.map +1 -1
- package/getDatabaseUser.d.ts +28 -4
- package/getDatabaseUser.js +5 -0
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +14 -4
- package/getDatabaseUsers.js +8 -3
- package/getDatabaseUsers.js.map +1 -1
- package/getEventTrigger.d.ts +21 -3
- package/getEventTrigger.js +5 -0
- package/getEventTrigger.js.map +1 -1
- package/getEventTriggers.d.ts +16 -2
- package/getEventTriggers.js +5 -0
- package/getEventTriggers.js.map +1 -1
- package/getGlobalClusterConfig.d.ts +19 -3
- package/getGlobalClusterConfig.js +5 -0
- package/getGlobalClusterConfig.js.map +1 -1
- package/getLdapConfiguration.d.ts +11 -1
- package/getLdapConfiguration.js +5 -0
- package/getLdapConfiguration.js.map +1 -1
- package/getLdapVerify.d.ts +16 -2
- package/getLdapVerify.js +5 -0
- package/getLdapVerify.js.map +1 -1
- package/getMaintenanceWindow.d.ts +11 -1
- package/getMaintenanceWindow.js +5 -0
- package/getMaintenanceWindow.js.map +1 -1
- package/getNetworkContainer.d.ts +16 -2
- package/getNetworkContainer.js +5 -0
- package/getNetworkContainer.js.map +1 -1
- package/getNetworkContainers.d.ts +17 -3
- package/getNetworkContainers.js +6 -1
- package/getNetworkContainers.js.map +1 -1
- package/getNetworkPeering.d.ts +16 -2
- package/getNetworkPeering.js +5 -0
- package/getNetworkPeering.js.map +1 -1
- package/getNetworkPeerings.d.ts +14 -4
- package/getNetworkPeerings.js +8 -3
- package/getNetworkPeerings.js.map +1 -1
- package/getOnlineArchive.d.ts +21 -3
- package/getOnlineArchive.js +5 -0
- package/getOnlineArchive.js.map +1 -1
- package/getOnlineArchives.d.ts +16 -2
- package/getOnlineArchives.js +5 -0
- package/getOnlineArchives.js.map +1 -1
- package/getPrivateLinkEndpoint.d.ts +21 -3
- package/getPrivateLinkEndpoint.js +5 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivateLinkEndpointService.d.ts +26 -4
- package/getPrivateLinkEndpointService.js +5 -0
- package/getPrivateLinkEndpointService.js.map +1 -1
- package/getProject.d.ts +17 -3
- package/getProject.js +6 -1
- package/getProject.js.map +1 -1
- package/getProjectIpAccessList.d.ts +26 -4
- package/getProjectIpAccessList.js +5 -0
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjects.d.ts +17 -3
- package/getProjects.js +6 -1
- package/getProjects.js.map +1 -1
- package/getSearchIndex.d.ts +64 -13
- package/getSearchIndex.js +6 -1
- package/getSearchIndex.js.map +1 -1
- package/getSearchIndexes.d.ts +37 -7
- package/getSearchIndexes.js +6 -1
- package/getSearchIndexes.js.map +1 -1
- package/getTeam.d.ts +21 -3
- package/getTeam.js +5 -0
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +12 -3
- package/getTeams.js +5 -0
- package/getTeams.js.map +1 -1
- package/getThirdPartyIntegration.d.ts +41 -2
- package/getThirdPartyIntegration.js +23 -0
- package/getThirdPartyIntegration.js.map +1 -1
- package/getThirdPartyIntegrations.d.ts +11 -1
- package/getThirdPartyIntegrations.js +5 -0
- package/getThirdPartyIntegrations.js.map +1 -1
- package/globalClusterConfig.d.ts +9 -9
- package/globalClusterConfig.js +13 -12
- package/globalClusterConfig.js.map +1 -1
- package/index.js +88 -80
- package/index.js.map +1 -1
- package/ldapConfiguration.d.ts +20 -20
- package/ldapConfiguration.js +23 -22
- package/ldapConfiguration.js.map +1 -1
- package/ldapVerify.d.ts +18 -18
- package/ldapVerify.js +25 -24
- package/ldapVerify.js.map +1 -1
- package/maintenanceWindow.d.ts +15 -15
- package/maintenanceWindow.js +19 -18
- package/maintenanceWindow.js.map +1 -1
- package/networkContainer.d.ts +19 -19
- package/networkContainer.js +29 -28
- package/networkContainer.js.map +1 -1
- package/networkPeering.d.ts +40 -40
- package/networkPeering.js +51 -50
- package/networkPeering.js.map +1 -1
- package/onlineArchive.d.ts +18 -18
- package/onlineArchive.js +23 -22
- package/onlineArchive.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/privateIpMode.d.ts +4 -4
- package/privateIpMode.js +7 -6
- package/privateIpMode.js.map +1 -1
- package/privateLinkEndpoint.d.ts +14 -14
- package/privateLinkEndpoint.js +25 -24
- package/privateLinkEndpoint.js.map +1 -1
- package/privateLinkEndpointService.d.ts +49 -17
- package/privateLinkEndpointService.js +59 -26
- package/privateLinkEndpointService.js.map +1 -1
- package/project.d.ts +10 -10
- package/project.js +15 -14
- package/project.js.map +1 -1
- package/projectIpAccessList.d.ts +10 -10
- package/projectIpAccessList.js +13 -12
- package/projectIpAccessList.js.map +1 -1
- package/provider.d.ts +20 -4
- package/provider.js +7 -6
- package/provider.js.map +1 -1
- package/searchIndex.d.ts +23 -23
- package/searchIndex.js +27 -26
- package/searchIndex.js.map +1 -1
- package/team.d.ts +7 -7
- package/team.js +11 -10
- package/team.js.map +1 -1
- package/teams.d.ts +7 -7
- package/teams.js +11 -10
- package/teams.js.map +1 -1
- package/thirdPartyIntegration.d.ts +34 -34
- package/thirdPartyIntegration.js +37 -36
- package/thirdPartyIntegration.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +29 -0
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
- package/x509authenticationDatabaseUser.d.ts +10 -10
- package/x509authenticationDatabaseUser.js +15 -14
- package/x509authenticationDatabaseUser.js.map +1 -1
package/README.md
CHANGED
package/alertConfiguration.d.ts
CHANGED
|
@@ -159,45 +159,45 @@ export interface AlertConfigurationState {
|
|
|
159
159
|
/**
|
|
160
160
|
* Unique identifier for the alert configuration.
|
|
161
161
|
*/
|
|
162
|
-
|
|
162
|
+
alertConfigurationId?: pulumi.Input<string>;
|
|
163
163
|
/**
|
|
164
164
|
* Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
|
|
165
165
|
*/
|
|
166
|
-
|
|
166
|
+
created?: pulumi.Input<string>;
|
|
167
167
|
/**
|
|
168
168
|
* It is not required, but If the attribute is omitted, by default will be false, and the configuration would be disabled. You must set true to enable the configuration.
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
enabled?: pulumi.Input<boolean>;
|
|
171
171
|
/**
|
|
172
172
|
* The type of event that will trigger an alert.
|
|
173
173
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
eventType?: pulumi.Input<string>;
|
|
175
|
+
matchers?: pulumi.Input<pulumi.Input<inputs.AlertConfigurationMatcher>[]>;
|
|
176
176
|
/**
|
|
177
177
|
* @deprecated use metric_threshold_config instead
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
metricThreshold?: pulumi.Input<{
|
|
180
180
|
[key: string]: pulumi.Input<string>;
|
|
181
181
|
}>;
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
metricThresholdConfig?: pulumi.Input<inputs.AlertConfigurationMetricThresholdConfig>;
|
|
183
|
+
notifications?: pulumi.Input<pulumi.Input<inputs.AlertConfigurationNotification>[]>;
|
|
184
184
|
/**
|
|
185
185
|
* The ID of the project where the alert configuration will create.
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
projectId?: pulumi.Input<string>;
|
|
188
188
|
/**
|
|
189
189
|
* Threshold value outside of which an alert will be triggered.
|
|
190
190
|
*
|
|
191
191
|
* @deprecated use threshold_config instead
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
threshold?: pulumi.Input<{
|
|
194
194
|
[key: string]: pulumi.Input<string>;
|
|
195
195
|
}>;
|
|
196
|
-
|
|
196
|
+
thresholdConfig?: pulumi.Input<inputs.AlertConfigurationThresholdConfig>;
|
|
197
197
|
/**
|
|
198
198
|
* Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
|
|
199
199
|
*/
|
|
200
|
-
|
|
200
|
+
updated?: pulumi.Input<string>;
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* The set of arguments for constructing a AlertConfiguration resource.
|
|
@@ -206,31 +206,31 @@ export interface AlertConfigurationArgs {
|
|
|
206
206
|
/**
|
|
207
207
|
* It is not required, but If the attribute is omitted, by default will be false, and the configuration would be disabled. You must set true to enable the configuration.
|
|
208
208
|
*/
|
|
209
|
-
|
|
209
|
+
enabled?: pulumi.Input<boolean>;
|
|
210
210
|
/**
|
|
211
211
|
* The type of event that will trigger an alert.
|
|
212
212
|
*/
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
eventType: pulumi.Input<string>;
|
|
214
|
+
matchers?: pulumi.Input<pulumi.Input<inputs.AlertConfigurationMatcher>[]>;
|
|
215
215
|
/**
|
|
216
216
|
* @deprecated use metric_threshold_config instead
|
|
217
217
|
*/
|
|
218
|
-
|
|
218
|
+
metricThreshold?: pulumi.Input<{
|
|
219
219
|
[key: string]: pulumi.Input<string>;
|
|
220
220
|
}>;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
metricThresholdConfig?: pulumi.Input<inputs.AlertConfigurationMetricThresholdConfig>;
|
|
222
|
+
notifications: pulumi.Input<pulumi.Input<inputs.AlertConfigurationNotification>[]>;
|
|
223
223
|
/**
|
|
224
224
|
* The ID of the project where the alert configuration will create.
|
|
225
225
|
*/
|
|
226
|
-
|
|
226
|
+
projectId: pulumi.Input<string>;
|
|
227
227
|
/**
|
|
228
228
|
* Threshold value outside of which an alert will be triggered.
|
|
229
229
|
*
|
|
230
230
|
* @deprecated use threshold_config instead
|
|
231
231
|
*/
|
|
232
|
-
|
|
232
|
+
threshold?: pulumi.Input<{
|
|
233
233
|
[key: string]: pulumi.Input<string>;
|
|
234
234
|
}>;
|
|
235
|
-
|
|
235
|
+
thresholdConfig?: pulumi.Input<inputs.AlertConfigurationThresholdConfig>;
|
|
236
236
|
}
|
package/alertConfiguration.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AlertConfiguration = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -91,22 +92,22 @@ const utilities = require("./utilities");
|
|
|
91
92
|
*/
|
|
92
93
|
class AlertConfiguration extends pulumi.CustomResource {
|
|
93
94
|
constructor(name, argsOrState, opts) {
|
|
94
|
-
let
|
|
95
|
+
let resourceInputs = {};
|
|
95
96
|
opts = opts || {};
|
|
96
97
|
if (opts.id) {
|
|
97
98
|
const state = argsOrState;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
resourceInputs["alertConfigurationId"] = state ? state.alertConfigurationId : undefined;
|
|
100
|
+
resourceInputs["created"] = state ? state.created : undefined;
|
|
101
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
102
|
+
resourceInputs["eventType"] = state ? state.eventType : undefined;
|
|
103
|
+
resourceInputs["matchers"] = state ? state.matchers : undefined;
|
|
104
|
+
resourceInputs["metricThreshold"] = state ? state.metricThreshold : undefined;
|
|
105
|
+
resourceInputs["metricThresholdConfig"] = state ? state.metricThresholdConfig : undefined;
|
|
106
|
+
resourceInputs["notifications"] = state ? state.notifications : undefined;
|
|
107
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
108
|
+
resourceInputs["threshold"] = state ? state.threshold : undefined;
|
|
109
|
+
resourceInputs["thresholdConfig"] = state ? state.thresholdConfig : undefined;
|
|
110
|
+
resourceInputs["updated"] = state ? state.updated : undefined;
|
|
110
111
|
}
|
|
111
112
|
else {
|
|
112
113
|
const args = argsOrState;
|
|
@@ -119,23 +120,23 @@ class AlertConfiguration extends pulumi.CustomResource {
|
|
|
119
120
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
120
121
|
throw new Error("Missing required property 'projectId'");
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
123
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
124
|
+
resourceInputs["eventType"] = args ? args.eventType : undefined;
|
|
125
|
+
resourceInputs["matchers"] = args ? args.matchers : undefined;
|
|
126
|
+
resourceInputs["metricThreshold"] = args ? args.metricThreshold : undefined;
|
|
127
|
+
resourceInputs["metricThresholdConfig"] = args ? args.metricThresholdConfig : undefined;
|
|
128
|
+
resourceInputs["notifications"] = args ? args.notifications : undefined;
|
|
129
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
130
|
+
resourceInputs["threshold"] = args ? args.threshold : undefined;
|
|
131
|
+
resourceInputs["thresholdConfig"] = args ? args.thresholdConfig : undefined;
|
|
132
|
+
resourceInputs["alertConfigurationId"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["updated"] = undefined /*out*/;
|
|
134
135
|
}
|
|
135
136
|
if (!opts.version) {
|
|
136
137
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
137
138
|
}
|
|
138
|
-
super(AlertConfiguration.__pulumiType, name,
|
|
139
|
+
super(AlertConfiguration.__pulumiType, name, resourceInputs, opts);
|
|
139
140
|
}
|
|
140
141
|
/**
|
|
141
142
|
* Get an existing AlertConfiguration resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertConfiguration.js","sourceRoot":"","sources":["../alertConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"alertConfiguration.js","sourceRoot":"","sources":["../alertConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA2EzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAvHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAyHC;AA3GG,gBAAgB;AACO,+BAAY,GAAG,0DAA0D,CAAC"}
|
package/auditing.d.ts
CHANGED
|
@@ -81,26 +81,26 @@ export interface AuditingState {
|
|
|
81
81
|
/**
|
|
82
82
|
* Indicates whether the auditing system captures successful authentication attempts for audit filters using the "atype" : "authCheck" auditing event. For more information, see [auditAuthorizationSuccess](https://docs.mongodb.com/manual/reference/parameters/#param.auditAuthorizationSuccess). **Warning! Enabling Audit authorization successes can severely impact cluster performance. Enable this option with caution.**
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
auditAuthorizationSuccess?: pulumi.Input<boolean>;
|
|
85
85
|
/**
|
|
86
86
|
* JSON-formatted audit filter. For complete documentation on custom auditing filters, see [Configure Audit Filters](https://docs.mongodb.com/manual/tutorial/configure-audit-filters/).
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
auditFilter?: pulumi.Input<string>;
|
|
89
89
|
/**
|
|
90
90
|
* Denotes the configuration method for the audit filter. Possible values are:
|
|
91
91
|
* * NONE - auditing not configured for the project.
|
|
92
92
|
* * FILTER_BUILDER - auditing configured via Atlas UI filter builder.
|
|
93
93
|
* * FILTER_JSON - auditing configured via Atlas custom filter or API.
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
configurationType?: pulumi.Input<string>;
|
|
96
96
|
/**
|
|
97
97
|
* Denotes whether or not the project associated with the {project_id} has database auditing enabled. Defaults to false.
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
enabled?: pulumi.Input<boolean>;
|
|
100
100
|
/**
|
|
101
101
|
* The unique ID for the project to configure auditing.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
projectId?: pulumi.Input<string>;
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* The set of arguments for constructing a Auditing resource.
|
|
@@ -109,17 +109,17 @@ export interface AuditingArgs {
|
|
|
109
109
|
/**
|
|
110
110
|
* Indicates whether the auditing system captures successful authentication attempts for audit filters using the "atype" : "authCheck" auditing event. For more information, see [auditAuthorizationSuccess](https://docs.mongodb.com/manual/reference/parameters/#param.auditAuthorizationSuccess). **Warning! Enabling Audit authorization successes can severely impact cluster performance. Enable this option with caution.**
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
auditAuthorizationSuccess?: pulumi.Input<boolean>;
|
|
113
113
|
/**
|
|
114
114
|
* JSON-formatted audit filter. For complete documentation on custom auditing filters, see [Configure Audit Filters](https://docs.mongodb.com/manual/tutorial/configure-audit-filters/).
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
auditFilter?: pulumi.Input<string>;
|
|
117
117
|
/**
|
|
118
118
|
* Denotes whether or not the project associated with the {project_id} has database auditing enabled. Defaults to false.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
enabled?: pulumi.Input<boolean>;
|
|
121
121
|
/**
|
|
122
122
|
* The unique ID for the project to configure auditing.
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
projectId: pulumi.Input<string>;
|
|
125
125
|
}
|
package/auditing.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Auditing = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -33,31 +34,31 @@ const utilities = require("./utilities");
|
|
|
33
34
|
*/
|
|
34
35
|
class Auditing extends pulumi.CustomResource {
|
|
35
36
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
37
|
+
let resourceInputs = {};
|
|
37
38
|
opts = opts || {};
|
|
38
39
|
if (opts.id) {
|
|
39
40
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
resourceInputs["auditAuthorizationSuccess"] = state ? state.auditAuthorizationSuccess : undefined;
|
|
42
|
+
resourceInputs["auditFilter"] = state ? state.auditFilter : undefined;
|
|
43
|
+
resourceInputs["configurationType"] = state ? state.configurationType : undefined;
|
|
44
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
45
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
45
46
|
}
|
|
46
47
|
else {
|
|
47
48
|
const args = argsOrState;
|
|
48
49
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
49
50
|
throw new Error("Missing required property 'projectId'");
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
resourceInputs["auditAuthorizationSuccess"] = args ? args.auditAuthorizationSuccess : undefined;
|
|
53
|
+
resourceInputs["auditFilter"] = args ? args.auditFilter : undefined;
|
|
54
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
55
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
56
|
+
resourceInputs["configurationType"] = undefined /*out*/;
|
|
56
57
|
}
|
|
57
58
|
if (!opts.version) {
|
|
58
59
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
59
60
|
}
|
|
60
|
-
super(Auditing.__pulumiType, name,
|
|
61
|
+
super(Auditing.__pulumiType, name, resourceInputs, opts);
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Get an existing Auditing resource's state with the given name, ID, and optional extra
|
package/auditing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditing.js","sourceRoot":"","sources":["../auditing.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"auditing.js","sourceRoot":"","sources":["../auditing.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IA4D/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,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AAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC3D;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAsFC;AAxEG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
package/cloudBackupSchedule.d.ts
CHANGED
|
@@ -95,55 +95,55 @@ export interface CloudBackupScheduleState {
|
|
|
95
95
|
/**
|
|
96
96
|
* Unique identifier of the Atlas cluster.
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
clusterId?: pulumi.Input<string>;
|
|
99
99
|
/**
|
|
100
100
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
clusterName?: pulumi.Input<string>;
|
|
103
103
|
/**
|
|
104
104
|
* Unique identifier of the backup policy.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
idPolicy?: pulumi.Input<string>;
|
|
107
107
|
/**
|
|
108
108
|
* Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
nextSnapshot?: pulumi.Input<string>;
|
|
111
111
|
/**
|
|
112
112
|
* Daily policy item
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
policyItemDaily?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemDaily>;
|
|
115
115
|
/**
|
|
116
116
|
* Hourly policy item
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
policyItemHourly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemHourly>;
|
|
119
119
|
/**
|
|
120
120
|
* Monthly policy item
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
policyItemMonthly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemMonthly>;
|
|
123
123
|
/**
|
|
124
124
|
* Weekly policy item
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
policyItemWeekly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemWeekly>;
|
|
127
127
|
/**
|
|
128
128
|
* The unique identifier of the project for the Atlas cluster.
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
projectId?: pulumi.Input<string>;
|
|
131
131
|
/**
|
|
132
132
|
* UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
referenceHourOfDay?: pulumi.Input<number>;
|
|
135
135
|
/**
|
|
136
136
|
* UTC Minutes after `referenceHourOfDay` that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
|
|
137
137
|
*/
|
|
138
|
-
|
|
138
|
+
referenceMinuteOfHour?: pulumi.Input<number>;
|
|
139
139
|
/**
|
|
140
140
|
* Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
restoreWindowDays?: pulumi.Input<number>;
|
|
143
143
|
/**
|
|
144
144
|
* Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
updateSnapshots?: pulumi.Input<boolean>;
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* The set of arguments for constructing a CloudBackupSchedule resource.
|
|
@@ -152,41 +152,41 @@ export interface CloudBackupScheduleArgs {
|
|
|
152
152
|
/**
|
|
153
153
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
154
154
|
*/
|
|
155
|
-
|
|
155
|
+
clusterName: pulumi.Input<string>;
|
|
156
156
|
/**
|
|
157
157
|
* Daily policy item
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
policyItemDaily?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemDaily>;
|
|
160
160
|
/**
|
|
161
161
|
* Hourly policy item
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
policyItemHourly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemHourly>;
|
|
164
164
|
/**
|
|
165
165
|
* Monthly policy item
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
policyItemMonthly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemMonthly>;
|
|
168
168
|
/**
|
|
169
169
|
* Weekly policy item
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
policyItemWeekly?: pulumi.Input<inputs.CloudBackupSchedulePolicyItemWeekly>;
|
|
172
172
|
/**
|
|
173
173
|
* The unique identifier of the project for the Atlas cluster.
|
|
174
174
|
*/
|
|
175
|
-
|
|
175
|
+
projectId: pulumi.Input<string>;
|
|
176
176
|
/**
|
|
177
177
|
* UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
referenceHourOfDay?: pulumi.Input<number>;
|
|
180
180
|
/**
|
|
181
181
|
* UTC Minutes after `referenceHourOfDay` that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
referenceMinuteOfHour?: pulumi.Input<number>;
|
|
184
184
|
/**
|
|
185
185
|
* Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
restoreWindowDays?: pulumi.Input<number>;
|
|
188
188
|
/**
|
|
189
189
|
* Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
updateSnapshots?: pulumi.Input<boolean>;
|
|
192
192
|
}
|
package/cloudBackupSchedule.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CloudBackupSchedule = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -17,23 +18,23 @@ const utilities = require("./utilities");
|
|
|
17
18
|
*/
|
|
18
19
|
class CloudBackupSchedule extends pulumi.CustomResource {
|
|
19
20
|
constructor(name, argsOrState, opts) {
|
|
20
|
-
let
|
|
21
|
+
let resourceInputs = {};
|
|
21
22
|
opts = opts || {};
|
|
22
23
|
if (opts.id) {
|
|
23
24
|
const state = argsOrState;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
26
|
+
resourceInputs["clusterName"] = state ? state.clusterName : undefined;
|
|
27
|
+
resourceInputs["idPolicy"] = state ? state.idPolicy : undefined;
|
|
28
|
+
resourceInputs["nextSnapshot"] = state ? state.nextSnapshot : undefined;
|
|
29
|
+
resourceInputs["policyItemDaily"] = state ? state.policyItemDaily : undefined;
|
|
30
|
+
resourceInputs["policyItemHourly"] = state ? state.policyItemHourly : undefined;
|
|
31
|
+
resourceInputs["policyItemMonthly"] = state ? state.policyItemMonthly : undefined;
|
|
32
|
+
resourceInputs["policyItemWeekly"] = state ? state.policyItemWeekly : undefined;
|
|
33
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
34
|
+
resourceInputs["referenceHourOfDay"] = state ? state.referenceHourOfDay : undefined;
|
|
35
|
+
resourceInputs["referenceMinuteOfHour"] = state ? state.referenceMinuteOfHour : undefined;
|
|
36
|
+
resourceInputs["restoreWindowDays"] = state ? state.restoreWindowDays : undefined;
|
|
37
|
+
resourceInputs["updateSnapshots"] = state ? state.updateSnapshots : undefined;
|
|
37
38
|
}
|
|
38
39
|
else {
|
|
39
40
|
const args = argsOrState;
|
|
@@ -43,24 +44,24 @@ class CloudBackupSchedule extends pulumi.CustomResource {
|
|
|
43
44
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
44
45
|
throw new Error("Missing required property 'projectId'");
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
resourceInputs["clusterName"] = args ? args.clusterName : undefined;
|
|
48
|
+
resourceInputs["policyItemDaily"] = args ? args.policyItemDaily : undefined;
|
|
49
|
+
resourceInputs["policyItemHourly"] = args ? args.policyItemHourly : undefined;
|
|
50
|
+
resourceInputs["policyItemMonthly"] = args ? args.policyItemMonthly : undefined;
|
|
51
|
+
resourceInputs["policyItemWeekly"] = args ? args.policyItemWeekly : undefined;
|
|
52
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
53
|
+
resourceInputs["referenceHourOfDay"] = args ? args.referenceHourOfDay : undefined;
|
|
54
|
+
resourceInputs["referenceMinuteOfHour"] = args ? args.referenceMinuteOfHour : undefined;
|
|
55
|
+
resourceInputs["restoreWindowDays"] = args ? args.restoreWindowDays : undefined;
|
|
56
|
+
resourceInputs["updateSnapshots"] = args ? args.updateSnapshots : undefined;
|
|
57
|
+
resourceInputs["clusterId"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["idPolicy"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["nextSnapshot"] = undefined /*out*/;
|
|
59
60
|
}
|
|
60
61
|
if (!opts.version) {
|
|
61
62
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
62
63
|
}
|
|
63
|
-
super(CloudBackupSchedule.__pulumiType, name,
|
|
64
|
+
super(CloudBackupSchedule.__pulumiType, name, resourceInputs, opts);
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
66
67
|
* Get an existing CloudBackupSchedule resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudBackupSchedule.js","sourceRoot":"","sources":["../cloudBackupSchedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"cloudBackupSchedule.js","sourceRoot":"","sources":["../cloudBackupSchedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAyF1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc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AAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAsIC;AAxHG,gBAAgB;AACO,gCAAY,GAAG,4DAA4D,CAAC"}
|
package/cloudProviderAccess.d.ts
CHANGED
|
@@ -77,39 +77,39 @@ export interface CloudProviderAccessState {
|
|
|
77
77
|
/**
|
|
78
78
|
* Unique external ID Atlas uses when assuming the IAM role in your AWS account.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
atlasAssumedRoleExternalId?: pulumi.Input<string>;
|
|
81
81
|
/**
|
|
82
82
|
* ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
atlasAwsAccountArn?: pulumi.Input<string>;
|
|
85
85
|
/**
|
|
86
86
|
* Date on which this role was authorized.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
authorizedDate?: pulumi.Input<string>;
|
|
89
89
|
/**
|
|
90
90
|
* Date on which this role was created.
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
createdDate?: pulumi.Input<string>;
|
|
93
93
|
/**
|
|
94
94
|
* Atlas features this AWS IAM role is linked to.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
featureUsages?: pulumi.Input<pulumi.Input<inputs.CloudProviderAccessFeatureUsage>[]>;
|
|
97
97
|
/**
|
|
98
98
|
* ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of [Set Up Unified AWS Access](https://docs.atlas.mongodb.com/security/set-up-unified-aws-access/#set-up-unified-aws-access).
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
iamAssumedRoleArn?: pulumi.Input<string>;
|
|
101
101
|
/**
|
|
102
102
|
* The unique ID for the project
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
projectId?: pulumi.Input<string>;
|
|
105
105
|
/**
|
|
106
106
|
* The cloud provider for which to create a new role. Currently only AWS is supported.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
providerName?: pulumi.Input<string>;
|
|
109
109
|
/**
|
|
110
110
|
* Unique ID of this role returned by mongodb atlas api
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
roleId?: pulumi.Input<string>;
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* The set of arguments for constructing a CloudProviderAccess resource.
|
|
@@ -118,13 +118,13 @@ export interface CloudProviderAccessArgs {
|
|
|
118
118
|
/**
|
|
119
119
|
* ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of [Set Up Unified AWS Access](https://docs.atlas.mongodb.com/security/set-up-unified-aws-access/#set-up-unified-aws-access).
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
iamAssumedRoleArn?: pulumi.Input<string>;
|
|
122
122
|
/**
|
|
123
123
|
* The unique ID for the project
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
projectId: pulumi.Input<string>;
|
|
126
126
|
/**
|
|
127
127
|
* The cloud provider for which to create a new role. Currently only AWS is supported.
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
providerName: pulumi.Input<string>;
|
|
130
130
|
}
|