@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
package/databaseUser.d.ts
CHANGED
|
@@ -80,40 +80,40 @@ export interface DatabaseUserState {
|
|
|
80
80
|
* Database against which Atlas authenticates the user. A user must provide both a username and authentication database to log into MongoDB.
|
|
81
81
|
* Accepted values include:
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
authDatabaseName?: pulumi.Input<string>;
|
|
84
84
|
/**
|
|
85
85
|
* If this value is set, the new database user authenticates with AWS IAM credentials. If no value is given, Atlas uses the default value of NONE. The accepted types are:
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
awsIamType?: pulumi.Input<string>;
|
|
88
88
|
/**
|
|
89
89
|
* Database on which the user has the specified role. A role on the `admin` database can include privileges that apply to the other databases.
|
|
90
90
|
*
|
|
91
91
|
* @deprecated use auth_database_name instead
|
|
92
92
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
databaseName?: pulumi.Input<string>;
|
|
94
|
+
labels?: pulumi.Input<pulumi.Input<inputs.DatabaseUserLabel>[]>;
|
|
95
95
|
/**
|
|
96
96
|
* Method by which the provided `username` is authenticated. If no value is given, Atlas uses the default value of `NONE`.
|
|
97
97
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
ldapAuthType?: pulumi.Input<string>;
|
|
99
|
+
password?: pulumi.Input<string>;
|
|
100
100
|
/**
|
|
101
101
|
* The unique ID for the project to create the database user.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
projectId?: pulumi.Input<string>;
|
|
104
104
|
/**
|
|
105
105
|
* List of user’s roles and the databases / collections on which the roles apply. A role allows the user to perform particular actions on the specified database. A role on the admin database can include privileges that apply to the other databases as well. See Roles below for more details.
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
roles?: pulumi.Input<pulumi.Input<inputs.DatabaseUserRole>[]>;
|
|
108
|
+
scopes?: pulumi.Input<pulumi.Input<inputs.DatabaseUserScope>[]>;
|
|
109
109
|
/**
|
|
110
110
|
* Username for authenticating to MongoDB. USER_ARN or ROLE_ARN if `awsIamType` is USER or ROLE.
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
username?: pulumi.Input<string>;
|
|
113
113
|
/**
|
|
114
114
|
* X.509 method by which the provided username is authenticated. If no value is given, Atlas uses the default value of NONE. The accepted types are:
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
x509Type?: pulumi.Input<string>;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* The set of arguments for constructing a DatabaseUser resource.
|
|
@@ -123,38 +123,38 @@ export interface DatabaseUserArgs {
|
|
|
123
123
|
* Database against which Atlas authenticates the user. A user must provide both a username and authentication database to log into MongoDB.
|
|
124
124
|
* Accepted values include:
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
authDatabaseName?: pulumi.Input<string>;
|
|
127
127
|
/**
|
|
128
128
|
* If this value is set, the new database user authenticates with AWS IAM credentials. If no value is given, Atlas uses the default value of NONE. The accepted types are:
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
awsIamType?: pulumi.Input<string>;
|
|
131
131
|
/**
|
|
132
132
|
* Database on which the user has the specified role. A role on the `admin` database can include privileges that apply to the other databases.
|
|
133
133
|
*
|
|
134
134
|
* @deprecated use auth_database_name instead
|
|
135
135
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
databaseName?: pulumi.Input<string>;
|
|
137
|
+
labels?: pulumi.Input<pulumi.Input<inputs.DatabaseUserLabel>[]>;
|
|
138
138
|
/**
|
|
139
139
|
* Method by which the provided `username` is authenticated. If no value is given, Atlas uses the default value of `NONE`.
|
|
140
140
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
ldapAuthType?: pulumi.Input<string>;
|
|
142
|
+
password?: pulumi.Input<string>;
|
|
143
143
|
/**
|
|
144
144
|
* The unique ID for the project to create the database user.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
projectId: pulumi.Input<string>;
|
|
147
147
|
/**
|
|
148
148
|
* List of user’s roles and the databases / collections on which the roles apply. A role allows the user to perform particular actions on the specified database. A role on the admin database can include privileges that apply to the other databases as well. See Roles below for more details.
|
|
149
149
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
roles: pulumi.Input<pulumi.Input<inputs.DatabaseUserRole>[]>;
|
|
151
|
+
scopes?: pulumi.Input<pulumi.Input<inputs.DatabaseUserScope>[]>;
|
|
152
152
|
/**
|
|
153
153
|
* Username for authenticating to MongoDB. USER_ARN or ROLE_ARN if `awsIamType` is USER or ROLE.
|
|
154
154
|
*/
|
|
155
|
-
|
|
155
|
+
username: pulumi.Input<string>;
|
|
156
156
|
/**
|
|
157
157
|
* X.509 method by which the provided username is authenticated. If no value is given, Atlas uses the default value of NONE. The accepted types are:
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
x509Type?: pulumi.Input<string>;
|
|
160
160
|
}
|
package/databaseUser.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DatabaseUser = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -15,21 +16,21 @@ const utilities = require("./utilities");
|
|
|
15
16
|
*/
|
|
16
17
|
class DatabaseUser extends pulumi.CustomResource {
|
|
17
18
|
constructor(name, argsOrState, opts) {
|
|
18
|
-
let
|
|
19
|
+
let resourceInputs = {};
|
|
19
20
|
opts = opts || {};
|
|
20
21
|
if (opts.id) {
|
|
21
22
|
const state = argsOrState;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
resourceInputs["authDatabaseName"] = state ? state.authDatabaseName : undefined;
|
|
24
|
+
resourceInputs["awsIamType"] = state ? state.awsIamType : undefined;
|
|
25
|
+
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
26
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
27
|
+
resourceInputs["ldapAuthType"] = state ? state.ldapAuthType : undefined;
|
|
28
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
29
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
30
|
+
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
31
|
+
resourceInputs["scopes"] = state ? state.scopes : undefined;
|
|
32
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
33
|
+
resourceInputs["x509Type"] = state ? state.x509Type : undefined;
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
36
|
const args = argsOrState;
|
|
@@ -42,22 +43,22 @@ class DatabaseUser extends pulumi.CustomResource {
|
|
|
42
43
|
if ((!args || args.username === undefined) && !opts.urn) {
|
|
43
44
|
throw new Error("Missing required property 'username'");
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
resourceInputs["authDatabaseName"] = args ? args.authDatabaseName : undefined;
|
|
47
|
+
resourceInputs["awsIamType"] = args ? args.awsIamType : undefined;
|
|
48
|
+
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
49
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
50
|
+
resourceInputs["ldapAuthType"] = args ? args.ldapAuthType : undefined;
|
|
51
|
+
resourceInputs["password"] = args ? args.password : undefined;
|
|
52
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
53
|
+
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
54
|
+
resourceInputs["scopes"] = args ? args.scopes : undefined;
|
|
55
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
56
|
+
resourceInputs["x509Type"] = args ? args.x509Type : undefined;
|
|
56
57
|
}
|
|
57
58
|
if (!opts.version) {
|
|
58
59
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
59
60
|
}
|
|
60
|
-
super(DatabaseUser.__pulumiType, name,
|
|
61
|
+
super(DatabaseUser.__pulumiType, name, resourceInputs, opts);
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Get an existing DatabaseUser resource's state with the given name, ID, and optional extra
|
package/databaseUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databaseUser.js","sourceRoot":"","sources":["../databaseUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"databaseUser.js","sourceRoot":"","sources":["../databaseUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA2EnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,YAAY,CAAC,GA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
*/
|
|
68
|
-
|
|
68
|
+
awsKms?: pulumi.Input<{
|
|
69
69
|
[key: string]: pulumi.Input<string>;
|
|
70
70
|
}>;
|
|
71
|
-
|
|
71
|
+
awsKmsConfig?: pulumi.Input<inputs.EncryptionAtRestAwsKmsConfig>;
|
|
72
72
|
/**
|
|
73
73
|
* Specifies Azure Key Vault configuration details and whether Encryption at Rest is enabled for an Atlas project.
|
|
74
74
|
*
|
|
75
75
|
* @deprecated use azure_key_vault_config instead
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
azureKeyVault?: pulumi.Input<{
|
|
78
78
|
[key: string]: pulumi.Input<string>;
|
|
79
79
|
}>;
|
|
80
|
-
|
|
80
|
+
azureKeyVaultConfig?: pulumi.Input<inputs.EncryptionAtRestAzureKeyVaultConfig>;
|
|
81
81
|
/**
|
|
82
82
|
* Specifies GCP KMS configuration details and whether Encryption at Rest is enabled for an Atlas project.
|
|
83
83
|
*
|
|
84
84
|
* @deprecated use google_cloud_kms_config instead
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
googleCloudKms?: pulumi.Input<{
|
|
87
87
|
[key: string]: pulumi.Input<string>;
|
|
88
88
|
}>;
|
|
89
|
-
|
|
89
|
+
googleCloudKmsConfig?: pulumi.Input<inputs.EncryptionAtRestGoogleCloudKmsConfig>;
|
|
90
90
|
/**
|
|
91
91
|
* The unique identifier for the project.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
projectId?: pulumi.Input<string>;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* The set of arguments for constructing a EncryptionAtRest resource.
|
|
@@ -101,30 +101,30 @@ export interface EncryptionAtRestArgs {
|
|
|
101
101
|
*
|
|
102
102
|
* @deprecated use aws_kms_config instead
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
awsKms?: pulumi.Input<{
|
|
105
105
|
[key: string]: pulumi.Input<string>;
|
|
106
106
|
}>;
|
|
107
|
-
|
|
107
|
+
awsKmsConfig?: pulumi.Input<inputs.EncryptionAtRestAwsKmsConfig>;
|
|
108
108
|
/**
|
|
109
109
|
* Specifies Azure Key Vault configuration details and whether Encryption at Rest is enabled for an Atlas project.
|
|
110
110
|
*
|
|
111
111
|
* @deprecated use azure_key_vault_config instead
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
azureKeyVault?: pulumi.Input<{
|
|
114
114
|
[key: string]: pulumi.Input<string>;
|
|
115
115
|
}>;
|
|
116
|
-
|
|
116
|
+
azureKeyVaultConfig?: pulumi.Input<inputs.EncryptionAtRestAzureKeyVaultConfig>;
|
|
117
117
|
/**
|
|
118
118
|
* Specifies GCP KMS configuration details and whether Encryption at Rest is enabled for an Atlas project.
|
|
119
119
|
*
|
|
120
120
|
* @deprecated use google_cloud_kms_config instead
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
googleCloudKms?: pulumi.Input<{
|
|
123
123
|
[key: string]: pulumi.Input<string>;
|
|
124
124
|
}>;
|
|
125
|
-
|
|
125
|
+
googleCloudKmsConfig?: pulumi.Input<inputs.EncryptionAtRestGoogleCloudKmsConfig>;
|
|
126
126
|
/**
|
|
127
127
|
* The unique identifier for the project.
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
projectId: pulumi.Input<string>;
|
|
130
130
|
}
|
package/encryptionAtRest.js
CHANGED
|
@@ -2,39 +2,40 @@
|
|
|
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.EncryptionAtRest = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
class EncryptionAtRest extends pulumi.CustomResource {
|
|
8
9
|
constructor(name, argsOrState, opts) {
|
|
9
|
-
let
|
|
10
|
+
let resourceInputs = {};
|
|
10
11
|
opts = opts || {};
|
|
11
12
|
if (opts.id) {
|
|
12
13
|
const state = argsOrState;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
resourceInputs["awsKms"] = state ? state.awsKms : undefined;
|
|
15
|
+
resourceInputs["awsKmsConfig"] = state ? state.awsKmsConfig : undefined;
|
|
16
|
+
resourceInputs["azureKeyVault"] = state ? state.azureKeyVault : undefined;
|
|
17
|
+
resourceInputs["azureKeyVaultConfig"] = state ? state.azureKeyVaultConfig : undefined;
|
|
18
|
+
resourceInputs["googleCloudKms"] = state ? state.googleCloudKms : undefined;
|
|
19
|
+
resourceInputs["googleCloudKmsConfig"] = state ? state.googleCloudKmsConfig : undefined;
|
|
20
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
20
21
|
}
|
|
21
22
|
else {
|
|
22
23
|
const args = argsOrState;
|
|
23
24
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
24
25
|
throw new Error("Missing required property 'projectId'");
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
resourceInputs["awsKms"] = args ? args.awsKms : undefined;
|
|
28
|
+
resourceInputs["awsKmsConfig"] = args ? args.awsKmsConfig : undefined;
|
|
29
|
+
resourceInputs["azureKeyVault"] = args ? args.azureKeyVault : undefined;
|
|
30
|
+
resourceInputs["azureKeyVaultConfig"] = args ? args.azureKeyVaultConfig : undefined;
|
|
31
|
+
resourceInputs["googleCloudKms"] = args ? args.googleCloudKms : undefined;
|
|
32
|
+
resourceInputs["googleCloudKmsConfig"] = args ? args.googleCloudKmsConfig : undefined;
|
|
33
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
33
34
|
}
|
|
34
35
|
if (!opts.version) {
|
|
35
36
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
36
37
|
}
|
|
37
|
-
super(EncryptionAtRest.__pulumiType, name,
|
|
38
|
+
super(EncryptionAtRest.__pulumiType, name, resourceInputs, opts);
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* 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
|
|
1
|
+
{"version":3,"file":"encryptionAtRest.js","sourceRoot":"","sources":["../encryptionAtRest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IA8DvD,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,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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AAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IA1FD;;;;;;;;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;;AA1BL,4CA4FC;AA9EG,gBAAgB;AACO,6BAAY,GAAG,sDAAsD,CAAC"}
|
package/eventTrigger.d.ts
CHANGED
|
@@ -223,83 +223,83 @@ export interface EventTriggerState {
|
|
|
223
223
|
/**
|
|
224
224
|
* The ObjectID of your application.
|
|
225
225
|
*/
|
|
226
|
-
|
|
226
|
+
appId?: pulumi.Input<string>;
|
|
227
227
|
/**
|
|
228
228
|
* Required for `DATABASE` type. The name of the MongoDB collection that the trigger watches for change events. The collection must be part of the specified database.
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
configCollection?: pulumi.Input<string>;
|
|
231
231
|
/**
|
|
232
232
|
* Required for `DATABASE` type. The name of the MongoDB database that contains the watched collection.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
configDatabase?: pulumi.Input<string>;
|
|
235
235
|
/**
|
|
236
236
|
* Optional for `DATABASE` type. If true, indicates that `UPDATE` change events should include the most current [majority-committed](https://docs.mongodb.com/manual/reference/read-concern-majority/) version of the modified document in the fullDocument field.
|
|
237
237
|
*/
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
configFullDocument?: pulumi.Input<boolean>;
|
|
239
|
+
configFullDocumentBefore?: pulumi.Input<boolean>;
|
|
240
240
|
/**
|
|
241
241
|
* Optional for `DATABASE` type. A [$match](https://docs.mongodb.com/manual/reference/operator/aggregation/match/) expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger. This is useful when you want to filter change events beyond their operation type. The trigger will only fire if the expression evaluates to true for a given change event.
|
|
242
242
|
*/
|
|
243
|
-
|
|
243
|
+
configMatch?: pulumi.Input<string>;
|
|
244
244
|
/**
|
|
245
245
|
* Required for `AUTHENTICATION` type. The [authentication operation type](https://docs.mongodb.com/realm/triggers/authentication-triggers/#std-label-authentication-event-operation-types) to listen for. Possible Values: `LOGIN`, `CREATE`, `DELETE`
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
configOperationType?: pulumi.Input<string>;
|
|
248
248
|
/**
|
|
249
249
|
* Required for `DATABASE` type. The [database event operation types](https://docs.mongodb.com/realm/triggers/database-triggers/#std-label-database-events) to listen for. This must contain at least one value. Possible Values: `INSERT`, `UPDATE`, `REPLACE`, `DELETE`
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
configOperationTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
252
252
|
/**
|
|
253
253
|
* Optional for `DATABASE` type. A [$project](https://docs.mongodb.com/manual/reference/operator/aggregation/project/) expression document that Realm uses to filter the fields that appear in change event objects.
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
configProject?: pulumi.Input<string>;
|
|
256
256
|
/**
|
|
257
257
|
* Required for `AUTHENTICATION` type. A list of one or more [authentication provider](https://docs.mongodb.com/realm/authentication/providers/) id values. The trigger will only listen for authentication events produced by these providers.
|
|
258
258
|
*/
|
|
259
|
-
|
|
259
|
+
configProviders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
260
260
|
/**
|
|
261
261
|
* Required for `SCHEDULED` type. A [cron expression](https://docs.mongodb.com/realm/triggers/cron-expressions/) that defines the trigger schedule.
|
|
262
262
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
configSchedule?: pulumi.Input<string>;
|
|
264
|
+
configScheduleType?: pulumi.Input<string>;
|
|
265
265
|
/**
|
|
266
266
|
* Required for `DATABASE` type. The ID of the MongoDB Service associated with the trigger.
|
|
267
267
|
*/
|
|
268
|
-
|
|
268
|
+
configServiceId?: pulumi.Input<string>;
|
|
269
269
|
/**
|
|
270
270
|
* Default: `false` If `true`, the trigger is disabled.
|
|
271
271
|
*/
|
|
272
|
-
|
|
272
|
+
disabled?: pulumi.Input<boolean>;
|
|
273
273
|
/**
|
|
274
274
|
* An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor. The following event processors are supported: `AWS_EVENTBRIDGE` For an example configuration object, see [Send Trigger Events to AWS EventBridge](https://docs.mongodb.com/realm/triggers/eventbridge/#std-label-event_processor_example).
|
|
275
275
|
* * `event_processors.0.aws_eventbridge.config_account_id` - (Optional) AWS Account ID.
|
|
276
276
|
* * `event_processors.0.aws_eventbridge.config_region` - (Optional) Region of AWS Account.
|
|
277
277
|
*/
|
|
278
|
-
|
|
278
|
+
eventProcessors?: pulumi.Input<inputs.EventTriggerEventProcessors>;
|
|
279
279
|
/**
|
|
280
280
|
* The ID of the function associated with the trigger.
|
|
281
281
|
*/
|
|
282
|
-
|
|
282
|
+
functionId?: pulumi.Input<string>;
|
|
283
283
|
/**
|
|
284
284
|
* The name of the function associated with the trigger.
|
|
285
285
|
*/
|
|
286
|
-
|
|
286
|
+
functionName?: pulumi.Input<string>;
|
|
287
287
|
/**
|
|
288
288
|
* The name of the trigger.
|
|
289
289
|
*/
|
|
290
|
-
|
|
290
|
+
name?: pulumi.Input<string>;
|
|
291
291
|
/**
|
|
292
292
|
* The unique ID for the project to create the trigger.
|
|
293
293
|
*/
|
|
294
|
-
|
|
294
|
+
projectId?: pulumi.Input<string>;
|
|
295
295
|
/**
|
|
296
296
|
* The unique ID of the trigger.
|
|
297
297
|
*/
|
|
298
|
-
|
|
298
|
+
triggerId?: pulumi.Input<string>;
|
|
299
299
|
/**
|
|
300
300
|
* The type of the trigger. Possible Values: `DATABASE`, `AUTHENTICATION`,`SCHEDULED`
|
|
301
301
|
*/
|
|
302
|
-
|
|
302
|
+
type?: pulumi.Input<string>;
|
|
303
303
|
}
|
|
304
304
|
/**
|
|
305
305
|
* The set of arguments for constructing a EventTrigger resource.
|
|
@@ -308,72 +308,72 @@ export interface EventTriggerArgs {
|
|
|
308
308
|
/**
|
|
309
309
|
* The ObjectID of your application.
|
|
310
310
|
*/
|
|
311
|
-
|
|
311
|
+
appId: pulumi.Input<string>;
|
|
312
312
|
/**
|
|
313
313
|
* Required for `DATABASE` type. The name of the MongoDB collection that the trigger watches for change events. The collection must be part of the specified database.
|
|
314
314
|
*/
|
|
315
|
-
|
|
315
|
+
configCollection?: pulumi.Input<string>;
|
|
316
316
|
/**
|
|
317
317
|
* Required for `DATABASE` type. The name of the MongoDB database that contains the watched collection.
|
|
318
318
|
*/
|
|
319
|
-
|
|
319
|
+
configDatabase?: pulumi.Input<string>;
|
|
320
320
|
/**
|
|
321
321
|
* Optional for `DATABASE` type. If true, indicates that `UPDATE` change events should include the most current [majority-committed](https://docs.mongodb.com/manual/reference/read-concern-majority/) version of the modified document in the fullDocument field.
|
|
322
322
|
*/
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
configFullDocument?: pulumi.Input<boolean>;
|
|
324
|
+
configFullDocumentBefore?: pulumi.Input<boolean>;
|
|
325
325
|
/**
|
|
326
326
|
* Optional for `DATABASE` type. A [$match](https://docs.mongodb.com/manual/reference/operator/aggregation/match/) expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger. This is useful when you want to filter change events beyond their operation type. The trigger will only fire if the expression evaluates to true for a given change event.
|
|
327
327
|
*/
|
|
328
|
-
|
|
328
|
+
configMatch?: pulumi.Input<string>;
|
|
329
329
|
/**
|
|
330
330
|
* Required for `AUTHENTICATION` type. The [authentication operation type](https://docs.mongodb.com/realm/triggers/authentication-triggers/#std-label-authentication-event-operation-types) to listen for. Possible Values: `LOGIN`, `CREATE`, `DELETE`
|
|
331
331
|
*/
|
|
332
|
-
|
|
332
|
+
configOperationType?: pulumi.Input<string>;
|
|
333
333
|
/**
|
|
334
334
|
* Required for `DATABASE` type. The [database event operation types](https://docs.mongodb.com/realm/triggers/database-triggers/#std-label-database-events) to listen for. This must contain at least one value. Possible Values: `INSERT`, `UPDATE`, `REPLACE`, `DELETE`
|
|
335
335
|
*/
|
|
336
|
-
|
|
336
|
+
configOperationTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
337
337
|
/**
|
|
338
338
|
* Optional for `DATABASE` type. A [$project](https://docs.mongodb.com/manual/reference/operator/aggregation/project/) expression document that Realm uses to filter the fields that appear in change event objects.
|
|
339
339
|
*/
|
|
340
|
-
|
|
340
|
+
configProject?: pulumi.Input<string>;
|
|
341
341
|
/**
|
|
342
342
|
* Required for `AUTHENTICATION` type. A list of one or more [authentication provider](https://docs.mongodb.com/realm/authentication/providers/) id values. The trigger will only listen for authentication events produced by these providers.
|
|
343
343
|
*/
|
|
344
|
-
|
|
344
|
+
configProviders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
345
345
|
/**
|
|
346
346
|
* Required for `SCHEDULED` type. A [cron expression](https://docs.mongodb.com/realm/triggers/cron-expressions/) that defines the trigger schedule.
|
|
347
347
|
*/
|
|
348
|
-
|
|
348
|
+
configSchedule?: pulumi.Input<string>;
|
|
349
349
|
/**
|
|
350
350
|
* Required for `DATABASE` type. The ID of the MongoDB Service associated with the trigger.
|
|
351
351
|
*/
|
|
352
|
-
|
|
352
|
+
configServiceId?: pulumi.Input<string>;
|
|
353
353
|
/**
|
|
354
354
|
* Default: `false` If `true`, the trigger is disabled.
|
|
355
355
|
*/
|
|
356
|
-
|
|
356
|
+
disabled?: pulumi.Input<boolean>;
|
|
357
357
|
/**
|
|
358
358
|
* An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor. The following event processors are supported: `AWS_EVENTBRIDGE` For an example configuration object, see [Send Trigger Events to AWS EventBridge](https://docs.mongodb.com/realm/triggers/eventbridge/#std-label-event_processor_example).
|
|
359
359
|
* * `event_processors.0.aws_eventbridge.config_account_id` - (Optional) AWS Account ID.
|
|
360
360
|
* * `event_processors.0.aws_eventbridge.config_region` - (Optional) Region of AWS Account.
|
|
361
361
|
*/
|
|
362
|
-
|
|
362
|
+
eventProcessors?: pulumi.Input<inputs.EventTriggerEventProcessors>;
|
|
363
363
|
/**
|
|
364
364
|
* The ID of the function associated with the trigger.
|
|
365
365
|
*/
|
|
366
|
-
|
|
366
|
+
functionId?: pulumi.Input<string>;
|
|
367
367
|
/**
|
|
368
368
|
* The name of the trigger.
|
|
369
369
|
*/
|
|
370
|
-
|
|
370
|
+
name?: pulumi.Input<string>;
|
|
371
371
|
/**
|
|
372
372
|
* The unique ID for the project to create the trigger.
|
|
373
373
|
*/
|
|
374
|
-
|
|
374
|
+
projectId: pulumi.Input<string>;
|
|
375
375
|
/**
|
|
376
376
|
* The type of the trigger. Possible Values: `DATABASE`, `AUTHENTICATION`,`SCHEDULED`
|
|
377
377
|
*/
|
|
378
|
-
|
|
378
|
+
type: pulumi.Input<string>;
|
|
379
379
|
}
|