@pulumi/mongodbatlas 3.28.0-alpha.1740766387 → 3.28.0-alpha.1740772023

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/advancedCluster.d.ts +74 -5
  2. package/advancedCluster.js +71 -2
  3. package/advancedCluster.js.map +1 -1
  4. package/cloudBackupSchedule.d.ts +15 -15
  5. package/cloudBackupSnapshotExportBucket.d.ts +2 -0
  6. package/cloudBackupSnapshotExportBucket.js +2 -0
  7. package/cloudBackupSnapshotExportBucket.js.map +1 -1
  8. package/cluster.d.ts +6 -6
  9. package/encryptionAtRestPrivateEndpoint.d.ts +29 -5
  10. package/encryptionAtRestPrivateEndpoint.js +29 -5
  11. package/encryptionAtRestPrivateEndpoint.js.map +1 -1
  12. package/flexCluster.d.ts +1 -1
  13. package/flexCluster.js +1 -1
  14. package/getAdvancedCluster.d.ts +54 -0
  15. package/getAdvancedCluster.js +54 -0
  16. package/getAdvancedCluster.js.map +1 -1
  17. package/getAdvancedClusters.d.ts +52 -0
  18. package/getAdvancedClusters.js +52 -0
  19. package/getAdvancedClusters.js.map +1 -1
  20. package/getCloudBackupSchedule.d.ts +4 -4
  21. package/getEncryptionAtRest.d.ts +2 -2
  22. package/getEncryptionAtRest.js +2 -2
  23. package/getEncryptionAtRestPrivateEndpoint.d.ts +34 -8
  24. package/getEncryptionAtRestPrivateEndpoint.js +34 -8
  25. package/getEncryptionAtRestPrivateEndpoint.js.map +1 -1
  26. package/getEncryptionAtRestPrivateEndpoints.d.ts +32 -8
  27. package/getEncryptionAtRestPrivateEndpoints.js +32 -8
  28. package/getEncryptionAtRestPrivateEndpoints.js.map +1 -1
  29. package/getFlexCluster.d.ts +2 -2
  30. package/getFlexCluster.js +2 -2
  31. package/getFlexClusters.d.ts +2 -2
  32. package/getFlexClusters.js +2 -2
  33. package/getFlexRestoreJob.d.ts +109 -0
  34. package/getFlexRestoreJob.js +76 -0
  35. package/getFlexRestoreJob.js.map +1 -0
  36. package/getFlexRestoreJobs.d.ts +98 -0
  37. package/getFlexRestoreJobs.js +74 -0
  38. package/getFlexRestoreJobs.js.map +1 -0
  39. package/getFlexSnapshot.d.ts +105 -0
  40. package/getFlexSnapshot.js +76 -0
  41. package/getFlexSnapshot.js.map +1 -0
  42. package/getFlexSnapshots.d.ts +98 -0
  43. package/getFlexSnapshots.js +74 -0
  44. package/getFlexSnapshots.js.map +1 -0
  45. package/getServerlessInstance.d.ts +2 -2
  46. package/getServerlessInstance.js +2 -2
  47. package/getServerlessInstances.d.ts +2 -2
  48. package/getServerlessInstances.js +2 -2
  49. package/globalClusterConfig.d.ts +1 -1
  50. package/globalClusterConfig.js +1 -1
  51. package/index.d.ts +12 -0
  52. package/index.js +16 -4
  53. package/index.js.map +1 -1
  54. package/maintenanceWindow.d.ts +3 -3
  55. package/package.json +2 -2
  56. package/serverlessInstance.d.ts +1 -1
  57. package/serverlessInstance.js +1 -1
  58. package/types/input.d.ts +8 -4
  59. package/types/output.d.ts +104 -4
@@ -10,14 +10,14 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * `mongodbatlas.getEncryptionAtRestPrivateEndpoints` describes private endpoints of a particular cloud provider used for encryption at rest using customer-managed keys.
12
12
  *
