@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.
Files changed (211) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +413 -0
  3. package/dist-cjs/BedrockAgentCore.js +63 -0
  4. package/dist-cjs/BedrockAgentCoreClient.js +54 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateEventCommand.js +27 -0
  8. package/dist-cjs/commands/DeleteEventCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteMemoryRecordCommand.js +26 -0
  10. package/dist-cjs/commands/GetBrowserSessionCommand.js +26 -0
  11. package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +26 -0
  12. package/dist-cjs/commands/GetEventCommand.js +27 -0
  13. package/dist-cjs/commands/GetMemoryRecordCommand.js +27 -0
  14. package/dist-cjs/commands/GetResourceApiKeyCommand.js +27 -0
  15. package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +27 -0
  16. package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +27 -0
  17. package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +27 -0
  18. package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +27 -0
  19. package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +27 -0
  20. package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +31 -0
  21. package/dist-cjs/commands/ListActorsCommand.js +26 -0
  22. package/dist-cjs/commands/ListBrowserSessionsCommand.js +26 -0
  23. package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +26 -0
  24. package/dist-cjs/commands/ListEventsCommand.js +27 -0
  25. package/dist-cjs/commands/ListMemoryRecordsCommand.js +27 -0
  26. package/dist-cjs/commands/ListSessionsCommand.js +26 -0
  27. package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +27 -0
  28. package/dist-cjs/commands/StartBrowserSessionCommand.js +26 -0
  29. package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +26 -0
  30. package/dist-cjs/commands/StopBrowserSessionCommand.js +26 -0
  31. package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +26 -0
  32. package/dist-cjs/commands/UpdateBrowserStreamCommand.js +26 -0
  33. package/dist-cjs/commands/index.js +29 -0
  34. package/dist-cjs/endpoint/EndpointParameters.js +17 -0
  35. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  36. package/dist-cjs/endpoint/ruleset.js +7 -0
  37. package/dist-cjs/extensionConfiguration.js +2 -0
  38. package/dist-cjs/index.js +11 -0
  39. package/dist-cjs/models/BedrockAgentCoreServiceException.js +12 -0
  40. package/dist-cjs/models/index.js +4 -0
  41. package/dist-cjs/models/models_0.js +468 -0
  42. package/dist-cjs/pagination/Interfaces.js +2 -0
  43. package/dist-cjs/pagination/ListActorsPaginator.js +7 -0
  44. package/dist-cjs/pagination/ListEventsPaginator.js +7 -0
  45. package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +7 -0
  46. package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
  47. package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +7 -0
  48. package/dist-cjs/pagination/index.js +9 -0
  49. package/dist-cjs/protocols/Aws_restJson1.js +1423 -0
  50. package/dist-cjs/runtimeConfig.browser.js +41 -0
  51. package/dist-cjs/runtimeConfig.js +58 -0
  52. package/dist-cjs/runtimeConfig.native.js +15 -0
  53. package/dist-cjs/runtimeConfig.shared.js +36 -0
  54. package/dist-cjs/runtimeExtensions.js +13 -0
  55. package/dist-es/BedrockAgentCore.js +59 -0
  56. package/dist-es/BedrockAgentCoreClient.js +50 -0
  57. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  58. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  59. package/dist-es/commands/CreateEventCommand.js +23 -0
  60. package/dist-es/commands/DeleteEventCommand.js +22 -0
  61. package/dist-es/commands/DeleteMemoryRecordCommand.js +22 -0
  62. package/dist-es/commands/GetBrowserSessionCommand.js +22 -0
  63. package/dist-es/commands/GetCodeInterpreterSessionCommand.js +22 -0
  64. package/dist-es/commands/GetEventCommand.js +23 -0
  65. package/dist-es/commands/GetMemoryRecordCommand.js +23 -0
  66. package/dist-es/commands/GetResourceApiKeyCommand.js +23 -0
  67. package/dist-es/commands/GetResourceOauth2TokenCommand.js +23 -0
  68. package/dist-es/commands/GetWorkloadAccessTokenCommand.js +23 -0
  69. package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +23 -0
  70. package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +23 -0
  71. package/dist-es/commands/InvokeAgentRuntimeCommand.js +23 -0
  72. package/dist-es/commands/InvokeCodeInterpreterCommand.js +27 -0
  73. package/dist-es/commands/ListActorsCommand.js +22 -0
  74. package/dist-es/commands/ListBrowserSessionsCommand.js +22 -0
  75. package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +22 -0
  76. package/dist-es/commands/ListEventsCommand.js +23 -0
  77. package/dist-es/commands/ListMemoryRecordsCommand.js +23 -0
  78. package/dist-es/commands/ListSessionsCommand.js +22 -0
  79. package/dist-es/commands/RetrieveMemoryRecordsCommand.js +23 -0
  80. package/dist-es/commands/StartBrowserSessionCommand.js +22 -0
  81. package/dist-es/commands/StartCodeInterpreterSessionCommand.js +22 -0
  82. package/dist-es/commands/StopBrowserSessionCommand.js +22 -0
  83. package/dist-es/commands/StopCodeInterpreterSessionCommand.js +22 -0
  84. package/dist-es/commands/UpdateBrowserStreamCommand.js +22 -0
  85. package/dist-es/commands/index.js +26 -0
  86. package/dist-es/endpoint/EndpointParameters.js +13 -0
  87. package/dist-es/endpoint/endpointResolver.js +14 -0
  88. package/dist-es/endpoint/ruleset.js +4 -0
  89. package/dist-es/extensionConfiguration.js +1 -0
  90. package/dist-es/index.js +6 -0
  91. package/dist-es/models/BedrockAgentCoreServiceException.js +8 -0
  92. package/dist-es/models/index.js +1 -0
  93. package/dist-es/models/models_0.js +421 -0
  94. package/dist-es/pagination/Interfaces.js +1 -0
  95. package/dist-es/pagination/ListActorsPaginator.js +4 -0
  96. package/dist-es/pagination/ListEventsPaginator.js +4 -0
  97. package/dist-es/pagination/ListMemoryRecordsPaginator.js +4 -0
  98. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  99. package/dist-es/pagination/RetrieveMemoryRecordsPaginator.js +4 -0
  100. package/dist-es/pagination/index.js +6 -0
  101. package/dist-es/protocols/Aws_restJson1.js +1367 -0
  102. package/dist-es/runtimeConfig.browser.js +36 -0
  103. package/dist-es/runtimeConfig.js +53 -0
  104. package/dist-es/runtimeConfig.native.js +11 -0
  105. package/dist-es/runtimeConfig.shared.js +32 -0
  106. package/dist-es/runtimeExtensions.js +9 -0
  107. package/dist-types/BedrockAgentCore.d.ts +192 -0
  108. package/dist-types/BedrockAgentCoreClient.d.ts +223 -0
  109. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  110. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  111. package/dist-types/commands/CreateEventCommand.d.ts +133 -0
  112. package/dist-types/commands/DeleteEventCommand.d.ts +96 -0
  113. package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +94 -0
  114. package/dist-types/commands/GetBrowserSessionCommand.d.ts +108 -0
  115. package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +93 -0
  116. package/dist-types/commands/GetEventCommand.d.ts +117 -0
  117. package/dist-types/commands/GetMemoryRecordCommand.d.ts +104 -0
  118. package/dist-types/commands/GetResourceApiKeyCommand.d.ts +91 -0
  119. package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +102 -0
  120. package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +90 -0
  121. package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +91 -0
  122. package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +91 -0
  123. package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +126 -0
  124. package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +174 -0
  125. package/dist-types/commands/ListActorsCommand.d.ts +100 -0
  126. package/dist-types/commands/ListBrowserSessionsCommand.d.ts +100 -0
  127. package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +100 -0
  128. package/dist-types/commands/ListEventsCommand.d.ts +128 -0
  129. package/dist-types/commands/ListMemoryRecordsCommand.d.ts +111 -0
  130. package/dist-types/commands/ListSessionsCommand.d.ts +103 -0
  131. package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +115 -0
  132. package/dist-types/commands/StartBrowserSessionCommand.d.ts +111 -0
  133. package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +98 -0
  134. package/dist-types/commands/StopBrowserSessionCommand.d.ts +97 -0
  135. package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +97 -0
  136. package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +111 -0
  137. package/dist-types/commands/index.d.ts +26 -0
  138. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  139. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  140. package/dist-types/endpoint/ruleset.d.ts +2 -0
  141. package/dist-types/extensionConfiguration.d.ts +9 -0
  142. package/dist-types/index.d.ts +14 -0
  143. package/dist-types/models/BedrockAgentCoreServiceException.d.ts +14 -0
  144. package/dist-types/models/index.d.ts +1 -0
  145. package/dist-types/models/models_0.d.ts +2440 -0
  146. package/dist-types/pagination/Interfaces.d.ts +8 -0
  147. package/dist-types/pagination/ListActorsPaginator.d.ts +7 -0
  148. package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
  149. package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +7 -0
  150. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  151. package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +7 -0
  152. package/dist-types/pagination/index.d.ts +6 -0
  153. package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
  154. package/dist-types/runtimeConfig.browser.d.ts +52 -0
  155. package/dist-types/runtimeConfig.d.ts +52 -0
  156. package/dist-types/runtimeConfig.native.d.ts +51 -0
  157. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  158. package/dist-types/runtimeExtensions.d.ts +17 -0
  159. package/dist-types/ts3.4/BedrockAgentCore.d.ts +449 -0
  160. package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +288 -0
  161. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  162. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  163. package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +47 -0
  164. package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +47 -0
  165. package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +51 -0
  166. package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +51 -0
  167. package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +51 -0
  168. package/dist-types/ts3.4/commands/GetEventCommand.d.ts +47 -0
  169. package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +50 -0
  170. package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +51 -0
  171. package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +51 -0
  173. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +51 -0
  174. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +51 -0
  175. package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +66 -0
  176. package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +51 -0
  177. package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +47 -0
  178. package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +51 -0
  179. package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +51 -0
  180. package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +47 -0
  181. package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +50 -0
  182. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  183. package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +51 -0
  184. package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +51 -0
  186. package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +51 -0
  187. package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +51 -0
  188. package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +51 -0
  189. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  190. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  191. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  192. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  193. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  194. package/dist-types/ts3.4/index.d.ts +9 -0
  195. package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +9 -0
  196. package/dist-types/ts3.4/models/index.d.ts +1 -0
  197. package/dist-types/ts3.4/models/models_0.d.ts +872 -0
  198. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  199. package/dist-types/ts3.4/pagination/ListActorsPaginator.d.ts +11 -0
  200. package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +11 -0
  201. package/dist-types/ts3.4/pagination/ListMemoryRecordsPaginator.d.ts +11 -0
  202. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  203. package/dist-types/ts3.4/pagination/RetrieveMemoryRecordsPaginator.d.ts +11 -0
  204. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  205. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +321 -0
  206. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  207. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  208. package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
  209. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +24 -0
  210. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  211. package/package.json +105 -0
