@pulumi/mongodbatlas 3.1.0-alpha.1637768803 → 3.1.2
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 +32 -17
- package/cloudProviderSnapshot.js +34 -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 +20 -18
- package/cloudProviderSnapshotRestoreJob.js +31 -28
- package/cloudProviderSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +75 -75
- 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 +9 -9
- package/customDbRole.js +12 -11
- 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 +20 -3
- package/getCloudProviderSnapshot.js +7 -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 +23 -3
- package/getCloudProviderSnapshotRestoreJob.js +7 -0
- package/getCloudProviderSnapshotRestoreJob.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJobs.d.ts +29 -5
- package/getCloudProviderSnapshotRestoreJobs.js +8 -1
- package/getCloudProviderSnapshotRestoreJobs.js.map +1 -1
- package/getCloudProviderSnapshots.d.ts +45 -4
- package/getCloudProviderSnapshots.js +27 -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 +35 -5
- package/getPrivateLinkEndpoint.js +5 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivateLinkEndpointService.d.ts +36 -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 +76 -17
- 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 +34 -1
- package/getThirdPartyIntegrations.js +28 -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 +50 -26
- package/privateLinkEndpoint.js +31 -24
- package/privateLinkEndpoint.js.map +1 -1
- package/privateLinkEndpointService.d.ts +162 -23
- package/privateLinkEndpointService.js +131 -26
- package/privateLinkEndpointService.js.map +1 -1
- package/project.d.ts +22 -10
- package/project.js +17 -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 +129 -38
- package/searchIndex.js +98 -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 +67 -0
- package/types/output.d.ts +85 -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
|
@@ -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.CloudProviderSnapshotBackupPolicy = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -17,19 +18,19 @@ const utilities = require("./utilities");
|
|
|
17
18
|
*/
|
|
18
19
|
class CloudProviderSnapshotBackupPolicy 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
|
-
|
|
25
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
26
|
+
resourceInputs["clusterName"] = state ? state.clusterName : undefined;
|
|
27
|
+
resourceInputs["nextSnapshot"] = state ? state.nextSnapshot : undefined;
|
|
28
|
+
resourceInputs["policies"] = state ? state.policies : undefined;
|
|
29
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
30
|
+
resourceInputs["referenceHourOfDay"] = state ? state.referenceHourOfDay : undefined;
|
|
31
|
+
resourceInputs["referenceMinuteOfHour"] = state ? state.referenceMinuteOfHour : undefined;
|
|
32
|
+
resourceInputs["restoreWindowDays"] = state ? state.restoreWindowDays : undefined;
|
|
33
|
+
resourceInputs["updateSnapshots"] = state ? state.updateSnapshots : undefined;
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
36
|
const args = argsOrState;
|
|
@@ -42,20 +43,20 @@ class CloudProviderSnapshotBackupPolicy extends pulumi.CustomResource {
|
|
|
42
43
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
43
44
|
throw new Error("Missing required property 'projectId'");
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
resourceInputs["clusterName"] = args ? args.clusterName : undefined;
|
|
47
|
+
resourceInputs["policies"] = args ? args.policies : undefined;
|
|
48
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
49
|
+
resourceInputs["referenceHourOfDay"] = args ? args.referenceHourOfDay : undefined;
|
|
50
|
+
resourceInputs["referenceMinuteOfHour"] = args ? args.referenceMinuteOfHour : undefined;
|
|
51
|
+
resourceInputs["restoreWindowDays"] = args ? args.restoreWindowDays : undefined;
|
|
52
|
+
resourceInputs["updateSnapshots"] = args ? args.updateSnapshots : undefined;
|
|
53
|
+
resourceInputs["clusterId"] = undefined /*out*/;
|
|
54
|
+
resourceInputs["nextSnapshot"] = undefined /*out*/;
|
|
54
55
|
}
|
|
55
56
|
if (!opts.version) {
|
|
56
57
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
57
58
|
}
|
|
58
|
-
super(CloudProviderSnapshotBackupPolicy.__pulumiType, name,
|
|
59
|
+
super(CloudProviderSnapshotBackupPolicy.__pulumiType, name, resourceInputs, opts);
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* Get an existing CloudProviderSnapshotBackupPolicy resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderSnapshotBackupPolicy.js","sourceRoot":"","sources":["../cloudProviderSnapshotBackupPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"cloudProviderSnapshotBackupPolicy.js","sourceRoot":"","sources":["../cloudProviderSnapshotBackupPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IA0ExE,YAAY,IAAY,EAAE,WAA4F,EAAE,IAAmC;QACvJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiE,CAAC;YAChF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,C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,GAAG,wFAAwF,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
+
* **WARNING:** This resource is deprecated, use `mongodbatlasCloudBackupSnapshotRestoreJob`
|
|
5
|
+
*
|
|
4
6
|
* `mongodbatlas.CloudProviderSnapshotRestoreJob` provides a resource to create a new restore job from a cloud backup snapshot of a specified cluster. The restore job can be one of three types:
|
|
5
7
|
* * **automated:** Atlas automatically restores the snapshot with snapshotId to the Atlas cluster with name targetClusterName in the Atlas project with targetGroupId.
|
|
6
8
|
*
|
|
@@ -176,59 +178,59 @@ export interface CloudProviderSnapshotRestoreJobState {
|
|
|
176
178
|
/**
|
|
177
179
|
* Indicates whether the restore job was canceled.
|
|
178
180
|
*/
|
|
179
|
-
|
|
181
|
+
cancelled?: pulumi.Input<boolean>;
|
|
180
182
|
/**
|
|
181
183
|
* The name of the Atlas cluster whose snapshot you want to restore.
|
|
182
184
|
*/
|
|
183
|
-
|
|
185
|
+
clusterName?: pulumi.Input<string>;
|
|
184
186
|
/**
|
|
185
187
|
* UTC ISO 8601 formatted point in time when Atlas created the restore job.
|
|
186
188
|
*/
|
|
187
|
-
|
|
189
|
+
createdAt?: pulumi.Input<string>;
|
|
188
190
|
/**
|
|
189
191
|
* Type of restore job to create. Possible values are: **download** or **automated**, only one must be set it in ``true``.
|
|
190
192
|
*
|
|
191
193
|
* @deprecated use delivery_type_config instead
|
|
192
194
|
*/
|
|
193
|
-
|
|
195
|
+
deliveryType?: pulumi.Input<{
|
|
194
196
|
[key: string]: pulumi.Input<string>;
|
|
195
197
|
}>;
|
|
196
198
|
/**
|
|
197
199
|
* Type of restore job to create. Possible values are: automated and download.
|
|
198
200
|
*/
|
|
199
|
-
|
|
201
|
+
deliveryTypeConfig?: pulumi.Input<inputs.CloudProviderSnapshotRestoreJobDeliveryTypeConfig>;
|
|
200
202
|
/**
|
|
201
203
|
* One or more URLs for the compressed snapshot files for manual download. Only visible if deliveryType is download.
|
|
202
204
|
*/
|
|
203
|
-
|
|
205
|
+
deliveryUrls?: pulumi.Input<pulumi.Input<string>[]>;
|
|
204
206
|
/**
|
|
205
207
|
* Indicates whether the restore job expired.
|
|
206
208
|
*/
|
|
207
|
-
|
|
209
|
+
expired?: pulumi.Input<boolean>;
|
|
208
210
|
/**
|
|
209
211
|
* UTC ISO 8601 formatted point in time when the restore job expires.
|
|
210
212
|
*/
|
|
211
|
-
|
|
213
|
+
expiresAt?: pulumi.Input<string>;
|
|
212
214
|
/**
|
|
213
215
|
* UTC ISO 8601 formatted point in time when the restore job completed.
|
|
214
216
|
*/
|
|
215
|
-
|
|
217
|
+
finishedAt?: pulumi.Input<string>;
|
|
216
218
|
/**
|
|
217
219
|
* The unique identifier of the project for the Atlas cluster whose snapshot you want to restore.
|
|
218
220
|
*/
|
|
219
|
-
|
|
221
|
+
projectId?: pulumi.Input<string>;
|
|
220
222
|
/**
|
|
221
223
|
* Unique identifier of the snapshot to restore.
|
|
222
224
|
*/
|
|
223
|
-
|
|
225
|
+
snapshotId?: pulumi.Input<string>;
|
|
224
226
|
/**
|
|
225
227
|
* The unique identifier of the restore job.
|
|
226
228
|
*/
|
|
227
|
-
|
|
229
|
+
snapshotRestoreJobId?: pulumi.Input<string>;
|
|
228
230
|
/**
|
|
229
231
|
* Timestamp in ISO 8601 date and time format in UTC when the snapshot associated to snapshotId was taken.
|
|
230
232
|
*/
|
|
231
|
-
|
|
233
|
+
timestamp?: pulumi.Input<string>;
|
|
232
234
|
}
|
|
233
235
|
/**
|
|
234
236
|
* The set of arguments for constructing a CloudProviderSnapshotRestoreJob resource.
|
|
@@ -237,25 +239,25 @@ export interface CloudProviderSnapshotRestoreJobArgs {
|
|
|
237
239
|
/**
|
|
238
240
|
* The name of the Atlas cluster whose snapshot you want to restore.
|
|
239
241
|
*/
|
|
240
|
-
|
|
242
|
+
clusterName: pulumi.Input<string>;
|
|
241
243
|
/**
|
|
242
244
|
* Type of restore job to create. Possible values are: **download** or **automated**, only one must be set it in ``true``.
|
|
243
245
|
*
|
|
244
246
|
* @deprecated use delivery_type_config instead
|
|
245
247
|
*/
|
|
246
|
-
|
|
248
|
+
deliveryType?: pulumi.Input<{
|
|
247
249
|
[key: string]: pulumi.Input<string>;
|
|
248
250
|
}>;
|
|
249
251
|
/**
|
|
250
252
|
* Type of restore job to create. Possible values are: automated and download.
|
|
251
253
|
*/
|
|
252
|
-
|
|
254
|
+
deliveryTypeConfig?: pulumi.Input<inputs.CloudProviderSnapshotRestoreJobDeliveryTypeConfig>;
|
|
253
255
|
/**
|
|
254
256
|
* The unique identifier of the project for the Atlas cluster whose snapshot you want to restore.
|
|
255
257
|
*/
|
|
256
|
-
|
|
258
|
+
projectId: pulumi.Input<string>;
|
|
257
259
|
/**
|
|
258
260
|
* Unique identifier of the snapshot to restore.
|
|
259
261
|
*/
|
|
260
|
-
|
|
262
|
+
snapshotId: pulumi.Input<string>;
|
|
261
263
|
}
|
|
@@ -2,9 +2,12 @@
|
|
|
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.CloudProviderSnapshotRestoreJob = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
9
|
+
* **WARNING:** This resource is deprecated, use `mongodbatlasCloudBackupSnapshotRestoreJob`
|
|
10
|
+
*
|
|
8
11
|
* `mongodbatlas.CloudProviderSnapshotRestoreJob` provides a resource to create a new restore job from a cloud backup snapshot of a specified cluster. The restore job can be one of three types:
|
|
9
12
|
* * **automated:** Atlas automatically restores the snapshot with snapshotId to the Atlas cluster with name targetClusterName in the Atlas project with targetGroupId.
|
|
10
13
|
*
|
|
@@ -94,23 +97,23 @@ const utilities = require("./utilities");
|
|
|
94
97
|
*/
|
|
95
98
|
class CloudProviderSnapshotRestoreJob extends pulumi.CustomResource {
|
|
96
99
|
constructor(name, argsOrState, opts) {
|
|
97
|
-
let
|
|
100
|
+
let resourceInputs = {};
|
|
98
101
|
opts = opts || {};
|
|
99
102
|
if (opts.id) {
|
|
100
103
|
const state = argsOrState;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
resourceInputs["cancelled"] = state ? state.cancelled : undefined;
|
|
105
|
+
resourceInputs["clusterName"] = state ? state.clusterName : undefined;
|
|
106
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
107
|
+
resourceInputs["deliveryType"] = state ? state.deliveryType : undefined;
|
|
108
|
+
resourceInputs["deliveryTypeConfig"] = state ? state.deliveryTypeConfig : undefined;
|
|
109
|
+
resourceInputs["deliveryUrls"] = state ? state.deliveryUrls : undefined;
|
|
110
|
+
resourceInputs["expired"] = state ? state.expired : undefined;
|
|
111
|
+
resourceInputs["expiresAt"] = state ? state.expiresAt : undefined;
|
|
112
|
+
resourceInputs["finishedAt"] = state ? state.finishedAt : undefined;
|
|
113
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
114
|
+
resourceInputs["snapshotId"] = state ? state.snapshotId : undefined;
|
|
115
|
+
resourceInputs["snapshotRestoreJobId"] = state ? state.snapshotRestoreJobId : undefined;
|
|
116
|
+
resourceInputs["timestamp"] = state ? state.timestamp : undefined;
|
|
114
117
|
}
|
|
115
118
|
else {
|
|
116
119
|
const args = argsOrState;
|
|
@@ -123,24 +126,24 @@ class CloudProviderSnapshotRestoreJob extends pulumi.CustomResource {
|
|
|
123
126
|
if ((!args || args.snapshotId === undefined) && !opts.urn) {
|
|
124
127
|
throw new Error("Missing required property 'snapshotId'");
|
|
125
128
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
129
|
+
resourceInputs["clusterName"] = args ? args.clusterName : undefined;
|
|
130
|
+
resourceInputs["deliveryType"] = args ? args.deliveryType : undefined;
|
|
131
|
+
resourceInputs["deliveryTypeConfig"] = args ? args.deliveryTypeConfig : undefined;
|
|
132
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
133
|
+
resourceInputs["snapshotId"] = args ? args.snapshotId : undefined;
|
|
134
|
+
resourceInputs["cancelled"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["deliveryUrls"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["expired"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["finishedAt"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["snapshotRestoreJobId"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["timestamp"] = undefined /*out*/;
|
|
139
142
|
}
|
|
140
143
|
if (!opts.version) {
|
|
141
144
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
142
145
|
}
|
|
143
|
-
super(CloudProviderSnapshotRestoreJob.__pulumiType, name,
|
|
146
|
+
super(CloudProviderSnapshotRestoreJob.__pulumiType, name, resourceInputs, opts);
|
|
144
147
|
}
|
|
145
148
|
/**
|
|
146
149
|
* Get an existing CloudProviderSnapshotRestoreJob resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderSnapshotRestoreJob.js","sourceRoot":"","sources":["../cloudProviderSnapshotRestoreJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
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