13
- * > **IMPORTANT** The Encryption at Rest using Azure Key Vault over Private Endpoints feature is available by request. To request this functionality for your Atlas deployments, contact your Account Manager.
14
- * To learn more about existing limitations, see [Manage Customer Keys with Azure Key Vault Over Private Endpoints](https://www.mongodb.com/docs/atlas/security/azure-kms-over-private-endpoint/#manage-customer-keys-with-azure-key-vault-over-private-endpoints).
15
- *
16
13
  * ## Example Usage
17
14
  *
18
15
  * ### S
19
16
  *
20
- * > **NOTE:** Only Azure Key Vault with Azure Private Link is supported at this time.
17
+ * > **NOTE:** Only Azure Key Vault with Azure Private Link and AWS KMS over AWS PrivateLink is supported at this time.
18
+ *
19
+ * ### Encryption At Rest Azure Key Vault Private Endpoint
20
+ * To learn more about existing limitations, see [Manage Customer Keys with Azure Key Vault Over Private Endpoints](https://www.mongodb.com/docs/atlas/security/azure-kms-over-private-endpoint/#manage-customer-keys-with-azure-key-vault-over-private-endpoints).
21
21
  *
22
22
  * ```typescript
23
23
  * import * as pulumi from "@pulumi/pulumi";
@@ -29,6 +29,18 @@ const utilities = require("./utilities");
29
29
  * });
30
30
  * export const numberOfEndpoints = plural.then(plural => plural.results).length;
31
31
  * ```
32
+ *
33
+ * ### Encryption At Rest AWS KMS Private Endpoint
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
37
+ *
38
+ * const plural = mongodbatlas.getEncryptionAtRestPrivateEndpoints({
39
+ * projectId: atlasProjectId,
40
+ * cloudProvider: "AWS",
41
+ * });
42
+ * export const numberOfEndpoints = plural.then(plural => plural.results).length;
43
+ * ```
32
44
  */
33
45
  function getEncryptionAtRestPrivateEndpoints(args, opts) {
34
46
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -43,14 +55,14 @@ exports.getEncryptionAtRestPrivateEndpoints = getEncryptionAtRestPrivateEndpoint
43
55
  *
44
56
  * `mongodbatlas.getEncryptionAtRestPrivateEndpoints` describes private endpoints of a particular cloud provider used for encryption at rest using customer-managed keys.
45
57
  *
46
- * > **IMPORTANT** The Encryption at Rest using Azure Key Vault over Private Endpoints feature is available by request. To request this functionality for your Atlas deployments, contact your Account Manager.
47
- * To learn more about existing limitations, see [Manage Customer Keys with Azure Key Vault Over Private Endpoints](https://www.mongodb.com/docs/atlas/security/azure-kms-over-private-endpoint/#manage-customer-keys-with-azure-key-vault-over-private-endpoints).
48
- *
49
58
  * ## Example Usage
50
59
  *
51
60
  * ### S
52
61
  *
53
- * > **NOTE:** Only Azure Key Vault with Azure Private Link is supported at this time.
62
+ * > **NOTE:** Only Azure Key Vault with Azure Private Link and AWS KMS over AWS PrivateLink is supported at this time.
63
+ *
64
+ * ### Encryption At Rest Azure Key Vault Private Endpoint
65
+ * To learn more about existing limitations, see [Manage Customer Keys with Azure Key Vault Over Private Endpoints](https://www.mongodb.com/docs/atlas/security/azure-kms-over-private-endpoint/#manage-customer-keys-with-azure-key-vault-over-private-endpoints).
54
66
  *
55
67
  * ```typescript
56
68
  * import * as pulumi from "@pulumi/pulumi";
@@ -62,6 +74,18 @@ exports.getEncryptionAtRestPrivateEndpoints = getEncryptionAtRestPrivateEndpoint
62
74
  * });
63
75
  * export const numberOfEndpoints = plural.then(plural => plural.results).length;
