Skip to content

Commit

Permalink
fix(docs): it is appsync log config ...
Browse files Browse the repository at this point in the history
  • Loading branch information
nikovirtala committed Aug 4, 2022
1 parent b8979b4 commit 46fc710
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-appsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ To obtain the GraphQL API's log group as a `logs.ILogGroup` use the `logGroup` p
```ts
import * as logs from '@aws-cdk/aws-logs';

const logConfig: logs.LogConfig = {
retention: RetentionDays.ONE_WEEK,
const logConfig: appsync.LogConfig = {
retention: logs.RetentionDays.ONE_WEEK,
};

new appsync.GraphqlApi(this, 'api', {
authorizationConfig: {},
name: 'myApi',
schema: appsync.Schema.fromAsset(join(__dirname, 'myApi.graphql')),
schema: appsync.Schema.fromAsset(path.join(__dirname, 'myApi.graphql')),
logConfig,
});
```
Expand Down

0 comments on commit 46fc710

Please sign in to comment.