Skip to content

Commit

Permalink
fix(docs): fix module imports in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
nikovirtala committed Aug 4, 2022
1 parent 8bb4d6a commit b8979b4
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: LogConfig = {
const logConfig: logs.LogConfig = {
retention: RetentionDays.ONE_WEEK,
};

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

0 comments on commit b8979b4

Please sign in to comment.