aws-sdk-bedrockagentcore 1.25.0 → 1.26.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +125 -1
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +163 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +511 -0
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +50 -0
- data/sig/types.rbs +178 -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: ea4fca1f6f97bc3e61063e3f72e6afa741155e9d2f27a7e0214d7ac99279c0ba
|
|
4
|
+
data.tar.gz: 74ea48db646470c8534a2021ce8b7917ea6fcec4c3e3cb7021c12b0ea2f3b284
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3798a38970cafc42b11670c750e1fa99b995970e0574cf8c2b6aa8868b73192e1380ef7f46417f2fe8db9e3fb4ee218480e7a074fe6c9b37eb37fa53a29dc91f
|
|
7
|
+
data.tar.gz: e7e545870af90937885bc8f8149c26d759eb9463681295f149ed986e751f5a1084d3789856450e7aad34f17c0c0e32900ba9c693d32ab8542bd37497ff6fcdba
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.26.0 (2026-04-07)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release includes support for 1) InvokeBrowser API, enabling OS-level control of AgentCore Browser Tool sessions through mouse actions, keyboard input, and screenshots. 2) Added documentation noting that empty sessions are automatically deleted after one day in the ListSessions API.
|
|
8
|
+
|
|
4
9
|
1.25.0 (2026-04-01)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.26.0
|
|
@@ -1958,6 +1958,125 @@ module Aws::BedrockAgentCore
|
|
|
1958
1958
|
req.send_request(options, &block)
|
|
1959
1959
|
end
|
|
1960
1960
|
|
|
1961
|
+
# Invokes an operating system-level action on a browser session in
|
|
1962
|
+
# Amazon Bedrock AgentCore. This operation provides direct OS-level
|
|
1963
|
+
# control over browser sessions, enabling mouse actions, keyboard input,
|
|
1964
|
+
# and screenshots that the WebSocket-based Chrome DevTools Protocol
|
|
1965
|
+
# (CDP) cannot handle — such as interacting with print dialogs, context
|
|
1966
|
+
# menus, and JavaScript alerts.
|
|
1967
|
+
#
|
|
1968
|
+
# You send a request with exactly one action in the `BrowserAction`
|
|
1969
|
+
# union, and receive a corresponding result in the `BrowserActionResult`
|
|
1970
|
+
# union.
|
|
1971
|
+
#
|
|
1972
|
+
# The following operations are related to `InvokeBrowser`:
|
|
1973
|
+
#
|
|
1974
|
+
# * [StartBrowserSession][1]
|
|
1975
|
+
#
|
|
1976
|
+
# * [GetBrowserSession][2]
|
|
1977
|
+
#
|
|
1978
|
+
# * [StopBrowserSession][3]
|
|
1979
|
+
#
|
|
1980
|
+
#
|
|
1981
|
+
#
|
|
1982
|
+
# [1]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartBrowserSession.html
|
|
1983
|
+
# [2]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html
|
|
1984
|
+
# [3]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html
|
|
1985
|
+
#
|
|
1986
|
+
# @option params [required, String] :browser_identifier
|
|
1987
|
+
# The unique identifier of the browser associated with the session. This
|
|
1988
|
+
# must match the identifier used when creating the session with
|
|
1989
|
+
# `StartBrowserSession`.
|
|
1990
|
+
#
|
|
1991
|
+
# @option params [required, String] :session_id
|
|
1992
|
+
# The unique identifier of the browser session on which to perform the
|
|
1993
|
+
# action. This must be an active session created with
|
|
1994
|
+
# `StartBrowserSession`.
|
|
1995
|
+
#
|
|
1996
|
+
# @option params [required, Types::BrowserAction] :action
|
|
1997
|
+
# The browser action to perform. Exactly one member of the
|
|
1998
|
+
# `BrowserAction` union must be set per request.
|
|
1999
|
+
#
|
|
2000
|
+
# @return [Types::InvokeBrowserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2001
|
+
#
|
|
2002
|
+
# * {Types::InvokeBrowserResponse#result #result} => Types::BrowserActionResult
|
|
2003
|
+
# * {Types::InvokeBrowserResponse#session_id #session_id} => String
|
|
2004
|
+
#
|
|
2005
|
+
# @example Request syntax with placeholder values
|
|
2006
|
+
#
|
|
2007
|
+
# resp = client.invoke_browser({
|
|
2008
|
+
# browser_identifier: "String", # required
|
|
2009
|
+
# session_id: "BrowserSessionId", # required
|
|
2010
|
+
# action: { # required
|
|
2011
|
+
# mouse_click: {
|
|
2012
|
+
# x: 1, # required
|
|
2013
|
+
# y: 1, # required
|
|
2014
|
+
# button: "LEFT", # accepts LEFT, RIGHT, MIDDLE
|
|
2015
|
+
# click_count: 1,
|
|
2016
|
+
# },
|
|
2017
|
+
# mouse_move: {
|
|
2018
|
+
# x: 1, # required
|
|
2019
|
+
# y: 1, # required
|
|
2020
|
+
# },
|
|
2021
|
+
# mouse_drag: {
|
|
2022
|
+
# end_x: 1, # required
|
|
2023
|
+
# end_y: 1, # required
|
|
2024
|
+
# start_x: 1, # required
|
|
2025
|
+
# start_y: 1, # required
|
|
2026
|
+
# button: "LEFT", # accepts LEFT, RIGHT, MIDDLE
|
|
2027
|
+
# },
|
|
2028
|
+
# mouse_scroll: {
|
|
2029
|
+
# x: 1, # required
|
|
2030
|
+
# y: 1, # required
|
|
2031
|
+
# delta_x: 1,
|
|
2032
|
+
# delta_y: 1,
|
|
2033
|
+
# },
|
|
2034
|
+
# key_type: {
|
|
2035
|
+
# text: "KeyTypeArgumentsTextString", # required
|
|
2036
|
+
# },
|
|
2037
|
+
# key_press: {
|
|
2038
|
+
# key: "String", # required
|
|
2039
|
+
# presses: 1,
|
|
2040
|
+
# },
|
|
2041
|
+
# key_shortcut: {
|
|
2042
|
+
# keys: ["String"], # required
|
|
2043
|
+
# },
|
|
2044
|
+
# screenshot: {
|
|
2045
|
+
# format: "PNG", # accepts PNG
|
|
2046
|
+
# },
|
|
2047
|
+
# },
|
|
2048
|
+
# })
|
|
2049
|
+
#
|
|
2050
|
+
# @example Response structure
|
|
2051
|
+
#
|
|
2052
|
+
# resp.result.mouse_click.status #=> String, one of "SUCCESS", "FAILED"
|
|
2053
|
+
# resp.result.mouse_click.error #=> String
|
|
2054
|
+
# resp.result.mouse_move.status #=> String, one of "SUCCESS", "FAILED"
|
|
2055
|
+
# resp.result.mouse_move.error #=> String
|
|
2056
|
+
# resp.result.mouse_drag.status #=> String, one of "SUCCESS", "FAILED"
|
|
2057
|
+
# resp.result.mouse_drag.error #=> String
|
|
2058
|
+
# resp.result.mouse_scroll.status #=> String, one of "SUCCESS", "FAILED"
|
|
2059
|
+
# resp.result.mouse_scroll.error #=> String
|
|
2060
|
+
# resp.result.key_type.status #=> String, one of "SUCCESS", "FAILED"
|
|
2061
|
+
# resp.result.key_type.error #=> String
|
|
2062
|
+
# resp.result.key_press.status #=> String, one of "SUCCESS", "FAILED"
|
|
2063
|
+
# resp.result.key_press.error #=> String
|
|
2064
|
+
# resp.result.key_shortcut.status #=> String, one of "SUCCESS", "FAILED"
|
|
2065
|
+
# resp.result.key_shortcut.error #=> String
|
|
2066
|
+
# resp.result.screenshot.status #=> String, one of "SUCCESS", "FAILED"
|
|
2067
|
+
# resp.result.screenshot.error #=> String
|
|
2068
|
+
# resp.result.screenshot.data #=> String
|
|
2069
|
+
# resp.session_id #=> String
|
|
2070
|
+
#
|
|
2071
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeBrowser AWS API Documentation
|
|
2072
|
+
#
|
|
2073
|
+
# @overload invoke_browser(params = {})
|
|
2074
|
+
# @param [Hash] params ({})
|
|
2075
|
+
def invoke_browser(params = {}, options = {})
|
|
2076
|
+
req = build_request(:invoke_browser, params)
|
|
2077
|
+
req.send_request(options)
|
|
2078
|
+
end
|
|
2079
|
+
|
|
1961
2080
|
# Executes code within an active code interpreter session in Amazon
|
|
1962
2081
|
# Bedrock AgentCore. This operation processes the provided code, runs it
|
|
1963
2082
|
# in a secure environment, and returns the execution results including
|
|
@@ -2716,6 +2835,8 @@ module Aws::BedrockAgentCore
|
|
|
2716
2835
|
# criteria. We recommend using pagination to ensure that the operation
|
|
2717
2836
|
# returns quickly and successfully.
|
|
2718
2837
|
#
|
|
2838
|
+
# Empty sessions are automatically deleted after one day.
|
|
2839
|
+
#
|
|
2719
2840
|
# To use this operation, you must have the
|
|
2720
2841
|
# `bedrock-agentcore:ListSessions` permission.
|
|
2721
2842
|
#
|
|
@@ -2971,12 +3092,15 @@ module Aws::BedrockAgentCore
|
|
|
2971
3092
|
#
|
|
2972
3093
|
# * [StopBrowserSession][4]
|
|
2973
3094
|
#
|
|
3095
|
+
# * [InvokeBrowser][5]
|
|
3096
|
+
#
|
|
2974
3097
|
#
|
|
2975
3098
|
#
|
|
2976
3099
|
# [1]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html
|
|
2977
3100
|
# [2]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_UpdateBrowserStream.html
|
|
2978
3101
|
# [3]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_SaveBrowserSessionProfile.html
|
|
2979
3102
|
# [4]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html
|
|
3103
|
+
# [5]: https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_InvokeBrowser.html
|
|
2980
3104
|
#
|
|
2981
3105
|
# @option params [String] :trace_id
|
|
2982
3106
|
# The trace identifier for request tracking.
|
|
@@ -3550,7 +3674,7 @@ module Aws::BedrockAgentCore
|
|
|
3550
3674
|
tracer: tracer
|
|
3551
3675
|
)
|
|
3552
3676
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
3553
|
-
context[:gem_version] = '1.
|
|
3677
|
+
context[:gem_version] = '1.26.0'
|
|
3554
3678
|
Seahorse::Client::Request.new(handlers, context)
|
|
3555
3679
|
end
|
|
3556
3680
|
|
|
@@ -38,6 +38,9 @@ module Aws::BedrockAgentCore
|
|
|
38
38
|
Branch = Shapes::StructureShape.new(name: 'Branch')
|
|
39
39
|
BranchFilter = Shapes::StructureShape.new(name: 'BranchFilter')
|
|
40
40
|
BranchName = Shapes::StringShape.new(name: 'BranchName')
|
|
41
|
+
BrowserAction = Shapes::UnionShape.new(name: 'BrowserAction')
|
|
42
|
+
BrowserActionResult = Shapes::UnionShape.new(name: 'BrowserActionResult')
|
|
43
|
+
BrowserActionStatus = Shapes::StringShape.new(name: 'BrowserActionStatus')
|
|
41
44
|
BrowserEnterprisePolicies = Shapes::ListShape.new(name: 'BrowserEnterprisePolicies')
|
|
42
45
|
BrowserEnterprisePolicy = Shapes::StructureShape.new(name: 'BrowserEnterprisePolicy')
|
|
43
46
|
BrowserEnterprisePolicyType = Shapes::StringShape.new(name: 'BrowserEnterprisePolicyType')
|
|
@@ -174,10 +177,21 @@ module Aws::BedrockAgentCore
|
|
|
174
177
|
InvokeAgentRuntimeRequestTraceParentString = Shapes::StringShape.new(name: 'InvokeAgentRuntimeRequestTraceParentString')
|
|
175
178
|
InvokeAgentRuntimeRequestTraceStateString = Shapes::StringShape.new(name: 'InvokeAgentRuntimeRequestTraceStateString')
|
|
176
179
|
InvokeAgentRuntimeResponse = Shapes::StructureShape.new(name: 'InvokeAgentRuntimeResponse')
|
|
180
|
+
InvokeBrowserRequest = Shapes::StructureShape.new(name: 'InvokeBrowserRequest')
|
|
181
|
+
InvokeBrowserResponse = Shapes::StructureShape.new(name: 'InvokeBrowserResponse')
|
|
177
182
|
InvokeCodeInterpreterRequest = Shapes::StructureShape.new(name: 'InvokeCodeInterpreterRequest')
|
|
178
183
|
InvokeCodeInterpreterRequestTraceIdString = Shapes::StringShape.new(name: 'InvokeCodeInterpreterRequestTraceIdString')
|
|
179
184
|
InvokeCodeInterpreterRequestTraceParentString = Shapes::StringShape.new(name: 'InvokeCodeInterpreterRequestTraceParentString')
|
|
180
185
|
InvokeCodeInterpreterResponse = Shapes::StructureShape.new(name: 'InvokeCodeInterpreterResponse')
|
|
186
|
+
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
|
187
|
+
KeyPressArguments = Shapes::StructureShape.new(name: 'KeyPressArguments')
|
|
188
|
+
KeyPressArgumentsPressesInteger = Shapes::IntegerShape.new(name: 'KeyPressArgumentsPressesInteger')
|
|
189
|
+
KeyPressResult = Shapes::StructureShape.new(name: 'KeyPressResult')
|
|
190
|
+
KeyShortcutArguments = Shapes::StructureShape.new(name: 'KeyShortcutArguments')
|
|
191
|
+
KeyShortcutResult = Shapes::StructureShape.new(name: 'KeyShortcutResult')
|
|
192
|
+
KeyTypeArguments = Shapes::StructureShape.new(name: 'KeyTypeArguments')
|
|
193
|
+
KeyTypeArgumentsTextString = Shapes::StringShape.new(name: 'KeyTypeArgumentsTextString')
|
|
194
|
+
KeyTypeResult = Shapes::StructureShape.new(name: 'KeyTypeResult')
|
|
181
195
|
LanguageRuntime = Shapes::StringShape.new(name: 'LanguageRuntime')
|
|
182
196
|
LeftExpression = Shapes::UnionShape.new(name: 'LeftExpression')
|
|
183
197
|
ListActorsInput = Shapes::StructureShape.new(name: 'ListActorsInput')
|
|
@@ -225,6 +239,18 @@ module Aws::BedrockAgentCore
|
|
|
225
239
|
MetadataValue = Shapes::UnionShape.new(name: 'MetadataValue')
|
|
226
240
|
MetadataValueStringValueString = Shapes::StringShape.new(name: 'MetadataValueStringValueString')
|
|
227
241
|
MimeType = Shapes::StringShape.new(name: 'MimeType')
|
|
242
|
+
MouseButton = Shapes::StringShape.new(name: 'MouseButton')
|
|
243
|
+
MouseClickArguments = Shapes::StructureShape.new(name: 'MouseClickArguments')
|
|
244
|
+
MouseClickArgumentsClickCountInteger = Shapes::IntegerShape.new(name: 'MouseClickArgumentsClickCountInteger')
|
|
245
|
+
MouseClickResult = Shapes::StructureShape.new(name: 'MouseClickResult')
|
|
246
|
+
MouseDragArguments = Shapes::StructureShape.new(name: 'MouseDragArguments')
|
|
247
|
+
MouseDragResult = Shapes::StructureShape.new(name: 'MouseDragResult')
|
|
248
|
+
MouseMoveArguments = Shapes::StructureShape.new(name: 'MouseMoveArguments')
|
|
249
|
+
MouseMoveResult = Shapes::StructureShape.new(name: 'MouseMoveResult')
|
|
250
|
+
MouseScrollArguments = Shapes::StructureShape.new(name: 'MouseScrollArguments')
|
|
251
|
+
MouseScrollArgumentsDeltaXInteger = Shapes::IntegerShape.new(name: 'MouseScrollArgumentsDeltaXInteger')
|
|
252
|
+
MouseScrollArgumentsDeltaYInteger = Shapes::IntegerShape.new(name: 'MouseScrollArgumentsDeltaYInteger')
|
|
253
|
+
MouseScrollResult = Shapes::StructureShape.new(name: 'MouseScrollResult')
|
|
228
254
|
Name = Shapes::StringShape.new(name: 'Name')
|
|
229
255
|
Namespace = Shapes::StringShape.new(name: 'Namespace')
|
|
230
256
|
NamespacesList = Shapes::ListShape.new(name: 'NamespacesList')
|
|
@@ -266,6 +292,9 @@ module Aws::BedrockAgentCore
|
|
|
266
292
|
SaveBrowserSessionProfileResponse = Shapes::StructureShape.new(name: 'SaveBrowserSessionProfileResponse')
|
|
267
293
|
ScopeType = Shapes::StringShape.new(name: 'ScopeType')
|
|
268
294
|
ScopesListType = Shapes::ListShape.new(name: 'ScopesListType')
|
|
295
|
+
ScreenshotArguments = Shapes::StructureShape.new(name: 'ScreenshotArguments')
|
|
296
|
+
ScreenshotFormat = Shapes::StringShape.new(name: 'ScreenshotFormat')
|
|
297
|
+
ScreenshotResult = Shapes::StructureShape.new(name: 'ScreenshotResult')
|
|
269
298
|
SearchCriteria = Shapes::StructureShape.new(name: 'SearchCriteria')
|
|
270
299
|
SearchCriteriaSearchQueryString = Shapes::StringShape.new(name: 'SearchCriteriaSearchQueryString')
|
|
271
300
|
SearchCriteriaTopKInteger = Shapes::IntegerShape.new(name: 'SearchCriteriaTopKInteger')
|
|
@@ -386,6 +415,46 @@ module Aws::BedrockAgentCore
|
|
|
386
415
|
BranchFilter.add_member(:include_parent_branches, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeParentBranches"))
|
|
387
416
|
BranchFilter.struct_class = Types::BranchFilter
|
|
388
417
|
|
|
418
|
+
BrowserAction.add_member(:mouse_click, Shapes::ShapeRef.new(shape: MouseClickArguments, location_name: "mouseClick"))
|
|
419
|
+
BrowserAction.add_member(:mouse_move, Shapes::ShapeRef.new(shape: MouseMoveArguments, location_name: "mouseMove"))
|
|
420
|
+
BrowserAction.add_member(:mouse_drag, Shapes::ShapeRef.new(shape: MouseDragArguments, location_name: "mouseDrag"))
|
|
421
|
+
BrowserAction.add_member(:mouse_scroll, Shapes::ShapeRef.new(shape: MouseScrollArguments, location_name: "mouseScroll"))
|
|
422
|
+
BrowserAction.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyTypeArguments, location_name: "keyType"))
|
|
423
|
+
BrowserAction.add_member(:key_press, Shapes::ShapeRef.new(shape: KeyPressArguments, location_name: "keyPress"))
|
|
424
|
+
BrowserAction.add_member(:key_shortcut, Shapes::ShapeRef.new(shape: KeyShortcutArguments, location_name: "keyShortcut"))
|
|
425
|
+
BrowserAction.add_member(:screenshot, Shapes::ShapeRef.new(shape: ScreenshotArguments, location_name: "screenshot"))
|
|
426
|
+
BrowserAction.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
427
|
+
BrowserAction.add_member_subclass(:mouse_click, Types::BrowserAction::MouseClick)
|
|
428
|
+
BrowserAction.add_member_subclass(:mouse_move, Types::BrowserAction::MouseMove)
|
|
429
|
+
BrowserAction.add_member_subclass(:mouse_drag, Types::BrowserAction::MouseDrag)
|
|
430
|
+
BrowserAction.add_member_subclass(:mouse_scroll, Types::BrowserAction::MouseScroll)
|
|
431
|
+
BrowserAction.add_member_subclass(:key_type, Types::BrowserAction::KeyType)
|
|
432
|
+
BrowserAction.add_member_subclass(:key_press, Types::BrowserAction::KeyPress)
|
|
433
|
+
BrowserAction.add_member_subclass(:key_shortcut, Types::BrowserAction::KeyShortcut)
|
|
434
|
+
BrowserAction.add_member_subclass(:screenshot, Types::BrowserAction::Screenshot)
|
|
435
|
+
BrowserAction.add_member_subclass(:unknown, Types::BrowserAction::Unknown)
|
|
436
|
+
BrowserAction.struct_class = Types::BrowserAction
|
|
437
|
+
|
|
438
|
+
BrowserActionResult.add_member(:mouse_click, Shapes::ShapeRef.new(shape: MouseClickResult, location_name: "mouseClick"))
|
|
439
|
+
BrowserActionResult.add_member(:mouse_move, Shapes::ShapeRef.new(shape: MouseMoveResult, location_name: "mouseMove"))
|
|
440
|
+
BrowserActionResult.add_member(:mouse_drag, Shapes::ShapeRef.new(shape: MouseDragResult, location_name: "mouseDrag"))
|
|
441
|
+
BrowserActionResult.add_member(:mouse_scroll, Shapes::ShapeRef.new(shape: MouseScrollResult, location_name: "mouseScroll"))
|
|
442
|
+
BrowserActionResult.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyTypeResult, location_name: "keyType"))
|
|
443
|
+
BrowserActionResult.add_member(:key_press, Shapes::ShapeRef.new(shape: KeyPressResult, location_name: "keyPress"))
|
|
444
|
+
BrowserActionResult.add_member(:key_shortcut, Shapes::ShapeRef.new(shape: KeyShortcutResult, location_name: "keyShortcut"))
|
|
445
|
+
BrowserActionResult.add_member(:screenshot, Shapes::ShapeRef.new(shape: ScreenshotResult, location_name: "screenshot"))
|
|
446
|
+
BrowserActionResult.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
447
|
+
BrowserActionResult.add_member_subclass(:mouse_click, Types::BrowserActionResult::MouseClick)
|
|
448
|
+
BrowserActionResult.add_member_subclass(:mouse_move, Types::BrowserActionResult::MouseMove)
|
|
449
|
+
BrowserActionResult.add_member_subclass(:mouse_drag, Types::BrowserActionResult::MouseDrag)
|
|
450
|
+
BrowserActionResult.add_member_subclass(:mouse_scroll, Types::BrowserActionResult::MouseScroll)
|
|
451
|
+
BrowserActionResult.add_member_subclass(:key_type, Types::BrowserActionResult::KeyType)
|
|
452
|
+
BrowserActionResult.add_member_subclass(:key_press, Types::BrowserActionResult::KeyPress)
|
|
453
|
+
BrowserActionResult.add_member_subclass(:key_shortcut, Types::BrowserActionResult::KeyShortcut)
|
|
454
|
+
BrowserActionResult.add_member_subclass(:screenshot, Types::BrowserActionResult::Screenshot)
|
|
455
|
+
BrowserActionResult.add_member_subclass(:unknown, Types::BrowserActionResult::Unknown)
|
|
456
|
+
BrowserActionResult.struct_class = Types::BrowserActionResult
|
|
457
|
+
|
|
389
458
|
BrowserEnterprisePolicies.member = Shapes::ShapeRef.new(shape: BrowserEnterprisePolicy)
|
|
390
459
|
|
|
391
460
|
BrowserEnterprisePolicy.add_member(:location, Shapes::ShapeRef.new(shape: ResourceLocation, required: true, location_name: "location"))
|
|
@@ -843,6 +912,15 @@ module Aws::BedrockAgentCore
|
|
|
843
912
|
InvokeAgentRuntimeResponse[:payload] = :response
|
|
844
913
|
InvokeAgentRuntimeResponse[:payload_member] = InvokeAgentRuntimeResponse.member(:response)
|
|
845
914
|
|
|
915
|
+
InvokeBrowserRequest.add_member(:browser_identifier, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "browserIdentifier"))
|
|
916
|
+
InvokeBrowserRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: BrowserSessionId, required: true, location: "header", location_name: "x-amzn-browser-session-id"))
|
|
917
|
+
InvokeBrowserRequest.add_member(:action, Shapes::ShapeRef.new(shape: BrowserAction, required: true, location_name: "action"))
|
|
918
|
+
InvokeBrowserRequest.struct_class = Types::InvokeBrowserRequest
|
|
919
|
+
|
|
920
|
+
InvokeBrowserResponse.add_member(:result, Shapes::ShapeRef.new(shape: BrowserActionResult, required: true, location_name: "result"))
|
|
921
|
+
InvokeBrowserResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: BrowserSessionId, required: true, location: "header", location_name: "x-amzn-browser-session-id"))
|
|
922
|
+
InvokeBrowserResponse.struct_class = Types::InvokeBrowserResponse
|
|
923
|
+
|
|
846
924
|
InvokeCodeInterpreterRequest.add_member(:code_interpreter_identifier, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "codeInterpreterIdentifier"))
|
|
847
925
|
InvokeCodeInterpreterRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: CodeInterpreterSessionId, location: "header", location_name: "x-amzn-code-interpreter-session-id"))
|
|
848
926
|
InvokeCodeInterpreterRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: InvokeCodeInterpreterRequestTraceIdString, location: "header", location_name: "X-Amzn-Trace-Id"))
|
|
@@ -857,6 +935,30 @@ module Aws::BedrockAgentCore
|
|
|
857
935
|
InvokeCodeInterpreterResponse[:payload] = :stream
|
|
858
936
|
InvokeCodeInterpreterResponse[:payload_member] = InvokeCodeInterpreterResponse.member(:stream)
|
|
859
937
|
|
|
938
|
+
KeyList.member = Shapes::ShapeRef.new(shape: String)
|
|
939
|
+
|
|
940
|
+
KeyPressArguments.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "key"))
|
|
941
|
+
KeyPressArguments.add_member(:presses, Shapes::ShapeRef.new(shape: KeyPressArgumentsPressesInteger, location_name: "presses"))
|
|
942
|
+
KeyPressArguments.struct_class = Types::KeyPressArguments
|
|
943
|
+
|
|
944
|
+
KeyPressResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
945
|
+
KeyPressResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
946
|
+
KeyPressResult.struct_class = Types::KeyPressResult
|
|
947
|
+
|
|
948
|
+
KeyShortcutArguments.add_member(:keys, Shapes::ShapeRef.new(shape: KeyList, required: true, location_name: "keys"))
|
|
949
|
+
KeyShortcutArguments.struct_class = Types::KeyShortcutArguments
|
|
950
|
+
|
|
951
|
+
KeyShortcutResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
952
|
+
KeyShortcutResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
953
|
+
KeyShortcutResult.struct_class = Types::KeyShortcutResult
|
|
954
|
+
|
|
955
|
+
KeyTypeArguments.add_member(:text, Shapes::ShapeRef.new(shape: KeyTypeArgumentsTextString, required: true, location_name: "text"))
|
|
956
|
+
KeyTypeArguments.struct_class = Types::KeyTypeArguments
|
|
957
|
+
|
|
958
|
+
KeyTypeResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
959
|
+
KeyTypeResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
960
|
+
KeyTypeResult.struct_class = Types::KeyTypeResult
|
|
961
|
+
|
|
860
962
|
LeftExpression.add_member(:metadata_key, Shapes::ShapeRef.new(shape: MetadataKey, location_name: "metadataKey"))
|
|
861
963
|
LeftExpression.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
862
964
|
LeftExpression.add_member_subclass(:metadata_key, Types::LeftExpression::MetadataKey)
|
|
@@ -1019,6 +1121,45 @@ module Aws::BedrockAgentCore
|
|
|
1019
1121
|
MetadataValue.add_member_subclass(:unknown, Types::MetadataValue::Unknown)
|
|
1020
1122
|
MetadataValue.struct_class = Types::MetadataValue
|
|
1021
1123
|
|
|
1124
|
+
MouseClickArguments.add_member(:x, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "x"))
|
|
1125
|
+
MouseClickArguments.add_member(:y, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "y"))
|
|
1126
|
+
MouseClickArguments.add_member(:button, Shapes::ShapeRef.new(shape: MouseButton, location_name: "button"))
|
|
1127
|
+
MouseClickArguments.add_member(:click_count, Shapes::ShapeRef.new(shape: MouseClickArgumentsClickCountInteger, location_name: "clickCount"))
|
|
1128
|
+
MouseClickArguments.struct_class = Types::MouseClickArguments
|
|
1129
|
+
|
|
1130
|
+
MouseClickResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
1131
|
+
MouseClickResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
1132
|
+
MouseClickResult.struct_class = Types::MouseClickResult
|
|
1133
|
+
|
|
1134
|
+
MouseDragArguments.add_member(:end_x, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "endX"))
|
|
1135
|
+
MouseDragArguments.add_member(:end_y, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "endY"))
|
|
1136
|
+
MouseDragArguments.add_member(:start_x, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "startX"))
|
|
1137
|
+
MouseDragArguments.add_member(:start_y, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "startY"))
|
|
1138
|
+
MouseDragArguments.add_member(:button, Shapes::ShapeRef.new(shape: MouseButton, location_name: "button"))
|
|
1139
|
+
MouseDragArguments.struct_class = Types::MouseDragArguments
|
|
1140
|
+
|
|
1141
|
+
MouseDragResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
1142
|
+
MouseDragResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
1143
|
+
MouseDragResult.struct_class = Types::MouseDragResult
|
|
1144
|
+
|
|
1145
|
+
MouseMoveArguments.add_member(:x, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "x"))
|
|
1146
|
+
MouseMoveArguments.add_member(:y, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "y"))
|
|
1147
|
+
MouseMoveArguments.struct_class = Types::MouseMoveArguments
|
|
1148
|
+
|
|
1149
|
+
MouseMoveResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
1150
|
+
MouseMoveResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
1151
|
+
MouseMoveResult.struct_class = Types::MouseMoveResult
|
|
1152
|
+
|
|
1153
|
+
MouseScrollArguments.add_member(:x, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "x"))
|
|
1154
|
+
MouseScrollArguments.add_member(:y, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "y"))
|
|
1155
|
+
MouseScrollArguments.add_member(:delta_x, Shapes::ShapeRef.new(shape: MouseScrollArgumentsDeltaXInteger, location_name: "deltaX"))
|
|
1156
|
+
MouseScrollArguments.add_member(:delta_y, Shapes::ShapeRef.new(shape: MouseScrollArgumentsDeltaYInteger, location_name: "deltaY"))
|
|
1157
|
+
MouseScrollArguments.struct_class = Types::MouseScrollArguments
|
|
1158
|
+
|
|
1159
|
+
MouseScrollResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
1160
|
+
MouseScrollResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
1161
|
+
MouseScrollResult.struct_class = Types::MouseScrollResult
|
|
1162
|
+
|
|
1022
1163
|
NamespacesList.member = Shapes::ShapeRef.new(shape: Namespace)
|
|
1023
1164
|
|
|
1024
1165
|
PayloadType.add_member(:conversational, Shapes::ShapeRef.new(shape: Conversational, location_name: "conversational"))
|
|
@@ -1117,6 +1258,14 @@ module Aws::BedrockAgentCore
|
|
|
1117
1258
|
|
|
1118
1259
|
ScopesListType.member = Shapes::ShapeRef.new(shape: ScopeType)
|
|
1119
1260
|
|
|
1261
|
+
ScreenshotArguments.add_member(:format, Shapes::ShapeRef.new(shape: ScreenshotFormat, location_name: "format"))
|
|
1262
|
+
ScreenshotArguments.struct_class = Types::ScreenshotArguments
|
|
1263
|
+
|
|
1264
|
+
ScreenshotResult.add_member(:status, Shapes::ShapeRef.new(shape: BrowserActionStatus, required: true, location_name: "status"))
|
|
1265
|
+
ScreenshotResult.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
|
1266
|
+
ScreenshotResult.add_member(:data, Shapes::ShapeRef.new(shape: Blob, location_name: "data"))
|
|
1267
|
+
ScreenshotResult.struct_class = Types::ScreenshotResult
|
|
1268
|
+
|
|
1120
1269
|
SearchCriteria.add_member(:search_query, Shapes::ShapeRef.new(shape: SearchCriteriaSearchQueryString, required: true, location_name: "searchQuery"))
|
|
1121
1270
|
SearchCriteria.add_member(:memory_strategy_id, Shapes::ShapeRef.new(shape: MemoryStrategyId, location_name: "memoryStrategyId"))
|
|
1122
1271
|
SearchCriteria.add_member(:top_k, Shapes::ShapeRef.new(shape: SearchCriteriaTopKInteger, location_name: "topK"))
|
|
@@ -1615,6 +1764,20 @@ module Aws::BedrockAgentCore
|
|
|
1615
1764
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
1616
1765
|
end)
|
|
1617
1766
|
|
|
1767
|
+
api.add_operation(:invoke_browser, Seahorse::Model::Operation.new.tap do |o|
|
|
1768
|
+
o.name = "InvokeBrowser"
|
|
1769
|
+
o.http_method = "POST"
|
|
1770
|
+
o.http_request_uri = "/browsers/{browserIdentifier}/sessions/invoke"
|
|
1771
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeBrowserRequest)
|
|
1772
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeBrowserResponse)
|
|
1773
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
1774
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1775
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
1776
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
1777
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
1778
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
1779
|
+
end)
|
|
1780
|
+
|
|
1618
1781
|
api.add_operation(:invoke_code_interpreter, Seahorse::Model::Operation.new.tap do |o|
|
|
1619
1782
|
o.name = "InvokeCodeInterpreter"
|
|
1620
1783
|
o.http_method = "POST"
|
|
@@ -269,6 +269,134 @@ module Aws::BedrockAgentCore
|
|
|
269
269
|
include Aws::Structure
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
+
# The browser action to perform. Exactly one member must be set per
|
|
273
|
+
# request.
|
|
274
|
+
#
|
|
275
|
+
# @note BrowserAction is a union - when making an API calls you must set exactly one of the members.
|
|
276
|
+
#
|
|
277
|
+
# @!attribute [rw] mouse_click
|
|
278
|
+
# Click at the specified coordinates.
|
|
279
|
+
# @return [Types::MouseClickArguments]
|
|
280
|
+
#
|
|
281
|
+
# @!attribute [rw] mouse_move
|
|
282
|
+
# Move the cursor to the specified coordinates.
|
|
283
|
+
# @return [Types::MouseMoveArguments]
|
|
284
|
+
#
|
|
285
|
+
# @!attribute [rw] mouse_drag
|
|
286
|
+
# Drag from a start position to an end position.
|
|
287
|
+
# @return [Types::MouseDragArguments]
|
|
288
|
+
#
|
|
289
|
+
# @!attribute [rw] mouse_scroll
|
|
290
|
+
# Scroll at the specified position.
|
|
291
|
+
# @return [Types::MouseScrollArguments]
|
|
292
|
+
#
|
|
293
|
+
# @!attribute [rw] key_type
|
|
294
|
+
# Type a string of text.
|
|
295
|
+
# @return [Types::KeyTypeArguments]
|
|
296
|
+
#
|
|
297
|
+
# @!attribute [rw] key_press
|
|
298
|
+
# Press a key one or more times.
|
|
299
|
+
# @return [Types::KeyPressArguments]
|
|
300
|
+
#
|
|
301
|
+
# @!attribute [rw] key_shortcut
|
|
302
|
+
# Press a key combination.
|
|
303
|
+
# @return [Types::KeyShortcutArguments]
|
|
304
|
+
#
|
|
305
|
+
# @!attribute [rw] screenshot
|
|
306
|
+
# Capture a full-screen screenshot.
|
|
307
|
+
# @return [Types::ScreenshotArguments]
|
|
308
|
+
#
|
|
309
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BrowserAction AWS API Documentation
|
|
310
|
+
#
|
|
311
|
+
class BrowserAction < Struct.new(
|
|
312
|
+
:mouse_click,
|
|
313
|
+
:mouse_move,
|
|
314
|
+
:mouse_drag,
|
|
315
|
+
:mouse_scroll,
|
|
316
|
+
:key_type,
|
|
317
|
+
:key_press,
|
|
318
|
+
:key_shortcut,
|
|
319
|
+
:screenshot,
|
|
320
|
+
:unknown)
|
|
321
|
+
SENSITIVE = []
|
|
322
|
+
include Aws::Structure
|
|
323
|
+
include Aws::Structure::Union
|
|
324
|
+
|
|
325
|
+
class MouseClick < BrowserAction; end
|
|
326
|
+
class MouseMove < BrowserAction; end
|
|
327
|
+
class MouseDrag < BrowserAction; end
|
|
328
|
+
class MouseScroll < BrowserAction; end
|
|
329
|
+
class KeyType < BrowserAction; end
|
|
330
|
+
class KeyPress < BrowserAction; end
|
|
331
|
+
class KeyShortcut < BrowserAction; end
|
|
332
|
+
class Screenshot < BrowserAction; end
|
|
333
|
+
class Unknown < BrowserAction; end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# The result of a browser action execution. Exactly one member is set,
|
|
337
|
+
# matching the action that was performed.
|
|
338
|
+
#
|
|
339
|
+
# @note BrowserActionResult is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of BrowserActionResult corresponding to the set member.
|
|
340
|
+
#
|
|
341
|
+
# @!attribute [rw] mouse_click
|
|
342
|
+
# The result of a mouse click action.
|
|
343
|
+
# @return [Types::MouseClickResult]
|
|
344
|
+
#
|
|
345
|
+
# @!attribute [rw] mouse_move
|
|
346
|
+
# The result of a mouse move action.
|
|
347
|
+
# @return [Types::MouseMoveResult]
|
|
348
|
+
#
|
|
349
|
+
# @!attribute [rw] mouse_drag
|
|
350
|
+
# The result of a mouse drag action.
|
|
351
|
+
# @return [Types::MouseDragResult]
|
|
352
|
+
#
|
|
353
|
+
# @!attribute [rw] mouse_scroll
|
|
354
|
+
# The result of a mouse scroll action.
|
|
355
|
+
# @return [Types::MouseScrollResult]
|
|
356
|
+
#
|
|
357
|
+
# @!attribute [rw] key_type
|
|
358
|
+
# The result of a key type action.
|
|
359
|
+
# @return [Types::KeyTypeResult]
|
|
360
|
+
#
|
|
361
|
+
# @!attribute [rw] key_press
|
|
362
|
+
# The result of a key press action.
|
|
363
|
+
# @return [Types::KeyPressResult]
|
|
364
|
+
#
|
|
365
|
+
# @!attribute [rw] key_shortcut
|
|
366
|
+
# The result of a key shortcut action.
|
|
367
|
+
# @return [Types::KeyShortcutResult]
|
|
368
|
+
#
|
|
369
|
+
# @!attribute [rw] screenshot
|
|
370
|
+
# The result of a screenshot action.
|
|
371
|
+
# @return [Types::ScreenshotResult]
|
|
372
|
+
#
|
|
373
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BrowserActionResult AWS API Documentation
|
|
374
|
+
#
|
|
375
|
+
class BrowserActionResult < Struct.new(
|
|
376
|
+
:mouse_click,
|
|
377
|
+
:mouse_move,
|
|
378
|
+
:mouse_drag,
|
|
379
|
+
:mouse_scroll,
|
|
380
|
+
:key_type,
|
|
381
|
+
:key_press,
|
|
382
|
+
:key_shortcut,
|
|
383
|
+
:screenshot,
|
|
384
|
+
:unknown)
|
|
385
|
+
SENSITIVE = []
|
|
386
|
+
include Aws::Structure
|
|
387
|
+
include Aws::Structure::Union
|
|
388
|
+
|
|
389
|
+
class MouseClick < BrowserActionResult; end
|
|
390
|
+
class MouseMove < BrowserActionResult; end
|
|
391
|
+
class MouseDrag < BrowserActionResult; end
|
|
392
|
+
class MouseScroll < BrowserActionResult; end
|
|
393
|
+
class KeyType < BrowserActionResult; end
|
|
394
|
+
class KeyPress < BrowserActionResult; end
|
|
395
|
+
class KeyShortcut < BrowserActionResult; end
|
|
396
|
+
class Screenshot < BrowserActionResult; end
|
|
397
|
+
class Unknown < BrowserActionResult; end
|
|
398
|
+
end
|
|
399
|
+
|
|
272
400
|
# Browser enterprise policy configuration.
|
|
273
401
|
#
|
|
274
402
|
# @!attribute [rw] location
|
|
@@ -2322,6 +2450,56 @@ module Aws::BedrockAgentCore
|
|
|
2322
2450
|
include Aws::Structure
|
|
2323
2451
|
end
|
|
2324
2452
|
|
|
2453
|
+
# Request for the InvokeBrowser operation.
|
|
2454
|
+
#
|
|
2455
|
+
# @!attribute [rw] browser_identifier
|
|
2456
|
+
# The unique identifier of the browser associated with the session.
|
|
2457
|
+
# This must match the identifier used when creating the session with
|
|
2458
|
+
# `StartBrowserSession`.
|
|
2459
|
+
# @return [String]
|
|
2460
|
+
#
|
|
2461
|
+
# @!attribute [rw] session_id
|
|
2462
|
+
# The unique identifier of the browser session on which to perform the
|
|
2463
|
+
# action. This must be an active session created with
|
|
2464
|
+
# `StartBrowserSession`.
|
|
2465
|
+
# @return [String]
|
|
2466
|
+
#
|
|
2467
|
+
# @!attribute [rw] action
|
|
2468
|
+
# The browser action to perform. Exactly one member of the
|
|
2469
|
+
# `BrowserAction` union must be set per request.
|
|
2470
|
+
# @return [Types::BrowserAction]
|
|
2471
|
+
#
|
|
2472
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeBrowserRequest AWS API Documentation
|
|
2473
|
+
#
|
|
2474
|
+
class InvokeBrowserRequest < Struct.new(
|
|
2475
|
+
:browser_identifier,
|
|
2476
|
+
:session_id,
|
|
2477
|
+
:action)
|
|
2478
|
+
SENSITIVE = []
|
|
2479
|
+
include Aws::Structure
|
|
2480
|
+
end
|
|
2481
|
+
|
|
2482
|
+
# Response for the InvokeBrowser operation.
|
|
2483
|
+
#
|
|
2484
|
+
# @!attribute [rw] result
|
|
2485
|
+
# The result of the browser action. The member set in the result
|
|
2486
|
+
# corresponds to the action that was performed.
|
|
2487
|
+
# @return [Types::BrowserActionResult]
|
|
2488
|
+
#
|
|
2489
|
+
# @!attribute [rw] session_id
|
|
2490
|
+
# The unique identifier of the browser session on which the action was
|
|
2491
|
+
# performed.
|
|
2492
|
+
# @return [String]
|
|
2493
|
+
#
|
|
2494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeBrowserResponse AWS API Documentation
|
|
2495
|
+
#
|
|
2496
|
+
class InvokeBrowserResponse < Struct.new(
|
|
2497
|
+
:result,
|
|
2498
|
+
:session_id)
|
|
2499
|
+
SENSITIVE = []
|
|
2500
|
+
include Aws::Structure
|
|
2501
|
+
end
|
|
2502
|
+
|
|
2325
2503
|
# @!attribute [rw] code_interpreter_identifier
|
|
2326
2504
|
# The unique identifier of the code interpreter associated with the
|
|
2327
2505
|
# session. This must match the identifier used when creating the
|
|
@@ -2386,6 +2564,112 @@ module Aws::BedrockAgentCore
|
|
|
2386
2564
|
include Aws::Structure
|
|
2387
2565
|
end
|
|
2388
2566
|
|
|
2567
|
+
# Arguments for a key press action.
|
|
2568
|
+
#
|
|
2569
|
+
# @!attribute [rw] key
|
|
2570
|
+
# The key name to press (for example, `enter`, `tab`, `escape`).
|
|
2571
|
+
# @return [String]
|
|
2572
|
+
#
|
|
2573
|
+
# @!attribute [rw] presses
|
|
2574
|
+
# The number of times to press the key. Valid range: 1–100. Defaults
|
|
2575
|
+
# to 1.
|
|
2576
|
+
# @return [Integer]
|
|
2577
|
+
#
|
|
2578
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyPressArguments AWS API Documentation
|
|
2579
|
+
#
|
|
2580
|
+
class KeyPressArguments < Struct.new(
|
|
2581
|
+
:key,
|
|
2582
|
+
:presses)
|
|
2583
|
+
SENSITIVE = []
|
|
2584
|
+
include Aws::Structure
|
|
2585
|
+
end
|
|
2586
|
+
|
|
2587
|
+
# The result of a key press action.
|
|
2588
|
+
#
|
|
2589
|
+
# @!attribute [rw] status
|
|
2590
|
+
# The status of the action execution.
|
|
2591
|
+
# @return [String]
|
|
2592
|
+
#
|
|
2593
|
+
# @!attribute [rw] error
|
|
2594
|
+
# The error message. Present only when the action failed.
|
|
2595
|
+
# @return [String]
|
|
2596
|
+
#
|
|
2597
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyPressResult AWS API Documentation
|
|
2598
|
+
#
|
|
2599
|
+
class KeyPressResult < Struct.new(
|
|
2600
|
+
:status,
|
|
2601
|
+
:error)
|
|
2602
|
+
SENSITIVE = []
|
|
2603
|
+
include Aws::Structure
|
|
2604
|
+
end
|
|
2605
|
+
|
|
2606
|
+
# Arguments for a key shortcut action.
|
|
2607
|
+
#
|
|
2608
|
+
# @!attribute [rw] keys
|
|
2609
|
+
# The key combination to press (for example, `["ctrl", "s"]`). Maximum
|
|
2610
|
+
# 5 keys.
|
|
2611
|
+
# @return [Array<String>]
|
|
2612
|
+
#
|
|
2613
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyShortcutArguments AWS API Documentation
|
|
2614
|
+
#
|
|
2615
|
+
class KeyShortcutArguments < Struct.new(
|
|
2616
|
+
:keys)
|
|
2617
|
+
SENSITIVE = []
|
|
2618
|
+
include Aws::Structure
|
|
2619
|
+
end
|
|
2620
|
+
|
|
2621
|
+
# The result of a key shortcut action.
|
|
2622
|
+
#
|
|
2623
|
+
# @!attribute [rw] status
|
|
2624
|
+
# The status of the action execution.
|
|
2625
|
+
# @return [String]
|
|
2626
|
+
#
|
|
2627
|
+
# @!attribute [rw] error
|
|
2628
|
+
# The error message. Present only when the action failed.
|
|
2629
|
+
# @return [String]
|
|
2630
|
+
#
|
|
2631
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyShortcutResult AWS API Documentation
|
|
2632
|
+
#
|
|
2633
|
+
class KeyShortcutResult < Struct.new(
|
|
2634
|
+
:status,
|
|
2635
|
+
:error)
|
|
2636
|
+
SENSITIVE = []
|
|
2637
|
+
include Aws::Structure
|
|
2638
|
+
end
|
|
2639
|
+
|
|
2640
|
+
# Arguments for a key type action.
|
|
2641
|
+
#
|
|
2642
|
+
# @!attribute [rw] text
|
|
2643
|
+
# The text string to type. Maximum length: 10,000 characters.
|
|
2644
|
+
# @return [String]
|
|
2645
|
+
#
|
|
2646
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyTypeArguments AWS API Documentation
|
|
2647
|
+
#
|
|
2648
|
+
class KeyTypeArguments < Struct.new(
|
|
2649
|
+
:text)
|
|
2650
|
+
SENSITIVE = []
|
|
2651
|
+
include Aws::Structure
|
|
2652
|
+
end
|
|
2653
|
+
|
|
2654
|
+
# The result of a key type action.
|
|
2655
|
+
#
|
|
2656
|
+
# @!attribute [rw] status
|
|
2657
|
+
# The status of the action execution.
|
|
2658
|
+
# @return [String]
|
|
2659
|
+
#
|
|
2660
|
+
# @!attribute [rw] error
|
|
2661
|
+
# The error message. Present only when the action failed.
|
|
2662
|
+
# @return [String]
|
|
2663
|
+
#
|
|
2664
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/KeyTypeResult AWS API Documentation
|
|
2665
|
+
#
|
|
2666
|
+
class KeyTypeResult < Struct.new(
|
|
2667
|
+
:status,
|
|
2668
|
+
:error)
|
|
2669
|
+
SENSITIVE = []
|
|
2670
|
+
include Aws::Structure
|
|
2671
|
+
end
|
|
2672
|
+
|
|
2389
2673
|
# Left expression of the event metadata filter.
|
|
2390
2674
|
#
|
|
2391
2675
|
# @note LeftExpression is a union - when making an API calls you must set exactly one of the members.
|
|
@@ -3112,6 +3396,194 @@ module Aws::BedrockAgentCore
|
|
|
3112
3396
|
class Unknown < MetadataValue; end
|
|
3113
3397
|
end
|
|
3114
3398
|
|
|
3399
|
+
# Arguments for a mouse click action.
|
|
3400
|
+
#
|
|
3401
|
+
# @!attribute [rw] x
|
|
3402
|
+
# The X coordinate on screen where the click occurs.
|
|
3403
|
+
# @return [Integer]
|
|
3404
|
+
#
|
|
3405
|
+
# @!attribute [rw] y
|
|
3406
|
+
# The Y coordinate on screen where the click occurs.
|
|
3407
|
+
# @return [Integer]
|
|
3408
|
+
#
|
|
3409
|
+
# @!attribute [rw] button
|
|
3410
|
+
# The mouse button to use. Defaults to `LEFT`.
|
|
3411
|
+
# @return [String]
|
|
3412
|
+
#
|
|
3413
|
+
# @!attribute [rw] click_count
|
|
3414
|
+
# The number of clicks to perform. Valid range: 1–10. Defaults to 1.
|
|
3415
|
+
# @return [Integer]
|
|
3416
|
+
#
|
|
3417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseClickArguments AWS API Documentation
|
|
3418
|
+
#
|
|
3419
|
+
class MouseClickArguments < Struct.new(
|
|
3420
|
+
:x,
|
|
3421
|
+
:y,
|
|
3422
|
+
:button,
|
|
3423
|
+
:click_count)
|
|
3424
|
+
SENSITIVE = []
|
|
3425
|
+
include Aws::Structure
|
|
3426
|
+
end
|
|
3427
|
+
|
|
3428
|
+
# The result of a mouse click action.
|
|
3429
|
+
#
|
|
3430
|
+
# @!attribute [rw] status
|
|
3431
|
+
# The status of the action execution.
|
|
3432
|
+
# @return [String]
|
|
3433
|
+
#
|
|
3434
|
+
# @!attribute [rw] error
|
|
3435
|
+
# The error message. Present only when the action failed.
|
|
3436
|
+
# @return [String]
|
|
3437
|
+
#
|
|
3438
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseClickResult AWS API Documentation
|
|
3439
|
+
#
|
|
3440
|
+
class MouseClickResult < Struct.new(
|
|
3441
|
+
:status,
|
|
3442
|
+
:error)
|
|
3443
|
+
SENSITIVE = []
|
|
3444
|
+
include Aws::Structure
|
|
3445
|
+
end
|
|
3446
|
+
|
|
3447
|
+
# Arguments for a mouse drag action.
|
|
3448
|
+
#
|
|
3449
|
+
# @!attribute [rw] end_x
|
|
3450
|
+
# The ending X coordinate for the drag.
|
|
3451
|
+
# @return [Integer]
|
|
3452
|
+
#
|
|
3453
|
+
# @!attribute [rw] end_y
|
|
3454
|
+
# The ending Y coordinate for the drag.
|
|
3455
|
+
# @return [Integer]
|
|
3456
|
+
#
|
|
3457
|
+
# @!attribute [rw] start_x
|
|
3458
|
+
# The starting X coordinate for the drag.
|
|
3459
|
+
# @return [Integer]
|
|
3460
|
+
#
|
|
3461
|
+
# @!attribute [rw] start_y
|
|
3462
|
+
# The starting Y coordinate for the drag.
|
|
3463
|
+
# @return [Integer]
|
|
3464
|
+
#
|
|
3465
|
+
# @!attribute [rw] button
|
|
3466
|
+
# The mouse button to use for the drag. Defaults to `LEFT`.
|
|
3467
|
+
# @return [String]
|
|
3468
|
+
#
|
|
3469
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseDragArguments AWS API Documentation
|
|
3470
|
+
#
|
|
3471
|
+
class MouseDragArguments < Struct.new(
|
|
3472
|
+
:end_x,
|
|
3473
|
+
:end_y,
|
|
3474
|
+
:start_x,
|
|
3475
|
+
:start_y,
|
|
3476
|
+
:button)
|
|
3477
|
+
SENSITIVE = []
|
|
3478
|
+
include Aws::Structure
|
|
3479
|
+
end
|
|
3480
|
+
|
|
3481
|
+
# The result of a mouse drag action.
|
|
3482
|
+
#
|
|
3483
|
+
# @!attribute [rw] status
|
|
3484
|
+
# The status of the action execution.
|
|
3485
|
+
# @return [String]
|
|
3486
|
+
#
|
|
3487
|
+
# @!attribute [rw] error
|
|
3488
|
+
# The error message. Present only when the action failed.
|
|
3489
|
+
# @return [String]
|
|
3490
|
+
#
|
|
3491
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseDragResult AWS API Documentation
|
|
3492
|
+
#
|
|
3493
|
+
class MouseDragResult < Struct.new(
|
|
3494
|
+
:status,
|
|
3495
|
+
:error)
|
|
3496
|
+
SENSITIVE = []
|
|
3497
|
+
include Aws::Structure
|
|
3498
|
+
end
|
|
3499
|
+
|
|
3500
|
+
# Arguments for a mouse move action.
|
|
3501
|
+
#
|
|
3502
|
+
# @!attribute [rw] x
|
|
3503
|
+
# The target X coordinate on screen.
|
|
3504
|
+
# @return [Integer]
|
|
3505
|
+
#
|
|
3506
|
+
# @!attribute [rw] y
|
|
3507
|
+
# The target Y coordinate on screen.
|
|
3508
|
+
# @return [Integer]
|
|
3509
|
+
#
|
|
3510
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseMoveArguments AWS API Documentation
|
|
3511
|
+
#
|
|
3512
|
+
class MouseMoveArguments < Struct.new(
|
|
3513
|
+
:x,
|
|
3514
|
+
:y)
|
|
3515
|
+
SENSITIVE = []
|
|
3516
|
+
include Aws::Structure
|
|
3517
|
+
end
|
|
3518
|
+
|
|
3519
|
+
# The result of a mouse move action.
|
|
3520
|
+
#
|
|
3521
|
+
# @!attribute [rw] status
|
|
3522
|
+
# The status of the action execution.
|
|
3523
|
+
# @return [String]
|
|
3524
|
+
#
|
|
3525
|
+
# @!attribute [rw] error
|
|
3526
|
+
# The error message. Present only when the action failed.
|
|
3527
|
+
# @return [String]
|
|
3528
|
+
#
|
|
3529
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseMoveResult AWS API Documentation
|
|
3530
|
+
#
|
|
3531
|
+
class MouseMoveResult < Struct.new(
|
|
3532
|
+
:status,
|
|
3533
|
+
:error)
|
|
3534
|
+
SENSITIVE = []
|
|
3535
|
+
include Aws::Structure
|
|
3536
|
+
end
|
|
3537
|
+
|
|
3538
|
+
# Arguments for a mouse scroll action.
|
|
3539
|
+
#
|
|
3540
|
+
# @!attribute [rw] x
|
|
3541
|
+
# The X coordinate on screen where the scroll occurs.
|
|
3542
|
+
# @return [Integer]
|
|
3543
|
+
#
|
|
3544
|
+
# @!attribute [rw] y
|
|
3545
|
+
# The Y coordinate on screen where the scroll occurs.
|
|
3546
|
+
# @return [Integer]
|
|
3547
|
+
#
|
|
3548
|
+
# @!attribute [rw] delta_x
|
|
3549
|
+
# The horizontal scroll delta. Valid range: -1000 to 1000.
|
|
3550
|
+
# @return [Integer]
|
|
3551
|
+
#
|
|
3552
|
+
# @!attribute [rw] delta_y
|
|
3553
|
+
# The vertical scroll delta. Valid range: -1000 to 1000. Negative
|
|
3554
|
+
# values scroll down.
|
|
3555
|
+
# @return [Integer]
|
|
3556
|
+
#
|
|
3557
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseScrollArguments AWS API Documentation
|
|
3558
|
+
#
|
|
3559
|
+
class MouseScrollArguments < Struct.new(
|
|
3560
|
+
:x,
|
|
3561
|
+
:y,
|
|
3562
|
+
:delta_x,
|
|
3563
|
+
:delta_y)
|
|
3564
|
+
SENSITIVE = []
|
|
3565
|
+
include Aws::Structure
|
|
3566
|
+
end
|
|
3567
|
+
|
|
3568
|
+
# The result of a mouse scroll action.
|
|
3569
|
+
#
|
|
3570
|
+
# @!attribute [rw] status
|
|
3571
|
+
# The status of the action execution.
|
|
3572
|
+
# @return [String]
|
|
3573
|
+
#
|
|
3574
|
+
# @!attribute [rw] error
|
|
3575
|
+
# The error message. Present only when the action failed.
|
|
3576
|
+
# @return [String]
|
|
3577
|
+
#
|
|
3578
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MouseScrollResult AWS API Documentation
|
|
3579
|
+
#
|
|
3580
|
+
class MouseScrollResult < Struct.new(
|
|
3581
|
+
:status,
|
|
3582
|
+
:error)
|
|
3583
|
+
SENSITIVE = []
|
|
3584
|
+
include Aws::Structure
|
|
3585
|
+
end
|
|
3586
|
+
|
|
3115
3587
|
# Contains the payload content for an event.
|
|
3116
3588
|
#
|
|
3117
3589
|
# @note PayloadType is a union - when making an API calls you must set exactly one of the members.
|
|
@@ -3557,6 +4029,45 @@ module Aws::BedrockAgentCore
|
|
|
3557
4029
|
include Aws::Structure
|
|
3558
4030
|
end
|
|
3559
4031
|
|
|
4032
|
+
# Arguments for a screenshot action.
|
|
4033
|
+
#
|
|
4034
|
+
# @!attribute [rw] format
|
|
4035
|
+
# The image format for the screenshot. Defaults to `PNG`.
|
|
4036
|
+
# @return [String]
|
|
4037
|
+
#
|
|
4038
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ScreenshotArguments AWS API Documentation
|
|
4039
|
+
#
|
|
4040
|
+
class ScreenshotArguments < Struct.new(
|
|
4041
|
+
:format)
|
|
4042
|
+
SENSITIVE = []
|
|
4043
|
+
include Aws::Structure
|
|
4044
|
+
end
|
|
4045
|
+
|
|
4046
|
+
# The result of a screenshot action.
|
|
4047
|
+
#
|
|
4048
|
+
# @!attribute [rw] status
|
|
4049
|
+
# The status of the action execution.
|
|
4050
|
+
# @return [String]
|
|
4051
|
+
#
|
|
4052
|
+
# @!attribute [rw] error
|
|
4053
|
+
# The error message. Present only when the action failed.
|
|
4054
|
+
# @return [String]
|
|
4055
|
+
#
|
|
4056
|
+
# @!attribute [rw] data
|
|
4057
|
+
# The base64-encoded image data. Present only when the action
|
|
4058
|
+
# succeeded.
|
|
4059
|
+
# @return [String]
|
|
4060
|
+
#
|
|
4061
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ScreenshotResult AWS API Documentation
|
|
4062
|
+
#
|
|
4063
|
+
class ScreenshotResult < Struct.new(
|
|
4064
|
+
:status,
|
|
4065
|
+
:error,
|
|
4066
|
+
:data)
|
|
4067
|
+
SENSITIVE = []
|
|
4068
|
+
include Aws::Structure
|
|
4069
|
+
end
|
|
4070
|
+
|
|
3560
4071
|
# Contains search criteria for retrieving memory records.
|
|
3561
4072
|
#
|
|
3562
4073
|
# @!attribute [rw] search_query
|
data/sig/client.rbs
CHANGED
|
@@ -460,6 +460,56 @@ module Aws
|
|
|
460
460
|
) ?{ (*untyped) -> void } -> _InvokeAgentRuntimeCommandResponseSuccess
|
|
461
461
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentRuntimeCommandResponseSuccess
|
|
462
462
|
|
|
463
|
+
interface _InvokeBrowserResponseSuccess
|
|
464
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeBrowserResponse]
|
|
465
|
+
def result: () -> Types::BrowserActionResult
|
|
466
|
+
def session_id: () -> ::String
|
|
467
|
+
end
|
|
468
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#invoke_browser-instance_method
|
|
469
|
+
def invoke_browser: (
|
|
470
|
+
browser_identifier: ::String,
|
|
471
|
+
session_id: ::String,
|
|
472
|
+
action: {
|
|
473
|
+
mouse_click: {
|
|
474
|
+
x: ::Integer,
|
|
475
|
+
y: ::Integer,
|
|
476
|
+
button: ("LEFT" | "RIGHT" | "MIDDLE")?,
|
|
477
|
+
click_count: ::Integer?
|
|
478
|
+
}?,
|
|
479
|
+
mouse_move: {
|
|
480
|
+
x: ::Integer,
|
|
481
|
+
y: ::Integer
|
|
482
|
+
}?,
|
|
483
|
+
mouse_drag: {
|
|
484
|
+
end_x: ::Integer,
|
|
485
|
+
end_y: ::Integer,
|
|
486
|
+
start_x: ::Integer,
|
|
487
|
+
start_y: ::Integer,
|
|
488
|
+
button: ("LEFT" | "RIGHT" | "MIDDLE")?
|
|
489
|
+
}?,
|
|
490
|
+
mouse_scroll: {
|
|
491
|
+
x: ::Integer,
|
|
492
|
+
y: ::Integer,
|
|
493
|
+
delta_x: ::Integer?,
|
|
494
|
+
delta_y: ::Integer?
|
|
495
|
+
}?,
|
|
496
|
+
key_type: {
|
|
497
|
+
text: ::String
|
|
498
|
+
}?,
|
|
499
|
+
key_press: {
|
|
500
|
+
key: ::String,
|
|
501
|
+
presses: ::Integer?
|
|
502
|
+
}?,
|
|
503
|
+
key_shortcut: {
|
|
504
|
+
keys: Array[::String]
|
|
505
|
+
}?,
|
|
506
|
+
screenshot: {
|
|
507
|
+
format: ("PNG")?
|
|
508
|
+
}?
|
|
509
|
+
}
|
|
510
|
+
) -> _InvokeBrowserResponseSuccess
|
|
511
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeBrowserResponseSuccess
|
|
512
|
+
|
|
463
513
|
interface _InvokeCodeInterpreterResponseSuccess
|
|
464
514
|
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeCodeInterpreterResponse]
|
|
465
515
|
def session_id: () -> ::String
|
data/sig/types.rbs
CHANGED
|
@@ -84,6 +84,70 @@ module Aws::BedrockAgentCore
|
|
|
84
84
|
SENSITIVE: []
|
|
85
85
|
end
|
|
86
86
|
|
|
87
|
+
class BrowserAction
|
|
88
|
+
attr_accessor mouse_click: Types::MouseClickArguments
|
|
89
|
+
attr_accessor mouse_move: Types::MouseMoveArguments
|
|
90
|
+
attr_accessor mouse_drag: Types::MouseDragArguments
|
|
91
|
+
attr_accessor mouse_scroll: Types::MouseScrollArguments
|
|
92
|
+
attr_accessor key_type: Types::KeyTypeArguments
|
|
93
|
+
attr_accessor key_press: Types::KeyPressArguments
|
|
94
|
+
attr_accessor key_shortcut: Types::KeyShortcutArguments
|
|
95
|
+
attr_accessor screenshot: Types::ScreenshotArguments
|
|
96
|
+
attr_accessor unknown: untyped
|
|
97
|
+
SENSITIVE: []
|
|
98
|
+
|
|
99
|
+
class MouseClick < BrowserAction
|
|
100
|
+
end
|
|
101
|
+
class MouseMove < BrowserAction
|
|
102
|
+
end
|
|
103
|
+
class MouseDrag < BrowserAction
|
|
104
|
+
end
|
|
105
|
+
class MouseScroll < BrowserAction
|
|
106
|
+
end
|
|
107
|
+
class KeyType < BrowserAction
|
|
108
|
+
end
|
|
109
|
+
class KeyPress < BrowserAction
|
|
110
|
+
end
|
|
111
|
+
class KeyShortcut < BrowserAction
|
|
112
|
+
end
|
|
113
|
+
class Screenshot < BrowserAction
|
|
114
|
+
end
|
|
115
|
+
class Unknown < BrowserAction
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class BrowserActionResult
|
|
120
|
+
attr_accessor mouse_click: Types::MouseClickResult
|
|
121
|
+
attr_accessor mouse_move: Types::MouseMoveResult
|
|
122
|
+
attr_accessor mouse_drag: Types::MouseDragResult
|
|
123
|
+
attr_accessor mouse_scroll: Types::MouseScrollResult
|
|
124
|
+
attr_accessor key_type: Types::KeyTypeResult
|
|
125
|
+
attr_accessor key_press: Types::KeyPressResult
|
|
126
|
+
attr_accessor key_shortcut: Types::KeyShortcutResult
|
|
127
|
+
attr_accessor screenshot: Types::ScreenshotResult
|
|
128
|
+
attr_accessor unknown: untyped
|
|
129
|
+
SENSITIVE: []
|
|
130
|
+
|
|
131
|
+
class MouseClick < BrowserActionResult
|
|
132
|
+
end
|
|
133
|
+
class MouseMove < BrowserActionResult
|
|
134
|
+
end
|
|
135
|
+
class MouseDrag < BrowserActionResult
|
|
136
|
+
end
|
|
137
|
+
class MouseScroll < BrowserActionResult
|
|
138
|
+
end
|
|
139
|
+
class KeyType < BrowserActionResult
|
|
140
|
+
end
|
|
141
|
+
class KeyPress < BrowserActionResult
|
|
142
|
+
end
|
|
143
|
+
class KeyShortcut < BrowserActionResult
|
|
144
|
+
end
|
|
145
|
+
class Screenshot < BrowserActionResult
|
|
146
|
+
end
|
|
147
|
+
class Unknown < BrowserActionResult
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
87
151
|
class BrowserEnterprisePolicy
|
|
88
152
|
attr_accessor location: Types::ResourceLocation
|
|
89
153
|
attr_accessor type: ("MANAGED" | "RECOMMENDED")
|
|
@@ -639,6 +703,19 @@ module Aws::BedrockAgentCore
|
|
|
639
703
|
SENSITIVE: [:response]
|
|
640
704
|
end
|
|
641
705
|
|
|
706
|
+
class InvokeBrowserRequest
|
|
707
|
+
attr_accessor browser_identifier: ::String
|
|
708
|
+
attr_accessor session_id: ::String
|
|
709
|
+
attr_accessor action: Types::BrowserAction
|
|
710
|
+
SENSITIVE: []
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
class InvokeBrowserResponse
|
|
714
|
+
attr_accessor result: Types::BrowserActionResult
|
|
715
|
+
attr_accessor session_id: ::String
|
|
716
|
+
SENSITIVE: []
|
|
717
|
+
end
|
|
718
|
+
|
|
642
719
|
class InvokeCodeInterpreterRequest
|
|
643
720
|
attr_accessor code_interpreter_identifier: ::String
|
|
644
721
|
attr_accessor session_id: ::String
|
|
@@ -655,6 +732,40 @@ module Aws::BedrockAgentCore
|
|
|
655
732
|
SENSITIVE: []
|
|
656
733
|
end
|
|
657
734
|
|
|
735
|
+
class KeyPressArguments
|
|
736
|
+
attr_accessor key: ::String
|
|
737
|
+
attr_accessor presses: ::Integer
|
|
738
|
+
SENSITIVE: []
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
class KeyPressResult
|
|
742
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
743
|
+
attr_accessor error: ::String
|
|
744
|
+
SENSITIVE: []
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
class KeyShortcutArguments
|
|
748
|
+
attr_accessor keys: ::Array[::String]
|
|
749
|
+
SENSITIVE: []
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
class KeyShortcutResult
|
|
753
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
754
|
+
attr_accessor error: ::String
|
|
755
|
+
SENSITIVE: []
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
class KeyTypeArguments
|
|
759
|
+
attr_accessor text: ::String
|
|
760
|
+
SENSITIVE: []
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
class KeyTypeResult
|
|
764
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
765
|
+
attr_accessor error: ::String
|
|
766
|
+
SENSITIVE: []
|
|
767
|
+
end
|
|
768
|
+
|
|
658
769
|
class LeftExpression
|
|
659
770
|
attr_accessor metadata_key: ::String
|
|
660
771
|
attr_accessor unknown: untyped
|
|
@@ -861,6 +972,61 @@ module Aws::BedrockAgentCore
|
|
|
861
972
|
end
|
|
862
973
|
end
|
|
863
974
|
|
|
975
|
+
class MouseClickArguments
|
|
976
|
+
attr_accessor x: ::Integer
|
|
977
|
+
attr_accessor y: ::Integer
|
|
978
|
+
attr_accessor button: ("LEFT" | "RIGHT" | "MIDDLE")
|
|
979
|
+
attr_accessor click_count: ::Integer
|
|
980
|
+
SENSITIVE: []
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
class MouseClickResult
|
|
984
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
985
|
+
attr_accessor error: ::String
|
|
986
|
+
SENSITIVE: []
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
class MouseDragArguments
|
|
990
|
+
attr_accessor end_x: ::Integer
|
|
991
|
+
attr_accessor end_y: ::Integer
|
|
992
|
+
attr_accessor start_x: ::Integer
|
|
993
|
+
attr_accessor start_y: ::Integer
|
|
994
|
+
attr_accessor button: ("LEFT" | "RIGHT" | "MIDDLE")
|
|
995
|
+
SENSITIVE: []
|
|
996
|
+
end
|
|
997
|
+
|
|
998
|
+
class MouseDragResult
|
|
999
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
1000
|
+
attr_accessor error: ::String
|
|
1001
|
+
SENSITIVE: []
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
class MouseMoveArguments
|
|
1005
|
+
attr_accessor x: ::Integer
|
|
1006
|
+
attr_accessor y: ::Integer
|
|
1007
|
+
SENSITIVE: []
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
class MouseMoveResult
|
|
1011
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
1012
|
+
attr_accessor error: ::String
|
|
1013
|
+
SENSITIVE: []
|
|
1014
|
+
end
|
|
1015
|
+
|
|
1016
|
+
class MouseScrollArguments
|
|
1017
|
+
attr_accessor x: ::Integer
|
|
1018
|
+
attr_accessor y: ::Integer
|
|
1019
|
+
attr_accessor delta_x: ::Integer
|
|
1020
|
+
attr_accessor delta_y: ::Integer
|
|
1021
|
+
SENSITIVE: []
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
class MouseScrollResult
|
|
1025
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
1026
|
+
attr_accessor error: ::String
|
|
1027
|
+
SENSITIVE: []
|
|
1028
|
+
end
|
|
1029
|
+
|
|
864
1030
|
class PayloadType
|
|
865
1031
|
attr_accessor conversational: Types::Conversational
|
|
866
1032
|
attr_accessor blob: untyped
|
|
@@ -1004,6 +1170,18 @@ module Aws::BedrockAgentCore
|
|
|
1004
1170
|
SENSITIVE: []
|
|
1005
1171
|
end
|
|
1006
1172
|
|
|
1173
|
+
class ScreenshotArguments
|
|
1174
|
+
attr_accessor format: ("PNG")
|
|
1175
|
+
SENSITIVE: []
|
|
1176
|
+
end
|
|
1177
|
+
|
|
1178
|
+
class ScreenshotResult
|
|
1179
|
+
attr_accessor status: ("SUCCESS" | "FAILED")
|
|
1180
|
+
attr_accessor error: ::String
|
|
1181
|
+
attr_accessor data: ::String
|
|
1182
|
+
SENSITIVE: []
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1007
1185
|
class SearchCriteria
|
|
1008
1186
|
attr_accessor search_query: ::String
|
|
1009
1187
|
attr_accessor memory_strategy_id: ::String
|