Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use definition instead of schema #187

Merged
merged 3 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
const GITHUB_USER = 'awslabs';
const PUBLICATION_NAMESPACE = 'cdklabs';
const PROJECT_NAME = 'generative-ai-cdk-constructs';
const CDK_VERSION: string = '2.88.0';
const CDK_VERSION: string = '2.94.0';

const project = new awscdk.AwsCdkConstructLibrary({
author: 'Amazon Web Services - Prototyping and Cloud Engineering',
Expand Down
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/patterns/gen-ai/aws-qa-appsync-opensearch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class QaAppsyncOpensearch extends Construct {
'questionAnsweringGraphqlApi',
{
name: 'questionAnsweringGraphqlApi' + stage,
schema: appsync.SchemaFile.fromAsset(
definition: appsync.Definition.fromFile(
path.join(
__dirname,
'../../../../resources/gen-ai/aws-qa-appsync-opensearch/schema.graphql',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ export class RagAppsyncStepfnOpensearch extends Construct {
'ingestionGraphqlApi',
{
name: 'ingestionGraphqlApi'+stage,
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, '../../../../resources/gen-ai/aws-rag-appsync-stepfn-opensearch/schema.graphql')),
definition: appsync.Definition.fromFile(
path.join(__dirname, '../../../../resources/gen-ai/aws-rag-appsync-stepfn-opensearch/schema.graphql'),
),
authorizationConfig: {
defaultAuthorization: {
authorizationType: appsync.AuthorizationType.USER_POOL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ export class SummarizationAppsyncStepfn extends Construct {
{
name: apiName+stage,
logConfig: api_log_config,
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, '../../../../resources/gen-ai/aws-summarization-appsync-stepfn/schema.graphql')),
definition: appsync.Definition.fromFile(
path.join(__dirname, '../../../../resources/gen-ai/aws-summarization-appsync-stepfn/schema.graphql'),
),
authorizationConfig: authorizationConfig,
xrayEnabled: enable_xray,
});
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading