@@ -261,6 +261,11 @@ describe('AgentCoreGatewayTargetSchema', () => {
261261 name : 'myTarget' ,
262262 targetType : 'lambda' ,
263263 toolDefinitions : [ validToolDef ] ,
264+ compute : {
265+ host : 'Lambda' ,
266+ implementation : { language : 'Python' , path : 'tools' , handler : 'h' } ,
267+ pythonVersion : 'PYTHON_3_12' ,
268+ } ,
264269 } ) ;
265270 expect ( result . success ) . toBe ( true ) ;
266271 } ) ;
@@ -270,6 +275,11 @@ describe('AgentCoreGatewayTargetSchema', () => {
270275 name : 'myTarget' ,
271276 targetType : 'lambda' ,
272277 toolDefinitions : [ ] ,
278+ compute : {
279+ host : 'Lambda' ,
280+ implementation : { language : 'Python' , path : 'tools' , handler : 'h' } ,
281+ pythonVersion : 'PYTHON_3_12' ,
282+ } ,
273283 } ) ;
274284 expect ( result . success ) . toBe ( false ) ;
275285 } ) ;
@@ -303,6 +313,11 @@ describe('AgentCoreGatewaySchema', () => {
303313 name : 'target1' ,
304314 targetType : 'lambda' ,
305315 toolDefinitions : [ validToolDef ] ,
316+ compute : {
317+ host : 'Lambda' ,
318+ implementation : { language : 'Python' , path : 'tools' , handler : 'h' } ,
319+ pythonVersion : 'PYTHON_3_12' ,
320+ } ,
306321 } ,
307322 ] ,
308323 } ;
@@ -387,7 +402,18 @@ describe('AgentCoreMcpSpecSchema', () => {
387402 agentCoreGateways : [
388403 {
389404 name : 'gw1' ,
390- targets : [ { name : 't1' , targetType : 'lambda' , toolDefinitions : [ validToolDef ] } ] ,
405+ targets : [
406+ {
407+ name : 't1' ,
408+ targetType : 'lambda' ,
409+ toolDefinitions : [ validToolDef ] ,
410+ compute : {
411+ host : 'Lambda' ,
412+ implementation : { language : 'Python' , path : 'tools' , handler : 'h' } ,
413+ pythonVersion : 'PYTHON_3_12' ,
414+ } ,
415+ } ,
416+ ] ,
391417 } ,
392418 ] ,
393419 } ) ;
0 commit comments