@pulumi/mongodbatlas 3.7.0-alpha.1675878257 → 3.7.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/accessListApiKey.d.ts +119 -0
- package/accessListApiKey.js +96 -0
- package/accessListApiKey.js.map +1 -0
- package/advancedCluster.d.ts +15 -3
- package/advancedCluster.js +2 -0
- package/advancedCluster.js.map +1 -1
- package/apiKey.d.ts +98 -0
- package/apiKey.js +81 -0
- package/apiKey.js.map +1 -0
- package/cloudBackupSchedule.d.ts +3 -0
- package/cloudBackupSchedule.js +2 -0
- package/cloudBackupSchedule.js.map +1 -1
- package/encryptionAtRest.d.ts +11 -0
- package/encryptionAtRest.js +11 -0
- package/encryptionAtRest.js.map +1 -1
- package/getAccessListApiKey.d.ts +64 -0
- package/getAccessListApiKey.js +27 -0
- package/getAccessListApiKey.js.map +1 -0
- package/getAccessListApiKeys.d.ts +70 -0
- package/getAccessListApiKeys.js +28 -0
- package/getAccessListApiKeys.js.map +1 -0
- package/getAdvancedCluster.d.ts +2 -2
- package/getAlertConfiguration.d.ts +12 -10
- package/getAlertConfiguration.js +1 -10
- package/getAlertConfiguration.js.map +1 -1
- package/getAlertConfigurations.d.ts +68 -0
- package/getAlertConfigurations.js +21 -0
- package/getAlertConfigurations.js.map +1 -0
- package/getApiKey.d.ts +56 -0
- package/getApiKey.js +26 -0
- package/getApiKey.js.map +1 -0
- package/getApiKeys.d.ts +51 -0
- package/getApiKeys.js +21 -0
- package/getApiKeys.js.map +1 -0
- package/getCloudBackupSchedule.d.ts +1 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCluster.d.ts +1 -1
- package/getProjectApiKey.d.ts +60 -0
- package/getProjectApiKey.js +26 -0
- package/getProjectApiKey.js.map +1 -0
- package/getProjectApiKeys.d.ts +51 -0
- package/getProjectApiKeys.js +21 -0
- package/getProjectApiKeys.js.map +1 -0
- package/getProjects.d.ts +18 -16
- package/getProjects.js +18 -16
- package/getProjects.js.map +1 -1
- package/getRolesOrgId.d.ts +28 -0
- package/getRolesOrgId.js +26 -0
- package/getRolesOrgId.js.map +1 -0
- package/getThirdPartyIntegration.d.ts +4 -4
- package/index.d.ts +32 -0
- package/index.js +43 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/project.d.ts +15 -14
- package/project.js +15 -14
- package/project.js.map +1 -1
- package/projectApiKey.d.ts +89 -0
- package/projectApiKey.js +81 -0
- package/projectApiKey.js.map +1 -0
- package/thirdPartyIntegration.d.ts +12 -6
- package/thirdPartyIntegration.js.map +1 -1
- package/types/input.d.ts +124 -15
- package/types/output.d.ts +370 -37
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
* ### Using CIDR Block
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
8
|
+
*
|
|
9
|
+
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
10
|
+
* apiKeyId: "a29120e123cd",
|
|
11
|
+
* cidrBlock: "1.2.3.4/32",
|
|
12
|
+
* orgId: "<ORG-ID>",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
* ### Using IP Address
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
19
|
+
*
|
|
20
|
+
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
21
|
+
* apiKeyId: "a29120e123cd",
|
|
22
|
+
* ipAddress: "2.3.4.5",
|
|
23
|
+
* orgId: "<ORG-ID>",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* IP Access List entries can be imported using the `org_id` , `api_key_id` and `cidr_block` or `ip_address`, e.g.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import mongodbatlas:index/accessListApiKey:AccessListApiKey test 5d0f1f74cf09a29120e123cd-a29120e123cd-10.242.88.0/21
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* For more information see[MongoDB Atlas API Reference.](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Programmatic-API-Keys/operation/createAccessListEntriesForOneOrganizationApiKey)
|
|
36
|
+
*/
|
|
37
|
+
export declare class AccessListApiKey extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing AccessListApiKey resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessListApiKeyState, opts?: pulumi.CustomResourceOptions): AccessListApiKey;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of AccessListApiKey. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is AccessListApiKey;
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier for the Organization API Key for which you want to create a new access list entry.
|
|
55
|
+
*/
|
|
56
|
+
readonly apiKeyId: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Range of IP addresses in CIDR notation to be added to the access list. Your access list entry can include only one `cidrBlock`, or one `ipAddress`.
|
|
59
|
+
*/
|
|
60
|
+
readonly cidrBlock: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Single IP address to be added to the access list.
|
|
63
|
+
*/
|
|
64
|
+
readonly ipAddress: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Unique identifier for the organinzation to which you want to add one or more access list entries.
|
|
67
|
+
*/
|
|
68
|
+
readonly orgId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a AccessListApiKey resource with the given unique name, arguments, and options.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resource.
|
|
73
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
74
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
75
|
+
*/
|
|
76
|
+
constructor(name: string, args: AccessListApiKeyArgs, opts?: pulumi.CustomResourceOptions);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering AccessListApiKey resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface AccessListApiKeyState {
|
|
82
|
+
/**
|
|
83
|
+
* Unique identifier for the Organization API Key for which you want to create a new access list entry.
|
|
84
|
+
*/
|
|
85
|
+
apiKeyId?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Range of IP addresses in CIDR notation to be added to the access list. Your access list entry can include only one `cidrBlock`, or one `ipAddress`.
|
|
88
|
+
*/
|
|
89
|
+
cidrBlock?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Single IP address to be added to the access list.
|
|
92
|
+
*/
|
|
93
|
+
ipAddress?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Unique identifier for the organinzation to which you want to add one or more access list entries.
|
|
96
|
+
*/
|
|
97
|
+
orgId?: pulumi.Input<string>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The set of arguments for constructing a AccessListApiKey resource.
|
|
101
|
+
*/
|
|
102
|
+
export interface AccessListApiKeyArgs {
|
|
103
|
+
/**
|
|
104
|
+
* Unique identifier for the Organization API Key for which you want to create a new access list entry.
|
|
105
|
+
*/
|
|
106
|
+
apiKeyId: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Range of IP addresses in CIDR notation to be added to the access list. Your access list entry can include only one `cidrBlock`, or one `ipAddress`.
|
|
109
|
+
*/
|
|
110
|
+
cidrBlock?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Single IP address to be added to the access list.
|
|
113
|
+
*/
|
|
114
|
+
ipAddress?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Unique identifier for the organinzation to which you want to add one or more access list entries.
|
|
117
|
+
*/
|
|
118
|
+
orgId: pulumi.Input<string>;
|
|
119
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.AccessListApiKey = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
* ### Using CIDR Block
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
14
|
+
*
|
|
15
|
+
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
16
|
+
* apiKeyId: "a29120e123cd",
|
|
17
|
+
* cidrBlock: "1.2.3.4/32",
|
|
18
|
+
* orgId: "<ORG-ID>",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
* ### Using IP Address
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
25
|
+
*
|
|
26
|
+
* const test = new mongodbatlas.AccessListApiKey("test", {
|
|
27
|
+
* apiKeyId: "a29120e123cd",
|
|
28
|
+
* ipAddress: "2.3.4.5",
|
|
29
|
+
* orgId: "<ORG-ID>",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* IP Access List entries can be imported using the `org_id` , `api_key_id` and `cidr_block` or `ip_address`, e.g.
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import mongodbatlas:index/accessListApiKey:AccessListApiKey test 5d0f1f74cf09a29120e123cd-a29120e123cd-10.242.88.0/21
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* For more information see[MongoDB Atlas API Reference.](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Programmatic-API-Keys/operation/createAccessListEntriesForOneOrganizationApiKey)
|
|
42
|
+
*/
|
|
43
|
+
class AccessListApiKey extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing AccessListApiKey resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name, id, state, opts) {
|
|
54
|
+
return new AccessListApiKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of AccessListApiKey. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === AccessListApiKey.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["apiKeyId"] = state ? state.apiKeyId : undefined;
|
|
72
|
+
resourceInputs["cidrBlock"] = state ? state.cidrBlock : undefined;
|
|
73
|
+
resourceInputs["ipAddress"] = state ? state.ipAddress : undefined;
|
|
74
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
const args = argsOrState;
|
|
78
|
+
if ((!args || args.apiKeyId === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'apiKeyId'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.orgId === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'orgId'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["apiKeyId"] = args ? args.apiKeyId : undefined;
|
|
85
|
+
resourceInputs["cidrBlock"] = args ? args.cidrBlock : undefined;
|
|
86
|
+
resourceInputs["ipAddress"] = args ? args.ipAddress : undefined;
|
|
87
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
88
|
+
}
|
|
89
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
+
super(AccessListApiKey.__pulumiType, name, resourceInputs, opts);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.AccessListApiKey = AccessListApiKey;
|
|
94
|
+
/** @internal */
|
|
95
|
+
AccessListApiKey.__pulumiType = 'mongodbatlas:index/accessListApiKey:AccessListApiKey';
|
|
96
|
+
//# sourceMappingURL=accessListApiKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessListApiKey.js","sourceRoot":"","sources":["../accessListApiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yC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AC7D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA7EL,4CA8EC;AAhEG,gBAAgB;AACO,6BAAY,GAAG,sDAAsD,CAAC"}
|
package/advancedCluster.d.ts
CHANGED
|
@@ -35,9 +35,13 @@ export declare class AdvancedCluster extends pulumi.CustomResource {
|
|
|
35
35
|
*/
|
|
36
36
|
readonly backupEnabled: pulumi.Output<boolean>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated use bi_connector_config instead
|
|
39
39
|
*/
|
|
40
40
|
readonly biConnector: pulumi.Output<outputs.AdvancedClusterBiConnector>;
|
|
41
|
+
/**
|
|
42
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
43
|
+
*/
|
|
44
|
+
readonly biConnectorConfig: pulumi.Output<outputs.AdvancedClusterBiConnectorConfig>;
|
|
41
45
|
/**
|
|
42
46
|
* The cluster ID.
|
|
43
47
|
*/
|
|
@@ -131,9 +135,13 @@ export interface AdvancedClusterState {
|
|
|
131
135
|
*/
|
|
132
136
|
backupEnabled?: pulumi.Input<boolean>;
|
|
133
137
|
/**
|
|
134
|
-
*
|
|
138
|
+
* @deprecated use bi_connector_config instead
|
|
135
139
|
*/
|
|
136
140
|
biConnector?: pulumi.Input<inputs.AdvancedClusterBiConnector>;
|
|
141
|
+
/**
|
|
142
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
143
|
+
*/
|
|
144
|
+
biConnectorConfig?: pulumi.Input<inputs.AdvancedClusterBiConnectorConfig>;
|
|
137
145
|
/**
|
|
138
146
|
* The cluster ID.
|
|
139
147
|
*/
|
|
@@ -219,9 +227,13 @@ export interface AdvancedClusterArgs {
|
|
|
219
227
|
*/
|
|
220
228
|
backupEnabled?: pulumi.Input<boolean>;
|
|
221
229
|
/**
|
|
222
|
-
*
|
|
230
|
+
* @deprecated use bi_connector_config instead
|
|
223
231
|
*/
|
|
224
232
|
biConnector?: pulumi.Input<inputs.AdvancedClusterBiConnector>;
|
|
233
|
+
/**
|
|
234
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
235
|
+
*/
|
|
236
|
+
biConnectorConfig?: pulumi.Input<inputs.AdvancedClusterBiConnectorConfig>;
|
|
225
237
|
/**
|
|
226
238
|
* Type of the cluster that you want to create.
|
|
227
239
|
* Accepted values include:
|
package/advancedCluster.js
CHANGED
|
@@ -47,6 +47,7 @@ class AdvancedCluster extends pulumi.CustomResource {
|
|
|
47
47
|
resourceInputs["advancedConfiguration"] = state ? state.advancedConfiguration : undefined;
|
|
48
48
|
resourceInputs["backupEnabled"] = state ? state.backupEnabled : undefined;
|
|
49
49
|
resourceInputs["biConnector"] = state ? state.biConnector : undefined;
|
|
50
|
+
resourceInputs["biConnectorConfig"] = state ? state.biConnectorConfig : undefined;
|
|
50
51
|
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
51
52
|
resourceInputs["clusterType"] = state ? state.clusterType : undefined;
|
|
52
53
|
resourceInputs["connectionStrings"] = state ? state.connectionStrings : undefined;
|
|
@@ -80,6 +81,7 @@ class AdvancedCluster extends pulumi.CustomResource {
|
|
|
80
81
|
resourceInputs["advancedConfiguration"] = args ? args.advancedConfiguration : undefined;
|
|
81
82
|
resourceInputs["backupEnabled"] = args ? args.backupEnabled : undefined;
|
|
82
83
|
resourceInputs["biConnector"] = args ? args.biConnector : undefined;
|
|
84
|
+
resourceInputs["biConnectorConfig"] = args ? args.biConnectorConfig : undefined;
|
|
83
85
|
resourceInputs["clusterType"] = args ? args.clusterType : undefined;
|
|
84
86
|
resourceInputs["diskSizeGb"] = args ? args.diskSizeGb : undefined;
|
|
85
87
|
resourceInputs["encryptionAtRestProvider"] = args ? args.encryptionAtRestProvider : undefined;
|
package/advancedCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;
|
|
1
|
+
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,k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AG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA3LL,0CA4LC;AA9KG,gBAAgB;AACO,4BAAY,GAAG,oDAAoD,CAAC"}
|
package/apiKey.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* API Keys must be imported using org ID, API Key ID e.g.
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import mongodbatlas:index/apiKey:ApiKey test 5d09d6a59ccf6445652a444a-6576974933969669
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* See [MongoDB Atlas API - API Key](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Programmatic-API-Keys/operation/createOneOrganizationApiKey) - Documentation for more information.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ApiKey extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiKeyState, opts?: pulumi.CustomResourceOptions): ApiKey;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of ApiKey. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is ApiKey;
|
|
29
|
+
/**
|
|
30
|
+
* The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the `publicKey` of the Programmatic API key but the `id` of the key. See [Programmatic API Keys](https://docs.atlas.mongodb.com/reference/api/apiKeys/) for more.
|
|
31
|
+
*/
|
|
32
|
+
readonly apiKeyId: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Description of this Organization API key.
|
|
35
|
+
*/
|
|
36
|
+
readonly description: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the organization whose API keys you want to retrieve. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
|
|
39
|
+
*/
|
|
40
|
+
readonly orgId: pulumi.Output<string>;
|
|
41
|
+
readonly privateKey: pulumi.Output<string>;
|
|
42
|
+
readonly publicKey: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the role. This resource returns all the roles the user has in Atlas.
|
|
45
|
+
* The following are valid roles:
|
|
46
|
+
*/
|
|
47
|
+
readonly roleNames: pulumi.Output<string[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Create a ApiKey resource with the given unique name, arguments, and options.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resource.
|
|
52
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
53
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
54
|
+
*/
|
|
55
|
+
constructor(name: string, args: ApiKeyArgs, opts?: pulumi.CustomResourceOptions);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Input properties used for looking up and filtering ApiKey resources.
|
|
59
|
+
*/
|
|
60
|
+
export interface ApiKeyState {
|
|
61
|
+
/**
|
|
62
|
+
* The unique identifier of the Programmatic API key you want to associate with the Project. The Programmatic API key and Project must share the same parent organization. Note: this is not the `publicKey` of the Programmatic API key but the `id` of the key. See [Programmatic API Keys](https://docs.atlas.mongodb.com/reference/api/apiKeys/) for more.
|
|
63
|
+
*/
|
|
64
|
+
apiKeyId?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Description of this Organization API key.
|
|
67
|
+
*/
|
|
68
|
+
description?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Unique identifier for the organization whose API keys you want to retrieve. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
|
|
71
|
+
*/
|
|
72
|
+
orgId?: pulumi.Input<string>;
|
|
73
|
+
privateKey?: pulumi.Input<string>;
|
|
74
|
+
publicKey?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Name of the role. This resource returns all the roles the user has in Atlas.
|
|
77
|
+
* The following are valid roles:
|
|
78
|
+
*/
|
|
79
|
+
roleNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The set of arguments for constructing a ApiKey resource.
|
|
83
|
+
*/
|
|
84
|
+
export interface ApiKeyArgs {
|
|
85
|
+
/**
|
|
86
|
+
* Description of this Organization API key.
|
|
87
|
+
*/
|
|
88
|
+
description: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier for the organization whose API keys you want to retrieve. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
|
|
91
|
+
*/
|
|
92
|
+
orgId: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the role. This resource returns all the roles the user has in Atlas.
|
|
95
|
+
* The following are valid roles:
|
|
96
|
+
*/
|
|
97
|
+
roleNames: pulumi.Input<pulumi.Input<string>[]>;
|
|
98
|
+
}
|
package/apiKey.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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.ApiKey = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* API Keys must be imported using org ID, API Key ID e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import mongodbatlas:index/apiKey:ApiKey test 5d09d6a59ccf6445652a444a-6576974933969669
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* See [MongoDB Atlas API - API Key](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Programmatic-API-Keys/operation/createOneOrganizationApiKey) - Documentation for more information.
|
|
18
|
+
*/
|
|
19
|
+
class ApiKey extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name, id, state, opts) {
|
|
30
|
+
return new ApiKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of ApiKey. This is designed to work even
|
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
+
*/
|
|
36
|
+
static isInstance(obj) {
|
|
37
|
+
if (obj === undefined || obj === null) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
return obj['__pulumiType'] === ApiKey.__pulumiType;
|
|
41
|
+
}
|
|
42
|
+
constructor(name, argsOrState, opts) {
|
|
43
|
+
let resourceInputs = {};
|
|
44
|
+
opts = opts || {};
|
|
45
|
+
if (opts.id) {
|
|
46
|
+
const state = argsOrState;
|
|
47
|
+
resourceInputs["apiKeyId"] = state ? state.apiKeyId : undefined;
|
|
48
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
49
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
50
|
+
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
|
|
51
|
+
resourceInputs["publicKey"] = state ? state.publicKey : undefined;
|
|
52
|
+
resourceInputs["roleNames"] = state ? state.roleNames : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'description'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.orgId === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'orgId'");
|
|
61
|
+
}
|
|
62
|
+
if ((!args || args.roleNames === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'roleNames'");
|
|
64
|
+
}
|
|
65
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
66
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
67
|
+
resourceInputs["roleNames"] = args ? args.roleNames : undefined;
|
|
68
|
+
resourceInputs["apiKeyId"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["privateKey"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["publicKey"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
const secretOpts = { additionalSecretOutputs: ["privateKey"] };
|
|
74
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
75
|
+
super(ApiKey.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.ApiKey = ApiKey;
|
|
79
|
+
/** @internal */
|
|
80
|
+
ApiKey.__pulumiType = 'mongodbatlas:index/apiKey:ApiKey';
|
|
81
|
+
//# sourceMappingURL=apiKey.js.map
|
package/apiKey.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,M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EG,gBAAgB;AACO,mBAAY,GAAG,kCAAkC,CAAC"}
|
package/cloudBackupSchedule.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare class CloudBackupSchedule extends pulumi.CustomResource {
|
|
|
40
40
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
41
41
|
*/
|
|
42
42
|
readonly clusterName: pulumi.Output<string>;
|
|
43
|
+
readonly copySettings: pulumi.Output<outputs.CloudBackupScheduleCopySetting[] | undefined>;
|
|
43
44
|
readonly export: pulumi.Output<outputs.CloudBackupScheduleExport>;
|
|
44
45
|
/**
|
|
45
46
|
* Unique identifier of the backup policy.
|
|
@@ -114,6 +115,7 @@ export interface CloudBackupScheduleState {
|
|
|
114
115
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
115
116
|
*/
|
|
116
117
|
clusterName?: pulumi.Input<string>;
|
|
118
|
+
copySettings?: pulumi.Input<pulumi.Input<inputs.CloudBackupScheduleCopySetting>[]>;
|
|
117
119
|
export?: pulumi.Input<inputs.CloudBackupScheduleExport>;
|
|
118
120
|
/**
|
|
119
121
|
* Unique identifier of the backup policy.
|
|
@@ -176,6 +178,7 @@ export interface CloudBackupScheduleArgs {
|
|
|
176
178
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
177
179
|
*/
|
|
178
180
|
clusterName: pulumi.Input<string>;
|
|
181
|
+
copySettings?: pulumi.Input<pulumi.Input<inputs.CloudBackupScheduleCopySetting>[]>;
|
|
179
182
|
export?: pulumi.Input<inputs.CloudBackupScheduleExport>;
|
|
180
183
|
/**
|
|
181
184
|
* Daily policy item
|
package/cloudBackupSchedule.js
CHANGED
|
@@ -47,6 +47,7 @@ class CloudBackupSchedule extends pulumi.CustomResource {
|
|
|
47
47
|
resourceInputs["autoExportEnabled"] = state ? state.autoExportEnabled : undefined;
|
|
48
48
|
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
49
49
|
resourceInputs["clusterName"] = state ? state.clusterName : undefined;
|
|
50
|
+
resourceInputs["copySettings"] = state ? state.copySettings : undefined;
|
|
50
51
|
resourceInputs["export"] = state ? state.export : undefined;
|
|
51
52
|
resourceInputs["idPolicy"] = state ? state.idPolicy : undefined;
|
|
52
53
|
resourceInputs["nextSnapshot"] = state ? state.nextSnapshot : undefined;
|
|
@@ -71,6 +72,7 @@ class CloudBackupSchedule extends pulumi.CustomResource {
|
|
|
71
72
|
}
|
|
72
73
|
resourceInputs["autoExportEnabled"] = args ? args.autoExportEnabled : undefined;
|
|
73
74
|
resourceInputs["clusterName"] = args ? args.clusterName : undefined;
|
|
75
|
+
resourceInputs["copySettings"] = args ? args.copySettings : undefined;
|
|
74
76
|
resourceInputs["export"] = args ? args.export : undefined;
|
|
75
77
|
resourceInputs["policyItemDaily"] = args ? args.policyItemDaily : undefined;
|
|
76
78
|
resourceInputs["policyItemHourly"] = args ? args.policyItemHourly : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudBackupSchedule.js","sourceRoot":"","sources":["../cloudBackupSchedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;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AAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AArJL,kDAsJC;AAxIG,gBAAgB;AACO,gCAAY,GAAG,4DAA4D,CAAC"}
|
package/encryptionAtRest.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* Encryption at Rest Settings can be imported using project ID, in the format `project_id`, e.g.
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import mongodbatlas:index/encryptionAtRest:EncryptionAtRest example 1112222b3bf99403840e8934
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* For more information see[MongoDB Atlas API Reference for Encryption at Rest using Customer Key Management.](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Encryption-at-Rest-using-Customer-Key-Management)
|
|
14
|
+
*/
|
|
4
15
|
export declare class EncryptionAtRest extends pulumi.CustomResource {
|
|
5
16
|
/**
|
|
6
17
|
* Get an existing EncryptionAtRest resource's state with the given name, ID, and optional extra
|
package/encryptionAtRest.js
CHANGED
|
@@ -5,6 +5,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.EncryptionAtRest = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* Encryption at Rest Settings can be imported using project ID, in the format `project_id`, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import mongodbatlas:index/encryptionAtRest:EncryptionAtRest example 1112222b3bf99403840e8934
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* For more information see[MongoDB Atlas API Reference for Encryption at Rest using Customer Key Management.](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Encryption-at-Rest-using-Customer-Key-Management)
|
|
18
|
+
*/
|
|
8
19
|
class EncryptionAtRest extends pulumi.CustomResource {
|
|
9
20
|
/**
|
|
10
21
|
* Get an existing EncryptionAtRest resource's state with the given name, ID, and optional extra
|
package/encryptionAtRest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryptionAtRest.js","sourceRoot":"","sources":["../encryptionAtRest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAoCD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,C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