@pulumi/mongodbatlas 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/alertConfiguration.d.ts +21 -21
- package/alertConfiguration.js +27 -26
- package/alertConfiguration.js.map +1 -1
- package/auditing.d.ts +9 -9
- package/auditing.js +13 -12
- package/auditing.js.map +1 -1
- package/cloudBackupSchedule.d.ts +23 -23
- package/cloudBackupSchedule.js +29 -28
- package/cloudBackupSchedule.js.map +1 -1
- package/cloudProviderAccess.d.ts +12 -12
- package/cloudProviderAccess.js +21 -20
- package/cloudProviderAccess.js.map +1 -1
- package/cloudProviderAccessAuthorization.d.ts +8 -8
- package/cloudProviderAccessAuthorization.js +13 -12
- package/cloudProviderAccessAuthorization.js.map +1 -1
- package/cloudProviderAccessSetup.d.ts +8 -8
- package/cloudProviderAccessSetup.js +15 -14
- package/cloudProviderAccessSetup.js.map +1 -1
- package/cloudProviderSnapshot.d.ts +17 -17
- package/cloudProviderSnapshot.js +29 -28
- package/cloudProviderSnapshot.js.map +1 -1
- package/cloudProviderSnapshotBackupPolicy.d.ts +16 -16
- package/cloudProviderSnapshotBackupPolicy.js +21 -20
- package/cloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/cloudProviderSnapshotRestoreJob.d.ts +18 -18
- package/cloudProviderSnapshotRestoreJob.js +29 -28
- package/cloudProviderSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +72 -72
- package/cluster.js +87 -86
- package/cluster.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +4 -4
- package/config/vars.js +25 -17
- package/config/vars.js.map +1 -1
- package/customDbRole.d.ts +8 -8
- package/customDbRole.js +11 -10
- package/customDbRole.js.map +1 -1
- package/customDnsConfigurationClusterAws.d.ts +4 -4
- package/customDnsConfigurationClusterAws.js +7 -6
- package/customDnsConfigurationClusterAws.js.map +1 -1
- package/dataLake.d.ts +12 -12
- package/dataLake.js +19 -18
- package/dataLake.js.map +1 -1
- package/databaseUser.d.ts +22 -22
- package/databaseUser.js +25 -24
- package/databaseUser.js.map +1 -1
- package/encryptionAtRest.d.ts +14 -14
- package/encryptionAtRest.js +17 -16
- package/encryptionAtRest.js.map +1 -1
- package/eventTrigger.d.ts +39 -39
- package/eventTrigger.js +45 -44
- package/eventTrigger.js.map +1 -1
- package/get509AuthenticationDatabaseUser.d.ts +20 -6
- package/get509AuthenticationDatabaseUser.js +9 -4
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAlertConfiguration.d.ts +16 -2
- package/getAlertConfiguration.js +5 -0
- package/getAlertConfiguration.js.map +1 -1
- package/getAuditing.d.ts +11 -1
- package/getAuditing.js +5 -0
- package/getAuditing.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +16 -2
- package/getCloudBackupSchedule.js +5 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudProviderAccess.d.ts +14 -4
- package/getCloudProviderAccess.js +8 -3
- package/getCloudProviderAccess.js.map +1 -1
- package/getCloudProviderAccessSetup.d.ts +26 -8
- package/getCloudProviderAccessSetup.js +10 -5
- package/getCloudProviderAccessSetup.js.map +1 -1
- package/getCloudProviderSnapshot.d.ts +18 -3
- package/getCloudProviderSnapshot.js +5 -0
- package/getCloudProviderSnapshot.js.map +1 -1
- package/getCloudProviderSnapshotBackupPolicy.d.ts +16 -2
- package/getCloudProviderSnapshotBackupPolicy.js +5 -0
- package/getCloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJob.d.ts +21 -3
- package/getCloudProviderSnapshotRestoreJob.js +5 -0
- package/getCloudProviderSnapshotRestoreJob.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJobs.d.ts +27 -5
- package/getCloudProviderSnapshotRestoreJobs.js +6 -1
- package/getCloudProviderSnapshotRestoreJobs.js.map +1 -1
- package/getCloudProviderSnapshots.d.ts +23 -4
- package/getCloudProviderSnapshots.js +5 -0
- package/getCloudProviderSnapshots.js.map +1 -1
- package/getCluster.d.ts +16 -2
- package/getCluster.js +5 -0
- package/getCluster.js.map +1 -1
- package/getClusters.d.ts +14 -4
- package/getClusters.js +8 -3
- package/getClusters.js.map +1 -1
- package/getCustomDbRole.d.ts +22 -7
- package/getCustomDbRole.js +9 -4
- package/getCustomDbRole.js.map +1 -1
- package/getCustomDbRoles.d.ts +11 -1
- package/getCustomDbRoles.js +5 -0
- package/getCustomDbRoles.js.map +1 -1
- package/getCustomDnsConfigurationClusterAws.d.ts +11 -1
- package/getCustomDnsConfigurationClusterAws.js +5 -0
- package/getCustomDnsConfigurationClusterAws.js.map +1 -1
- package/getDataLake.d.ts +16 -2
- package/getDataLake.js +5 -0
- package/getDataLake.js.map +1 -1
- package/getDataLakes.d.ts +12 -2
- package/getDataLakes.js +6 -1
- package/getDataLakes.js.map +1 -1
- package/getDatabaseUser.d.ts +28 -4
- package/getDatabaseUser.js +5 -0
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +14 -4
- package/getDatabaseUsers.js +8 -3
- package/getDatabaseUsers.js.map +1 -1
- package/getEventTrigger.d.ts +21 -3
- package/getEventTrigger.js +5 -0
- package/getEventTrigger.js.map +1 -1
- package/getEventTriggers.d.ts +16 -2
- package/getEventTriggers.js +5 -0
- package/getEventTriggers.js.map +1 -1
- package/getGlobalClusterConfig.d.ts +19 -3
- package/getGlobalClusterConfig.js +5 -0
- package/getGlobalClusterConfig.js.map +1 -1
- package/getLdapConfiguration.d.ts +11 -1
- package/getLdapConfiguration.js +5 -0
- package/getLdapConfiguration.js.map +1 -1
- package/getLdapVerify.d.ts +16 -2
- package/getLdapVerify.js +5 -0
- package/getLdapVerify.js.map +1 -1
- package/getMaintenanceWindow.d.ts +11 -1
- package/getMaintenanceWindow.js +5 -0
- package/getMaintenanceWindow.js.map +1 -1
- package/getNetworkContainer.d.ts +16 -2
- package/getNetworkContainer.js +5 -0
- package/getNetworkContainer.js.map +1 -1
- package/getNetworkContainers.d.ts +17 -3
- package/getNetworkContainers.js +6 -1
- package/getNetworkContainers.js.map +1 -1
- package/getNetworkPeering.d.ts +16 -2
- package/getNetworkPeering.js +5 -0
- package/getNetworkPeering.js.map +1 -1
- package/getNetworkPeerings.d.ts +14 -4
- package/getNetworkPeerings.js +8 -3
- package/getNetworkPeerings.js.map +1 -1
- package/getOnlineArchive.d.ts +21 -3
- package/getOnlineArchive.js +5 -0
- package/getOnlineArchive.js.map +1 -1
- package/getOnlineArchives.d.ts +16 -2
- package/getOnlineArchives.js +5 -0
- package/getOnlineArchives.js.map +1 -1
- package/getPrivateLinkEndpoint.d.ts +21 -3
- package/getPrivateLinkEndpoint.js +5 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivateLinkEndpointService.d.ts +26 -4
- package/getPrivateLinkEndpointService.js +5 -0
- package/getPrivateLinkEndpointService.js.map +1 -1
- package/getProject.d.ts +17 -3
- package/getProject.js +6 -1
- package/getProject.js.map +1 -1
- package/getProjectIpAccessList.d.ts +26 -4
- package/getProjectIpAccessList.js +5 -0
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjects.d.ts +17 -3
- package/getProjects.js +6 -1
- package/getProjects.js.map +1 -1
- package/getSearchIndex.d.ts +64 -13
- package/getSearchIndex.js +6 -1
- package/getSearchIndex.js.map +1 -1
- package/getSearchIndexes.d.ts +37 -7
- package/getSearchIndexes.js +6 -1
- package/getSearchIndexes.js.map +1 -1
- package/getTeam.d.ts +21 -3
- package/getTeam.js +5 -0
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +12 -3
- package/getTeams.js +5 -0
- package/getTeams.js.map +1 -1
- package/getThirdPartyIntegration.d.ts +41 -2
- package/getThirdPartyIntegration.js +23 -0
- package/getThirdPartyIntegration.js.map +1 -1
- package/getThirdPartyIntegrations.d.ts +11 -1
- package/getThirdPartyIntegrations.js +5 -0
- package/getThirdPartyIntegrations.js.map +1 -1
- package/globalClusterConfig.d.ts +9 -9
- package/globalClusterConfig.js +13 -12
- package/globalClusterConfig.js.map +1 -1
- package/index.js +88 -80
- package/index.js.map +1 -1
- package/ldapConfiguration.d.ts +20 -20
- package/ldapConfiguration.js +23 -22
- package/ldapConfiguration.js.map +1 -1
- package/ldapVerify.d.ts +18 -18
- package/ldapVerify.js +25 -24
- package/ldapVerify.js.map +1 -1
- package/maintenanceWindow.d.ts +15 -15
- package/maintenanceWindow.js +19 -18
- package/maintenanceWindow.js.map +1 -1
- package/networkContainer.d.ts +19 -19
- package/networkContainer.js +29 -28
- package/networkContainer.js.map +1 -1
- package/networkPeering.d.ts +40 -40
- package/networkPeering.js +51 -50
- package/networkPeering.js.map +1 -1
- package/onlineArchive.d.ts +18 -18
- package/onlineArchive.js +23 -22
- package/onlineArchive.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/privateIpMode.d.ts +4 -4
- package/privateIpMode.js +7 -6
- package/privateIpMode.js.map +1 -1
- package/privateLinkEndpoint.d.ts +14 -14
- package/privateLinkEndpoint.js +25 -24
- package/privateLinkEndpoint.js.map +1 -1
- package/privateLinkEndpointService.d.ts +49 -17
- package/privateLinkEndpointService.js +59 -26
- package/privateLinkEndpointService.js.map +1 -1
- package/project.d.ts +10 -10
- package/project.js +15 -14
- package/project.js.map +1 -1
- package/projectIpAccessList.d.ts +10 -10
- package/projectIpAccessList.js +13 -12
- package/projectIpAccessList.js.map +1 -1
- package/provider.d.ts +20 -4
- package/provider.js +7 -6
- package/provider.js.map +1 -1
- package/searchIndex.d.ts +23 -23
- package/searchIndex.js +27 -26
- package/searchIndex.js.map +1 -1
- package/team.d.ts +7 -7
- package/team.js +11 -10
- package/team.js.map +1 -1
- package/teams.d.ts +7 -7
- package/teams.js +11 -10
- package/teams.js.map +1 -1
- package/thirdPartyIntegration.d.ts +34 -34
- package/thirdPartyIntegration.js +37 -36
- package/thirdPartyIntegration.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +29 -0
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
- package/x509authenticationDatabaseUser.d.ts +10 -10
- package/x509authenticationDatabaseUser.js +15 -14
- package/x509authenticationDatabaseUser.js.map +1 -1
package/privateIpMode.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.PrivateIpMode = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -33,12 +34,12 @@ const utilities = require("./utilities");
|
|
|
33
34
|
*/
|
|
34
35
|
class PrivateIpMode extends pulumi.CustomResource {
|
|
35
36
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
37
|
+
let resourceInputs = {};
|
|
37
38
|
opts = opts || {};
|
|
38
39
|
if (opts.id) {
|
|
39
40
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
42
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
44
45
|
const args = argsOrState;
|
|
@@ -48,13 +49,13 @@ class PrivateIpMode extends pulumi.CustomResource {
|
|
|
48
49
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
49
50
|
throw new Error("Missing required property 'projectId'");
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
53
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
53
54
|
}
|
|
54
55
|
if (!opts.version) {
|
|
55
56
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
56
57
|
}
|
|
57
|
-
super(PrivateIpMode.__pulumiType, name,
|
|
58
|
+
super(PrivateIpMode.__pulumiType, name, resourceInputs, opts);
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* Get an existing PrivateIpMode resource's state with the given name, ID, and optional extra
|
package/privateIpMode.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateIpMode.js","sourceRoot":"","sources":["../privateIpMode.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"privateIpMode.js","sourceRoot":"","sources":["../privateIpMode.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IA6CpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAlED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCAoEC;AAtDG,gBAAgB;AACO,0BAAY,GAAG,gDAAgD,CAAC"}
|
package/privateLinkEndpoint.d.ts
CHANGED
|
@@ -111,49 +111,49 @@ export interface PrivateLinkEndpointState {
|
|
|
111
111
|
/**
|
|
112
112
|
* Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
endpointServiceName?: pulumi.Input<string>;
|
|
115
115
|
/**
|
|
116
116
|
* Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
errorMessage?: pulumi.Input<string>;
|
|
119
119
|
/**
|
|
120
120
|
* Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
interfaceEndpoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
123
123
|
/**
|
|
124
124
|
* All private endpoints that you have added to this Azure Private Link Service.
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
privateEndpoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
127
|
/**
|
|
128
128
|
* Unique identifier of the AWS PrivateLink connection.
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
privateLinkId?: pulumi.Input<string>;
|
|
131
131
|
/**
|
|
132
132
|
* Name of the Azure Private Link Service that Atlas manages.
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
privateLinkServiceName?: pulumi.Input<string>;
|
|
135
135
|
/**
|
|
136
136
|
* Resource ID of the Azure Private Link Service that Atlas manages.
|
|
137
137
|
*/
|
|
138
|
-
|
|
138
|
+
privateLinkServiceResourceId?: pulumi.Input<string>;
|
|
139
139
|
/**
|
|
140
140
|
* Required Unique identifier for the project.
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
projectId?: pulumi.Input<string>;
|
|
143
143
|
/**
|
|
144
144
|
* Name of the cloud provider for which you want to create the private endpoint service. Atlas accepts `AWS` or `AZURE`.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
providerName?: pulumi.Input<string>;
|
|
147
147
|
/**
|
|
148
148
|
* Cloud provider region in which you want to create the private endpoint connection.
|
|
149
149
|
* Accepted values are: [AWS regions](https://docs.atlas.mongodb.com/reference/amazon-aws/#amazon-aws) and [AZURE regions](https://docs.atlas.mongodb.com/reference/microsoft-azure/#microsoft-azure)
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
region?: pulumi.Input<string>;
|
|
152
152
|
/**
|
|
153
153
|
* Status of the AWS PrivateLink connection or Status of the Azure Private Link Service. Atlas returns one of the following values:
|
|
154
154
|
* AWS:
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
status?: pulumi.Input<string>;
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
159
|
* The set of arguments for constructing a PrivateLinkEndpoint resource.
|
|
@@ -162,14 +162,14 @@ export interface PrivateLinkEndpointArgs {
|
|
|
162
162
|
/**
|
|
163
163
|
* Required Unique identifier for the project.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
projectId: pulumi.Input<string>;
|
|
166
166
|
/**
|
|
167
167
|
* Name of the cloud provider for which you want to create the private endpoint service. Atlas accepts `AWS` or `AZURE`.
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
providerName: pulumi.Input<string>;
|
|
170
170
|
/**
|
|
171
171
|
* Cloud provider region in which you want to create the private endpoint connection.
|
|
172
172
|
* Accepted values are: [AWS regions](https://docs.atlas.mongodb.com/reference/amazon-aws/#amazon-aws) and [AZURE regions](https://docs.atlas.mongodb.com/reference/microsoft-azure/#microsoft-azure)
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
region: pulumi.Input<string>;
|
|
175
175
|
}
|
package/privateLinkEndpoint.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.PrivateLinkEndpoint = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -40,21 +41,21 @@ const utilities = require("./utilities");
|
|
|
40
41
|
*/
|
|
41
42
|
class PrivateLinkEndpoint extends pulumi.CustomResource {
|
|
42
43
|
constructor(name, argsOrState, opts) {
|
|
43
|
-
let
|
|
44
|
+
let resourceInputs = {};
|
|
44
45
|
opts = opts || {};
|
|
45
46
|
if (opts.id) {
|
|
46
47
|
const state = argsOrState;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
resourceInputs["endpointServiceName"] = state ? state.endpointServiceName : undefined;
|
|
49
|
+
resourceInputs["errorMessage"] = state ? state.errorMessage : undefined;
|
|
50
|
+
resourceInputs["interfaceEndpoints"] = state ? state.interfaceEndpoints : undefined;
|
|
51
|
+
resourceInputs["privateEndpoints"] = state ? state.privateEndpoints : undefined;
|
|
52
|
+
resourceInputs["privateLinkId"] = state ? state.privateLinkId : undefined;
|
|
53
|
+
resourceInputs["privateLinkServiceName"] = state ? state.privateLinkServiceName : undefined;
|
|
54
|
+
resourceInputs["privateLinkServiceResourceId"] = state ? state.privateLinkServiceResourceId : undefined;
|
|
55
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
56
|
+
resourceInputs["providerName"] = state ? state.providerName : undefined;
|
|
57
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
58
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
58
59
|
}
|
|
59
60
|
else {
|
|
60
61
|
const args = argsOrState;
|
|
@@ -67,22 +68,22 @@ class PrivateLinkEndpoint extends pulumi.CustomResource {
|
|
|
67
68
|
if ((!args || args.region === undefined) && !opts.urn) {
|
|
68
69
|
throw new Error("Missing required property 'region'");
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
72
|
+
resourceInputs["providerName"] = args ? args.providerName : undefined;
|
|
73
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
74
|
+
resourceInputs["endpointServiceName"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["errorMessage"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["interfaceEndpoints"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["privateEndpoints"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["privateLinkId"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["privateLinkServiceName"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["privateLinkServiceResourceId"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
81
82
|
}
|
|
82
83
|
if (!opts.version) {
|
|
83
84
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
84
85
|
}
|
|
85
|
-
super(PrivateLinkEndpoint.__pulumiType, name,
|
|
86
|
+
super(PrivateLinkEndpoint.__pulumiType, name, resourceInputs, opts);
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* Get an existing PrivateLinkEndpoint resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateLinkEndpoint.js","sourceRoot":"","sources":["../privateLinkEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"privateLinkEndpoint.js","sourceRoot":"","sources":["../privateLinkEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAmF1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,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* import * as azure from "@pulumi/azure";
|
|
43
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
44
|
+
*
|
|
45
|
+
* const testPrivateLinkEndpoint = new mongodbatlas.PrivateLinkEndpoint("testPrivateLinkEndpoint", {
|
|
46
|
+
* projectId: _var.project_id,
|
|
47
|
+
* providerName: "AZURE",
|
|
48
|
+
* region: "eastus2",
|
|
49
|
+
* });
|
|
50
|
+
* const testEndpoint = new azure.privatelink.Endpoint("testEndpoint", {
|
|
51
|
+
* location: data.azurerm_resource_group.test.location,
|
|
52
|
+
* resourceGroupName: _var.resource_group_name,
|
|
53
|
+
* subnetId: azurerm_subnet.test.id,
|
|
54
|
+
* privateServiceConnection: {
|
|
55
|
+
* name: testPrivateLinkEndpoint.privateLinkServiceName,
|
|
56
|
+
* privateConnectionResourceId: testPrivateLinkEndpoint.privateLinkServiceResourceId,
|
|
57
|
+
* isManualConnection: true,
|
|
58
|
+
* requestMessage: "Azure Private Link test",
|
|
59
|
+
* },
|
|
60
|
+
* });
|
|
61
|
+
* const testPrivateLinkEndpointService = new mongodbatlas.PrivateLinkEndpointService("testPrivateLinkEndpointService", {
|
|
62
|
+
* projectId: testPrivateLinkEndpoint.projectId,
|
|
63
|
+
* privateLinkId: testPrivateLinkEndpoint.privateLinkId,
|
|
64
|
+
* endpointServiceId: testEndpoint.id,
|
|
65
|
+
* privateEndpointIpAddress: testEndpoint.privateServiceConnection.apply(privateServiceConnection => privateServiceConnection.privateIpAddress),
|
|
66
|
+
* providerName: "AZURE",
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
38
70
|
* ## Import
|
|
39
71
|
*
|
|
40
72
|
* Private Endpoint Link Connection can be imported using project ID and username, in the format `{project_id}--{private_link_id}--{endpoint_service_id}--{provider_name}`, e.g.
|
|
@@ -128,52 +160,52 @@ export interface PrivateLinkEndpointServiceState {
|
|
|
128
160
|
* Status of the interface endpoint for AWS.
|
|
129
161
|
* Returns one of the following values:
|
|
130
162
|
*/
|
|
131
|
-
|
|
163
|
+
awsConnectionStatus?: pulumi.Input<string>;
|
|
132
164
|
/**
|
|
133
165
|
* Status of the interface endpoint for AZURE.
|
|
134
166
|
* Returns one of the following values:
|
|
135
167
|
*/
|
|
136
|
-
|
|
168
|
+
azureStatus?: pulumi.Input<string>;
|
|
137
169
|
/**
|
|
138
170
|
* Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
|
|
139
171
|
*/
|
|
140
|
-
|
|
172
|
+
deleteRequested?: pulumi.Input<boolean>;
|
|
141
173
|
/**
|
|
142
174
|
* Unique identifier of the interface endpoint you created in your VPC with the `AWS` or `AZURE` resource.
|
|
143
175
|
*/
|
|
144
|
-
|
|
176
|
+
endpointServiceId?: pulumi.Input<string>;
|
|
145
177
|
/**
|
|
146
178
|
* Error message pertaining to the interface endpoint. Returns null if there are no errors.
|
|
147
179
|
*/
|
|
148
|
-
|
|
180
|
+
errorMessage?: pulumi.Input<string>;
|
|
149
181
|
/**
|
|
150
182
|
* Unique identifier of the interface endpoint.
|
|
151
183
|
*/
|
|
152
|
-
|
|
184
|
+
interfaceEndpointId?: pulumi.Input<string>;
|
|
153
185
|
/**
|
|
154
186
|
* Name of the connection for this private endpoint that Atlas generates.
|
|
155
187
|
*/
|
|
156
|
-
|
|
188
|
+
privateEndpointConnectionName?: pulumi.Input<string>;
|
|
157
189
|
/**
|
|
158
190
|
* Private IP address of the private endpoint network interface you created in your Azure VNet. Only for `AZURE`.
|
|
159
191
|
*/
|
|
160
|
-
|
|
192
|
+
privateEndpointIpAddress?: pulumi.Input<string>;
|
|
161
193
|
/**
|
|
162
194
|
* Unique identifier of the private endpoint.
|
|
163
195
|
*/
|
|
164
|
-
|
|
196
|
+
privateEndpointResourceId?: pulumi.Input<string>;
|
|
165
197
|
/**
|
|
166
198
|
* Unique identifier of the `AWS` or `AZURE` PrivateLink connection which is created by `mongodbatlas.PrivateLinkEndpoint` resource.
|
|
167
199
|
*/
|
|
168
|
-
|
|
200
|
+
privateLinkId?: pulumi.Input<string>;
|
|
169
201
|
/**
|
|
170
202
|
* Unique identifier for the project.
|
|
171
203
|
*/
|
|
172
|
-
|
|
204
|
+
projectId?: pulumi.Input<string>;
|
|
173
205
|
/**
|
|
174
206
|
* Cloud provider for which you want to create a private endpoint. Atlas accepts `AWS` or `AZURE`.
|
|
175
207
|
*/
|
|
176
|
-
|
|
208
|
+
providerName?: pulumi.Input<string>;
|
|
177
209
|
}
|
|
178
210
|
/**
|
|
179
211
|
* The set of arguments for constructing a PrivateLinkEndpointService resource.
|
|
@@ -182,21 +214,21 @@ export interface PrivateLinkEndpointServiceArgs {
|
|
|
182
214
|
/**
|
|
183
215
|
* Unique identifier of the interface endpoint you created in your VPC with the `AWS` or `AZURE` resource.
|
|
184
216
|
*/
|
|
185
|
-
|
|
217
|
+
endpointServiceId: pulumi.Input<string>;
|
|
186
218
|
/**
|
|
187
219
|
* Private IP address of the private endpoint network interface you created in your Azure VNet. Only for `AZURE`.
|
|
188
220
|
*/
|
|
189
|
-
|
|
221
|
+
privateEndpointIpAddress?: pulumi.Input<string>;
|
|
190
222
|
/**
|
|
191
223
|
* Unique identifier of the `AWS` or `AZURE` PrivateLink connection which is created by `mongodbatlas.PrivateLinkEndpoint` resource.
|
|
192
224
|
*/
|
|
193
|
-
|
|
225
|
+
privateLinkId: pulumi.Input<string>;
|
|
194
226
|
/**
|
|
195
227
|
* Unique identifier for the project.
|
|
196
228
|
*/
|
|
197
|
-
|
|
229
|
+
projectId: pulumi.Input<string>;
|
|
198
230
|
/**
|
|
199
231
|
* Cloud provider for which you want to create a private endpoint. Atlas accepts `AWS` or `AZURE`.
|
|
200
232
|
*/
|
|
201
|
-
|
|
233
|
+
providerName: pulumi.Input<string>;
|
|
202
234
|
}
|
|
@@ -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.PrivateLinkEndpointService = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -40,6 +41,38 @@ const utilities = require("./utilities");
|
|
|
40
41
|
* });
|
|
41
42
|
* ```
|
|
42
43
|
*
|
|
44
|
+
* ## Example with Azure
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as azure from "@pulumi/azure";
|
|
49
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
50
|
+
*
|
|
51
|
+
* const testPrivateLinkEndpoint = new mongodbatlas.PrivateLinkEndpoint("testPrivateLinkEndpoint", {
|
|
52
|
+
* projectId: _var.project_id,
|
|
53
|
+
* providerName: "AZURE",
|
|
54
|
+
* region: "eastus2",
|
|
55
|
+
* });
|
|
56
|
+
* const testEndpoint = new azure.privatelink.Endpoint("testEndpoint", {
|
|
57
|
+
* location: data.azurerm_resource_group.test.location,
|
|
58
|
+
* resourceGroupName: _var.resource_group_name,
|
|
59
|
+
* subnetId: azurerm_subnet.test.id,
|
|
60
|
+
* privateServiceConnection: {
|
|
61
|
+
* name: testPrivateLinkEndpoint.privateLinkServiceName,
|
|
62
|
+
* privateConnectionResourceId: testPrivateLinkEndpoint.privateLinkServiceResourceId,
|
|
63
|
+
* isManualConnection: true,
|
|
64
|
+
* requestMessage: "Azure Private Link test",
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
* const testPrivateLinkEndpointService = new mongodbatlas.PrivateLinkEndpointService("testPrivateLinkEndpointService", {
|
|
68
|
+
* projectId: testPrivateLinkEndpoint.projectId,
|
|
69
|
+
* privateLinkId: testPrivateLinkEndpoint.privateLinkId,
|
|
70
|
+
* endpointServiceId: testEndpoint.id,
|
|
71
|
+
* privateEndpointIpAddress: testEndpoint.privateServiceConnection.apply(privateServiceConnection => privateServiceConnection.privateIpAddress),
|
|
72
|
+
* providerName: "AZURE",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
43
76
|
* ## Import
|
|
44
77
|
*
|
|
45
78
|
* Private Endpoint Link Connection can be imported using project ID and username, in the format `{project_id}--{private_link_id}--{endpoint_service_id}--{provider_name}`, e.g.
|
|
@@ -52,22 +85,22 @@ const utilities = require("./utilities");
|
|
|
52
85
|
*/
|
|
53
86
|
class PrivateLinkEndpointService extends pulumi.CustomResource {
|
|
54
87
|
constructor(name, argsOrState, opts) {
|
|
55
|
-
let
|
|
88
|
+
let resourceInputs = {};
|
|
56
89
|
opts = opts || {};
|
|
57
90
|
if (opts.id) {
|
|
58
91
|
const state = argsOrState;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
92
|
+
resourceInputs["awsConnectionStatus"] = state ? state.awsConnectionStatus : undefined;
|
|
93
|
+
resourceInputs["azureStatus"] = state ? state.azureStatus : undefined;
|
|
94
|
+
resourceInputs["deleteRequested"] = state ? state.deleteRequested : undefined;
|
|
95
|
+
resourceInputs["endpointServiceId"] = state ? state.endpointServiceId : undefined;
|
|
96
|
+
resourceInputs["errorMessage"] = state ? state.errorMessage : undefined;
|
|
97
|
+
resourceInputs["interfaceEndpointId"] = state ? state.interfaceEndpointId : undefined;
|
|
98
|
+
resourceInputs["privateEndpointConnectionName"] = state ? state.privateEndpointConnectionName : undefined;
|
|
99
|
+
resourceInputs["privateEndpointIpAddress"] = state ? state.privateEndpointIpAddress : undefined;
|
|
100
|
+
resourceInputs["privateEndpointResourceId"] = state ? state.privateEndpointResourceId : undefined;
|
|
101
|
+
resourceInputs["privateLinkId"] = state ? state.privateLinkId : undefined;
|
|
102
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
103
|
+
resourceInputs["providerName"] = state ? state.providerName : undefined;
|
|
71
104
|
}
|
|
72
105
|
else {
|
|
73
106
|
const args = argsOrState;
|
|
@@ -83,23 +116,23 @@ class PrivateLinkEndpointService extends pulumi.CustomResource {
|
|
|
83
116
|
if ((!args || args.providerName === undefined) && !opts.urn) {
|
|
84
117
|
throw new Error("Missing required property 'providerName'");
|
|
85
118
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
119
|
+
resourceInputs["endpointServiceId"] = args ? args.endpointServiceId : undefined;
|
|
120
|
+
resourceInputs["privateEndpointIpAddress"] = args ? args.privateEndpointIpAddress : undefined;
|
|
121
|
+
resourceInputs["privateLinkId"] = args ? args.privateLinkId : undefined;
|
|
122
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
123
|
+
resourceInputs["providerName"] = args ? args.providerName : undefined;
|
|
124
|
+
resourceInputs["awsConnectionStatus"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["azureStatus"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["deleteRequested"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["errorMessage"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["interfaceEndpointId"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["privateEndpointConnectionName"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["privateEndpointResourceId"] = undefined /*out*/;
|
|
98
131
|
}
|
|
99
132
|
if (!opts.version) {
|
|
100
133
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
101
134
|
}
|
|
102
|
-
super(PrivateLinkEndpointService.__pulumiType, name,
|
|
135
|
+
super(PrivateLinkEndpointService.__pulumiType, name, resourceInputs, opts);
|
|
103
136
|
}
|
|
104
137
|
/**
|
|
105
138
|
* Get an existing PrivateLinkEndpointService resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateLinkEndpointService.js","sourceRoot":"","sources":["../privateLinkEndpointService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"privateLinkEndpointService.js","sourceRoot":"","sources":["../privateLinkEndpointService.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IAuFjE,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0D,CAAC;YACzE,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAA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AC;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,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;IAtID;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;;AA1BL,gEAwIC;AA1HG,gBAAgB;AACO,uCAAY,GAAG,0EAA0E,CAAC"}
|
package/project.d.ts
CHANGED
|
@@ -64,24 +64,24 @@ export interface ProjectState {
|
|
|
64
64
|
/**
|
|
65
65
|
* The number of Atlas clusters deployed in the project..
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
clusterCount?: pulumi.Input<number>;
|
|
68
68
|
/**
|
|
69
69
|
* The ISO-8601-formatted timestamp of when Atlas created the project..
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
created?: pulumi.Input<string>;
|
|
72
72
|
/**
|
|
73
73
|
* The name of the project you want to create. (Cannot be changed via this Provider after creation.)
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
name?: pulumi.Input<string>;
|
|
76
76
|
/**
|
|
77
77
|
* The ID of the organization you want to create the project within.
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
orgId?: pulumi.Input<string>;
|
|
80
80
|
/**
|
|
81
81
|
* Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the [Project Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Project-Owner) role on the specified project. If you set this parameter, it overrides the default value of the oldest [Organization Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Organization-Owner).
|
|
82
82
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
projectOwnerId?: pulumi.Input<string>;
|
|
84
|
+
teams?: pulumi.Input<pulumi.Input<inputs.ProjectTeam>[]>;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* The set of arguments for constructing a Project resource.
|
|
@@ -90,14 +90,14 @@ export interface ProjectArgs {
|
|
|
90
90
|
/**
|
|
91
91
|
* The name of the project you want to create. (Cannot be changed via this Provider after creation.)
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
name?: pulumi.Input<string>;
|
|
94
94
|
/**
|
|
95
95
|
* The ID of the organization you want to create the project within.
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
orgId: pulumi.Input<string>;
|
|
98
98
|
/**
|
|
99
99
|
* Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the [Project Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Project-Owner) role on the specified project. If you set this parameter, it overrides the default value of the oldest [Organization Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Organization-Owner).
|
|
100
100
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
projectOwnerId?: pulumi.Input<string>;
|
|
102
|
+
teams?: pulumi.Input<pulumi.Input<inputs.ProjectTeam>[]>;
|
|
103
103
|
}
|
package/project.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.Project = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -17,33 +18,33 @@ const utilities = require("./utilities");
|
|
|
17
18
|
*/
|
|
18
19
|
class Project extends pulumi.CustomResource {
|
|
19
20
|
constructor(name, argsOrState, opts) {
|
|
20
|
-
let
|
|
21
|
+
let resourceInputs = {};
|
|
21
22
|
opts = opts || {};
|
|
22
23
|
if (opts.id) {
|
|
23
24
|
const state = argsOrState;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
resourceInputs["clusterCount"] = state ? state.clusterCount : undefined;
|
|
26
|
+
resourceInputs["created"] = state ? state.created : undefined;
|
|
27
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
28
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
29
|
+
resourceInputs["projectOwnerId"] = state ? state.projectOwnerId : undefined;
|
|
30
|
+
resourceInputs["teams"] = state ? state.teams : undefined;
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
32
33
|
const args = argsOrState;
|
|
33
34
|
if ((!args || args.orgId === undefined) && !opts.urn) {
|
|
34
35
|
throw new Error("Missing required property 'orgId'");
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
38
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
39
|
+
resourceInputs["projectOwnerId"] = args ? args.projectOwnerId : undefined;
|
|
40
|
+
resourceInputs["teams"] = args ? args.teams : undefined;
|
|
41
|
+
resourceInputs["clusterCount"] = undefined /*out*/;
|
|
42
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
42
43
|
}
|
|
43
44
|
if (!opts.version) {
|
|
44
45
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
45
46
|
}
|
|
46
|
-
super(Project.__pulumiType, name,
|
|
47
|
+
super(Project.__pulumiType, name, resourceInputs, opts);
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* Get an existing Project resource's state with the given name, ID, and optional extra
|
package/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA0D9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,gBAAgB,CAAC,GAA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