@@ -0,0 +1,117 @@
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 { GetEventInput, GetEventOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetEventCommand}.
14
+ */
15
+ export interface GetEventCommandInput extends GetEventInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetEventCommand}.
21
+ */
22
+ export interface GetEventCommandOutput extends GetEventOutput, __MetadataBearer {
23
+ }
24
+ declare const GetEventCommand_base: {
25
+ new (input: GetEventCommandInput): import("@smithy/smithy-client").CommandImpl<GetEventCommandInput, GetEventCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetEventCommandInput): import("@smithy/smithy-client").CommandImpl<GetEventCommandInput, GetEventCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a specific event in a memory store.</p> <p>To use this operation, you must have the <code>genesismemory:GetEvent</code> permission.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetEventCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetEventCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetEventInput
38
+ * memoryId: "STRING_VALUE", // required
39
+ * sessionId: "STRING_VALUE", // required
40
+ * actorId: "STRING_VALUE", // required
41
+ * eventId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetEventCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetEventOutput
46
+ * // event: { // Event
47
+ * // memoryId: "STRING_VALUE", // required
48
+ * // actorId: "STRING_VALUE", // required
49
+ * // sessionId: "STRING_VALUE", // required
50
+ * // eventId: "STRING_VALUE", // required
51
+ * // eventTimestamp: new Date("TIMESTAMP"), // required
52
+ * // payload: [ // PayloadTypeList // required
53
+ * // { // PayloadType Union: only one key present
54
+ * // conversational: { // Conversational
55
+ * // content: { // Content Union: only one key present
56
+ * // text: "STRING_VALUE",
57
+ * // },
58
+ * // role: "ASSISTANT" || "USER" || "TOOL" || "OTHER", // required
59
+ * // },
60
+ * // blob: "DOCUMENT_VALUE",
61
+ * // },
62
+ * // ],
63
+ * // branch: { // Branch
64
+ * // rootEventId: "STRING_VALUE",
65
+ * // name: "STRING_VALUE", // required
66
+ * // },
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param GetEventCommandInput - {@link GetEventCommandInput}
73
+ * @returns {@link GetEventCommandOutput}
74
+ * @see {@link GetEventCommandInput} for command's `input` shape.
75
+ * @see {@link GetEventCommandOutput} for command's `response` shape.
76
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <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>
80
+ *
81
+ * @throws {@link InvalidInputException} (client fault)
82
+ * <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <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>
86
+ *
87
+ * @throws {@link ServiceException} (server fault)
88
+ * <p>The service encountered an internal error. Try your request again later.</p>
89
+ *
90
+ * @throws {@link ServiceQuotaExceededException} (client fault)
91
+ * <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>
92
+ *
93
+ * @throws {@link ThrottledException} (client fault)
94
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <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>
98
+ *
99
+ * @throws {@link BedrockAgentCoreServiceException}
100
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
101
+ *
102
+ *
103
+ * @public
104
+ */
105
+ export declare class GetEventCommand extends GetEventCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: GetEventInput;
110
+ output: GetEventOutput;
111
+ };
112
+ sdk: {
113
+ input: GetEventCommandInput;
114
+ output: GetEventCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -0,0 +1,104 @@
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 { GetMemoryRecordInput, GetMemoryRecordOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetMemoryRecordCommand}.
14
+ */
15
+ export interface GetMemoryRecordCommandInput extends GetMemoryRecordInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetMemoryRecordCommand}.
21
+ */
22
+ export interface GetMemoryRecordCommandOutput extends GetMemoryRecordOutput, __MetadataBearer {
23
+ }
24
+ declare const GetMemoryRecordCommand_base: {
25
+ new (input: GetMemoryRecordCommandInput): import("@smithy/smithy-client").CommandImpl<GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetMemoryRecordCommandInput): import("@smithy/smithy-client").CommandImpl<GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves a specific memory record from a memory store.</p> <p>To use this operation, you must have the <code>genesismemory:GetMemoryRecord</code> permission.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetMemoryRecordCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetMemoryRecordCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetMemoryRecordInput
38
+ * memoryId: "STRING_VALUE", // required
39
+ * memoryRecordId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetMemoryRecordCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetMemoryRecordOutput
44
+ * // memoryRecord: { // MemoryRecord
45
+ * // memoryRecordId: "STRING_VALUE", // required
46
+ * // content: { // MemoryContent Union: only one key present
47
+ * // text: "STRING_VALUE",
48
+ * // },
49
+ * // memoryStrategyId: "STRING_VALUE", // required
50
+ * // namespaces: [ // NamespacesList // required
51
+ * // "STRING_VALUE",
52
+ * // ],
53
+ * // createdAt: new Date("TIMESTAMP"), // required
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetMemoryRecordCommandInput - {@link GetMemoryRecordCommandInput}
60
+ * @returns {@link GetMemoryRecordCommandOutput}
61
+ * @see {@link GetMemoryRecordCommandInput} for command's `input` shape.
62
+ * @see {@link GetMemoryRecordCommandOutput} for command's `response` shape.
63
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <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>
67
+ *
68
+ * @throws {@link InvalidInputException} (client fault)
69
+ * <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <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>
73
+ *
74
+ * @throws {@link ServiceException} (server fault)
75
+ * <p>The service encountered an internal error. Try your request again later.</p>
76
+ *
77
+ * @throws {@link ServiceQuotaExceededException} (client fault)
78
+ * <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>
79
+ *
80
+ * @throws {@link ThrottledException} (client fault)
81
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * <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>
85
+ *
86
+ * @throws {@link BedrockAgentCoreServiceException}
87
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
88
+ *
89
+ *
90
+ * @public
91
+ */
92
+ export declare class GetMemoryRecordCommand extends GetMemoryRecordCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: GetMemoryRecordInput;
97
+ output: GetMemoryRecordOutput;
98
+ };
99
+ sdk: {
100
+ input: GetMemoryRecordCommandInput;
101
+ output: GetMemoryRecordCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,91 @@
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 { GetResourceApiKeyRequest, GetResourceApiKeyResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetResourceApiKeyCommand}.
14
+ */
15
+ export interface GetResourceApiKeyCommandInput extends GetResourceApiKeyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourceApiKeyCommand}.
21
+ */
22
+ export interface GetResourceApiKeyCommandOutput extends GetResourceApiKeyResponse, __MetadataBearer {
23
+ }
24
+ declare const GetResourceApiKeyCommand_base: {
25
+ new (input: GetResourceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetResourceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves an API Key associated with an API Key Credential Provider</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetResourceApiKeyCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetResourceApiKeyCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetResourceApiKeyRequest
38
+ * workloadIdentityToken: "STRING_VALUE", // required
39
+ * resourceCredentialProviderName: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetResourceApiKeyCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetResourceApiKeyResponse
44
+ * // apiKey: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetResourceApiKeyCommandInput - {@link GetResourceApiKeyCommandInput}
50
+ * @returns {@link GetResourceApiKeyCommandOutput}
51
+ * @see {@link GetResourceApiKeyCommandInput} for command's `input` shape.
52
+ * @see {@link GetResourceApiKeyCommandOutput} for command's `response` shape.
53
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <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>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <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>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <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>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <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>
66
+ *
67
+ * @throws {@link UnauthorizedException} (client fault)
68
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <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>
72
+ *
73
+ * @throws {@link BedrockAgentCoreServiceException}
74
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class GetResourceApiKeyCommand extends GetResourceApiKeyCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: GetResourceApiKeyRequest;
84
+ output: GetResourceApiKeyResponse;
85
+ };
86
+ sdk: {
87
+ input: GetResourceApiKeyCommandInput;
88
+ output: GetResourceApiKeyCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,102 @@
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 { GetResourceOauth2TokenRequest, GetResourceOauth2TokenResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetResourceOauth2TokenCommand}.
14
+ */
15
+ export interface GetResourceOauth2TokenCommandInput extends GetResourceOauth2TokenRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourceOauth2TokenCommand}.
21
+ */
22
+ export interface GetResourceOauth2TokenCommandOutput extends GetResourceOauth2TokenResponse, __MetadataBearer {
23
+ }
24
+ declare const GetResourceOauth2TokenCommand_base: {
25
+ new (input: GetResourceOauth2TokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetResourceOauth2TokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Reaturns the Oauth2Token of the provided resource</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetResourceOauth2TokenCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetResourceOauth2TokenCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetResourceOauth2TokenRequest
38
+ * workloadIdentityToken: "STRING_VALUE", // required
39
+ * userId: "STRING_VALUE",
40
+ * resourceCredentialProviderName: "STRING_VALUE", // required
41
+ * scopes: [ // ScopesListType // required
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * oauth2Flow: "USER_FEDERATION" || "M2M", // required
45
+ * resourceOauth2ReturnUrl: "STRING_VALUE",
46
+ * forceAuthentication: true || false,
47
+ * customParameters: { // CustomRequestParametersType
48
+ * "<keys>": "STRING_VALUE",
49
+ * },
50
+ * };
51
+ * const command = new GetResourceOauth2TokenCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // GetResourceOauth2TokenResponse
54
+ * // authorizationUrl: "STRING_VALUE",
55
+ * // accessToken: "STRING_VALUE",
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param GetResourceOauth2TokenCommandInput - {@link GetResourceOauth2TokenCommandInput}
61
+ * @returns {@link GetResourceOauth2TokenCommandOutput}
62
+ * @see {@link GetResourceOauth2TokenCommandInput} for command's `input` shape.
63
+ * @see {@link GetResourceOauth2TokenCommandOutput} for command's `response` shape.
64
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <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>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <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>
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * <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>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <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>
77
+ *
78
+ * @throws {@link UnauthorizedException} (client fault)
79
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <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>
83
+ *
84
+ * @throws {@link BedrockAgentCoreServiceException}
85
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class GetResourceOauth2TokenCommand extends GetResourceOauth2TokenCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: GetResourceOauth2TokenRequest;
95
+ output: GetResourceOauth2TokenResponse;
96
+ };
97
+ sdk: {
98
+ input: GetResourceOauth2TokenCommandInput;
99
+ output: GetResourceOauth2TokenCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,90 @@
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 { GetWorkloadAccessTokenRequest, GetWorkloadAccessTokenResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetWorkloadAccessTokenCommand}.
14
+ */
15
+ export interface GetWorkloadAccessTokenCommandInput extends GetWorkloadAccessTokenRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetWorkloadAccessTokenCommand}.
21
+ */
22
+ export interface GetWorkloadAccessTokenCommandOutput extends GetWorkloadAccessTokenResponse, __MetadataBearer {
23
+ }
24
+ declare const GetWorkloadAccessTokenCommand_base: {
25
+ new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Obtains an Workload access token for agentic workloads not acting on behalf of user.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetWorkloadAccessTokenCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetWorkloadAccessTokenCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetWorkloadAccessTokenRequest
38
+ * workloadName: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetWorkloadAccessTokenCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetWorkloadAccessTokenResponse
43
+ * // workloadAccessToken: "STRING_VALUE", // required
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param GetWorkloadAccessTokenCommandInput - {@link GetWorkloadAccessTokenCommandInput}
49
+ * @returns {@link GetWorkloadAccessTokenCommandOutput}
50
+ * @see {@link GetWorkloadAccessTokenCommandInput} for command's `input` shape.
51
+ * @see {@link GetWorkloadAccessTokenCommandOutput} for command's `response` shape.
52
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <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>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <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>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <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>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <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>
65
+ *
66
+ * @throws {@link UnauthorizedException} (client fault)
67
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <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>
71
+ *
72
+ * @throws {@link BedrockAgentCoreServiceException}
73
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class GetWorkloadAccessTokenCommand extends GetWorkloadAccessTokenCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: GetWorkloadAccessTokenRequest;
83
+ output: GetWorkloadAccessTokenResponse;
84
+ };
85
+ sdk: {
86
+ input: GetWorkloadAccessTokenCommandInput;
87
+ output: GetWorkloadAccessTokenCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -0,0 +1,91 @@
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 { GetWorkloadAccessTokenForJWTRequest, GetWorkloadAccessTokenForJWTResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetWorkloadAccessTokenForJWTCommand}.
14
+ */
15
+ export interface GetWorkloadAccessTokenForJWTCommandInput extends GetWorkloadAccessTokenForJWTRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetWorkloadAccessTokenForJWTCommand}.
21
+ */
22
+ export interface GetWorkloadAccessTokenForJWTCommandOutput extends GetWorkloadAccessTokenForJWTResponse, __MetadataBearer {
23
+ }
24
+ declare const GetWorkloadAccessTokenForJWTCommand_base: {
25
+ new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/smithy-client").CommandImpl<GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/smithy-client").CommandImpl<GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Obtains an Workload access token for agentic workloads acting on behalf of user with JWT token</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetWorkloadAccessTokenForJWTCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetWorkloadAccessTokenForJWTCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * const client = new BedrockAgentCoreClient(config);
37
+ * const input = { // GetWorkloadAccessTokenForJWTRequest
38
+ * workloadName: "STRING_VALUE", // required
39
+ * userToken: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetWorkloadAccessTokenForJWTCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetWorkloadAccessTokenForJWTResponse
44
+ * // workloadAccessToken: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetWorkloadAccessTokenForJWTCommandInput - {@link GetWorkloadAccessTokenForJWTCommandInput}
50
+ * @returns {@link GetWorkloadAccessTokenForJWTCommandOutput}
51
+ * @see {@link GetWorkloadAccessTokenForJWTCommandInput} for command's `input` shape.
52
+ * @see {@link GetWorkloadAccessTokenForJWTCommandOutput} for command's `response` shape.
53
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <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>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <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>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <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>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <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>
66
+ *
67
+ * @throws {@link UnauthorizedException} (client fault)
68
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <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>
72
+ *
73
+ * @throws {@link BedrockAgentCoreServiceException}
74
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class GetWorkloadAccessTokenForJWTCommand extends GetWorkloadAccessTokenForJWTCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: GetWorkloadAccessTokenForJWTRequest;
84
+ output: GetWorkloadAccessTokenForJWTResponse;
85
+ };
86
+ sdk: {
87
+ input: GetWorkloadAccessTokenForJWTCommandInput;
88
+ output: GetWorkloadAccessTokenForJWTCommandOutput;
89
+ };
90
+ };
91
+ }