-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathmongodb-atlas-federateddatabaseinstance.json
More file actions
375 lines (375 loc) · 14.4 KB
/
mongodb-atlas-federateddatabaseinstance.json
File metadata and controls
375 lines (375 loc) · 14.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
{
"additionalProperties": false,
"definitions": {
"CloudProviderConfig": {
"type": "object",
"description": "Cloud provider linked to this Atlas Data Federation.",
"properties": {
"ExternalId": {
"type": "string",
"description": "Unique identifier of the role that the Atlas Data Federation can use to access the data stores.Required if specifying cloudProviderConfig."
},
"IamAssumedRoleARN": {
"type": "string",
"description": "Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the Atlas Data Federation assumes when accessing data stores."
},
"IamUserARN": {
"type": "string",
"description": "Amazon Resource Name (ARN) of the user that the Atlas Data Federation assumes when accessing data stores."
},
"RoleId": {
"type": "string",
"description": "Unique identifier of the role that the Atlas Data Federation can use to access the data stores.Required if specifying cloudProviderConfig."
},
"TestS3Bucket": {
"type": "string",
"description": "Name of the S3 data bucket that the provided role ID is authorized to access.Required if specifying cloudProviderConfig."
}
},
"additionalProperties": false
},
"DataProcessRegion": {
"type": "object",
"description": "Information about the cloud provider region to which the Atlas Data Federation routes client connections. MongoDB Cloud supports AWS only.",
"properties": {
"CloudProvider": {
"type": "string",
"description": "Name of the cloud service that hosts the Atlas Data Federation data stores."
},
"Region": {
"type": "string",
"description": "Name of the region to which the Atlas Data Federation routes client connections."
}
},
"required": [
"Region"
],
"additionalProperties": false
},
"Storage": {
"type": "object",
"description": "Configuration information for each data store and its mapping to MongoDB Cloud databases.",
"properties": {
"Databases": {
"type": "array",
"insertionOrder": false,
"description": "Array that contains the queryable databases and collections for this Atlas Data Federation.",
"items": {
"$ref": "#/definitions/Database",
"type": "object"
}
},
"Stores": {
"type": "array",
"insertionOrder": false,
"description": "Array that contains the data stores for the Atlas Data Federation.",
"items": {
"$ref": "#/definitions/Store",
"type": "object"
}
}
},
"additionalProperties": false
},
"Database": {
"type": "object",
"properties": {
"Collections": {
"type": "array",
"description": "Array of collections and data sources that map to a stores data store.",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/Collection",
"type": "object"
}
},
"MaxWildcardCollections": {
"type": "string",
"description": "Maximum number of wildcard collections in the database. This only applies to S3 data sources."
},
"Name": {
"type": "string",
"description": "Human-readable label that identifies the database to which the Atlas Data Federation maps data."
},
"Views": {
"type": "array",
"description": "Array of aggregation pipelines that apply to the collection. This only applies to S3 data sources.",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/View",
"type": "object"
}
}
},
"additionalProperties": false
},
"Store": {
"type": "object",
"description": "Array that contains the data stores for the Atlas Data Federation.",
"properties": {
"Name": {
"type": "string",
"description": "Human-readable label that identifies the data store. The databases.[n].collections.[n].dataSources.[n].storeName field references this values as part of the mapping configuration. To use MongoDB Cloud as a data store, the Atlas Data Federation requires a serverless instance or an M10 or higher cluster."
},
"Provider": {
"type": "string",
"description": "Allowed values atlas, http, online_archive, s3 and DataLakeAzureBlobStore."
},
"ClusterName": {
"type": "string",
"description": "Human-readable label of the MongoDB Cloud cluster on which the store is based."
},
"ProjectId": {
"type": "string",
"description": "Unique 24-hexadecimal digit string that identifies the project.Regex ^([a-f0-9]{24})$ ."
},
"ReadPreference": {
"type": "object",
"description": "MongoDB Cloud cluster read preference, which describes how to route read requests to the cluster.",
"$ref": "#/definitions/ReadPreference"
}
},
"additionalProperties": false
},
"Collection": {
"type": "object",
"description": "Array of collections and data sources that map to a stores data store.",
"properties": {
"DataSources": {
"type": "array",
"description": "Array that contains the data stores that map to a collection for this Atlas Data Federation.",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/DataSource",
"type": "object"
}
},
"Name": {
"type": "string"
}
},
"additionalProperties": false
},
"DataSource": {
"type": "object",
"properties": {
"AllowInsecure": {
"type": "boolean",
"description": "Flag that validates the scheme in the specified URLs. If true, allows insecure HTTP scheme, doesn't verify the server's certificate chain and hostname, and accepts any certificate with any hostname presented by the server. If false, allows secure HTTPS scheme only."
},
"Collection": {
"type": "string",
"description": "Human-readable label that identifies the collection in the database. For creating a wildcard (*) collection, you must omit this parameter."
},
"CollectionRegex": {
"type": "string",
"description": "Regex pattern to use for creating the wildcard (*) collection. To learn more about the regex syntax, see Go programming language.( https://pkg.go.dev/regexp )."
},
"Database": {
"type": "string",
"description": "Human-readable label that identifies the database, which contains the collection in the cluster. You must omit this parameter to generate wildcard (*) collections for dynamically generated databases."
},
"DatabaseRegex": {
"type": "string",
"description": "Regex pattern to use for creating the wildcard (*) collection. To learn more about the regex syntax, see Go programming language.( https://pkg.go.dev/regexp )."
},
"DefaultFormat": {
"type": "string",
"description": "File format that MongoDB Cloud uses if it encounters a file without a file extension while searching storeName.Enum: \".avro\" \".avro.bz2\" \".avro.gz\" \".bson\" \".bson.bz2\" \".bson.gz\" \".bsonx\" \".csv\" \".csv.bz2\" \".csv.gz\" \".json\" \".json.bz2\" \".json.gz\" \".orc\" \".parquet\" \".tsv\" \".tsv.bz2\" \".tsv.gz\"",
"default": ".avro"
},
"Path": {
"type": "string",
"description": "File path that controls how MongoDB Cloud searches for and parses files in the storeName before mapping them to a collection.Specify / to capture all files and folders from the prefix path."
},
"ProvenanceFieldName": {
"type": "string",
"description": "Name for the field that includes the provenance of the documents in the results. MongoDB Cloud returns different fields in the results for each supported provider."
},
"StoreName": {
"type": "string",
"description": "Human-readable label that identifies the data store that MongoDB Cloud maps to the collection."
},
"Urls": {
"type": "array",
"description": "URLs of the publicly accessible data files. You can't specify URLs that require authentication. Atlas Data Federation creates a partition for each URL. If empty or omitted, Data Federation uses the URLs from the store specified in the dataSources.storeName parameter.",
"insertionOrder": false,
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"View": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Human-readable label that identifies the view, which corresponds to an aggregation pipeline on a collection."
},
"Pipeline": {
"type": "string",
"description": "Aggregation pipeline stages to apply to the source collection."
},
"Source": {
"type": "string",
"description": "Human-readable label that identifies the source collection for the view."
}
},
"additionalProperties": false
},
"ReadPreference": {
"type": "object",
"properties": {
"Mode": {
"type": "string",
"description": "\"primary\" \"primaryPreferred\" \"secondary\" \"secondaryPreferred\" \"nearest\"\nRead preference mode that specifies to which replica set member to route the read requests."
},
"MaxStalenessSeconds": {
"type": "string",
"description": "Maximum replication lag, or staleness, for reads from secondaries."
},
"TagSets": {
"type": "array",
"description": "List that contains tag sets or tag specification documents. If specified, Atlas Data Federation routes read requests to replica set member or members that are associated with the specified tags.",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/ReadReferenceTags"
}
}
},
"additionalProperties": false
},
"ReadReferenceTags": {
"type": "array",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/TagSet"
},
"additionalProperties": false
},
"TagSet": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Human-readable label of the tag."
},
"Value": {
"type": "string",
"description": "Human-readable label of the tag."
}
},
"additionalProperties": false
}
},
"description": "Returns, adds, edits, and removes Federated Database Instances.",
"handlers": {
"create": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"read": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"update": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"delete": {
"permissions": [
"secretsmanager:GetSecretValue"
]
},
"list": {
"permissions": [
"secretsmanager:GetSecretValue"
]
}
},
"properties": {
"CloudProviderConfig": {
"type": "object",
"description": "Cloud provider linked to this Atlas Data Federation.",
"$ref": "#/definitions/CloudProviderConfig"
},
"DataProcessRegion": {
"type": "object",
"description": "Information about the cloud provider region to which the Atlas Data Federation routes client connections. MongoDB Cloud supports AWS only.",
"$ref": "#/definitions/DataProcessRegion"
},
"ProjectId": {
"type": "string",
"description": "Unique 24-hexadecimal digit string that identifies your project.",
"maxLength": 24,
"minLength": 24,
"pattern": "^([a-f0-9]{24})$"
},
"TenantName": {
"type": "string",
"description": "Human-readable label that identifies the data federation."
},
"SkipRoleValidation": {
"type": "boolean",
"description": "Flag that indicates whether this request should check if the requesting IAM role can read from the S3 bucket. AWS checks if the role can list the objects in the bucket before writing to it. Some IAM roles only need write permissions. This flag allows you to skip that check."
},
"Storage": {
"type": "object",
"description": "Configuration information for each data store and its mapping to MongoDB Cloud databases.",
"$ref": "#/definitions/Storage"
},
"State": {
"type": "string",
"description": "Type of Federated Database Instances to return."
},
"HostNames": {
"type": "array",
"insertionOrder": false,
"description": "Type of Federated Database Instances to return.",
"items": {
"type": "string"
}
},
"Profile": {
"type": "string",
"description": "The profile is defined in AWS Secret manager. See [Secret Manager Profile setup](../../../examples/profile-secret.yaml).",
"default": "default"
}
},
"readOnlyProperties": [
"/properties/CloudProviderConfig/ExternalId",
"/properties/CloudProviderConfig/IamAssumedRoleARN",
"/properties/CloudProviderConfig/IamUserARN",
"/properties/HostNames",
"/properties/State"
],
"writeOnlyProperties": [
"/properties/CloudProviderConfig/TestS3Bucket",
"/properties/SkipRoleValidation"
],
"createOnlyProperties": [
"/properties/ProjectId",
"/properties/TenantName",
"/properties/Profile"
],
"required": [
"ProjectId",
"TenantName"
],
"primaryIdentifier": [
"/properties/ProjectId",
"/properties/TenantName",
"/properties/Profile"
],
"typeName": "MongoDB::Atlas::FederatedDatabaseInstance",
"sourceUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/tree/master/cfn-resources/federated-database-instance",
"documentationUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/blob/master/cfn-resources/federated-database-instance/README.md",
"tagging": {
"taggable": false
}
}