@@ -15,7 +15,7 @@ import {BedrockExecutionRole} from "../resources/BedrockExecutionRole"
1515import { RuntimePolicies } from "../resources/RuntimePolicies"
1616import { VectorIndex } from "../resources/VectorIndex"
1717import { DatabaseTables } from "../resources/DatabaseTables"
18- import { BedrockPrompts } from "../resources/BedrockPrompts "
18+ import { BedrockPromptResources } from "../resources/BedrockPromptResources "
1919import { S3LambdaNotification } from "../constructs/S3LambdaNotification"
2020
2121const VECTOR_INDEX_NAME = "eps-assist-os-index"
@@ -56,8 +56,8 @@ export class EpsAssistMeStack extends Stack {
5656 stackName : props . stackName
5757 } )
5858
59- // Create Bedrock Prompts
60- const bedrockPrompts = new BedrockPrompts ( this , "BedrockPrompts " , {
59+ // Create Bedrock Prompt Resources
60+ const bedrockPromptResources = new BedrockPromptResources ( this , "BedrockPromptResources " , {
6161 stackName : props . stackName
6262 } )
6363
@@ -105,7 +105,7 @@ export class EpsAssistMeStack extends Stack {
105105 knowledgeBaseArn : vectorKB . knowledgeBase . attrKnowledgeBaseArn ,
106106 guardrailArn : vectorKB . guardrail . attrGuardrailArn ,
107107 dataSourceArn : vectorKB . dataSourceArn ,
108- promptName : bedrockPrompts . queryReformulationPrompt . promptName
108+ promptName : bedrockPromptResources . queryReformulationPrompt . promptName
109109 } )
110110
111111 // Create Functions construct with actual values from VectorKB
@@ -130,7 +130,7 @@ export class EpsAssistMeStack extends Stack {
130130 slackBotTokenSecret : secrets . slackBotTokenSecret ,
131131 slackBotSigningSecret : secrets . slackBotSigningSecret ,
132132 slackBotStateTable : tables . slackBotStateTable . table ,
133- promptName : bedrockPrompts . queryReformulationPrompt . promptName
133+ promptName : bedrockPromptResources . queryReformulationPrompt . promptName
134134 } )
135135
136136 // Create vector index after Functions are created
@@ -168,7 +168,7 @@ export class EpsAssistMeStack extends Stack {
168168
169169 // Output: Bedrock Prompt ARN
170170 new CfnOutput ( this , "QueryReformulationPromptArn" , {
171- value : bedrockPrompts . queryReformulationPrompt . promptArn ,
171+ value : bedrockPromptResources . queryReformulationPrompt . promptArn ,
172172 description : "ARN of the query reformulation prompt in Bedrock"
173173 } )
174174
0 commit comments