Skip to content

Commit d5fe923

Browse files
authored
chore(appsync): Tidy up README for Merged APIs (#27679)
* This change just updates the README to remove an unnecessary use of lazy and show the second api being associated with AUTO_MERGE mode which had been removed by mistake. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent afb3e67 commit d5fe923

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/aws-cdk-lib/aws-appsync/README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -377,18 +377,12 @@ const firstApi = new appsync.GraphqlApi(this, 'FirstSourceAPI', {
377377
name: 'FirstSourceAPI',
378378
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-1.graphql')),
379379
});
380-
firstApi.addNoneDataSource('FirstSourceDS', {
381-
name: cdk.Lazy.string({ produce(): string { return 'FirstSourceDS'; } }),
382-
});
383380

384381
// second source API
385382
const secondApi = new appsync.GraphqlApi(this, 'SecondSourceAPI', {
386383
name: 'SecondSourceAPI',
387384
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-2.graphql')),
388385
});
389-
secondApi.addNoneDataSource('SecondSourceDS', {
390-
name: cdk.Lazy.string({ produce(): string { return 'SecondSourceDS'; } }),
391-
});
392386

393387
// Merged API
394388
const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', {
@@ -399,6 +393,10 @@ const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', {
399393
sourceApi: firstApi,
400394
mergeType: appsync.MergeType.MANUAL_MERGE,
401395
},
396+
{
397+
sourceApi: secondApi,
398+
mergeType: appsync.MergeType.AUTO_MERGE,
399+
}
402400
],
403401
}),
404402
});

0 commit comments

Comments
 (0)