diff --git a/packages/aws-cdk-lib/aws-appsync/README.md b/packages/aws-cdk-lib/aws-appsync/README.md index ffae1b3f8ac20..637dbb230edb2 100644 --- a/packages/aws-cdk-lib/aws-appsync/README.md +++ b/packages/aws-cdk-lib/aws-appsync/README.md @@ -377,18 +377,12 @@ const firstApi = new appsync.GraphqlApi(this, 'FirstSourceAPI', { name: 'FirstSourceAPI', definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-1.graphql')), }); -firstApi.addNoneDataSource('FirstSourceDS', { - name: cdk.Lazy.string({ produce(): string { return 'FirstSourceDS'; } }), -}); // second source API const secondApi = new appsync.GraphqlApi(this, 'SecondSourceAPI', { name: 'SecondSourceAPI', definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-2.graphql')), }); -secondApi.addNoneDataSource('SecondSourceDS', { - name: cdk.Lazy.string({ produce(): string { return 'SecondSourceDS'; } }), -}); // Merged API const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', { @@ -399,6 +393,10 @@ const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', { sourceApi: firstApi, mergeType: appsync.MergeType.MANUAL_MERGE, }, + { + sourceApi: secondApi, + mergeType: appsync.MergeType.AUTO_MERGE, + } ], }), });