Skip to content

Commit d9f65c2

Browse files
authored
chore: Generate L1 resources without datalake references (#527)
1 parent 475ad13 commit d9f65c2

File tree

14 files changed

+60
-1088
lines changed

14 files changed

+60
-1088
lines changed

API.md

Lines changed: 34 additions & 760 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/l1-resources/private-endpoint-adl.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

examples/l1-resources/private-endpoint-regional-mode.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ export class CdkTestingStack extends cdk.Stack {
1212
super(scope, id, props);
1313

1414
const atlasProps = this.getContextProps();
15-
const myPrivateEndpointAdl = new CfnPrivateEndPointRegionalMode(this, 'MyPrivateEndpointAdl', {
15+
const myPrivateEndpoint = new CfnPrivateEndPointRegionalMode(this, 'MyPrivateEndpoint', {
1616
projectId: atlasProps.projId,
17-
profile: atlasProps.profile,
17+
profile: atlasProps.profile,
1818
});
1919
}
2020

2121
getContextProps(): AtlasStackProps {
2222
const projId = this.node.tryGetContext('projId');
23-
if (!projId){
23+
if (!projId) {
2424
throw "No context value specified for projId. Please specify via the cdk context."
2525
}
26-
26+
2727
const profile = this.node.tryGetContext('profile') ?? 'default';
2828

2929

src/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ L1 constructs are called Cfn (short for CloudFormation) resources. These resourc
3232
| online-archive | Returns, adds, edits, or removes an online archive. | [README.md](l1-resources/online-archive/README.md) | |
3333
| org-invitation | Returns, adds, and edits organizational units in MongoDB Cloud. | [README.md](l1-resources/org-invitation/README.md) |
3434
| private-endpoint | The Private Endpoint creation flow consists of the creation of three related resources in the next order: 1. Atlas Private Endpoint Service 2. Aws VPC private Endpoint 3. Atlas Private Endpoint | [README.md](l1-resources/private-endpoint/README.md) |
35-
| private-endpoint-adl | Adds one private endpoint for Federated Database Instances and Online Archives to the specified projects. To use this resource, the requesting API Key must have the Project Atlas Admin or Project Charts Admin roles. This resource doesn't require the API Key to have an Access List. | [README.md](l1-resources/private-endpoint-adl/README.md) |
3635
| private-endpoint-regional-mode | This resource manages the private enpoint regional mode. | [README.md](l1-resources/private-endpoint-regional-mode/README.md) |
3736
| project | Retrieves or creates projects in any given Atlas organization. | [README.md](l1-resources/project/README.md) |
3837
| project-invitation | Returns, send project invitations. | [README.md](l1-resources/project-invitation/README.md) |

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,6 @@ export {
242242
PrivateEndpoint,
243243
} from "./l1-resources/private-endpoint";
244244

245-
export {
246-
CfnPrivateEndpointAdl,
247-
CfnPrivateEndpointAdlProps,
248-
} from "./l1-resources/private-endpoint-adl";
249-
250245
export {
251246
CfnPrivateEndpointAwsProps,
252247
CfnPrivateEndpointAws,

src/l1-resources/database-user/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface CfnDatabaseUserProps {
7979
readonly roles: RoleDefinition[];
8080

8181
/**
82-
* List that contains clusters and MongoDB Atlas Data Lakes that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters and MongoDB Atlas Data Lakes in the project.
82+
* List that contains clusters and MongoDB Atlas Data Federation that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters and MongoDB Atlas Data Federation in the project.
8383
*
8484
* @schema CfnDatabaseUserProps#Scopes
8585
*/

src/l1-resources/federated-database-instance/index.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import * as constructs from "constructs";
99
*/
1010
export interface CfnFederatedDatabaseInstanceProps {
1111
/**
12-
* Cloud provider linked to this data lake.
12+
* Cloud provider linked to this Atlas Data Federation.
1313
*
1414
* @schema CfnFederatedDatabaseInstanceProps#CloudProviderConfig
1515
*/
1616
readonly cloudProviderConfig?: CloudProviderConfig;
1717

1818
/**
19-
* Information about the cloud provider region to which the data lake routes client connections. MongoDB Cloud supports AWS only.
19+
* Information about the cloud provider region to which the Atlas Data Federation routes client connections. MongoDB Cloud supports AWS only.
2020
*
2121
* @schema CfnFederatedDatabaseInstanceProps#DataProcessRegion
2222
*/
@@ -86,34 +86,34 @@ export function toJson_CfnFederatedDatabaseInstanceProps(
8686
/* eslint-enable max-len, quote-props */
8787

8888
/**
89-
* Cloud provider linked to this data lake..
89+
* Cloud provider linked to this Atlas Data Federation.
9090
*
9191
* @schema CloudProviderConfig
9292
*/
9393
export interface CloudProviderConfig {
9494
/**
95-
* Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
95+
* Unique identifier of the role that the Atlas Data Federation can use to access the data stores.Required if specifying cloudProviderConfig.
9696
*
9797
* @schema CloudProviderConfig#ExternalId
9898
*/
9999
readonly externalId?: string;
100100

101101
/**
102-
* Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the data lake assumes when accessing data stores.
102+
* Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the Atlas Data Federation assumes when accessing data stores.
103103
*
104104
* @schema CloudProviderConfig#IamAssumedRoleARN
105105
*/
106106
readonly iamAssumedRoleArn?: string;
107107

108108
/**
109-
* Amazon Resource Name (ARN) of the user that the data lake assumes when accessing data stores.
109+
* Amazon Resource Name (ARN) of the user that the Atlas Data Federation assumes when accessing data stores.
110110
*
111111
* @schema CloudProviderConfig#IamUserARN
112112
*/
113113
readonly iamUserArn?: string;
114114

115115
/**
116-
* Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
116+
* Unique identifier of the role that the Atlas Data Federation can use to access the data stores.Required if specifying cloudProviderConfig.
117117
*
118118
* @schema CloudProviderConfig#RoleId
119119
*/
@@ -153,20 +153,20 @@ export function toJson_CloudProviderConfig(
153153
/* eslint-enable max-len, quote-props */
154154

155155
/**
156-
* Information about the cloud provider region to which the data lake routes client connections. MongoDB Cloud supports AWS only.
156+
* Information about the cloud provider region to which the Atlas Data Federation routes client connections. MongoDB Cloud supports AWS only.
157157
*
158158
* @schema DataProcessRegion
159159
*/
160160
export interface DataProcessRegion {
161161
/**
162-
* Name of the cloud service that hosts the data lake's data stores.
162+
* Name of the cloud service that hosts the Atlas Data Federation data stores.
163163
*
164164
* @schema DataProcessRegion#CloudProvider
165165
*/
166166
readonly cloudProvider?: string;
167167

168168
/**
169-
* Name of the region to which the data lake routes client connections.
169+
* Name of the region to which the Atlas Data Federation routes client connections.
170170
*
171171
* @schema DataProcessRegion#Region
172172
*/
@@ -202,14 +202,14 @@ export function toJson_DataProcessRegion(
202202
*/
203203
export interface Storage {
204204
/**
205-
* Array that contains the queryable databases and collections for this data lake.
205+
* Array that contains the queryable databases and collections for this Atlas Data Federation.
206206
*
207207
* @schema Storage#Databases
208208
*/
209209
readonly databases?: Database[];
210210

211211
/**
212-
* Array that contains the data stores for the data lake.
212+
* Array that contains the data stores for the Atlas Data Federation.
213213
*
214214
* @schema Storage#Stores
215215
*/
@@ -257,7 +257,7 @@ export interface Database {
257257
readonly maxWildcardCollections?: string;
258258

259259
/**
260-
* Human-readable label that identifies the database to which the data lake maps data.
260+
* Human-readable label that identifies the database to which the Atlas Data Federation maps data.
261261
*
262262
* @schema Database#Name
263263
*/
@@ -296,13 +296,13 @@ export function toJson_Database(
296296
/* eslint-enable max-len, quote-props */
297297

298298
/**
299-
* Array that contains the data stores for the data lake.
299+
* Array that contains the data stores for the Atlas Data Federation.
300300
*
301301
* @schema Store
302302
*/
303303
export interface Store {
304304
/**
305-
* 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 data lake requires a serverless instance or an M10 or higher cluster.
305+
* 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.
306306
*
307307
* @schema Store#Name
308308
*/
@@ -369,7 +369,7 @@ export function toJson_Store(
369369
*/
370370
export interface Collection {
371371
/**
372-
* Array that contains the data stores that map to a collection for this data lake.
372+
* Array that contains the data stores that map to a collection for this Atlas Data Federation.
373373
*
374374
* @schema Collection#DataSources
375375
*/
@@ -472,7 +472,7 @@ export interface ReadPreference {
472472
readonly maxStalenessSeconds?: string;
473473

474474
/**
475-
* List that contains tag sets or tag specification documents. If specified, Atlas Data Lake routes read requests to replica set member or members that are associated with the specified tags.
475+
* 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.
476476
*
477477
* @schema ReadPreference#TagSets
478478
*/
@@ -570,7 +570,7 @@ export interface DataSource {
570570
readonly storeName?: string;
571571

572572
/**
573-
* URLs of the publicly accessible data files. You can't specify URLs that require authentication. Atlas Data Lake creates a partition for each URL. If empty or omitted, Data Lake uses the URLs from the store specified in the dataSources.storeName parameter.
573+
* 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.
574574
*
575575
* @schema DataSource#Urls
576576
*/

src/l1-resources/private-endpoint-adl/README.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)