aws-sdk-bedrockagentcore 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +328 -33
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +219 -5
- data/lib/aws-sdk-bedrockagentcore/endpoint_parameters.rb +4 -4
- data/lib/aws-sdk-bedrockagentcore/types.rb +492 -32
- data/lib/aws-sdk-bedrockagentcore.rb +2 -2
- data/sig/client.rbs +107 -2
- data/sig/types.rbs +140 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdcfa2602ac9f83b224441ae7333d2be98e2c8eba7a2e3f348e440cf2dce5e81
|
4
|
+
data.tar.gz: 48da26bb2c5188707fd023ac897ccc4b94486d0a575c6eab6c39cb279cbf0211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e8b3e64e72c817621fe80e72e7a2c752fc77b920fe77049386dff48b93bec46ae08d68dd00eca8f6f54f602086341a8bc23f2e3de1f0fbae4913cba1a76257a
|
7
|
+
data.tar.gz: 3836d95a566b590cfedfb9c82c0afa1280a4413b8db72577bc3754a73d3eceeda0a7a91404efc0cfa3bf96763751f7e4bb0c8ef568df173d1b61335067571aed
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.6.0 (2025-10-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add support for batch memory management, agent card retrieval and session termination
|
8
|
+
|
9
|
+
1.5.0 (2025-08-27)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Remove incorrect endpoint tests
|
13
|
+
|
4
14
|
1.4.0 (2025-08-26)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
@@ -487,6 +487,176 @@ module Aws::BedrockAgentCore
|
|
487
487
|
|
488
488
|
# @!group API Operations
|
489
489
|
|
490
|
+
# Creates multiple memory records in a single batch operation for the
|
491
|
+
# specified memory with custom content.
|
492
|
+
#
|
493
|
+
# @option params [required, String] :memory_id
|
494
|
+
# The unique ID of the memory resource where records will be created.
|
495
|
+
#
|
496
|
+
# @option params [required, Array<Types::MemoryRecordCreateInput>] :records
|
497
|
+
# A list of memory record creation inputs to be processed in the batch
|
498
|
+
# operation.
|
499
|
+
#
|
500
|
+
# @option params [String] :client_token
|
501
|
+
# A unique, case-sensitive identifier to ensure idempotent processing of
|
502
|
+
# the batch request.
|
503
|
+
#
|
504
|
+
# **A suitable default value is auto-generated.** You should normally
|
505
|
+
# not need to pass this option.**
|
506
|
+
#
|
507
|
+
# @return [Types::BatchCreateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
508
|
+
#
|
509
|
+
# * {Types::BatchCreateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
|
510
|
+
# * {Types::BatchCreateMemoryRecordsOutput#failed_records #failed_records} => Array<Types::MemoryRecordOutput>
|
511
|
+
#
|
512
|
+
# @example Request syntax with placeholder values
|
513
|
+
#
|
514
|
+
# resp = client.batch_create_memory_records({
|
515
|
+
# memory_id: "MemoryId", # required
|
516
|
+
# records: [ # required
|
517
|
+
# {
|
518
|
+
# request_identifier: "RequestIdentifier", # required
|
519
|
+
# namespaces: ["Namespace"], # required
|
520
|
+
# content: { # required
|
521
|
+
# text: "MemoryContentTextString",
|
522
|
+
# },
|
523
|
+
# timestamp: Time.now, # required
|
524
|
+
# memory_strategy_id: "MemoryStrategyId",
|
525
|
+
# },
|
526
|
+
# ],
|
527
|
+
# client_token: "String",
|
528
|
+
# })
|
529
|
+
#
|
530
|
+
# @example Response structure
|
531
|
+
#
|
532
|
+
# resp.successful_records #=> Array
|
533
|
+
# resp.successful_records[0].memory_record_id #=> String
|
534
|
+
# resp.successful_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
535
|
+
# resp.successful_records[0].request_identifier #=> String
|
536
|
+
# resp.successful_records[0].error_code #=> Integer
|
537
|
+
# resp.successful_records[0].error_message #=> String
|
538
|
+
# resp.failed_records #=> Array
|
539
|
+
# resp.failed_records[0].memory_record_id #=> String
|
540
|
+
# resp.failed_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
541
|
+
# resp.failed_records[0].request_identifier #=> String
|
542
|
+
# resp.failed_records[0].error_code #=> Integer
|
543
|
+
# resp.failed_records[0].error_message #=> String
|
544
|
+
#
|
545
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchCreateMemoryRecords AWS API Documentation
|
546
|
+
#
|
547
|
+
# @overload batch_create_memory_records(params = {})
|
548
|
+
# @param [Hash] params ({})
|
549
|
+
def batch_create_memory_records(params = {}, options = {})
|
550
|
+
req = build_request(:batch_create_memory_records, params)
|
551
|
+
req.send_request(options)
|
552
|
+
end
|
553
|
+
|
554
|
+
# Deletes multiple memory records in a single batch operation from the
|
555
|
+
# specified memory.
|
556
|
+
#
|
557
|
+
# @option params [required, String] :memory_id
|
558
|
+
# The unique ID of the memory resource where records will be deleted.
|
559
|
+
#
|
560
|
+
# @option params [required, Array<Types::MemoryRecordDeleteInput>] :records
|
561
|
+
# A list of memory record deletion inputs to be processed in the batch
|
562
|
+
# operation.
|
563
|
+
#
|
564
|
+
# @return [Types::BatchDeleteMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
565
|
+
#
|
566
|
+
# * {Types::BatchDeleteMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
|
567
|
+
# * {Types::BatchDeleteMemoryRecordsOutput#failed_records #failed_records} => Array<Types::MemoryRecordOutput>
|
568
|
+
#
|
569
|
+
# @example Request syntax with placeholder values
|
570
|
+
#
|
571
|
+
# resp = client.batch_delete_memory_records({
|
572
|
+
# memory_id: "MemoryId", # required
|
573
|
+
# records: [ # required
|
574
|
+
# {
|
575
|
+
# memory_record_id: "MemoryRecordId", # required
|
576
|
+
# },
|
577
|
+
# ],
|
578
|
+
# })
|
579
|
+
#
|
580
|
+
# @example Response structure
|
581
|
+
#
|
582
|
+
# resp.successful_records #=> Array
|
583
|
+
# resp.successful_records[0].memory_record_id #=> String
|
584
|
+
# resp.successful_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
585
|
+
# resp.successful_records[0].request_identifier #=> String
|
586
|
+
# resp.successful_records[0].error_code #=> Integer
|
587
|
+
# resp.successful_records[0].error_message #=> String
|
588
|
+
# resp.failed_records #=> Array
|
589
|
+
# resp.failed_records[0].memory_record_id #=> String
|
590
|
+
# resp.failed_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
591
|
+
# resp.failed_records[0].request_identifier #=> String
|
592
|
+
# resp.failed_records[0].error_code #=> Integer
|
593
|
+
# resp.failed_records[0].error_message #=> String
|
594
|
+
#
|
595
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchDeleteMemoryRecords AWS API Documentation
|
596
|
+
#
|
597
|
+
# @overload batch_delete_memory_records(params = {})
|
598
|
+
# @param [Hash] params ({})
|
599
|
+
def batch_delete_memory_records(params = {}, options = {})
|
600
|
+
req = build_request(:batch_delete_memory_records, params)
|
601
|
+
req.send_request(options)
|
602
|
+
end
|
603
|
+
|
604
|
+
# Updates multiple memory records with custom content in a single batch
|
605
|
+
# operation within the specified memory.
|
606
|
+
#
|
607
|
+
# @option params [required, String] :memory_id
|
608
|
+
# The unique ID of the memory resource where records will be updated.
|
609
|
+
#
|
610
|
+
# @option params [required, Array<Types::MemoryRecordUpdateInput>] :records
|
611
|
+
# A list of memory record update inputs to be processed in the batch
|
612
|
+
# operation.
|
613
|
+
#
|
614
|
+
# @return [Types::BatchUpdateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
615
|
+
#
|
616
|
+
# * {Types::BatchUpdateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
|
617
|
+
# * {Types::BatchUpdateMemoryRecordsOutput#failed_records #failed_records} => Array<Types::MemoryRecordOutput>
|
618
|
+
#
|
619
|
+
# @example Request syntax with placeholder values
|
620
|
+
#
|
621
|
+
# resp = client.batch_update_memory_records({
|
622
|
+
# memory_id: "MemoryId", # required
|
623
|
+
# records: [ # required
|
624
|
+
# {
|
625
|
+
# memory_record_id: "MemoryRecordId", # required
|
626
|
+
# timestamp: Time.now, # required
|
627
|
+
# content: {
|
628
|
+
# text: "MemoryContentTextString",
|
629
|
+
# },
|
630
|
+
# namespaces: ["Namespace"],
|
631
|
+
# memory_strategy_id: "MemoryStrategyId",
|
632
|
+
# },
|
633
|
+
# ],
|
634
|
+
# })
|
635
|
+
#
|
636
|
+
# @example Response structure
|
637
|
+
#
|
638
|
+
# resp.successful_records #=> Array
|
639
|
+
# resp.successful_records[0].memory_record_id #=> String
|
640
|
+
# resp.successful_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
641
|
+
# resp.successful_records[0].request_identifier #=> String
|
642
|
+
# resp.successful_records[0].error_code #=> Integer
|
643
|
+
# resp.successful_records[0].error_message #=> String
|
644
|
+
# resp.failed_records #=> Array
|
645
|
+
# resp.failed_records[0].memory_record_id #=> String
|
646
|
+
# resp.failed_records[0].status #=> String, one of "SUCCEEDED", "FAILED"
|
647
|
+
# resp.failed_records[0].request_identifier #=> String
|
648
|
+
# resp.failed_records[0].error_code #=> Integer
|
649
|
+
# resp.failed_records[0].error_message #=> String
|
650
|
+
#
|
651
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchUpdateMemoryRecords AWS API Documentation
|
652
|
+
#
|
653
|
+
# @overload batch_update_memory_records(params = {})
|
654
|
+
# @param [Hash] params ({})
|
655
|
+
def batch_update_memory_records(params = {}, options = {})
|
656
|
+
req = build_request(:batch_update_memory_records, params)
|
657
|
+
req.send_request(options)
|
658
|
+
end
|
659
|
+
|
490
660
|
# Creates an event in an AgentCore Memory resource. Events represent
|
491
661
|
# interactions or activities that occur within a session and are
|
492
662
|
# associated with specific actors.
|
@@ -529,6 +699,9 @@ module Aws::BedrockAgentCore
|
|
529
699
|
# **A suitable default value is auto-generated.** You should normally
|
530
700
|
# not need to pass this option.**
|
531
701
|
#
|
702
|
+
# @option params [Hash<String,Types::MetadataValue>] :metadata
|
703
|
+
# The key-value metadata to attach to the event.
|
704
|
+
#
|
532
705
|
# @return [Types::CreateEventOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
533
706
|
#
|
534
707
|
# * {Types::CreateEventOutput#event #event} => Types::Event
|
@@ -557,6 +730,11 @@ module Aws::BedrockAgentCore
|
|
557
730
|
# name: "BranchName", # required
|
558
731
|
# },
|
559
732
|
# client_token: "String",
|
733
|
+
# metadata: {
|
734
|
+
# "MetadataKey" => {
|
735
|
+
# string_value: "MetadataValueStringValueString",
|
736
|
+
# },
|
737
|
+
# },
|
560
738
|
# })
|
561
739
|
#
|
562
740
|
# @example Response structure
|
@@ -571,6 +749,8 @@ module Aws::BedrockAgentCore
|
|
571
749
|
# resp.event.payload[0].conversational.role #=> String, one of "ASSISTANT", "USER", "TOOL", "OTHER"
|
572
750
|
# resp.event.branch.root_event_id #=> String
|
573
751
|
# resp.event.branch.name #=> String
|
752
|
+
# resp.event.metadata #=> Hash
|
753
|
+
# resp.event.metadata["MetadataKey"].string_value #=> String
|
574
754
|
#
|
575
755
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/CreateEvent AWS API Documentation
|
576
756
|
#
|
@@ -647,7 +827,7 @@ module Aws::BedrockAgentCore
|
|
647
827
|
#
|
648
828
|
# resp = client.delete_memory_record({
|
649
829
|
# memory_id: "MemoryId", # required
|
650
|
-
# memory_record_id: "
|
830
|
+
# memory_record_id: "MemoryRecordId", # required
|
651
831
|
# })
|
652
832
|
#
|
653
833
|
# @example Response structure
|
@@ -663,6 +843,51 @@ module Aws::BedrockAgentCore
|
|
663
843
|
req.send_request(options)
|
664
844
|
end
|
665
845
|
|
846
|
+
# Retrieves the A2A agent card associated with an AgentCore Runtime
|
847
|
+
# agent.
|
848
|
+
#
|
849
|
+
# @option params [String] :runtime_session_id
|
850
|
+
# The session ID that the AgentCore Runtime agent is using.
|
851
|
+
#
|
852
|
+
# **A suitable default value is auto-generated.** You should normally
|
853
|
+
# not need to pass this option.**
|
854
|
+
#
|
855
|
+
# @option params [required, String] :agent_runtime_arn
|
856
|
+
# The ARN of the AgentCore Runtime agent for which you want to get the
|
857
|
+
# A2A agent card.
|
858
|
+
#
|
859
|
+
# @option params [String] :qualifier
|
860
|
+
# Optional qualifier to specify an agent alias, such as `prod`code>
|
861
|
+
# or `dev`. If you don't provide a value, the DEFAULT alias is used.
|
862
|
+
#
|
863
|
+
# @return [Types::GetAgentCardResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
864
|
+
#
|
865
|
+
# * {Types::GetAgentCardResponse#runtime_session_id #runtime_session_id} => String
|
866
|
+
# * {Types::GetAgentCardResponse#agent_card #agent_card} => Hash,Array,String,Numeric,Boolean
|
867
|
+
# * {Types::GetAgentCardResponse#status_code #status_code} => Integer
|
868
|
+
#
|
869
|
+
# @example Request syntax with placeholder values
|
870
|
+
#
|
871
|
+
# resp = client.get_agent_card({
|
872
|
+
# runtime_session_id: "SessionType",
|
873
|
+
# agent_runtime_arn: "String", # required
|
874
|
+
# qualifier: "String",
|
875
|
+
# })
|
876
|
+
#
|
877
|
+
# @example Response structure
|
878
|
+
#
|
879
|
+
# resp.runtime_session_id #=> String
|
880
|
+
# resp.status_code #=> Integer
|
881
|
+
#
|
882
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetAgentCard AWS API Documentation
|
883
|
+
#
|
884
|
+
# @overload get_agent_card(params = {})
|
885
|
+
# @param [Hash] params ({})
|
886
|
+
def get_agent_card(params = {}, options = {})
|
887
|
+
req = build_request(:get_agent_card, params)
|
888
|
+
req.send_request(options)
|
889
|
+
end
|
890
|
+
|
666
891
|
# Retrieves detailed information about a specific browser session in
|
667
892
|
# Amazon Bedrock. This operation returns the session's configuration,
|
668
893
|
# current status, associated streams, and metadata.
|
@@ -843,6 +1068,8 @@ module Aws::BedrockAgentCore
|
|
843
1068
|
# resp.event.payload[0].conversational.role #=> String, one of "ASSISTANT", "USER", "TOOL", "OTHER"
|
844
1069
|
# resp.event.branch.root_event_id #=> String
|
845
1070
|
# resp.event.branch.name #=> String
|
1071
|
+
# resp.event.metadata #=> Hash
|
1072
|
+
# resp.event.metadata["MetadataKey"].string_value #=> String
|
846
1073
|
#
|
847
1074
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetEvent AWS API Documentation
|
848
1075
|
#
|
@@ -873,7 +1100,7 @@ module Aws::BedrockAgentCore
|
|
873
1100
|
#
|
874
1101
|
# resp = client.get_memory_record({
|
875
1102
|
# memory_id: "MemoryId", # required
|
876
|
-
# memory_record_id: "
|
1103
|
+
# memory_record_id: "MemoryRecordId", # required
|
877
1104
|
# })
|
878
1105
|
#
|
879
1106
|
# @example Response structure
|
@@ -894,14 +1121,15 @@ module Aws::BedrockAgentCore
|
|
894
1121
|
req.send_request(options)
|
895
1122
|
end
|
896
1123
|
|
897
|
-
# Retrieves
|
1124
|
+
# Retrieves the API key associated with an API key credential provider.
|
898
1125
|
#
|
899
1126
|
# @option params [required, String] :workload_identity_token
|
900
|
-
# The identity token of the workload you want to
|
1127
|
+
# The identity token of the workload from which you want to retrieve the
|
1128
|
+
# API key.
|
901
1129
|
#
|
902
1130
|
# @option params [required, String] :resource_credential_provider_name
|
903
|
-
# The credential provider name
|
904
|
-
# API
|
1131
|
+
# The credential provider name for the resource from which you are
|
1132
|
+
# retrieving the API key.
|
905
1133
|
#
|
906
1134
|
# @return [Types::GetResourceApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
907
1135
|
#
|
@@ -927,32 +1155,34 @@ module Aws::BedrockAgentCore
|
|
927
1155
|
req.send_request(options)
|
928
1156
|
end
|
929
1157
|
|
930
|
-
# Returns the OAuth 2.0 token of the provided resource
|
1158
|
+
# Returns the OAuth 2.0 token of the provided resource.
|
931
1159
|
#
|
932
1160
|
# @option params [required, String] :workload_identity_token
|
933
|
-
# The identity token of the workload you want to
|
934
|
-
#
|
1161
|
+
# The identity token of the workload from which you want to retrieve the
|
1162
|
+
# OAuth2 token.
|
935
1163
|
#
|
936
1164
|
# @option params [required, String] :resource_credential_provider_name
|
937
|
-
#
|
1165
|
+
# The name of the resource's credential provider.
|
938
1166
|
#
|
939
1167
|
# @option params [required, Array<String>] :scopes
|
940
|
-
# The OAuth scopes requested
|
1168
|
+
# The OAuth scopes being requested.
|
941
1169
|
#
|
942
1170
|
# @option params [required, String] :oauth2_flow
|
943
|
-
# The type of flow to be performed
|
1171
|
+
# The type of flow to be performed.
|
944
1172
|
#
|
945
1173
|
# @option params [String] :resource_oauth_2_return_url
|
946
|
-
#
|
947
|
-
# one of the
|
1174
|
+
# The callback URL to redirect to after the OAuth 2.0 token retrieval is
|
1175
|
+
# complete. This URL must be one of the provided URLs configured for the
|
1176
|
+
# workload identity.
|
948
1177
|
#
|
949
1178
|
# @option params [Boolean] :force_authentication
|
950
|
-
#
|
1179
|
+
# Indicates whether to always initiate a new three-legged OAuth (3LO)
|
1180
|
+
# flow, regardless of any existing session.
|
951
1181
|
#
|
952
1182
|
# @option params [Hash<String,String>] :custom_parameters
|
953
|
-
#
|
954
|
-
#
|
955
|
-
# flow parameters will not
|
1183
|
+
# A map of custom parameters to include in the authorization request to
|
1184
|
+
# the resource credential provider. These parameters are in addition to
|
1185
|
+
# the standard OAuth 2.0 flow parameters, and will not override them.
|
956
1186
|
#
|
957
1187
|
# @return [Types::GetResourceOauth2TokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
958
1188
|
#
|
@@ -987,11 +1217,11 @@ module Aws::BedrockAgentCore
|
|
987
1217
|
req.send_request(options)
|
988
1218
|
end
|
989
1219
|
|
990
|
-
# Obtains
|
991
|
-
# behalf of user.
|
1220
|
+
# Obtains a workload access token for agentic workloads not acting on
|
1221
|
+
# behalf of a user.
|
992
1222
|
#
|
993
1223
|
# @option params [required, String] :workload_name
|
994
|
-
#
|
1224
|
+
# The unique identifier for the registered workload.
|
995
1225
|
#
|
996
1226
|
# @return [Types::GetWorkloadAccessTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
997
1227
|
#
|
@@ -1016,14 +1246,14 @@ module Aws::BedrockAgentCore
|
|
1016
1246
|
req.send_request(options)
|
1017
1247
|
end
|
1018
1248
|
|
1019
|
-
# Obtains
|
1020
|
-
#
|
1249
|
+
# Obtains a workload access token for agentic workloads acting on behalf
|
1250
|
+
# of a user, using a JWT token.
|
1021
1251
|
#
|
1022
1252
|
# @option params [required, String] :workload_name
|
1023
|
-
#
|
1253
|
+
# The unique identifier for the registered workload.
|
1024
1254
|
#
|
1025
1255
|
# @option params [required, String] :user_token
|
1026
|
-
#
|
1256
|
+
# The OAuth 2.0 token issued by the user's identity provider.
|
1027
1257
|
#
|
1028
1258
|
# @return [Types::GetWorkloadAccessTokenForJWTResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1029
1259
|
#
|
@@ -1049,14 +1279,15 @@ module Aws::BedrockAgentCore
|
|
1049
1279
|
req.send_request(options)
|
1050
1280
|
end
|
1051
1281
|
|
1052
|
-
# Obtains
|
1053
|
-
#
|
1282
|
+
# Obtains a workload access token for agentic workloads acting on behalf
|
1283
|
+
# of a user, using the user's ID.
|
1054
1284
|
#
|
1055
1285
|
# @option params [required, String] :workload_name
|
1056
|
-
# The name of the
|
1286
|
+
# The name of the workload from which you want to retrieve the access
|
1287
|
+
# token.
|
1057
1288
|
#
|
1058
1289
|
# @option params [required, String] :user_id
|
1059
|
-
# The
|
1290
|
+
# The ID of the user for whom you are retrieving the access token.
|
1060
1291
|
#
|
1061
1292
|
# @return [Types::GetWorkloadAccessTokenForUserIdResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1062
1293
|
#
|
@@ -1785,6 +2016,19 @@ module Aws::BedrockAgentCore
|
|
1785
2016
|
# name: "BranchName", # required
|
1786
2017
|
# include_parent_branches: false,
|
1787
2018
|
# },
|
2019
|
+
# event_metadata: [
|
2020
|
+
# {
|
2021
|
+
# left: { # required
|
2022
|
+
# metadata_key: "MetadataKey",
|
2023
|
+
# },
|
2024
|
+
# operator: "EQUALS_TO", # required, accepts EQUALS_TO, EXISTS, NOT_EXISTS
|
2025
|
+
# right: {
|
2026
|
+
# metadata_value: {
|
2027
|
+
# string_value: "MetadataValueStringValueString",
|
2028
|
+
# },
|
2029
|
+
# },
|
2030
|
+
# },
|
2031
|
+
# ],
|
1788
2032
|
# },
|
1789
2033
|
# max_results: 1,
|
1790
2034
|
# next_token: "PaginationToken",
|
@@ -1803,6 +2047,8 @@ module Aws::BedrockAgentCore
|
|
1803
2047
|
# resp.events[0].payload[0].conversational.role #=> String, one of "ASSISTANT", "USER", "TOOL", "OTHER"
|
1804
2048
|
# resp.events[0].branch.root_event_id #=> String
|
1805
2049
|
# resp.events[0].branch.name #=> String
|
2050
|
+
# resp.events[0].metadata #=> Hash
|
2051
|
+
# resp.events[0].metadata["MetadataKey"].string_value #=> String
|
1806
2052
|
# resp.next_token #=> String
|
1807
2053
|
#
|
1808
2054
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListEvents AWS API Documentation
|
@@ -2136,9 +2382,9 @@ module Aws::BedrockAgentCore
|
|
2136
2382
|
#
|
2137
2383
|
# @option params [Integer] :session_timeout_seconds
|
2138
2384
|
# The time in seconds after which the session automatically terminates
|
2139
|
-
# if there is no activity. The default value is
|
2140
|
-
# The minimum allowed value is 60 seconds, and the maximum
|
2141
|
-
# is 28800 seconds (8 hours).
|
2385
|
+
# if there is no activity. The default value is 900 seconds (15
|
2386
|
+
# minutes). The minimum allowed value is 60 seconds, and the maximum
|
2387
|
+
# allowed value is 28800 seconds (8 hours).
|
2142
2388
|
#
|
2143
2389
|
# @option params [String] :client_token
|
2144
2390
|
# A unique, case-sensitive identifier to ensure that the API request
|
@@ -2308,6 +2554,55 @@ module Aws::BedrockAgentCore
|
|
2308
2554
|
req.send_request(options)
|
2309
2555
|
end
|
2310
2556
|
|
2557
|
+
# Stops a session that is running in an running AgentCore Runtime agent.
|
2558
|
+
#
|
2559
|
+
# @option params [required, String] :runtime_session_id
|
2560
|
+
# The ID of the session that you want to stop.
|
2561
|
+
#
|
2562
|
+
# @option params [required, String] :agent_runtime_arn
|
2563
|
+
# The ARN of the agent that contains the session that you want to stop.
|
2564
|
+
#
|
2565
|
+
# @option params [String] :qualifier
|
2566
|
+
# Optional qualifier to specify an agent alias, such as `prod`code>
|
2567
|
+
# or `dev`. If you don't provide a value, the DEFAULT alias is used.
|
2568
|
+
#
|
2569
|
+
# @option params [String] :client_token
|
2570
|
+
# Idempotent token used to identify the request. If you use the same
|
2571
|
+
# token with multiple requests, the same response is returned. Use
|
2572
|
+
# ClientToken to prevent the same request from being processed more than
|
2573
|
+
# once.
|
2574
|
+
#
|
2575
|
+
# **A suitable default value is auto-generated.** You should normally
|
2576
|
+
# not need to pass this option.**
|
2577
|
+
#
|
2578
|
+
# @return [Types::StopRuntimeSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2579
|
+
#
|
2580
|
+
# * {Types::StopRuntimeSessionResponse#runtime_session_id #runtime_session_id} => String
|
2581
|
+
# * {Types::StopRuntimeSessionResponse#status_code #status_code} => Integer
|
2582
|
+
#
|
2583
|
+
# @example Request syntax with placeholder values
|
2584
|
+
#
|
2585
|
+
# resp = client.stop_runtime_session({
|
2586
|
+
# runtime_session_id: "SessionType", # required
|
2587
|
+
# agent_runtime_arn: "String", # required
|
2588
|
+
# qualifier: "String",
|
2589
|
+
# client_token: "ClientToken",
|
2590
|
+
# })
|
2591
|
+
#
|
2592
|
+
# @example Response structure
|
2593
|
+
#
|
2594
|
+
# resp.runtime_session_id #=> String
|
2595
|
+
# resp.status_code #=> Integer
|
2596
|
+
#
|
2597
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/StopRuntimeSession AWS API Documentation
|
2598
|
+
#
|
2599
|
+
# @overload stop_runtime_session(params = {})
|
2600
|
+
# @param [Hash] params ({})
|
2601
|
+
def stop_runtime_session(params = {}, options = {})
|
2602
|
+
req = build_request(:stop_runtime_session, params)
|
2603
|
+
req.send_request(options)
|
2604
|
+
end
|
2605
|
+
|
2311
2606
|
# Updates a browser stream. To use this operation, you must have
|
2312
2607
|
# permissions to perform the bedrock:UpdateBrowserStream action.
|
2313
2608
|
#
|
@@ -2385,7 +2680,7 @@ module Aws::BedrockAgentCore
|
|
2385
2680
|
tracer: tracer
|
2386
2681
|
)
|
2387
2682
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
2388
|
-
context[:gem_version] = '1.
|
2683
|
+
context[:gem_version] = '1.6.0'
|
2389
2684
|
Seahorse::Client::Request.new(handlers, context)
|
2390
2685
|
end
|
2391
2686
|
|