64
76
  * ```
77
+ *
78
+ * ### Encryption At Rest AWS KMS Private Endpoint
79
+ * ```typescript
80
+ * import * as pulumi from "@pulumi/pulumi";
81
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
82
+ *
83
+ * const plural = mongodbatlas.getEncryptionAtRestPrivateEndpoints({
84
+ * projectId: atlasProjectId,
85
+ * cloudProvider: "AWS",
86
+ * });
87
+ * export const numberOfEndpoints = plural.then(plural => plural.results).length;
88
+ * ```
65
89
  */
66
90
  function getEncryptionAtRestPrivateEndpointsOutput(args, opts) {
67
91
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getEncryptionAtRestPrivateEndpoints.js","sourceRoot":"","sources":["../getEncryptionAtRestPrivateEndpoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4FAA4F,EAAE;QACvH,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAAiC;IAC5I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4FAA4F,EAAE;QAC7H,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8FAMC"}
1
+ {"version":3,"file":"getEncryptionAtRestPrivateEndpoints.js","sourceRoot":"","sources":["../getEncryptionAtRestPrivateEndpoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4FAA4F,EAAE;QACvH,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAAiC;IAC5I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4FAA4F,EAAE;QAC7H,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8FAMC"}
@@ -5,7 +5,7 @@ import * as outputs from "./types/output";
5
5
  *
6
6
  * `mongodbatlas.FlexCluster` describes a flex cluster.
7
7
  *
8
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
8
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.AdvancedCluster` data source instead of `mongodbatlas.FlexCluster` data source to retrieve Flex clusters. The `mongodbatlas.AdvancedCluster` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Cluster data source.
9
9
  *
10
10
  * ## Example Usage
11
11
  */
