Skip to content

Commit 5c23122

Browse files
committed
Capture Bedrock Agent Runtime #96
1 parent 8c1356e commit 5c23122

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

iamlivecore/proxy.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ func handleAWSRequest(req *http.Request, body []byte, respCode int) {
509509
if service == "CognitoIdentityProvider" {
510510
service = "CognitoIdentityServiceProvider"
511511
}
512+
if service == "AgentsforAmazonBedrockRuntime" {
513+
service = "BedrockAgentRuntime"
514+
}
512515

513516
if serviceDef.Metadata.Protocol == "json" {
514517
// JSON schema
@@ -1006,6 +1009,10 @@ func resolvePropertyName(obj ServiceStructure, searchProp string, path string, l
10061009
newPath := fmt.Sprintf("%s[]", path)
10071010
newLocationPath := fmt.Sprintf("%s[]", locationPath)
10081011

1012+
if strings.Count(newLocationPath, ".") > 10 { // prevent infinite recursion
1013+
return ""
1014+
}
1015+
10091016
ret = resolvePropertyName(*obj.Member, searchProp, newPath, newLocationPath, shapes)
10101017
if ret != "" {
10111018
return ret

0 commit comments

Comments
 (0)