File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
aws-qa-appsync-opensearch
aws-rag-appsync-stepfn-opensearch
aws-summarization-appsync-stepfn Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ export class QaAppsyncOpensearch extends Construct {
295
295
'questionAnsweringGraphqlApi' ,
296
296
{
297
297
name : 'questionAnsweringGraphqlApi' + stage ,
298
- schema : appsync . SchemaFile . fromAsset (
298
+ definition : appsync . Definition . fromFile (
299
299
path . join (
300
300
__dirname ,
301
301
'../../../../resources/gen-ai/aws-qa-appsync-opensearch/schema.graphql' ,
Original file line number Diff line number Diff line change @@ -347,7 +347,9 @@ export class RagAppsyncStepfnOpensearch extends Construct {
347
347
'ingestionGraphqlApi' ,
348
348
{
349
349
name : 'ingestionGraphqlApi' + stage ,
350
- schema : appsync . SchemaFile . fromAsset ( path . join ( __dirname , '../../../../resources/gen-ai/aws-rag-appsync-stepfn-opensearch/schema.graphql' ) ) ,
350
+ definition : appsync . Definition . fromFile (
351
+ path . join ( __dirname , '../../../../resources/gen-ai/aws-rag-appsync-stepfn-opensearch/schema.graphql' ) ,
352
+ ) ,
351
353
authorizationConfig : {
352
354
defaultAuthorization : {
353
355
authorizationType : appsync . AuthorizationType . USER_POOL ,
Original file line number Diff line number Diff line change @@ -415,7 +415,9 @@ export class SummarizationAppsyncStepfn extends Construct {
415
415
{
416
416
name : apiName + stage ,
417
417
logConfig : api_log_config ,
418
- schema : appsync . SchemaFile . fromAsset ( path . join ( __dirname , '../../../../resources/gen-ai/aws-summarization-appsync-stepfn/schema.graphql' ) ) ,
418
+ definition : appsync . Definition . fromFile (
419
+ path . join ( __dirname , '../../../../resources/gen-ai/aws-summarization-appsync-stepfn/schema.graphql' ) ,
420
+ ) ,
419
421
authorizationConfig : authorizationConfig ,
420
422
xrayEnabled : enable_xray ,
421
423
} ) ;
You can’t perform that action at this time.
0 commit comments