@@ -87,7 +87,7 @@ export interface GetFlexClusterResult {
87
87
  *
88
88
  * `mongodbatlas.FlexCluster` describes a flex cluster.
89
89
  *
90
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
90
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.AdvancedCluster` data source instead of `mongodbatlas.FlexCluster` data source to retrieve Flex clusters. The `mongodbatlas.AdvancedCluster` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Cluster data source.
91
91
  *
92
92
  * ## Example Usage
93
93
  */
package/getFlexCluster.js CHANGED
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * `mongodbatlas.FlexCluster` describes a flex cluster.
12
12
  *
13
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
13
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.AdvancedCluster` data source instead of `mongodbatlas.FlexCluster` data source to retrieve Flex clusters. The `mongodbatlas.AdvancedCluster` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Cluster data source.
14
14
  *
15
15
  * ## Example Usage
16
16
  */
@@ -27,7 +27,7 @@ exports.getFlexCluster = getFlexCluster;
27
27
  *
28
28
  * `mongodbatlas.FlexCluster` describes a flex cluster.
29
29
  *
30
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
30
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.AdvancedCluster` data source instead of `mongodbatlas.FlexCluster` data source to retrieve Flex clusters. The `mongodbatlas.AdvancedCluster` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Cluster data source.
31
31
  *
32
32
  * ## Example Usage
33
33
  */
@@ -5,7 +5,7 @@ import * as outputs from "./types/output";
5
5
  *
6
6
  * `mongodbatlas.getFlexClusters` returns all flex clusters in a project.
7
7
  *
8
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
8
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.getAdvancedClusters` data source instead of the `mongodbatlas.getFlexClusters` data source to retrieve Flex clusters. The `mongodbatlas.getAdvancedClusters` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Clusters data source.
9
9
  *
10
10
  * ## Example Usage
11
11
  */
@@ -41,7 +41,7 @@ export interface GetFlexClustersResult {
41
41
  *
42
42
  * `mongodbatlas.getFlexClusters` returns all flex clusters in a project.
43
43
  *
44
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
44
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.getAdvancedClusters` data source instead of the `mongodbatlas.getFlexClusters` data source to retrieve Flex clusters. The `mongodbatlas.getAdvancedClusters` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Clusters data source.
45
45
  *
46
46
  * ## Example Usage
47
47
  */
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * `mongodbatlas.getFlexClusters` returns all flex clusters in a project.
12
12
  *
13
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
13
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.getAdvancedClusters` data source instead of the `mongodbatlas.getFlexClusters` data source to retrieve Flex clusters. The `mongodbatlas.getAdvancedClusters` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Clusters data source.
14
14
  *
15
15
  * ## Example Usage
16
16
  */
@@ -26,7 +26,7 @@ exports.getFlexClusters = getFlexClusters;
26
26
  *
27
27
  * `mongodbatlas.getFlexClusters` returns all flex clusters in a project.
28
28
  *
29
- * **NOTE:** Flex Cluster is in Public Preview. In order to use the resource and data sources you need to set the environment variable MONGODB_ATLAS_ENABLE_PREVIEW to true.
29
+ * **RECOMMENDATION:** We recommend using the `mongodbatlas.getAdvancedClusters` data source instead of the `mongodbatlas.getFlexClusters` data source to retrieve Flex clusters. The `mongodbatlas.getAdvancedClusters` data source not only supports Flex clusters, but also supports free and dedicated clusters, providing easier migration between different cluster types. For more information, see the Advanced Clusters data source.
30
30
  *
31
31
  * ## Example Usage
32
32
  */
@@ -0,0 +1,109 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Data Source: mongodbatlas.getFlexRestoreJob
4
+ *
5
+ * `mongodbatlas.getFlexRestoreJob` describes a flex restore job.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ### S
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
13
+ *
14
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
15
+ * projectId: projectId,
16
+ * name: example_cluster.name,
17
+ * restoreJobId: restoreJobId,
18
+ * });
19
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
20
+ * projectId: projectId,
21
+ * name: example_cluster.name,
22
+ * });
23
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
24
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
25
+ * ```
26
+ */
27
+ export declare function getFlexRestoreJob(args: GetFlexRestoreJobArgs, opts?: pulumi.InvokeOptions): Promise<GetFlexRestoreJobResult>;
28
+ /**
29
+ * A collection of arguments for invoking getFlexRestoreJob.
30
+ */
31
+ export interface GetFlexRestoreJobArgs {
32
+ /**
33
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
38
+ */
39
+ projectId: string;
40
+ restoreJobId: string;
41
+ }
42
+ /**
43
+ * A collection of values returned by getFlexRestoreJob.
44
+ */
45
+ export interface GetFlexRestoreJobResult {
46
+ readonly deliveryType: string;
47
+ readonly expirationDate: string;
48
+ /**
49
+ * The provider-assigned unique ID for this managed resource.
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
54
+ */
55
+ readonly name: string;
56
+ /**
57
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
58
+ */
59
+ readonly projectId: string;
60
+ readonly restoreFinishedDate: string;
61
+ readonly restoreJobId: string;
62
+ readonly restoreScheduledDate: string;
63
+ readonly snapshotFinishedDate: string;
64
+ readonly snapshotId: string;
65
+ readonly snapshotUrl: string;
66
+ readonly status: string;
67
+ readonly targetDeploymentItemName: string;
68
+ readonly targetProjectId: string;
69
+ }
70
+ /**
71
+ * ## # Data Source: mongodbatlas.getFlexRestoreJob
72
+ *
73
+ * `mongodbatlas.getFlexRestoreJob` describes a flex restore job.
74
+ *
75
+ * ## Example Usage
76
+ *
77
+ * ### S
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
81
+ *
82
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
83
+ * projectId: projectId,
84
+ * name: example_cluster.name,
85
+ * restoreJobId: restoreJobId,
86
+ * });
87
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
88
+ * projectId: projectId,
89
+ * name: example_cluster.name,
90
+ * });
91
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
92
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
93
+ * ```
94
+ */
95
+ export declare function getFlexRestoreJobOutput(args: GetFlexRestoreJobOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFlexRestoreJobResult>;
96
+ /**
97
+ * A collection of arguments for invoking getFlexRestoreJob.
98
+ */
99
+ export interface GetFlexRestoreJobOutputArgs {
100
+ /**
101
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
102
+ */
103
+ name: pulumi.Input<string>;
104
+ /**
105
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
106
+ */
107
+ projectId: pulumi.Input<string>;
108
+ restoreJobId: pulumi.Input<string>;
109
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getFlexRestoreJobOutput = exports.getFlexRestoreJob = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Data Source: mongodbatlas.getFlexRestoreJob
10
+ *
11
+ * `mongodbatlas.getFlexRestoreJob` describes a flex restore job.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### S
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
+ *
20
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
21
+ * projectId: projectId,
22
+ * name: example_cluster.name,
23
+ * restoreJobId: restoreJobId,
24
+ * });
25
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
26
+ * projectId: projectId,
27
+ * name: example_cluster.name,
28
+ * });
29
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
30
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
31
+ * ```
32
+ */
33
+ function getFlexRestoreJob(args, opts) {
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
35
+ return pulumi.runtime.invoke("mongodbatlas:index/getFlexRestoreJob:getFlexRestoreJob", {
36
+ "name": args.name,
37
+ "projectId": args.projectId,
38
+ "restoreJobId": args.restoreJobId,
39
+ }, opts);
40
+ }
41
+ exports.getFlexRestoreJob = getFlexRestoreJob;
42
+ /**
43
+ * ## # Data Source: mongodbatlas.getFlexRestoreJob
44
+ *
45
+ * `mongodbatlas.getFlexRestoreJob` describes a flex restore job.
46
+ *
47
+ * ## Example Usage
48
+ *
49
+ * ### S
50
+ * ```typescript
51
+ * import * as pulumi from "@pulumi/pulumi";
52
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
53
+ *
54
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
55
+ * projectId: projectId,
56
+ * name: example_cluster.name,
57
+ * restoreJobId: restoreJobId,
58
+ * });
59
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
60
+ * projectId: projectId,
61
+ * name: example_cluster.name,
62
+ * });
63
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
64
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
65
+ * ```
66
+ */
67
+ function getFlexRestoreJobOutput(args, opts) {
68
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
69
+ return pulumi.runtime.invokeOutput("mongodbatlas:index/getFlexRestoreJob:getFlexRestoreJob", {
70
+ "name": args.name,
71
+ "projectId": args.projectId,
72
+ "restoreJobId": args.restoreJobId,
73
+ }, opts);
74
+ }
75
+ exports.getFlexRestoreJobOutput = getFlexRestoreJobOutput;
76
+ //# sourceMappingURL=getFlexRestoreJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFlexRestoreJob.js","sourceRoot":"","sources":["../getFlexRestoreJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAAiC;IACxG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC"}
@@ -0,0 +1,98 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * ## # Data Source: mongodbatlas.getFlexRestoreJobs
5
+ *
6
+ * `mongodbatlas.getFlexRestoreJobs` returns all flex restore job of a flex cluster.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ### S
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
14
+ *
15
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
16
+ * projectId: projectId,
17
+ * name: example_cluster.name,
18
+ * restoreJobId: restoreJobId,
19
+ * });
20
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
21
+ * projectId: projectId,
22
+ * name: example_cluster.name,
23
+ * });
24
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
25
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
26
+ * ```
27
+ */
28
+ export declare function getFlexRestoreJobs(args: GetFlexRestoreJobsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlexRestoreJobsResult>;
29
+ /**
30
+ * A collection of arguments for invoking getFlexRestoreJobs.
31
+ */
32
+ export interface GetFlexRestoreJobsArgs {
33
+ /**
34
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
35
+ */
36
+ name: string;
37
+ /**
38
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
39
+ */
40
+ projectId: string;
41
+ }
42
+ /**
43
+ * A collection of values returned by getFlexRestoreJobs.
44
+ */
45
+ export interface GetFlexRestoreJobsResult {
46
+ /**
47
+ * The provider-assigned unique ID for this managed resource.
48
+ */
49
+ readonly id: string;
50
+ /**
51
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
52
+ */
53
+ readonly name: string;
54
+ /**
55
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
56
+ */
57
+ readonly projectId: string;
58
+ readonly results: outputs.GetFlexRestoreJobsResult[];
59
+ }
60
+ /**
61
+ * ## # Data Source: mongodbatlas.getFlexRestoreJobs
62
+ *
63
+ * `mongodbatlas.getFlexRestoreJobs` returns all flex restore job of a flex cluster.
64
+ *
65
+ * ## Example Usage
66
+ *
67
+ * ### S
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
71
+ *
72
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
73
+ * projectId: projectId,
74
+ * name: example_cluster.name,
75
+ * restoreJobId: restoreJobId,
76
+ * });
77
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
78
+ * projectId: projectId,
79
+ * name: example_cluster.name,
80
+ * });
81
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
82
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
83
+ * ```
84
+ */
85
+ export declare function getFlexRestoreJobsOutput(args: GetFlexRestoreJobsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFlexRestoreJobsResult>;
86
+ /**
87
+ * A collection of arguments for invoking getFlexRestoreJobs.
88
+ */
89
+ export interface GetFlexRestoreJobsOutputArgs {
90
+ /**
91
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
92
+ */
93
+ name: pulumi.Input<string>;
94
+ /**
95
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
96
+ */
97
+ projectId: pulumi.Input<string>;
98
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getFlexRestoreJobsOutput = exports.getFlexRestoreJobs = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Data Source: mongodbatlas.getFlexRestoreJobs
10
+ *
11
+ * `mongodbatlas.getFlexRestoreJobs` returns all flex restore job of a flex cluster.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### S
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
19
+ *
20
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
21
+ * projectId: projectId,
22
+ * name: example_cluster.name,
23
+ * restoreJobId: restoreJobId,
24
+ * });
25
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
26
+ * projectId: projectId,
27
+ * name: example_cluster.name,
28
+ * });
29
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
30
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
31
+ * ```
32
+ */
33
+ function getFlexRestoreJobs(args, opts) {
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
35
+ return pulumi.runtime.invoke("mongodbatlas:index/getFlexRestoreJobs:getFlexRestoreJobs", {
36
+ "name": args.name,
37
+ "projectId": args.projectId,
38
+ }, opts);
39
+ }
40
+ exports.getFlexRestoreJobs = getFlexRestoreJobs;
41
+ /**
42
+ * ## # Data Source: mongodbatlas.getFlexRestoreJobs
43
+ *
44
+ * `mongodbatlas.getFlexRestoreJobs` returns all flex restore job of a flex cluster.
45
+ *
46
+ * ## Example Usage
47
+ *
48
+ * ### S
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
52
+ *
53
+ * const restoreJob = mongodbatlas.getFlexRestoreJob({
54
+ * projectId: projectId,
55
+ * name: example_cluster.name,
56
+ * restoreJobId: restoreJobId,
57
+ * });
58
+ * const restoreJobs = mongodbatlas.getFlexRestoreJobs({
59
+ * projectId: projectId,
60
+ * name: example_cluster.name,
61
+ * });
62
+ * export const mongodbatlasFlexRestoreJob = restoreJob.then(restoreJob => restoreJob.name);
63
+ * export const mongodbatlasFlexRestoreJobs = restoreJobs.then(restoreJobs => .map(restoreJob => (restoreJob.restoreJobId)));
64
+ * ```
65
+ */
66
+ function getFlexRestoreJobsOutput(args, opts) {
67
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
68
+ return pulumi.runtime.invokeOutput("mongodbatlas:index/getFlexRestoreJobs:getFlexRestoreJobs", {
69
+ "name": args.name,
70
+ "projectId": args.projectId,
71
+ }, opts);
72
+ }
73
+ exports.getFlexRestoreJobsOutput = getFlexRestoreJobsOutput;
74
+ //# sourceMappingURL=getFlexRestoreJobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFlexRestoreJobs.js","sourceRoot":"","sources":["../getFlexRestoreJobs.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAkCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4DAMC"}
@@ -0,0 +1,105 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Data Source: mongodbatlas.getFlexSnapshot
4
+ *
5
+ * `mongodbatlas.getFlexSnapshot` describes a flex snapshot.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ### S
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
13
+ *
14
+ * const snapshot = mongodbatlas.getFlexSnapshot({
15
+ * projectId: projectId,
16
+ * name: example_cluster.name,
17
+ * snapshotId: snapshotId,
18
+ * });
19
+ * const snapshots = mongodbatlas.getFlexSnapshots({
20
+ * projectId: projectId,
21
+ * name: example_cluster.name,
22
+ * });
23
+ * export const mongodbatlasFlexSnapshot = snapshot.then(snapshot => snapshot.name);
24
+ * export const mongodbatlasFlexSnapshots = snapshots.then(snapshots => .map(snapshot => (snapshot.snapshotId)));
25
+ * ```
26
+ */
27
+ export declare function getFlexSnapshot(args: GetFlexSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetFlexSnapshotResult>;
28
+ /**
29
+ * A collection of arguments for invoking getFlexSnapshot.
30
+ */
31
+ export interface GetFlexSnapshotArgs {
32
+ /**
33
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
38
+ */
39
+ projectId: string;
40
+ snapshotId: string;
41
+ }
42
+ /**
43
+ * A collection of values returned by getFlexSnapshot.
44
+ */
45
+ export interface GetFlexSnapshotResult {
46
+ readonly expiration: string;
47
+ readonly finishTime: string;
48
+ /**
49
+ * The provider-assigned unique ID for this managed resource.
50
+ */
51
+ readonly id: string;
52
+ readonly mongoDbVersion: string;
53
+ /**
54
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
55
+ */
56
+ readonly name: string;
57
+ /**
58
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
59
+ */
60
+ readonly projectId: string;
61
+ readonly scheduledTime: string;
62
+ readonly snapshotId: string;
63
+ readonly startTime: string;
64
+ readonly status: string;
65
+ }
66
+ /**
67
+ * ## # Data Source: mongodbatlas.getFlexSnapshot
68
+ *
69
+ * `mongodbatlas.getFlexSnapshot` describes a flex snapshot.
70
+ *
71
+ * ## Example Usage
72
+ *
73
+ * ### S
74
+ * ```typescript
75
+ * import * as pulumi from "@pulumi/pulumi";
76
+ * import * as mongodbatlas from "@pulumi/mongodbatlas";
77
+ *
78
+ * const snapshot = mongodbatlas.getFlexSnapshot({
79
+ * projectId: projectId,
80
+ * name: example_cluster.name,
81
+ * snapshotId: snapshotId,
82
+ * });
83
+ * const snapshots = mongodbatlas.getFlexSnapshots({
84
+ * projectId: projectId,
85
+ * name: example_cluster.name,
86
+ * });
87
+ * export const mongodbatlasFlexSnapshot = snapshot.then(snapshot => snapshot.name);
88
+ * export const mongodbatlasFlexSnapshots = snapshots.then(snapshots => .map(snapshot => (snapshot.snapshotId)));
89
+ * ```
90
+ */
91
+ export declare function getFlexSnapshotOutput(args: GetFlexSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFlexSnapshotResult>;
92
+ /**
93
+ * A collection of arguments for invoking getFlexSnapshot.
94
+ */
95
+ export interface GetFlexSnapshotOutputArgs {
96
+ /**
97
+ * Human-readable label that identifies the flex cluster whose snapshot you want to restore.
98
+ */
99
+ name: pulumi.Input<string>;
100
+ /**
101
+ * Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
102
+ */
103
+ projectId: pulumi.Input<string>;
104
+ snapshotId: pulumi.Input<string>;
105
+ }