Skip to content

Commit b2dee8a

Browse files
authored
Merge pull request aws-amplify#6049 from aws-amplify/palpatim.fix.cdk-types
2 parents dabe5db + f8aab85 commit b2dee8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/cli/graphql/overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export class BackendStack extends cdk.Stack {
8484
super(scope, id, props);
8585

8686
const amplifyApi = new AmplifyGraphqlApi(this, 'AmplifyCdkGraphQlApi', {
87-
schema: AmplifyGraphqlSchema.fromFiles(path.join(__dirname, "schema.graphql")),
88-
authorizationConfig: {
89-
defaultAuthMode: 'API_KEY',
87+
definition: AmplifyGraphqlDefinition.fromFiles(path.join(__dirname, "schema.graphql")),
88+
authorizationModes: {
89+
defaultAuthorizationMode: 'API_KEY',
9090
apiKeyConfig: {
9191
expires: cdk.Duration.days(30)
9292
}

0 commit comments

Comments
 (0)