@aws-sdk/client-bedrock-agentcore 3.847.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.
- package/LICENSE +201 -0
- package/README.md +413 -0
- package/dist-cjs/BedrockAgentCore.js +63 -0
- package/dist-cjs/BedrockAgentCoreClient.js +54 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateEventCommand.js +27 -0
- package/dist-cjs/commands/DeleteEventCommand.js +26 -0
- package/dist-cjs/commands/DeleteMemoryRecordCommand.js +26 -0
- package/dist-cjs/commands/GetBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/GetEventCommand.js +27 -0
- package/dist-cjs/commands/GetMemoryRecordCommand.js +27 -0
- package/dist-cjs/commands/GetResourceApiKeyCommand.js +27 -0
- package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +27 -0
- package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +27 -0
- package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +31 -0
- package/dist-cjs/commands/ListActorsCommand.js +26 -0
- package/dist-cjs/commands/ListBrowserSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListEventsCommand.js +27 -0
- package/dist-cjs/commands/ListMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/ListSessionsCommand.js +26 -0
- package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/StartBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/StopBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/UpdateBrowserStreamCommand.js +26 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoint/EndpointParameters.js +17 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/BedrockAgentCoreServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +468 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListActorsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
- package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1423 -0
- package/dist-cjs/runtimeConfig.browser.js +41 -0
- package/dist-cjs/runtimeConfig.js +58 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/BedrockAgentCore.js +59 -0
- package/dist-es/BedrockAgentCoreClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateEventCommand.js +23 -0
- package/dist-es/commands/DeleteEventCommand.js +22 -0
- package/dist-es/commands/DeleteMemoryRecordCommand.js +22 -0
- package/dist-es/commands/GetBrowserSessionCommand.js +22 -0
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/GetEventCommand.js +23 -0
- package/dist-es/commands/GetMemoryRecordCommand.js +23 -0
- package/dist-es/commands/GetResourceApiKeyCommand.js +23 -0
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +23 -0
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +23 -0
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +27 -0
- package/dist-es/commands/ListActorsCommand.js +22 -0
- package/dist-es/commands/ListBrowserSessionsCommand.js +22 -0
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +22 -0
- package/dist-es/commands/ListEventsCommand.js +23 -0
- package/dist-es/commands/ListMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/StartBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/StopBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/UpdateBrowserStreamCommand.js +22 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/BedrockAgentCoreServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +421 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListActorsPaginator.js +4 -0
- package/dist-es/pagination/ListEventsPaginator.js +4 -0
- package/dist-es/pagination/ListMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/RetrieveMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1367 -0
- package/dist-es/runtimeConfig.browser.js +36 -0
- package/dist-es/runtimeConfig.js +53 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/BedrockAgentCore.d.ts +192 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +223 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateEventCommand.d.ts +133 -0
- package/dist-types/commands/DeleteEventCommand.d.ts +96 -0
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +94 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +108 -0
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetEventCommand.d.ts +117 -0
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +104 -0
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +91 -0
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +102 -0
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +90 -0
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +91 -0
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +91 -0
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +126 -0
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +174 -0
- package/dist-types/commands/ListActorsCommand.d.ts +100 -0
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListEventsCommand.d.ts +128 -0
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +111 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +103 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +115 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +111 -0
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +98 -0
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +97 -0
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +97 -0
- package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/BedrockAgentCoreServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2440 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListActorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +52 -0
- package/dist-types/runtimeConfig.d.ts +52 -0
- package/dist-types/runtimeConfig.native.d.ts +51 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +449 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +288 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +66 -0
- package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +872 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListActorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/RetrieveMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +321 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +24 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +105 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { StartBrowserSessionRequest, StartBrowserSessionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartBrowserSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartBrowserSessionCommandInput extends StartBrowserSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartBrowserSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartBrowserSessionCommandOutput extends StartBrowserSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartBrowserSessionCommand_base: {
|
|
25
|
+
new (input: StartBrowserSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartBrowserSessionCommandInput, StartBrowserSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StartBrowserSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartBrowserSessionCommandInput, StartBrowserSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates and initializes a browser session in Amazon Bedrock. The session enables agents to navigate and interact with web content, extract information from websites, and perform web-based tasks as part of their response generation.</p> <p>To create a session, you must specify a browser identifier and a name. You can also configure the viewport dimensions to control the visible area of web content. The session remains active until it times out or you explicitly stop it using the <code>StopBrowserSession</code> operation.</p> <p>The following operations are related to <code>StartBrowserSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_GetBrowserSession.html">GetBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_UpdateBrowserStream.html">UpdateBrowserStream</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_StopBrowserSession.html">StopBrowserSession</a> </p> </li> </ul>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, StartBrowserSessionCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, StartBrowserSessionCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
37
|
+
* const input = { // StartBrowserSessionRequest
|
|
38
|
+
* browserIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE",
|
|
40
|
+
* sessionTimeoutSeconds: Number("int"),
|
|
41
|
+
* viewPort: { // ViewPort
|
|
42
|
+
* width: Number("int"), // required
|
|
43
|
+
* height: Number("int"), // required
|
|
44
|
+
* },
|
|
45
|
+
* clientToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new StartBrowserSessionCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // StartBrowserSessionResponse
|
|
50
|
+
* // browserIdentifier: "STRING_VALUE", // required
|
|
51
|
+
* // sessionId: "STRING_VALUE", // required
|
|
52
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // streams: { // BrowserSessionStream
|
|
54
|
+
* // automationStream: { // AutomationStream
|
|
55
|
+
* // streamEndpoint: "STRING_VALUE", // required
|
|
56
|
+
* // streamStatus: "ENABLED" || "DISABLED", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // liveViewStream: { // LiveViewStream
|
|
59
|
+
* // streamEndpoint: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param StartBrowserSessionCommandInput - {@link StartBrowserSessionCommandInput}
|
|
67
|
+
* @returns {@link StartBrowserSessionCommandOutput}
|
|
68
|
+
* @see {@link StartBrowserSessionCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link StartBrowserSessionCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
85
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class StartBrowserSessionCommand extends StartBrowserSessionCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: StartBrowserSessionRequest;
|
|
104
|
+
output: StartBrowserSessionResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: StartBrowserSessionCommandInput;
|
|
108
|
+
output: StartBrowserSessionCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { StartCodeInterpreterSessionRequest, StartCodeInterpreterSessionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartCodeInterpreterSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartCodeInterpreterSessionCommandInput extends StartCodeInterpreterSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartCodeInterpreterSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartCodeInterpreterSessionCommandOutput extends StartCodeInterpreterSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartCodeInterpreterSessionCommand_base: {
|
|
25
|
+
new (input: StartCodeInterpreterSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartCodeInterpreterSessionCommandInput, StartCodeInterpreterSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StartCodeInterpreterSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartCodeInterpreterSessionCommandInput, StartCodeInterpreterSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates and initializes a code interpreter session in Amazon Bedrock. The session enables agents to execute code as part of their response generation, supporting programming languages such as Python for data analysis, visualization, and computation tasks.</p> <p>To create a session, you must specify a code interpreter identifier and a name. The session remains active until it times out or you explicitly stop it using the <code>StopCodeInterpreterSession</code> operation.</p> <p>The following operations are related to <code>StartCodeInterpreterSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_InvokeCodeInterpreter.html">InvokeCodeInterpreter</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_StopCodeInterpreterSession.html">StopCodeInterpreterSession</a> </p> </li> </ul>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, StartCodeInterpreterSessionCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, StartCodeInterpreterSessionCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
37
|
+
* const input = { // StartCodeInterpreterSessionRequest
|
|
38
|
+
* codeInterpreterIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE",
|
|
40
|
+
* sessionTimeoutSeconds: Number("int"),
|
|
41
|
+
* clientToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new StartCodeInterpreterSessionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // StartCodeInterpreterSessionResponse
|
|
46
|
+
* // codeInterpreterIdentifier: "STRING_VALUE", // required
|
|
47
|
+
* // sessionId: "STRING_VALUE", // required
|
|
48
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param StartCodeInterpreterSessionCommandInput - {@link StartCodeInterpreterSessionCommandInput}
|
|
54
|
+
* @returns {@link StartCodeInterpreterSessionCommandOutput}
|
|
55
|
+
* @see {@link StartCodeInterpreterSessionCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link StartCodeInterpreterSessionCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ConflictException} (client fault)
|
|
63
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InternalServerException} (server fault)
|
|
66
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
69
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
72
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class StartCodeInterpreterSessionCommand extends StartCodeInterpreterSessionCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: StartCodeInterpreterSessionRequest;
|
|
91
|
+
output: StartCodeInterpreterSessionResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: StartCodeInterpreterSessionCommandInput;
|
|
95
|
+
output: StartCodeInterpreterSessionCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { StopBrowserSessionRequest, StopBrowserSessionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopBrowserSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopBrowserSessionCommandInput extends StopBrowserSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopBrowserSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopBrowserSessionCommandOutput extends StopBrowserSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopBrowserSessionCommand_base: {
|
|
25
|
+
new (input: StopBrowserSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StopBrowserSessionCommandInput, StopBrowserSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StopBrowserSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StopBrowserSessionCommandInput, StopBrowserSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Terminates an active browser session in Amazon Bedrock. This operation stops the session, releases associated resources, and makes the session unavailable for further use.</p> <p>To stop a browser session, you must specify both the browser identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using <code>StartBrowserSession</code>.</p> <p>The following operations are related to <code>StopBrowserSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartBrowserSession.html">StartBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetBrowserSession.html">GetBrowserSession</a> </p> </li> </ul>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, StopBrowserSessionCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, StopBrowserSessionCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
37
|
+
* const input = { // StopBrowserSessionRequest
|
|
38
|
+
* browserIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* sessionId: "STRING_VALUE", // required
|
|
40
|
+
* clientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new StopBrowserSessionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // StopBrowserSessionResponse
|
|
45
|
+
* // browserIdentifier: "STRING_VALUE", // required
|
|
46
|
+
* // sessionId: "STRING_VALUE", // required
|
|
47
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param StopBrowserSessionCommandInput - {@link StopBrowserSessionCommandInput}
|
|
53
|
+
* @returns {@link StopBrowserSessionCommandOutput}
|
|
54
|
+
* @see {@link StopBrowserSessionCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link StopBrowserSessionCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictException} (client fault)
|
|
62
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
71
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class StopBrowserSessionCommand extends StopBrowserSessionCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: StopBrowserSessionRequest;
|
|
90
|
+
output: StopBrowserSessionResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: StopBrowserSessionCommandInput;
|
|
94
|
+
output: StopBrowserSessionCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { StopCodeInterpreterSessionRequest, StopCodeInterpreterSessionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopCodeInterpreterSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopCodeInterpreterSessionCommandInput extends StopCodeInterpreterSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopCodeInterpreterSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopCodeInterpreterSessionCommandOutput extends StopCodeInterpreterSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopCodeInterpreterSessionCommand_base: {
|
|
25
|
+
new (input: StopCodeInterpreterSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StopCodeInterpreterSessionCommandInput, StopCodeInterpreterSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StopCodeInterpreterSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StopCodeInterpreterSessionCommandInput, StopCodeInterpreterSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Terminates an active code interpreter session in Amazon Bedrock. This operation stops the session, releases associated resources, and makes the session unavailable for further use.</p> <p>To stop a code interpreter session, you must specify both the code interpreter identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using <code>StartCodeInterpreterSession</code>.</p> <p>The following operations are related to <code>StopCodeInterpreterSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> </ul>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, StopCodeInterpreterSessionCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, StopCodeInterpreterSessionCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
37
|
+
* const input = { // StopCodeInterpreterSessionRequest
|
|
38
|
+
* codeInterpreterIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* sessionId: "STRING_VALUE", // required
|
|
40
|
+
* clientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new StopCodeInterpreterSessionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // StopCodeInterpreterSessionResponse
|
|
45
|
+
* // codeInterpreterIdentifier: "STRING_VALUE", // required
|
|
46
|
+
* // sessionId: "STRING_VALUE", // required
|
|
47
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param StopCodeInterpreterSessionCommandInput - {@link StopCodeInterpreterSessionCommandInput}
|
|
53
|
+
* @returns {@link StopCodeInterpreterSessionCommandOutput}
|
|
54
|
+
* @see {@link StopCodeInterpreterSessionCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link StopCodeInterpreterSessionCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictException} (client fault)
|
|
62
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
71
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class StopCodeInterpreterSessionCommand extends StopCodeInterpreterSessionCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: StopCodeInterpreterSessionRequest;
|
|
90
|
+
output: StopCodeInterpreterSessionResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: StopCodeInterpreterSessionCommandInput;
|
|
94
|
+
output: StopCodeInterpreterSessionCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { UpdateBrowserStreamRequest, UpdateBrowserStreamResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateBrowserStreamCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateBrowserStreamCommandInput extends UpdateBrowserStreamRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateBrowserStreamCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateBrowserStreamCommandOutput extends UpdateBrowserStreamResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateBrowserStreamCommand_base: {
|
|
25
|
+
new (input: UpdateBrowserStreamCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBrowserStreamCommandInput, UpdateBrowserStreamCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateBrowserStreamCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBrowserStreamCommandInput, UpdateBrowserStreamCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, UpdateBrowserStreamCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, UpdateBrowserStreamCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
37
|
+
* const input = { // UpdateBrowserStreamRequest
|
|
38
|
+
* browserIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* sessionId: "STRING_VALUE", // required
|
|
40
|
+
* streamUpdate: { // StreamUpdate Union: only one key present
|
|
41
|
+
* automationStreamUpdate: { // AutomationStreamUpdate
|
|
42
|
+
* streamStatus: "ENABLED" || "DISABLED",
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* clientToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new UpdateBrowserStreamCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // UpdateBrowserStreamResponse
|
|
50
|
+
* // browserIdentifier: "STRING_VALUE", // required
|
|
51
|
+
* // sessionId: "STRING_VALUE", // required
|
|
52
|
+
* // streams: { // BrowserSessionStream
|
|
53
|
+
* // automationStream: { // AutomationStream
|
|
54
|
+
* // streamEndpoint: "STRING_VALUE", // required
|
|
55
|
+
* // streamStatus: "ENABLED" || "DISABLED", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // liveViewStream: { // LiveViewStream
|
|
58
|
+
* // streamEndpoint: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
61
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param UpdateBrowserStreamCommandInput - {@link UpdateBrowserStreamCommandInput}
|
|
67
|
+
* @returns {@link UpdateBrowserStreamCommandOutput}
|
|
68
|
+
* @see {@link UpdateBrowserStreamCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link UpdateBrowserStreamCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
85
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class UpdateBrowserStreamCommand extends UpdateBrowserStreamCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: UpdateBrowserStreamRequest;
|
|
104
|
+
output: UpdateBrowserStreamResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: UpdateBrowserStreamCommandInput;
|
|
108
|
+
output: UpdateBrowserStreamCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./CreateEventCommand";
|
|
2
|
+
export * from "./DeleteEventCommand";
|
|
3
|
+
export * from "./DeleteMemoryRecordCommand";
|
|
4
|
+
export * from "./GetBrowserSessionCommand";
|
|
5
|
+
export * from "./GetCodeInterpreterSessionCommand";
|
|
6
|
+
export * from "./GetEventCommand";
|
|
7
|
+
export * from "./GetMemoryRecordCommand";
|
|
8
|
+
export * from "./GetResourceApiKeyCommand";
|
|
9
|
+
export * from "./GetResourceOauth2TokenCommand";
|
|
10
|
+
export * from "./GetWorkloadAccessTokenCommand";
|
|
11
|
+
export * from "./GetWorkloadAccessTokenForJWTCommand";
|
|
12
|
+
export * from "./GetWorkloadAccessTokenForUserIdCommand";
|
|
13
|
+
export * from "./InvokeAgentRuntimeCommand";
|
|
14
|
+
export * from "./InvokeCodeInterpreterCommand";
|
|
15
|
+
export * from "./ListActorsCommand";
|
|
16
|
+
export * from "./ListBrowserSessionsCommand";
|
|
17
|
+
export * from "./ListCodeInterpreterSessionsCommand";
|
|
18
|
+
export * from "./ListEventsCommand";
|
|
19
|
+
export * from "./ListMemoryRecordsCommand";
|
|
20
|
+
export * from "./ListSessionsCommand";
|
|
21
|
+
export * from "./RetrieveMemoryRecordsCommand";
|
|
22
|
+
export * from "./StartBrowserSessionCommand";
|
|
23
|
+
export * from "./StartCodeInterpreterSessionCommand";
|
|
24
|
+
export * from "./StopBrowserSessionCommand";
|
|
25
|
+
export * from "./StopCodeInterpreterSessionCommand";
|
|
26
|
+
export * from "./UpdateBrowserStreamCommand";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
15
|
+
export declare const commonParams: {
|
|
16
|
+
readonly UseFIPS: {
|
|
17
|
+
readonly type: "builtInParams";
|
|
18
|
+
readonly name: "useFipsEndpoint";
|
|
19
|
+
};
|
|
20
|
+
readonly Endpoint: {
|
|
21
|
+
readonly type: "builtInParams";
|
|
22
|
+
readonly name: "endpoint";
|
|
23
|
+
};
|
|
24
|
+
readonly Region: {
|
|
25
|
+
readonly type: "builtInParams";
|
|
26
|
+
readonly name: "region";
|
|
27
|
+
};
|
|
28
|
+
readonly UseDualStack: {
|
|
29
|
+
readonly type: "builtInParams";
|
|
30
|
+
readonly name: "useDualstackEndpoint";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
34
|
+
Region?: string | undefined;
|
|
35
|
+
UseDualStack?: boolean | undefined;
|
|
36
|
+
UseFIPS?: boolean | undefined;
|
|
37
|
+
Endpoint?: string | undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface BedrockAgentCoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Data plane operations for Amazon Bedrock AgentCore.</p>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./BedrockAgentCoreClient";
|
|
7
|
+
export * from "./BedrockAgentCore";
|
|
8
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { BedrockAgentCoreExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export * from "./pagination";
|
|
13
|
+
export * from "./models";
|
|
14
|
+
export { BedrockAgentCoreServiceException } from "./models/BedrockAgentCoreServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from BedrockAgentCore service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BedrockAgentCoreServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|