@@ -153,6 +153,8 @@ defmodule AWS.BedrockAgentCore do
153153 invoke_code_interpreter_request() :: %{
154154 optional("arguments") => tool_arguments(),
155155 optional("sessionId") => String.t() | atom(),
156+ optional("traceId") => [String.t() | atom()],
157+ optional("traceParent") => [String.t() | atom()],
156158 required("name") => list(any())
157159 }
158160
@@ -282,6 +284,8 @@ defmodule AWS.BedrockAgentCore do
282284
283285 stop_browser_session_request() :: %{
284286 optional("clientToken") => String.t() | atom(),
287+ optional("traceId") => [String.t() | atom()],
288+ optional("traceParent") => [String.t() | atom()],
285289 required("sessionId") => String.t() | atom()
286290 }
287291
@@ -412,6 +416,8 @@ defmodule AWS.BedrockAgentCore do
412416
413417 stop_code_interpreter_session_request() :: %{
414418 optional("clientToken") => String.t() | atom(),
419+ optional("traceId") => [String.t() | atom()],
420+ optional("traceParent") => [String.t() | atom()],
415421 required("sessionId") => String.t() | atom()
416422 }
417423
@@ -451,6 +457,8 @@ defmodule AWS.BedrockAgentCore do
451457 optional("clientToken") => String.t() | atom(),
452458 optional("name") => String.t() | atom(),
453459 optional("sessionTimeoutSeconds") => integer(),
460+ optional("traceId") => [String.t() | atom()],
461+ optional("traceParent") => [String.t() | atom()],
454462 optional("viewPort") => view_port()
455463 }
456464
@@ -601,7 +609,9 @@ defmodule AWS.BedrockAgentCore do
601609 start_code_interpreter_session_request() :: %{
602610 optional("clientToken") => String.t() | atom(),
603611 optional("name") => String.t() | atom(),
604- optional("sessionTimeoutSeconds") => integer()
612+ optional("sessionTimeoutSeconds") => integer(),
613+ optional("traceId") => [String.t() | atom()],
614+ optional("traceParent") => [String.t() | atom()]
605615 }
606616
607617 """
@@ -1639,7 +1649,7 @@ defmodule AWS.BedrockAgentCore do
16391649 custom_headers ++ headers ,
16401650 input ,
16411651 options ,
1642- 200
1652+ 201
16431653 )
16441654 end
16451655
@@ -1746,7 +1756,7 @@ defmodule AWS.BedrockAgentCore do
17461756 custom_headers ++ headers ,
17471757 input ,
17481758 options ,
1749- 200
1759+ 201
17501760 )
17511761 end
17521762
@@ -2218,7 +2228,10 @@ defmodule AWS.BedrockAgentCore do
22182228 Auth](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-oauth.html).
22192229
22202230 To use this operation, you must have the `bedrock-agentcore:InvokeAgentRuntime`
2221- permission.
2231+ permission. If you are making a call to `InvokeAgentRuntime` on behalf of a user
2232+ ID with the `X-Amzn-Bedrock-AgentCore-Runtime-User-Id` header, You require
2233+ permissions to both actions (`bedrock-agentcore:InvokeAgentRuntime` and
2234+ `bedrock-agentcore:InvokeAgentRuntimeForUser`).
22222235 """
22232236 @ spec invoke_agent_runtime ( map ( ) , String . t ( ) | atom ( ) , invoke_agent_runtime_request ( ) , list ( ) ) ::
22242237 { :ok , invoke_agent_runtime_response ( ) , any ( ) }
@@ -2324,7 +2337,9 @@ defmodule AWS.BedrockAgentCore do
23242337
23252338 { headers , input } =
23262339 [
2327- { "sessionId" , "x-amzn-code-interpreter-session-id" }
2340+ { "sessionId" , "x-amzn-code-interpreter-session-id" } ,
2341+ { "traceId" , "X-Amzn-Trace-Id" } ,
2342+ { "traceParent" , "traceparent" }
23282343 ]
23292344 |> Request . build_params ( input )
23302345
@@ -2682,7 +2697,14 @@ defmodule AWS.BedrockAgentCore do
26822697 | { :error , start_browser_session_errors ( ) }
26832698 def start_browser_session ( % Client { } = client , browser_identifier , input , options \\ [ ] ) do
26842699 url_path = "/browsers/#{ AWS.Util . encode_uri ( browser_identifier ) } /sessions/start"
2685- headers = [ ]
2700+
2701+ { headers , input } =
2702+ [
2703+ { "traceId" , "X-Amzn-Trace-Id" } ,
2704+ { "traceParent" , "traceparent" }
2705+ ]
2706+ |> Request . build_params ( input )
2707+
26862708 custom_headers = [ ]
26872709 query_params = [ ]
26882710
@@ -2740,7 +2762,13 @@ defmodule AWS.BedrockAgentCore do
27402762 url_path =
27412763 "/code-interpreters/#{ AWS.Util . encode_uri ( code_interpreter_identifier ) } /sessions/start"
27422764
2743- headers = [ ]
2765+ { headers , input } =
2766+ [
2767+ { "traceId" , "X-Amzn-Trace-Id" } ,
2768+ { "traceParent" , "traceparent" }
2769+ ]
2770+ |> Request . build_params ( input )
2771+
27442772 custom_headers = [ ]
27452773 query_params = [ ]
27462774
@@ -2782,7 +2810,14 @@ defmodule AWS.BedrockAgentCore do
27822810 | { :error , stop_browser_session_errors ( ) }
27832811 def stop_browser_session ( % Client { } = client , browser_identifier , input , options \\ [ ] ) do
27842812 url_path = "/browsers/#{ AWS.Util . encode_uri ( browser_identifier ) } /sessions/stop"
2785- headers = [ ]
2813+
2814+ { headers , input } =
2815+ [
2816+ { "traceId" , "X-Amzn-Trace-Id" } ,
2817+ { "traceParent" , "traceparent" }
2818+ ]
2819+ |> Request . build_params ( input )
2820+
27862821 custom_headers = [ ]
27872822
27882823 { query_params , input } =
@@ -2841,7 +2876,13 @@ defmodule AWS.BedrockAgentCore do
28412876 url_path =
28422877 "/code-interpreters/#{ AWS.Util . encode_uri ( code_interpreter_identifier ) } /sessions/stop"
28432878
2844- headers = [ ]
2879+ { headers , input } =
2880+ [
2881+ { "traceId" , "X-Amzn-Trace-Id" } ,
2882+ { "traceParent" , "traceparent" }
2883+ ]
2884+ |> Request . build_params ( input )
2885+
28452886 custom_headers = [ ]
28462887
28472888 { query_params , input } =
0 commit comments