File tree Expand file tree Collapse file tree 3 files changed +750
-1416
lines changed Expand file tree Collapse file tree 3 files changed +750
-1416
lines changed Original file line number Diff line number Diff line change @@ -455,17 +455,20 @@ export class Agent extends Construct {
455
455
tags : props . tags ,
456
456
promptOverrideConfiguration : props . promptOverrideConfiguration ,
457
457
autoPrepare : props . shouldPrepareAgent ,
458
- guardrailConfiguration : {
459
- guardrailIdentifier : props . guardrailConfiguration ?. guardrailId ,
460
- guardrailVersion : props . guardrailConfiguration ?. guardrailVersion ,
461
- } ,
462
458
} ) ;
463
459
464
460
this . agentInstance = agent ;
465
461
this . agentId = agent . attrAgentId ;
466
462
this . agentArn = agent . attrAgentArn ;
467
463
this . agentversion = agent . attrAgentVersion ;
468
464
465
+ if ( props . guardrailConfiguration ) {
466
+ this . agentInstance . guardrailConfiguration = {
467
+ guardrailIdentifier : props . guardrailConfiguration ?. guardrailId ,
468
+ guardrailVersion : props . guardrailConfiguration ?. guardrailVersion ,
469
+ } ;
470
+ }
471
+
469
472
this . _addAliasDependency ( agent . attrUpdatedAt ) ;
470
473
471
474
if ( props . aliasName ) {
You can’t perform that action at this time.
0 commit comments