@pulumi/mongodbatlas 4.18.0-alpha.1792477012 → 4.18.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/alertConfiguration.d.ts +24 -0
- package/alertConfiguration.d.ts.map +1 -1
- package/alertConfiguration.js +24 -0
- package/alertConfiguration.js.map +1 -1
- package/customDbRole.d.ts +1 -1
- package/customDbRole.js +1 -1
- package/databaseUser.d.ts +1 -1
- package/databaseUser.js +1 -1
- package/federatedDatabaseInstance.d.ts +71 -11
- package/federatedDatabaseInstance.d.ts.map +1 -1
- package/federatedDatabaseInstance.js +56 -2
- package/federatedDatabaseInstance.js.map +1 -1
- package/getDatabaseUser.d.ts +4 -2
- package/getDatabaseUser.d.ts.map +1 -1
- package/getDatabaseUser.js +4 -2
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +4 -2
- package/getDatabaseUsers.d.ts.map +1 -1
- package/getDatabaseUsers.js +4 -2
- package/getDatabaseUsers.js.map +1 -1
- package/getFederatedDatabaseInstance.d.ts +30 -12
- package/getFederatedDatabaseInstance.d.ts.map +1 -1
- package/getFederatedDatabaseInstance.js +28 -10
- package/getFederatedDatabaseInstance.js.map +1 -1
- package/getMetricIntegration.d.ts +8 -2
- package/getMetricIntegration.d.ts.map +1 -1
- package/getMetricIntegration.js +4 -2
- package/getMetricIntegration.js.map +1 -1
- package/getMetricIntegrations.d.ts +4 -2
- package/getMetricIntegrations.d.ts.map +1 -1
- package/getMetricIntegrations.js +4 -2
- package/getMetricIntegrations.js.map +1 -1
- package/getThirdPartyIntegration.d.ts +5 -1
- package/getThirdPartyIntegration.d.ts.map +1 -1
- package/getThirdPartyIntegration.js.map +1 -1
- package/maintenanceWindow.d.ts +17 -3
- package/maintenanceWindow.d.ts.map +1 -1
- package/maintenanceWindow.js +14 -0
- package/maintenanceWindow.js.map +1 -1
- package/metricIntegration.d.ts +18 -5
- package/metricIntegration.d.ts.map +1 -1
- package/metricIntegration.js +5 -2
- package/metricIntegration.js.map +1 -1
- package/package.json +2 -2
- package/thirdPartyIntegration.d.ts +3 -0
- package/thirdPartyIntegration.d.ts.map +1 -1
- package/thirdPartyIntegration.js +2 -0
- package/thirdPartyIntegration.js.map +1 -1
- package/types/input.d.ts +97 -6
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +221 -14
- package/types/output.d.ts.map +1 -1
package/alertConfiguration.d.ts
CHANGED
|
@@ -135,6 +135,30 @@ import * as outputs from "./types/output";
|
|
|
135
135
|
* });
|
|
136
136
|
* ```
|
|
137
137
|
*
|
|
138
|
+
* ### Create a webhook notification with a custom JSON body and headers
|
|
139
|
+
*
|
|
140
|
+
* ```typescript
|
|
141
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
142
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
143
|
+
*
|
|
144
|
+
* const test = new mongodbatlas.AlertConfiguration("test", {
|
|
145
|
+
* projectId: "PROJECT ID",
|
|
146
|
+
* enabled: true,
|
|
147
|
+
* eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
|
|
148
|
+
* notifications: [{
|
|
149
|
+
* typeName: "WEBHOOK",
|
|
150
|
+
* webhookUrl: "https://example.com/webhook",
|
|
151
|
+
* webhookBodyTemplate: JSON.stringify({
|
|
152
|
+
* alert: "${eventType}",
|
|
153
|
+
* project: "${groupId}",
|
|
154
|
+
* }),
|
|
155
|
+
* webhookHeadersTemplate: JSON.stringify({
|
|
156
|
+
* "X-Custom-Header": "static-value",
|
|
157
|
+
* }),
|
|
158
|
+
* }],
|
|
159
|
+
* });
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
138
162
|
* ### Further Examples
|
|
139
163
|
* - Alert Configuration
|
|
140
164
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertConfiguration.d.ts","sourceRoot":"","sources":["../alertConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gB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C,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iCAAiC,GAAG,SAAS,CAAC,CAAC;CACxF"}
|
package/alertConfiguration.js
CHANGED
|
@@ -162,6 +162,30 @@ const utilities = __importStar(require("./utilities"));
|
|
|
162
162
|
* });
|
|
163
163
|
* ```
|
|
164
164
|
*
|
|
165
|
+
* ### Create a webhook notification with a custom JSON body and headers
|
|
166
|
+
*
|
|
167
|
+
* ```typescript
|
|
168
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
169
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
170
|
+
*
|
|
171
|
+
* const test = new mongodbatlas.AlertConfiguration("test", {
|
|
172
|
+
* projectId: "PROJECT ID",
|
|
173
|
+
* enabled: true,
|
|
174
|
+
* eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
|
|
175
|
+
* notifications: [{
|
|
176
|
+
* typeName: "WEBHOOK",
|
|
177
|
+
* webhookUrl: "https://example.com/webhook",
|
|
178
|
+
* webhookBodyTemplate: JSON.stringify({
|
|
179
|
+
* alert: "${eventType}",
|
|
180
|
+
* project: "${groupId}",
|
|
181
|
+
* }),
|
|
182
|
+
* webhookHeadersTemplate: JSON.stringify({
|
|
183
|
+
* "X-Custom-Header": "static-value",
|
|
184
|
+
* }),
|
|
185
|
+
* }],
|
|
186
|
+
* });
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
165
189
|
* ### Further Examples
|
|
166
190
|
* - Alert Configuration
|
|
167
191
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertConfiguration.js","sourceRoot":"","sources":["../alertConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,u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AC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAlHL,gDAmHC"}
|
package/customDbRole.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* `mongodbatlas.CustomDbRole` provides a Custom DB Role resource. The customDBRoles resource lets you retrieve, create and modify the custom MongoDB roles in your cluster. Use custom MongoDB roles to specify custom sets of actions which cannot be described by the built-in Atlas database user privileges.
|
|
6
6
|
*
|
|
7
|
-
* > **IMPORTANT** You define custom roles at the project level for all clusters in the project. The `mongodbatlas.CustomDbRole` resource supports a subset of MongoDB privilege actions. For a complete list of [privilege actions](https://www.mongodb.com/docs/manual/reference/privilege-actions/) available for this resource, see [Custom Role actions](https://www.mongodb.com/docs/atlas/reference/api/custom-role-actions/). Custom roles must include actions that all project's clusters support, and that are compatible with each MongoDB version used by your project's clusters. For example, if your project has MongoDB
|
|
7
|
+
* > **IMPORTANT** You define custom roles at the project level for all clusters in the project. The `mongodbatlas.CustomDbRole` resource supports a subset of MongoDB privilege actions. For a complete list of [privilege actions](https://www.mongodb.com/docs/manual/reference/privilege-actions/) available for this resource, see [Custom Role actions](https://www.mongodb.com/docs/atlas/reference/api/custom-role-actions/). Custom roles must include actions that all project's clusters support, and that are compatible with each MongoDB version used by your project's clusters. For example, if your project has MongoDB 8.0 clusters, you can't create custom roles that use actions introduced in MongoDB 9.0.
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
package/customDbRole.js
CHANGED
|
@@ -31,7 +31,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* `mongodbatlas.CustomDbRole` provides a Custom DB Role resource. The customDBRoles resource lets you retrieve, create and modify the custom MongoDB roles in your cluster. Use custom MongoDB roles to specify custom sets of actions which cannot be described by the built-in Atlas database user privileges.
|
|
33
33
|
*
|
|
34
|
-
* > **IMPORTANT** You define custom roles at the project level for all clusters in the project. The `mongodbatlas.CustomDbRole` resource supports a subset of MongoDB privilege actions. For a complete list of [privilege actions](https://www.mongodb.com/docs/manual/reference/privilege-actions/) available for this resource, see [Custom Role actions](https://www.mongodb.com/docs/atlas/reference/api/custom-role-actions/). Custom roles must include actions that all project's clusters support, and that are compatible with each MongoDB version used by your project's clusters. For example, if your project has MongoDB
|
|
34
|
+
* > **IMPORTANT** You define custom roles at the project level for all clusters in the project. The `mongodbatlas.CustomDbRole` resource supports a subset of MongoDB privilege actions. For a complete list of [privilege actions](https://www.mongodb.com/docs/manual/reference/privilege-actions/) available for this resource, see [Custom Role actions](https://www.mongodb.com/docs/atlas/reference/api/custom-role-actions/). Custom roles must include actions that all project's clusters support, and that are compatible with each MongoDB version used by your project's clusters. For example, if your project has MongoDB 8.0 clusters, you can't create custom roles that use actions introduced in MongoDB 9.0.
|
|
35
35
|
*
|
|
36
36
|
* ## Example Usage
|
|
37
37
|
*
|
package/databaseUser.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ import * as outputs from "./types/output";
|
|
|
115
115
|
* ```
|
|
116
116
|
* `username` format: Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name
|
|
117
117
|
*
|
|
118
|
-
* Note:
|
|
118
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
119
119
|
*
|
|
120
120
|
* ## Import
|
|
121
121
|
*
|
package/databaseUser.js
CHANGED
|
@@ -142,7 +142,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
142
142
|
* ```
|
|
143
143
|
* `username` format: Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name
|
|
144
144
|
*
|
|
145
|
-
* Note:
|
|
145
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
146
146
|
*
|
|
147
147
|
* ## Import
|
|
148
148
|
*
|
|
@@ -22,7 +22,7 @@ import * as outputs from "./types/output";
|
|
|
22
22
|
* dataSources: [{
|
|
23
23
|
* collection: "COLLECTION IN THE CLUSTER",
|
|
24
24
|
* database: "DB IN THE CLUSTER",
|
|
25
|
-
* storeName: "
|
|
25
|
+
* storeName: "STORE 1 NAME",
|
|
26
26
|
* }],
|
|
27
27
|
* }],
|
|
28
28
|
* }],
|
|
@@ -41,6 +41,7 @@ import * as outputs from "./types/output";
|
|
|
41
41
|
* ### Further Examples
|
|
42
42
|
* - AWS Federated Database Instance
|
|
43
43
|
* - Azure Federated Database Instance
|
|
44
|
+
* - Google Cloud Federated Database Instance
|
|
44
45
|
*
|
|
45
46
|
* ## Example of Azure Blob Storage as storage database
|
|
46
47
|
*
|
|
@@ -64,7 +65,7 @@ import * as outputs from "./types/output";
|
|
|
64
65
|
* {
|
|
65
66
|
* collection: "COLLECTION IN THE CLUSTER",
|
|
66
67
|
* database: "DB IN THE CLUSTER",
|
|
67
|
-
* storeName: "
|
|
68
|
+
* storeName: "STORE NAME",
|
|
68
69
|
* },
|
|
69
70
|
* {
|
|
70
71
|
* storeName: "AZURE BLOB STORAGE NAME",
|
|
@@ -91,6 +92,59 @@ import * as outputs from "./types/output";
|
|
|
91
92
|
* });
|
|
92
93
|
* ```
|
|
93
94
|
*
|
|
95
|
+
* ## Example of Google Cloud Storage as storage database
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
100
|
+
*
|
|
101
|
+
* const test = new mongodbatlas.FederatedDatabaseInstance("test", {
|
|
102
|
+
* projectId: "<PROJECT_ID>",
|
|
103
|
+
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
104
|
+
* cloudProviderConfig: {
|
|
105
|
+
* gcp: {
|
|
106
|
+
* roleId: "<GCP_ROLE_ID>",
|
|
107
|
+
* },
|
|
108
|
+
* },
|
|
109
|
+
* storageDatabases: [{
|
|
110
|
+
* name: "VirtualDatabase0",
|
|
111
|
+
* collections: [{
|
|
112
|
+
* name: "NAME OF THE COLLECTION",
|
|
113
|
+
* dataSources: [
|
|
114
|
+
* {
|
|
115
|
+
* collection: "COLLECTION IN THE CLUSTER",
|
|
116
|
+
* database: "DB IN THE CLUSTER",
|
|
117
|
+
* storeName: "STORE NAME",
|
|
118
|
+
* },
|
|
119
|
+
* {
|
|
120
|
+
* storeName: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
121
|
+
* path: "GOOGLE CLOUD STORAGE BUCKET PATH",
|
|
122
|
+
* },
|
|
123
|
+
* ],
|
|
124
|
+
* }],
|
|
125
|
+
* }],
|
|
126
|
+
* storageStores: [
|
|
127
|
+
* {
|
|
128
|
+
* name: "STORE NAME",
|
|
129
|
+
* clusterName: "CLUSTER NAME",
|
|
130
|
+
* projectId: "PROJECT ID",
|
|
131
|
+
* provider: "atlas",
|
|
132
|
+
* readPreference: {
|
|
133
|
+
* mode: "secondary",
|
|
134
|
+
* },
|
|
135
|
+
* },
|
|
136
|
+
* {
|
|
137
|
+
* name: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
138
|
+
* provider: "gcs",
|
|
139
|
+
* region: "GOOGLE CLOUD REGION",
|
|
140
|
+
* bucket: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
141
|
+
* prefix: "GOOGLE CLOUD STORAGE BUCKET PREFIX",
|
|
142
|
+
* delimiter: "/",
|
|
143
|
+
* },
|
|
144
|
+
* ],
|
|
145
|
+
* });
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
94
148
|
* ## Example specifying data process region and provider
|
|
95
149
|
*
|
|
96
150
|
* ```typescript
|
|
@@ -139,11 +193,13 @@ export declare class FederatedDatabaseInstance extends pulumi.CustomResource {
|
|
|
139
193
|
* * `cloud_provider_config.aws.test_s3_bucket` - (Required) Name of the S3 data bucket that the provided role ID is authorized to access. You must also specify the `roleId`.
|
|
140
194
|
* * `cloud_provider_config.azure` - Microsoft Azure provider of the cloud service where the Federated Database Instance can access Blob Storage.
|
|
141
195
|
* * `cloud_provider_config.azure.role_id` - (Required) Unique identifier of the role that the Federated Database Instance can use to access the data stores.
|
|
196
|
+
* * `cloud_provider_config.gcp` - Google Cloud provider of the cloud service where the Federated Database Instance can access Google Cloud Storage.
|
|
197
|
+
* * `cloud_provider_config.gcp.role_id` - (Required) Unique identifier of the role that the Federated Database Instance uses to access the data stores.
|
|
142
198
|
*/
|
|
143
199
|
readonly cloudProviderConfig: pulumi.Output<outputs.FederatedDatabaseInstanceCloudProviderConfig>;
|
|
144
200
|
/**
|
|
145
201
|
* The cloud provider region to which the Federated Instance routes client connections for data processing.
|
|
146
|
-
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`.
|
|
202
|
+
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`, `GCP`.
|
|
147
203
|
* * `data_process_region.region` - (Required) Name of the region to which the Federated Instance routes client connections for data processing. See the [documentation](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Data-Federation/operation/createFederatedDatabase) for the available region.
|
|
148
204
|
*/
|
|
149
205
|
readonly dataProcessRegion: pulumi.Output<outputs.FederatedDatabaseInstanceDataProcessRegion>;
|
|
@@ -197,8 +253,8 @@ export declare class FederatedDatabaseInstance extends pulumi.CustomResource {
|
|
|
197
253
|
* Each object in the array represents a data store. Federated Database uses the storage.databases configuration details to map data in each data store to queryable databases and collections. For complete documentation on this object and its nested fields, see [stores](https://www.mongodb.com/docs/atlas/data-federation/config/config-data-stores/). An empty object indicates that the Federated Database Instance has no configured data stores.
|
|
198
254
|
* * `storage_stores.#.name` - Name of the data store.
|
|
199
255
|
* * `storage_stores.#.provider` - Defines where the data is stored.
|
|
200
|
-
* * `storage_stores.#.region` - Name of the
|
|
201
|
-
* * `storage_stores.#.bucket` - Name of the
|
|
256
|
+
* * `storage_stores.#.region` - Name of the cloud provider region in which the bucket is hosted.
|
|
257
|
+
* * `storage_stores.#.bucket` - Name of the bucket.
|
|
202
258
|
* * `storage_stores.#.prefix` - Prefix the Federated Database Instance applies when searching for files in the S3 bucket.
|
|
203
259
|
* * `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
|
|
204
260
|
* * `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
|
|
@@ -236,11 +292,13 @@ export interface FederatedDatabaseInstanceState {
|
|
|
236
292
|
* * `cloud_provider_config.aws.test_s3_bucket` - (Required) Name of the S3 data bucket that the provided role ID is authorized to access. You must also specify the `roleId`.
|
|
237
293
|
* * `cloud_provider_config.azure` - Microsoft Azure provider of the cloud service where the Federated Database Instance can access Blob Storage.
|
|
238
294
|
* * `cloud_provider_config.azure.role_id` - (Required) Unique identifier of the role that the Federated Database Instance can use to access the data stores.
|
|
295
|
+
* * `cloud_provider_config.gcp` - Google Cloud provider of the cloud service where the Federated Database Instance can access Google Cloud Storage.
|
|
296
|
+
* * `cloud_provider_config.gcp.role_id` - (Required) Unique identifier of the role that the Federated Database Instance uses to access the data stores.
|
|
239
297
|
*/
|
|
240
298
|
cloudProviderConfig?: pulumi.Input<inputs.FederatedDatabaseInstanceCloudProviderConfig | undefined>;
|
|
241
299
|
/**
|
|
242
300
|
* The cloud provider region to which the Federated Instance routes client connections for data processing.
|
|
243
|
-
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`.
|
|
301
|
+
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`, `GCP`.
|
|
244
302
|
* * `data_process_region.region` - (Required) Name of the region to which the Federated Instance routes client connections for data processing. See the [documentation](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Data-Federation/operation/createFederatedDatabase) for the available region.
|
|
245
303
|
*/
|
|
246
304
|
dataProcessRegion?: pulumi.Input<inputs.FederatedDatabaseInstanceDataProcessRegion | undefined>;
|
|
@@ -294,8 +352,8 @@ export interface FederatedDatabaseInstanceState {
|
|
|
294
352
|
* Each object in the array represents a data store. Federated Database uses the storage.databases configuration details to map data in each data store to queryable databases and collections. For complete documentation on this object and its nested fields, see [stores](https://www.mongodb.com/docs/atlas/data-federation/config/config-data-stores/). An empty object indicates that the Federated Database Instance has no configured data stores.
|
|
295
353
|
* * `storage_stores.#.name` - Name of the data store.
|
|
296
354
|
* * `storage_stores.#.provider` - Defines where the data is stored.
|
|
297
|
-
* * `storage_stores.#.region` - Name of the
|
|
298
|
-
* * `storage_stores.#.bucket` - Name of the
|
|
355
|
+
* * `storage_stores.#.region` - Name of the cloud provider region in which the bucket is hosted.
|
|
356
|
+
* * `storage_stores.#.bucket` - Name of the bucket.
|
|
299
357
|
* * `storage_stores.#.prefix` - Prefix the Federated Database Instance applies when searching for files in the S3 bucket.
|
|
300
358
|
* * `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
|
|
301
359
|
* * `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
|
|
@@ -325,11 +383,13 @@ export interface FederatedDatabaseInstanceArgs {
|
|
|
325
383
|
* * `cloud_provider_config.aws.test_s3_bucket` - (Required) Name of the S3 data bucket that the provided role ID is authorized to access. You must also specify the `roleId`.
|
|
326
384
|
* * `cloud_provider_config.azure` - Microsoft Azure provider of the cloud service where the Federated Database Instance can access Blob Storage.
|
|
327
385
|
* * `cloud_provider_config.azure.role_id` - (Required) Unique identifier of the role that the Federated Database Instance can use to access the data stores.
|
|
386
|
+
* * `cloud_provider_config.gcp` - Google Cloud provider of the cloud service where the Federated Database Instance can access Google Cloud Storage.
|
|
387
|
+
* * `cloud_provider_config.gcp.role_id` - (Required) Unique identifier of the role that the Federated Database Instance uses to access the data stores.
|
|
328
388
|
*/
|
|
329
389
|
cloudProviderConfig?: pulumi.Input<inputs.FederatedDatabaseInstanceCloudProviderConfig | undefined>;
|
|
330
390
|
/**
|
|
331
391
|
* The cloud provider region to which the Federated Instance routes client connections for data processing.
|
|
332
|
-
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`.
|
|
392
|
+
* * `data_process_region.cloud_provider` - (Required) Name of the cloud service provider. Supported providers: `AWS`, `AZURE`, `GCP`.
|
|
333
393
|
* * `data_process_region.region` - (Required) Name of the region to which the Federated Instance routes client connections for data processing. See the [documentation](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Data-Federation/operation/createFederatedDatabase) for the available region.
|
|
334
394
|
*/
|
|
335
395
|
dataProcessRegion?: pulumi.Input<inputs.FederatedDatabaseInstanceDataProcessRegion | undefined>;
|
|
@@ -369,8 +429,8 @@ export interface FederatedDatabaseInstanceArgs {
|
|
|
369
429
|
* Each object in the array represents a data store. Federated Database uses the storage.databases configuration details to map data in each data store to queryable databases and collections. For complete documentation on this object and its nested fields, see [stores](https://www.mongodb.com/docs/atlas/data-federation/config/config-data-stores/). An empty object indicates that the Federated Database Instance has no configured data stores.
|
|
370
430
|
* * `storage_stores.#.name` - Name of the data store.
|
|
371
431
|
* * `storage_stores.#.provider` - Defines where the data is stored.
|
|
372
|
-
* * `storage_stores.#.region` - Name of the
|
|
373
|
-
* * `storage_stores.#.bucket` - Name of the
|
|
432
|
+
* * `storage_stores.#.region` - Name of the cloud provider region in which the bucket is hosted.
|
|
433
|
+
* * `storage_stores.#.bucket` - Name of the bucket.
|
|
374
434
|
* * `storage_stores.#.prefix` - Prefix the Federated Database Instance applies when searching for files in the S3 bucket.
|
|
375
435
|
* * `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
|
|
376
436
|
* * `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federatedDatabaseInstance.d.ts","sourceRoot":"","sources":["../federatedDatabaseInstance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"federatedDatabaseInstance.d.ts","sourceRoot":"","sources":["../federatedDatabaseInstance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,KAAK,CAAC,MAAM,CAAC,qCAAqC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC1G;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,4CAA4C,GAAG,SAAS,CAAC,CAAC;IACpG;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0CAA0C,GAAG,SAAS,CAAC,CAAC;IAChG;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,wCAAwC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7G;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,qCAAqC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC1G"}
|
|
@@ -49,7 +49,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
49
49
|
* dataSources: [{
|
|
50
50
|
* collection: "COLLECTION IN THE CLUSTER",
|
|
51
51
|
* database: "DB IN THE CLUSTER",
|
|
52
|
-
* storeName: "
|
|
52
|
+
* storeName: "STORE 1 NAME",
|
|
53
53
|
* }],
|
|
54
54
|
* }],
|
|
55
55
|
* }],
|
|
@@ -68,6 +68,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
68
68
|
* ### Further Examples
|
|
69
69
|
* - AWS Federated Database Instance
|
|
70
70
|
* - Azure Federated Database Instance
|
|
71
|
+
* - Google Cloud Federated Database Instance
|
|
71
72
|
*
|
|
72
73
|
* ## Example of Azure Blob Storage as storage database
|
|
73
74
|
*
|
|
@@ -91,7 +92,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
91
92
|
* {
|
|
92
93
|
* collection: "COLLECTION IN THE CLUSTER",
|
|
93
94
|
* database: "DB IN THE CLUSTER",
|
|
94
|
-
* storeName: "
|
|
95
|
+
* storeName: "STORE NAME",
|
|
95
96
|
* },
|
|
96
97
|
* {
|
|
97
98
|
* storeName: "AZURE BLOB STORAGE NAME",
|
|
@@ -118,6 +119,59 @@ const utilities = __importStar(require("./utilities"));
|
|
|
118
119
|
* });
|
|
119
120
|
* ```
|
|
120
121
|
*
|
|
122
|
+
* ## Example of Google Cloud Storage as storage database
|
|
123
|
+
*
|
|
124
|
+
* ```typescript
|
|
125
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
126
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
127
|
+
*
|
|
128
|
+
* const test = new mongodbatlas.FederatedDatabaseInstance("test", {
|
|
129
|
+
* projectId: "<PROJECT_ID>",
|
|
130
|
+
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
131
|
+
* cloudProviderConfig: {
|
|
132
|
+
* gcp: {
|
|
133
|
+
* roleId: "<GCP_ROLE_ID>",
|
|
134
|
+
* },
|
|
135
|
+
* },
|
|
136
|
+
* storageDatabases: [{
|
|
137
|
+
* name: "VirtualDatabase0",
|
|
138
|
+
* collections: [{
|
|
139
|
+
* name: "NAME OF THE COLLECTION",
|
|
140
|
+
* dataSources: [
|
|
141
|
+
* {
|
|
142
|
+
* collection: "COLLECTION IN THE CLUSTER",
|
|
143
|
+
* database: "DB IN THE CLUSTER",
|
|
144
|
+
* storeName: "STORE NAME",
|
|
145
|
+
* },
|
|
146
|
+
* {
|
|
147
|
+
* storeName: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
148
|
+
* path: "GOOGLE CLOUD STORAGE BUCKET PATH",
|
|
149
|
+
* },
|
|
150
|
+
* ],
|
|
151
|
+
* }],
|
|
152
|
+
* }],
|
|
153
|
+
* storageStores: [
|
|
154
|
+
* {
|
|
155
|
+
* name: "STORE NAME",
|
|
156
|
+
* clusterName: "CLUSTER NAME",
|
|
157
|
+
* projectId: "PROJECT ID",
|
|
158
|
+
* provider: "atlas",
|
|
159
|
+
* readPreference: {
|
|
160
|
+
* mode: "secondary",
|
|
161
|
+
* },
|
|
162
|
+
* },
|
|
163
|
+
* {
|
|
164
|
+
* name: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
165
|
+
* provider: "gcs",
|
|
166
|
+
* region: "GOOGLE CLOUD REGION",
|
|
167
|
+
* bucket: "GOOGLE CLOUD STORAGE BUCKET NAME",
|
|
168
|
+
* prefix: "GOOGLE CLOUD STORAGE BUCKET PREFIX",
|
|
169
|
+
* delimiter: "/",
|
|
170
|
+
* },
|
|
171
|
+
* ],
|
|
172
|
+
* });
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
121
175
|
* ## Example specifying data process region and provider
|
|
122
176
|
*
|
|
123
177
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federatedDatabaseInstance.js","sourceRoot":"","sources":["../federatedDatabaseInstance.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"federatedDatabaseInstance.js","sourceRoot":"","sources":["../federatedDatabaseInstance.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Name: "admin",
|
|
66
66
|
* });
|
|
67
67
|
* ```
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
69
70
|
*/
|
|
70
71
|
export declare function getDatabaseUser(args: GetDatabaseUserArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseUserResult>;
|
|
71
72
|
/**
|
|
@@ -194,7 +195,8 @@ export interface GetDatabaseUserResult {
|
|
|
194
195
|
* authDatabaseName: "admin",
|
|
195
196
|
* });
|
|
196
197
|
* ```
|
|
197
|
-
*
|
|
198
|
+
*
|
|
199
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
198
200
|
*/
|
|
199
201
|
export declare function getDatabaseUserOutput(args: GetDatabaseUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseUserResult>;
|
|
200
202
|
/**
|
package/getDatabaseUser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatabaseUser.d.ts","sourceRoot":"","sources":["../getDatabaseUser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"getDatabaseUser.d.ts","sourceRoot":"","sources":["../getDatabaseUser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OA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H,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/getDatabaseUser.js
CHANGED
|
@@ -93,7 +93,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
93
93
|
* authDatabaseName: "admin",
|
|
94
94
|
* });
|
|
95
95
|
* ```
|
|
96
|
-
*
|
|
96
|
+
*
|
|
97
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
97
98
|
*/
|
|
98
99
|
function getDatabaseUser(args, opts) {
|
|
99
100
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -169,7 +170,8 @@ exports.getDatabaseUser = getDatabaseUser;
|
|
|
169
170
|
* authDatabaseName: "admin",
|
|
170
171
|
* });
|
|
171
172
|
* ```
|
|
172
|
-
*
|
|
173
|
+
*
|
|
174
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
173
175
|
*/
|
|
174
176
|
function getDatabaseUserOutput(args, opts) {
|
|
175
177
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/getDatabaseUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatabaseUser.js","sourceRoot":"","sources":["../getDatabaseUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatabaseUser.js","sourceRoot":"","sources":["../getDatabaseUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAgED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oDAAoD,EAAE;QACrF,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC"}
|
package/getDatabaseUsers.d.ts
CHANGED
|
@@ -61,7 +61,8 @@ import * as outputs from "./types/output";
|
|
|
61
61
|
* projectId: "6414908c207f4d22f4d8f232",
|
|
62
62
|
* });
|
|
63
63
|
* ```
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
65
66
|
*/
|
|
66
67
|
export declare function getDatabaseUsers(args: GetDatabaseUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseUsersResult>;
|
|
67
68
|
/**
|
|
@@ -151,7 +152,8 @@ export interface GetDatabaseUsersResult {
|
|
|
151
152
|
* projectId: "6414908c207f4d22f4d8f232",
|
|
152
153
|
* });
|
|
153
154
|
* ```
|
|
154
|
-
*
|
|
155
|
+
*
|
|
156
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
155
157
|
*/
|
|
156
158
|
export declare function getDatabaseUsersOutput(args: GetDatabaseUsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseUsersResult>;
|
|
157
159
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatabaseUsers.d.ts","sourceRoot":"","sources":["../getDatabaseUsers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"getDatabaseUsers.d.ts","sourceRoot":"","sources":["../getDatabaseUsers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAKzH;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,sBAAsB,EAAE,CAAC;CACtD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAKjJ;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
package/getDatabaseUsers.js
CHANGED
|
@@ -89,7 +89,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
89
89
|
* projectId: "6414908c207f4d22f4d8f232",
|
|
90
90
|
* });
|
|
91
91
|
* ```
|
|
92
|
-
*
|
|
92
|
+
*
|
|
93
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
93
94
|
*/
|
|
94
95
|
function getDatabaseUsers(args, opts) {
|
|
95
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -159,7 +160,8 @@ exports.getDatabaseUsers = getDatabaseUsers;
|
|
|
159
160
|
* projectId: "6414908c207f4d22f4d8f232",
|
|
160
161
|
* });
|
|
161
162
|
* ```
|
|
162
|
-
*
|
|
163
|
+
*
|
|
164
|
+
* Note: To learn more about OIDC federated authentication, see the [MongoDB Atlas documentation](https://www.mongodb.com/docs/atlas/security-oidc/).
|
|
163
165
|
*/
|
|
164
166
|
function getDatabaseUsersOutput(args, opts) {
|
|
165
167
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/getDatabaseUsers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatabaseUsers.js","sourceRoot":"","sources":["../getDatabaseUsers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatabaseUsers.js","sourceRoot":"","sources":["../getDatabaseUsers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC;AA6BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAAiC;IACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sDAAsD,EAAE;QACvF,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wDAKC"}
|
|
@@ -46,12 +46,21 @@ import * as outputs from "./types/output";
|
|
|
46
46
|
* const test = mongodbatlas.getFederatedDatabaseInstance({
|
|
47
47
|
* projectId: "<PROJECT_ID>",
|
|
48
48
|
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
49
|
-
* cloudProviderConfigs: [{
|
|
50
|
-
* azures: [{
|
|
51
|
-
* roleId: "<AZURE_ROLE_ID>",
|
|
52
|
-
* }],
|
|
53
|
-
* }],
|
|
54
49
|
* });
|
|
50
|
+
* export const azureRoleId = test.then(test => test.cloudProviderConfigs?.[0]?.azures?.[0]?.roleId);
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ## Example of Google Cloud Storage as storage database
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
58
|
+
*
|
|
59
|
+
* const test = mongodbatlas.getFederatedDatabaseInstance({
|
|
60
|
+
* projectId: "<PROJECT_ID>",
|
|
61
|
+
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
62
|
+
* });
|
|
63
|
+
* export const gcpServiceAccount = test.then(test => test.cloudProviderConfigs?.[0]?.gcps?.[0]?.gcpServiceAccount);
|
|
55
64
|
* ```
|
|
56
65
|
*/
|
|
57
66
|
export declare function getFederatedDatabaseInstance(args: GetFederatedDatabaseInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetFederatedDatabaseInstanceResult>;
|
|
@@ -125,8 +134,8 @@ export interface GetFederatedDatabaseInstanceResult {
|
|
|
125
134
|
* Each object in the array represents a data store. Federated Database uses the `storage.databases` configuration details to map data in each data store to queryable databases and collections. For complete documentation on this object and its nested fields, see [stores](https://www.mongodb.com/docs/atlas/data-federation/config/config-data-stores/). An empty object indicates that the Federated Database Instance has no configured data stores.
|
|
126
135
|
* * `storage_stores.#.name` - Name of the data store.
|
|
127
136
|
* * `storage_stores.#.provider` - Defines where the data is stored.
|
|
128
|
-
* * `storage_stores.#.region` - Name of the
|
|
129
|
-
* * `storage_stores.#.bucket` - Name of the
|
|
137
|
+
* * `storage_stores.#.region` - Name of the cloud provider region in which the bucket is hosted.
|
|
138
|
+
* * `storage_stores.#.bucket` - Name of the bucket.
|
|
130
139
|
* * `storage_stores.#.prefix` - Prefix the Federated Database Instance applies when searching for files in the S3 bucket.
|
|
131
140
|
* * `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
|
|
132
141
|
* * `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
|
|
@@ -190,12 +199,21 @@ export interface GetFederatedDatabaseInstanceResult {
|
|
|
190
199
|
* const test = mongodbatlas.getFederatedDatabaseInstance({
|
|
191
200
|
* projectId: "<PROJECT_ID>",
|
|
192
201
|
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
193
|
-
* cloudProviderConfigs: [{
|
|
194
|
-
* azures: [{
|
|
195
|
-
* roleId: "<AZURE_ROLE_ID>",
|
|
196
|
-
* }],
|
|
197
|
-
* }],
|
|
198
202
|
* });
|
|
203
|
+
* export const azureRoleId = test.then(test => test.cloudProviderConfigs?.[0]?.azures?.[0]?.roleId);
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* ## Example of Google Cloud Storage as storage database
|
|
207
|
+
*
|
|
208
|
+
* ```typescript
|
|
209
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
210
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
211
|
+
*
|
|
212
|
+
* const test = mongodbatlas.getFederatedDatabaseInstance({
|
|
213
|
+
* projectId: "<PROJECT_ID>",
|
|
214
|
+
* name: "<TENANT_NAME_OF_THE_FEDERATED_DATABASE_INSTANCE>",
|
|
215
|
+
* });
|
|
216
|
+
* export const gcpServiceAccount = test.then(test => test.cloudProviderConfigs?.[0]?.gcps?.[0]?.gcpServiceAccount);
|
|
199
217
|
* ```
|
|
200
218
|
*/
|
|
201
219
|
export declare function getFederatedDatabaseInstanceOutput(args: GetFederatedDatabaseInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFederatedDatabaseInstanceResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFederatedDatabaseInstance.d.ts","sourceRoot":"","sources":["../getFederatedDatabaseInstance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"getFederatedDatabaseInstance.d.ts","sourceRoot":"","sources":["../getFederatedDatabaseInstance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gCAAgC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAO7J;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,oBAAoB,CAAC,EAAE,MAAM,CAAC,+CAA+C,EAAE,CAAC;IAChF;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,+CAA+C,EAAE,CAA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