@aws-sdk/client-bedrock-agentcore-control 3.940.0 → 3.946.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 (242) hide show
  1. package/README.md +216 -0
  2. package/dist-cjs/index.js +2060 -545
  3. package/dist-cjs/runtimeConfig.browser.js +2 -2
  4. package/dist-cjs/runtimeConfig.js +3 -4
  5. package/dist-es/BedrockAgentCoreControl.js +54 -0
  6. package/dist-es/BedrockAgentCoreControlClient.js +2 -2
  7. package/dist-es/commands/CreateEvaluatorCommand.js +16 -0
  8. package/dist-es/commands/CreateOnlineEvaluationConfigCommand.js +16 -0
  9. package/dist-es/commands/CreatePolicyCommand.js +16 -0
  10. package/dist-es/commands/CreatePolicyEngineCommand.js +16 -0
  11. package/dist-es/commands/DeleteEvaluatorCommand.js +16 -0
  12. package/dist-es/commands/DeleteOnlineEvaluationConfigCommand.js +16 -0
  13. package/dist-es/commands/DeletePolicyCommand.js +16 -0
  14. package/dist-es/commands/DeletePolicyEngineCommand.js +16 -0
  15. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  16. package/dist-es/commands/GetEvaluatorCommand.js +16 -0
  17. package/dist-es/commands/GetOnlineEvaluationConfigCommand.js +16 -0
  18. package/dist-es/commands/GetPolicyCommand.js +16 -0
  19. package/dist-es/commands/GetPolicyEngineCommand.js +16 -0
  20. package/dist-es/commands/GetPolicyGenerationCommand.js +16 -0
  21. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  22. package/dist-es/commands/ListEvaluatorsCommand.js +16 -0
  23. package/dist-es/commands/ListOnlineEvaluationConfigsCommand.js +16 -0
  24. package/dist-es/commands/ListPoliciesCommand.js +16 -0
  25. package/dist-es/commands/ListPolicyEnginesCommand.js +16 -0
  26. package/dist-es/commands/ListPolicyGenerationAssetsCommand.js +16 -0
  27. package/dist-es/commands/ListPolicyGenerationsCommand.js +16 -0
  28. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  29. package/dist-es/commands/StartPolicyGenerationCommand.js +16 -0
  30. package/dist-es/commands/UpdateEvaluatorCommand.js +16 -0
  31. package/dist-es/commands/UpdateOnlineEvaluationConfigCommand.js +16 -0
  32. package/dist-es/commands/UpdatePolicyCommand.js +16 -0
  33. package/dist-es/commands/UpdatePolicyEngineCommand.js +16 -0
  34. package/dist-es/commands/index.js +27 -0
  35. package/dist-es/models/enums.js +104 -0
  36. package/dist-es/models/models_1.js +1 -0
  37. package/dist-es/pagination/ListEvaluatorsPaginator.js +4 -0
  38. package/dist-es/pagination/ListOnlineEvaluationConfigsPaginator.js +4 -0
  39. package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
  40. package/dist-es/pagination/ListPolicyEnginesPaginator.js +4 -0
  41. package/dist-es/pagination/ListPolicyGenerationAssetsPaginator.js +4 -0
  42. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +4 -0
  43. package/dist-es/pagination/index.js +6 -0
  44. package/dist-es/runtimeConfig.browser.js +2 -2
  45. package/dist-es/runtimeConfig.js +2 -3
  46. package/dist-es/schemas/schemas_0.js +1276 -535
  47. package/dist-es/waiters/index.js +5 -0
  48. package/dist-es/waiters/waitForPolicyActive.js +58 -0
  49. package/dist-es/waiters/waitForPolicyDeleted.js +43 -0
  50. package/dist-es/waiters/waitForPolicyEngineActive.js +58 -0
  51. package/dist-es/waiters/waitForPolicyEngineDeleted.js +43 -0
  52. package/dist-es/waiters/waitForPolicyGenerationCompleted.js +58 -0
  53. package/dist-types/BedrockAgentCoreControl.d.ts +193 -1
  54. package/dist-types/BedrockAgentCoreControlClient.d.ts +39 -12
  55. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  56. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  57. package/dist-types/commands/CreateAgentRuntimeCommand.d.ts +21 -3
  58. package/dist-types/commands/CreateAgentRuntimeEndpointCommand.d.ts +3 -3
  59. package/dist-types/commands/CreateApiKeyCredentialProviderCommand.d.ts +3 -3
  60. package/dist-types/commands/CreateBrowserCommand.d.ts +3 -3
  61. package/dist-types/commands/CreateCodeInterpreterCommand.d.ts +3 -3
  62. package/dist-types/commands/CreateEvaluatorCommand.d.ts +132 -0
  63. package/dist-types/commands/CreateGatewayCommand.d.ts +47 -3
  64. package/dist-types/commands/CreateGatewayTargetCommand.d.ts +51 -3
  65. package/dist-types/commands/CreateMemoryCommand.d.ts +55 -8
  66. package/dist-types/commands/CreateOauth2CredentialProviderCommand.d.ts +3 -3
  67. package/dist-types/commands/CreateOnlineEvaluationConfigCommand.d.ts +140 -0
  68. package/dist-types/commands/CreatePolicyCommand.d.ts +119 -0
  69. package/dist-types/commands/CreatePolicyEngineCommand.d.ts +103 -0
  70. package/dist-types/commands/CreateWorkloadIdentityCommand.d.ts +3 -3
  71. package/dist-types/commands/DeleteAgentRuntimeCommand.d.ts +3 -3
  72. package/dist-types/commands/DeleteAgentRuntimeEndpointCommand.d.ts +3 -3
  73. package/dist-types/commands/DeleteApiKeyCredentialProviderCommand.d.ts +3 -3
  74. package/dist-types/commands/DeleteBrowserCommand.d.ts +3 -3
  75. package/dist-types/commands/DeleteCodeInterpreterCommand.d.ts +3 -3
  76. package/dist-types/commands/DeleteEvaluatorCommand.d.ts +94 -0
  77. package/dist-types/commands/DeleteGatewayCommand.d.ts +3 -3
  78. package/dist-types/commands/DeleteGatewayTargetCommand.d.ts +3 -3
  79. package/dist-types/commands/DeleteMemoryCommand.d.ts +6 -3
  80. package/dist-types/commands/DeleteOauth2CredentialProviderCommand.d.ts +3 -3
  81. package/dist-types/commands/DeleteOnlineEvaluationConfigCommand.d.ts +94 -0
  82. package/dist-types/commands/DeletePolicyCommand.d.ts +108 -0
  83. package/dist-types/commands/DeletePolicyEngineCommand.d.ts +101 -0
  84. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
  85. package/dist-types/commands/DeleteWorkloadIdentityCommand.d.ts +3 -3
  86. package/dist-types/commands/GetAgentRuntimeCommand.d.ts +22 -3
  87. package/dist-types/commands/GetAgentRuntimeEndpointCommand.d.ts +3 -3
  88. package/dist-types/commands/GetApiKeyCredentialProviderCommand.d.ts +3 -3
  89. package/dist-types/commands/GetBrowserCommand.d.ts +3 -3
  90. package/dist-types/commands/GetCodeInterpreterCommand.d.ts +3 -3
  91. package/dist-types/commands/GetEvaluatorCommand.d.ts +131 -0
  92. package/dist-types/commands/GetGatewayCommand.d.ts +25 -3
  93. package/dist-types/commands/GetGatewayTargetCommand.d.ts +28 -3
  94. package/dist-types/commands/GetMemoryCommand.d.ts +30 -8
  95. package/dist-types/commands/GetOauth2CredentialProviderCommand.d.ts +3 -3
  96. package/dist-types/commands/GetOnlineEvaluationConfigCommand.d.ts +137 -0
  97. package/dist-types/commands/GetPolicyCommand.d.ts +105 -0
  98. package/dist-types/commands/GetPolicyEngineCommand.d.ts +98 -0
  99. package/dist-types/commands/GetPolicyGenerationCommand.d.ts +103 -0
  100. package/dist-types/commands/GetResourcePolicyCommand.d.ts +89 -0
  101. package/dist-types/commands/GetTokenVaultCommand.d.ts +3 -3
  102. package/dist-types/commands/GetWorkloadIdentityCommand.d.ts +3 -3
  103. package/dist-types/commands/ListAgentRuntimeEndpointsCommand.d.ts +3 -3
  104. package/dist-types/commands/ListAgentRuntimeVersionsCommand.d.ts +3 -3
  105. package/dist-types/commands/ListAgentRuntimesCommand.d.ts +3 -3
  106. package/dist-types/commands/ListApiKeyCredentialProvidersCommand.d.ts +3 -3
  107. package/dist-types/commands/ListBrowsersCommand.d.ts +3 -3
  108. package/dist-types/commands/ListCodeInterpretersCommand.d.ts +3 -3
  109. package/dist-types/commands/ListEvaluatorsCommand.d.ts +101 -0
  110. package/dist-types/commands/ListGatewayTargetsCommand.d.ts +3 -3
  111. package/dist-types/commands/ListGatewaysCommand.d.ts +3 -3
  112. package/dist-types/commands/ListMemoriesCommand.d.ts +3 -3
  113. package/dist-types/commands/ListOauth2CredentialProvidersCommand.d.ts +3 -3
  114. package/dist-types/commands/ListOnlineEvaluationConfigsCommand.d.ts +100 -0
  115. package/dist-types/commands/ListPoliciesCommand.d.ts +113 -0
  116. package/dist-types/commands/ListPolicyEnginesCommand.d.ts +101 -0
  117. package/dist-types/commands/ListPolicyGenerationAssetsCommand.d.ts +109 -0
  118. package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +109 -0
  119. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  120. package/dist-types/commands/ListWorkloadIdentitiesCommand.d.ts +3 -3
  121. package/dist-types/commands/PutResourcePolicyCommand.d.ts +90 -0
  122. package/dist-types/commands/SetTokenVaultCMKCommand.d.ts +3 -3
  123. package/dist-types/commands/StartPolicyGenerationCommand.d.ts +116 -0
  124. package/dist-types/commands/SynchronizeGatewayTargetsCommand.d.ts +28 -3
  125. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  126. package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
  127. package/dist-types/commands/UpdateAgentRuntimeCommand.d.ts +21 -3
  128. package/dist-types/commands/UpdateAgentRuntimeEndpointCommand.d.ts +3 -3
  129. package/dist-types/commands/UpdateApiKeyCredentialProviderCommand.d.ts +3 -3
  130. package/dist-types/commands/UpdateEvaluatorCommand.d.ts +135 -0
  131. package/dist-types/commands/UpdateGatewayCommand.d.ts +47 -3
  132. package/dist-types/commands/UpdateGatewayTargetCommand.d.ts +51 -3
  133. package/dist-types/commands/UpdateMemoryCommand.d.ts +76 -11
  134. package/dist-types/commands/UpdateOauth2CredentialProviderCommand.d.ts +3 -3
  135. package/dist-types/commands/UpdateOnlineEvaluationConfigCommand.d.ts +138 -0
  136. package/dist-types/commands/UpdatePolicyCommand.d.ts +115 -0
  137. package/dist-types/commands/UpdatePolicyEngineCommand.d.ts +102 -0
  138. package/dist-types/commands/UpdateWorkloadIdentityCommand.d.ts +3 -3
  139. package/dist-types/commands/index.d.ts +27 -0
  140. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  141. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  142. package/dist-types/extensionConfiguration.d.ts +4 -4
  143. package/dist-types/index.d.ts +1 -0
  144. package/dist-types/models/BedrockAgentCoreControlServiceException.d.ts +1 -1
  145. package/dist-types/models/enums.d.ts +232 -0
  146. package/dist-types/models/errors.d.ts +1 -1
  147. package/dist-types/models/models_0.d.ts +4160 -2169
  148. package/dist-types/models/models_1.d.ts +1009 -0
  149. package/dist-types/pagination/Interfaces.d.ts +1 -1
  150. package/dist-types/pagination/ListAgentRuntimeEndpointsPaginator.d.ts +1 -1
  151. package/dist-types/pagination/ListAgentRuntimeVersionsPaginator.d.ts +1 -1
  152. package/dist-types/pagination/ListAgentRuntimesPaginator.d.ts +1 -1
  153. package/dist-types/pagination/ListApiKeyCredentialProvidersPaginator.d.ts +1 -1
  154. package/dist-types/pagination/ListBrowsersPaginator.d.ts +1 -1
  155. package/dist-types/pagination/ListCodeInterpretersPaginator.d.ts +1 -1
  156. package/dist-types/pagination/ListEvaluatorsPaginator.d.ts +7 -0
  157. package/dist-types/pagination/ListGatewayTargetsPaginator.d.ts +1 -1
  158. package/dist-types/pagination/ListGatewaysPaginator.d.ts +1 -1
  159. package/dist-types/pagination/ListMemoriesPaginator.d.ts +1 -1
  160. package/dist-types/pagination/ListOauth2CredentialProvidersPaginator.d.ts +1 -1
  161. package/dist-types/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +7 -0
  162. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  163. package/dist-types/pagination/ListPolicyEnginesPaginator.d.ts +7 -0
  164. package/dist-types/pagination/ListPolicyGenerationAssetsPaginator.d.ts +7 -0
  165. package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +7 -0
  166. package/dist-types/pagination/ListWorkloadIdentitiesPaginator.d.ts +1 -1
  167. package/dist-types/pagination/index.d.ts +6 -0
  168. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  169. package/dist-types/runtimeConfig.d.ts +1 -1
  170. package/dist-types/runtimeConfig.native.d.ts +1 -1
  171. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  172. package/dist-types/runtimeExtensions.d.ts +1 -1
  173. package/dist-types/schemas/schemas_0.d.ts +157 -1
  174. package/dist-types/ts3.4/BedrockAgentCoreControl.d.ts +462 -0
  175. package/dist-types/ts3.4/BedrockAgentCoreControlClient.d.ts +165 -3
  176. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  177. package/dist-types/ts3.4/commands/CreateEvaluatorCommand.d.ts +50 -0
  178. package/dist-types/ts3.4/commands/CreateGatewayTargetCommand.d.ts +1 -1
  179. package/dist-types/ts3.4/commands/CreateOnlineEvaluationConfigCommand.d.ts +51 -0
  180. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +47 -0
  181. package/dist-types/ts3.4/commands/CreatePolicyEngineCommand.d.ts +51 -0
  182. package/dist-types/ts3.4/commands/CreateWorkloadIdentityCommand.d.ts +1 -1
  183. package/dist-types/ts3.4/commands/DeleteEvaluatorCommand.d.ts +50 -0
  184. package/dist-types/ts3.4/commands/DeleteOnlineEvaluationConfigCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +47 -0
  186. package/dist-types/ts3.4/commands/DeletePolicyEngineCommand.d.ts +51 -0
  187. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  188. package/dist-types/ts3.4/commands/DeleteWorkloadIdentityCommand.d.ts +1 -1
  189. package/dist-types/ts3.4/commands/GetEvaluatorCommand.d.ts +47 -0
  190. package/dist-types/ts3.4/commands/GetGatewayTargetCommand.d.ts +2 -4
  191. package/dist-types/ts3.4/commands/GetOnlineEvaluationConfigCommand.d.ts +51 -0
  192. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +47 -0
  193. package/dist-types/ts3.4/commands/GetPolicyEngineCommand.d.ts +50 -0
  194. package/dist-types/ts3.4/commands/GetPolicyGenerationCommand.d.ts +51 -0
  195. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  196. package/dist-types/ts3.4/commands/GetWorkloadIdentityCommand.d.ts +1 -1
  197. package/dist-types/ts3.4/commands/ListEvaluatorsCommand.d.ts +50 -0
  198. package/dist-types/ts3.4/commands/ListOnlineEvaluationConfigsCommand.d.ts +51 -0
  199. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +48 -0
  200. package/dist-types/ts3.4/commands/ListPolicyEnginesCommand.d.ts +51 -0
  201. package/dist-types/ts3.4/commands/ListPolicyGenerationAssetsCommand.d.ts +51 -0
  202. package/dist-types/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +51 -0
  203. package/dist-types/ts3.4/commands/ListWorkloadIdentitiesCommand.d.ts +1 -1
  204. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  205. package/dist-types/ts3.4/commands/SetTokenVaultCMKCommand.d.ts +1 -1
  206. package/dist-types/ts3.4/commands/StartPolicyGenerationCommand.d.ts +51 -0
  207. package/dist-types/ts3.4/commands/SynchronizeGatewayTargetsCommand.d.ts +2 -4
  208. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  209. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  210. package/dist-types/ts3.4/commands/UpdateEvaluatorCommand.d.ts +50 -0
  211. package/dist-types/ts3.4/commands/UpdateGatewayTargetCommand.d.ts +1 -1
  212. package/dist-types/ts3.4/commands/UpdateOnlineEvaluationConfigCommand.d.ts +51 -0
  213. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +47 -0
  214. package/dist-types/ts3.4/commands/UpdatePolicyEngineCommand.d.ts +51 -0
  215. package/dist-types/ts3.4/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
  216. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  217. package/dist-types/ts3.4/index.d.ts +1 -0
  218. package/dist-types/ts3.4/models/BedrockAgentCoreControlServiceException.d.ts +1 -1
  219. package/dist-types/ts3.4/models/enums.d.ts +132 -0
  220. package/dist-types/ts3.4/models/models_0.d.ts +835 -188
  221. package/dist-types/ts3.4/models/models_1.d.ts +331 -0
  222. package/dist-types/ts3.4/pagination/ListEvaluatorsPaginator.d.ts +11 -0
  223. package/dist-types/ts3.4/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +11 -0
  224. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  225. package/dist-types/ts3.4/pagination/ListPolicyEnginesPaginator.d.ts +11 -0
  226. package/dist-types/ts3.4/pagination/ListPolicyGenerationAssetsPaginator.d.ts +11 -0
  227. package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +11 -0
  228. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  229. package/dist-types/ts3.4/schemas/schemas_0.d.ts +156 -0
  230. package/dist-types/ts3.4/waiters/index.d.ts +5 -0
  231. package/dist-types/ts3.4/waiters/waitForPolicyActive.d.ts +11 -0
  232. package/dist-types/ts3.4/waiters/waitForPolicyDeleted.d.ts +11 -0
  233. package/dist-types/ts3.4/waiters/waitForPolicyEngineActive.d.ts +11 -0
  234. package/dist-types/ts3.4/waiters/waitForPolicyEngineDeleted.d.ts +11 -0
  235. package/dist-types/ts3.4/waiters/waitForPolicyGenerationCompleted.d.ts +11 -0
  236. package/dist-types/waiters/index.d.ts +5 -0
  237. package/dist-types/waiters/waitForPolicyActive.d.ts +14 -0
  238. package/dist-types/waiters/waitForPolicyDeleted.d.ts +14 -0
  239. package/dist-types/waiters/waitForPolicyEngineActive.d.ts +14 -0
  240. package/dist-types/waiters/waitForPolicyEngineDeleted.d.ts +14 -0
  241. package/dist-types/waiters/waitForPolicyGenerationCompleted.d.ts +14 -0
  242. package/package.json +13 -12
@@ -1 +1,6 @@
1
1
  export * from "./waitForMemoryCreated";
2
+ export * from "./waitForPolicyActive";
3
+ export * from "./waitForPolicyDeleted";
4
+ export * from "./waitForPolicyEngineActive";
5
+ export * from "./waitForPolicyEngineDeleted";
6
+ export * from "./waitForPolicyGenerationCompleted";
@@ -0,0 +1,58 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetPolicyCommand } from "../commands/GetPolicyCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetPolicyCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "ACTIVE") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "CREATE_FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "UPDATE_FAILED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ try {
36
+ const returnComparator = () => {
37
+ return result.status;
38
+ };
39
+ if (returnComparator() === "DELETE_FAILED") {
40
+ return { state: WaiterState.FAILURE, reason };
41
+ }
42
+ }
43
+ catch (e) { }
44
+ }
45
+ catch (exception) {
46
+ reason = exception;
47
+ }
48
+ return { state: WaiterState.RETRY, reason };
49
+ };
50
+ export const waitForPolicyActive = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
52
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ };
54
+ export const waitUntilPolicyActive = async (params, input) => {
55
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
56
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
57
+ return checkExceptions(result);
58
+ };
@@ -0,0 +1,43 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetPolicyCommand } from "../commands/GetPolicyCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetPolicyCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETING") {
13
+ return { state: WaiterState.RETRY, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "DELETE_FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ }
27
+ catch (exception) {
28
+ reason = exception;
29
+ if (exception.name && exception.name == "ResourceNotFoundException") {
30
+ return { state: WaiterState.SUCCESS, reason };
31
+ }
32
+ }
33
+ return { state: WaiterState.RETRY, reason };
34
+ };
35
+ export const waitForPolicyDeleted = async (params, input) => {
36
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
37
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
38
+ };
39
+ export const waitUntilPolicyDeleted = async (params, input) => {
40
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
41
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
+ return checkExceptions(result);
43
+ };
@@ -0,0 +1,58 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetPolicyEngineCommand } from "../commands/GetPolicyEngineCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetPolicyEngineCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "ACTIVE") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "CREATE_FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "UPDATE_FAILED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ try {
36
+ const returnComparator = () => {
37
+ return result.status;
38
+ };
39
+ if (returnComparator() === "DELETE_FAILED") {
40
+ return { state: WaiterState.FAILURE, reason };
41
+ }
42
+ }
43
+ catch (e) { }
44
+ }
45
+ catch (exception) {
46
+ reason = exception;
47
+ }
48
+ return { state: WaiterState.RETRY, reason };
49
+ };
50
+ export const waitForPolicyEngineActive = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
52
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ };
54
+ export const waitUntilPolicyEngineActive = async (params, input) => {
55
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
56
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
57
+ return checkExceptions(result);
58
+ };
@@ -0,0 +1,43 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetPolicyEngineCommand } from "../commands/GetPolicyEngineCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetPolicyEngineCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETING") {
13
+ return { state: WaiterState.RETRY, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "DELETE_FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ }
27
+ catch (exception) {
28
+ reason = exception;
29
+ if (exception.name && exception.name == "ResourceNotFoundException") {
30
+ return { state: WaiterState.SUCCESS, reason };
31
+ }
32
+ }
33
+ return { state: WaiterState.RETRY, reason };
34
+ };
35
+ export const waitForPolicyEngineDeleted = async (params, input) => {
36
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
37
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
38
+ };
39
+ export const waitUntilPolicyEngineDeleted = async (params, input) => {
40
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
41
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
+ return checkExceptions(result);
43
+ };
@@ -0,0 +1,58 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetPolicyGenerationCommand } from "../commands/GetPolicyGenerationCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetPolicyGenerationCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "GENERATED") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "GENERATING") {
22
+ return { state: WaiterState.RETRY, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "GENERATE_FAILED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ try {
36
+ const returnComparator = () => {
37
+ return result.status;
38
+ };
39
+ if (returnComparator() === "DELETE_FAILED") {
40
+ return { state: WaiterState.FAILURE, reason };
41
+ }
42
+ }
43
+ catch (e) { }
44
+ }
45
+ catch (exception) {
46
+ reason = exception;
47
+ }
48
+ return { state: WaiterState.RETRY, reason };
49
+ };
50
+ export const waitForPolicyGenerationCompleted = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
52
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ };
54
+ export const waitUntilPolicyGenerationCompleted = async (params, input) => {
55
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
56
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
57
+ return checkExceptions(result);
58
+ };
@@ -1,34 +1,49 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockAgentCoreControlClient } from "./BedrockAgentCoreControlClient";
3
3
  import { CreateAgentRuntimeCommandInput, CreateAgentRuntimeCommandOutput } from "./commands/CreateAgentRuntimeCommand";
4
4
  import { CreateAgentRuntimeEndpointCommandInput, CreateAgentRuntimeEndpointCommandOutput } from "./commands/CreateAgentRuntimeEndpointCommand";
5
5
  import { CreateApiKeyCredentialProviderCommandInput, CreateApiKeyCredentialProviderCommandOutput } from "./commands/CreateApiKeyCredentialProviderCommand";
6
6
  import { CreateBrowserCommandInput, CreateBrowserCommandOutput } from "./commands/CreateBrowserCommand";
7
7
  import { CreateCodeInterpreterCommandInput, CreateCodeInterpreterCommandOutput } from "./commands/CreateCodeInterpreterCommand";
8
+ import { CreateEvaluatorCommandInput, CreateEvaluatorCommandOutput } from "./commands/CreateEvaluatorCommand";
8
9
  import { CreateGatewayCommandInput, CreateGatewayCommandOutput } from "./commands/CreateGatewayCommand";
9
10
  import { CreateGatewayTargetCommandInput, CreateGatewayTargetCommandOutput } from "./commands/CreateGatewayTargetCommand";
10
11
  import { CreateMemoryCommandInput, CreateMemoryCommandOutput } from "./commands/CreateMemoryCommand";
11
12
  import { CreateOauth2CredentialProviderCommandInput, CreateOauth2CredentialProviderCommandOutput } from "./commands/CreateOauth2CredentialProviderCommand";
13
+ import { CreateOnlineEvaluationConfigCommandInput, CreateOnlineEvaluationConfigCommandOutput } from "./commands/CreateOnlineEvaluationConfigCommand";
14
+ import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
15
+ import { CreatePolicyEngineCommandInput, CreatePolicyEngineCommandOutput } from "./commands/CreatePolicyEngineCommand";
12
16
  import { CreateWorkloadIdentityCommandInput, CreateWorkloadIdentityCommandOutput } from "./commands/CreateWorkloadIdentityCommand";
13
17
  import { DeleteAgentRuntimeCommandInput, DeleteAgentRuntimeCommandOutput } from "./commands/DeleteAgentRuntimeCommand";
14
18
  import { DeleteAgentRuntimeEndpointCommandInput, DeleteAgentRuntimeEndpointCommandOutput } from "./commands/DeleteAgentRuntimeEndpointCommand";
15
19
  import { DeleteApiKeyCredentialProviderCommandInput, DeleteApiKeyCredentialProviderCommandOutput } from "./commands/DeleteApiKeyCredentialProviderCommand";
16
20
  import { DeleteBrowserCommandInput, DeleteBrowserCommandOutput } from "./commands/DeleteBrowserCommand";
17
21
  import { DeleteCodeInterpreterCommandInput, DeleteCodeInterpreterCommandOutput } from "./commands/DeleteCodeInterpreterCommand";
22
+ import { DeleteEvaluatorCommandInput, DeleteEvaluatorCommandOutput } from "./commands/DeleteEvaluatorCommand";
18
23
  import { DeleteGatewayCommandInput, DeleteGatewayCommandOutput } from "./commands/DeleteGatewayCommand";
19
24
  import { DeleteGatewayTargetCommandInput, DeleteGatewayTargetCommandOutput } from "./commands/DeleteGatewayTargetCommand";
20
25
  import { DeleteMemoryCommandInput, DeleteMemoryCommandOutput } from "./commands/DeleteMemoryCommand";
21
26
  import { DeleteOauth2CredentialProviderCommandInput, DeleteOauth2CredentialProviderCommandOutput } from "./commands/DeleteOauth2CredentialProviderCommand";
27
+ import { DeleteOnlineEvaluationConfigCommandInput, DeleteOnlineEvaluationConfigCommandOutput } from "./commands/DeleteOnlineEvaluationConfigCommand";
28
+ import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
29
+ import { DeletePolicyEngineCommandInput, DeletePolicyEngineCommandOutput } from "./commands/DeletePolicyEngineCommand";
30
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
22
31
  import { DeleteWorkloadIdentityCommandInput, DeleteWorkloadIdentityCommandOutput } from "./commands/DeleteWorkloadIdentityCommand";
23
32
  import { GetAgentRuntimeCommandInput, GetAgentRuntimeCommandOutput } from "./commands/GetAgentRuntimeCommand";
24
33
  import { GetAgentRuntimeEndpointCommandInput, GetAgentRuntimeEndpointCommandOutput } from "./commands/GetAgentRuntimeEndpointCommand";
25
34
  import { GetApiKeyCredentialProviderCommandInput, GetApiKeyCredentialProviderCommandOutput } from "./commands/GetApiKeyCredentialProviderCommand";
26
35
  import { GetBrowserCommandInput, GetBrowserCommandOutput } from "./commands/GetBrowserCommand";
27
36
  import { GetCodeInterpreterCommandInput, GetCodeInterpreterCommandOutput } from "./commands/GetCodeInterpreterCommand";
37
+ import { GetEvaluatorCommandInput, GetEvaluatorCommandOutput } from "./commands/GetEvaluatorCommand";
28
38
  import { GetGatewayCommandInput, GetGatewayCommandOutput } from "./commands/GetGatewayCommand";
29
39
  import { GetGatewayTargetCommandInput, GetGatewayTargetCommandOutput } from "./commands/GetGatewayTargetCommand";
30
40
  import { GetMemoryCommandInput, GetMemoryCommandOutput } from "./commands/GetMemoryCommand";
31
41
  import { GetOauth2CredentialProviderCommandInput, GetOauth2CredentialProviderCommandOutput } from "./commands/GetOauth2CredentialProviderCommand";
42
+ import { GetOnlineEvaluationConfigCommandInput, GetOnlineEvaluationConfigCommandOutput } from "./commands/GetOnlineEvaluationConfigCommand";
43
+ import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
44
+ import { GetPolicyEngineCommandInput, GetPolicyEngineCommandOutput } from "./commands/GetPolicyEngineCommand";
45
+ import { GetPolicyGenerationCommandInput, GetPolicyGenerationCommandOutput } from "./commands/GetPolicyGenerationCommand";
46
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
32
47
  import { GetTokenVaultCommandInput, GetTokenVaultCommandOutput } from "./commands/GetTokenVaultCommand";
33
48
  import { GetWorkloadIdentityCommandInput, GetWorkloadIdentityCommandOutput } from "./commands/GetWorkloadIdentityCommand";
34
49
  import { ListAgentRuntimeEndpointsCommandInput, ListAgentRuntimeEndpointsCommandOutput } from "./commands/ListAgentRuntimeEndpointsCommand";
@@ -37,23 +52,35 @@ import { ListAgentRuntimeVersionsCommandInput, ListAgentRuntimeVersionsCommandOu
37
52
  import { ListApiKeyCredentialProvidersCommandInput, ListApiKeyCredentialProvidersCommandOutput } from "./commands/ListApiKeyCredentialProvidersCommand";
38
53
  import { ListBrowsersCommandInput, ListBrowsersCommandOutput } from "./commands/ListBrowsersCommand";
39
54
  import { ListCodeInterpretersCommandInput, ListCodeInterpretersCommandOutput } from "./commands/ListCodeInterpretersCommand";
55
+ import { ListEvaluatorsCommandInput, ListEvaluatorsCommandOutput } from "./commands/ListEvaluatorsCommand";
40
56
  import { ListGatewaysCommandInput, ListGatewaysCommandOutput } from "./commands/ListGatewaysCommand";
41
57
  import { ListGatewayTargetsCommandInput, ListGatewayTargetsCommandOutput } from "./commands/ListGatewayTargetsCommand";
42
58
  import { ListMemoriesCommandInput, ListMemoriesCommandOutput } from "./commands/ListMemoriesCommand";
43
59
  import { ListOauth2CredentialProvidersCommandInput, ListOauth2CredentialProvidersCommandOutput } from "./commands/ListOauth2CredentialProvidersCommand";
60
+ import { ListOnlineEvaluationConfigsCommandInput, ListOnlineEvaluationConfigsCommandOutput } from "./commands/ListOnlineEvaluationConfigsCommand";
61
+ import { ListPoliciesCommandInput, ListPoliciesCommandOutput } from "./commands/ListPoliciesCommand";
62
+ import { ListPolicyEnginesCommandInput, ListPolicyEnginesCommandOutput } from "./commands/ListPolicyEnginesCommand";
63
+ import { ListPolicyGenerationAssetsCommandInput, ListPolicyGenerationAssetsCommandOutput } from "./commands/ListPolicyGenerationAssetsCommand";
64
+ import { ListPolicyGenerationsCommandInput, ListPolicyGenerationsCommandOutput } from "./commands/ListPolicyGenerationsCommand";
44
65
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
45
66
  import { ListWorkloadIdentitiesCommandInput, ListWorkloadIdentitiesCommandOutput } from "./commands/ListWorkloadIdentitiesCommand";
67
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
46
68
  import { SetTokenVaultCMKCommandInput, SetTokenVaultCMKCommandOutput } from "./commands/SetTokenVaultCMKCommand";
69
+ import { StartPolicyGenerationCommandInput, StartPolicyGenerationCommandOutput } from "./commands/StartPolicyGenerationCommand";
47
70
  import { SynchronizeGatewayTargetsCommandInput, SynchronizeGatewayTargetsCommandOutput } from "./commands/SynchronizeGatewayTargetsCommand";
48
71
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
49
72
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
50
73
  import { UpdateAgentRuntimeCommandInput, UpdateAgentRuntimeCommandOutput } from "./commands/UpdateAgentRuntimeCommand";
51
74
  import { UpdateAgentRuntimeEndpointCommandInput, UpdateAgentRuntimeEndpointCommandOutput } from "./commands/UpdateAgentRuntimeEndpointCommand";
52
75
  import { UpdateApiKeyCredentialProviderCommandInput, UpdateApiKeyCredentialProviderCommandOutput } from "./commands/UpdateApiKeyCredentialProviderCommand";
76
+ import { UpdateEvaluatorCommandInput, UpdateEvaluatorCommandOutput } from "./commands/UpdateEvaluatorCommand";
53
77
  import { UpdateGatewayCommandInput, UpdateGatewayCommandOutput } from "./commands/UpdateGatewayCommand";
54
78
  import { UpdateGatewayTargetCommandInput, UpdateGatewayTargetCommandOutput } from "./commands/UpdateGatewayTargetCommand";
55
79
  import { UpdateMemoryCommandInput, UpdateMemoryCommandOutput } from "./commands/UpdateMemoryCommand";
56
80
  import { UpdateOauth2CredentialProviderCommandInput, UpdateOauth2CredentialProviderCommandOutput } from "./commands/UpdateOauth2CredentialProviderCommand";
81
+ import { UpdateOnlineEvaluationConfigCommandInput, UpdateOnlineEvaluationConfigCommandOutput } from "./commands/UpdateOnlineEvaluationConfigCommand";
82
+ import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "./commands/UpdatePolicyCommand";
83
+ import { UpdatePolicyEngineCommandInput, UpdatePolicyEngineCommandOutput } from "./commands/UpdatePolicyEngineCommand";
57
84
  import { UpdateWorkloadIdentityCommandInput, UpdateWorkloadIdentityCommandOutput } from "./commands/UpdateWorkloadIdentityCommand";
58
85
  export interface BedrockAgentCoreControl {
59
86
  /**
@@ -86,6 +113,12 @@ export interface BedrockAgentCoreControl {
86
113
  createCodeInterpreter(args: CreateCodeInterpreterCommandInput, options?: __HttpHandlerOptions): Promise<CreateCodeInterpreterCommandOutput>;
87
114
  createCodeInterpreter(args: CreateCodeInterpreterCommandInput, cb: (err: any, data?: CreateCodeInterpreterCommandOutput) => void): void;
88
115
  createCodeInterpreter(args: CreateCodeInterpreterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCodeInterpreterCommandOutput) => void): void;
116
+ /**
117
+ * @see {@link CreateEvaluatorCommand}
118
+ */
119
+ createEvaluator(args: CreateEvaluatorCommandInput, options?: __HttpHandlerOptions): Promise<CreateEvaluatorCommandOutput>;
120
+ createEvaluator(args: CreateEvaluatorCommandInput, cb: (err: any, data?: CreateEvaluatorCommandOutput) => void): void;
121
+ createEvaluator(args: CreateEvaluatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEvaluatorCommandOutput) => void): void;
89
122
  /**
90
123
  * @see {@link CreateGatewayCommand}
91
124
  */
@@ -110,6 +143,24 @@ export interface BedrockAgentCoreControl {
110
143
  createOauth2CredentialProvider(args: CreateOauth2CredentialProviderCommandInput, options?: __HttpHandlerOptions): Promise<CreateOauth2CredentialProviderCommandOutput>;
111
144
  createOauth2CredentialProvider(args: CreateOauth2CredentialProviderCommandInput, cb: (err: any, data?: CreateOauth2CredentialProviderCommandOutput) => void): void;
112
145
  createOauth2CredentialProvider(args: CreateOauth2CredentialProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOauth2CredentialProviderCommandOutput) => void): void;
146
+ /**
147
+ * @see {@link CreateOnlineEvaluationConfigCommand}
148
+ */
149
+ createOnlineEvaluationConfig(args: CreateOnlineEvaluationConfigCommandInput, options?: __HttpHandlerOptions): Promise<CreateOnlineEvaluationConfigCommandOutput>;
150
+ createOnlineEvaluationConfig(args: CreateOnlineEvaluationConfigCommandInput, cb: (err: any, data?: CreateOnlineEvaluationConfigCommandOutput) => void): void;
151
+ createOnlineEvaluationConfig(args: CreateOnlineEvaluationConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOnlineEvaluationConfigCommandOutput) => void): void;
152
+ /**
153
+ * @see {@link CreatePolicyCommand}
154
+ */
155
+ createPolicy(args: CreatePolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyCommandOutput>;
156
+ createPolicy(args: CreatePolicyCommandInput, cb: (err: any, data?: CreatePolicyCommandOutput) => void): void;
157
+ createPolicy(args: CreatePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyCommandOutput) => void): void;
158
+ /**
159
+ * @see {@link CreatePolicyEngineCommand}
160
+ */
161
+ createPolicyEngine(args: CreatePolicyEngineCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyEngineCommandOutput>;
162
+ createPolicyEngine(args: CreatePolicyEngineCommandInput, cb: (err: any, data?: CreatePolicyEngineCommandOutput) => void): void;
163
+ createPolicyEngine(args: CreatePolicyEngineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyEngineCommandOutput) => void): void;
113
164
  /**
114
165
  * @see {@link CreateWorkloadIdentityCommand}
115
166
  */
@@ -146,6 +197,12 @@ export interface BedrockAgentCoreControl {
146
197
  deleteCodeInterpreter(args: DeleteCodeInterpreterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCodeInterpreterCommandOutput>;
147
198
  deleteCodeInterpreter(args: DeleteCodeInterpreterCommandInput, cb: (err: any, data?: DeleteCodeInterpreterCommandOutput) => void): void;
148
199
  deleteCodeInterpreter(args: DeleteCodeInterpreterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCodeInterpreterCommandOutput) => void): void;
200
+ /**
201
+ * @see {@link DeleteEvaluatorCommand}
202
+ */
203
+ deleteEvaluator(args: DeleteEvaluatorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEvaluatorCommandOutput>;
204
+ deleteEvaluator(args: DeleteEvaluatorCommandInput, cb: (err: any, data?: DeleteEvaluatorCommandOutput) => void): void;
205
+ deleteEvaluator(args: DeleteEvaluatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEvaluatorCommandOutput) => void): void;
149
206
  /**
150
207
  * @see {@link DeleteGatewayCommand}
151
208
  */
@@ -170,6 +227,30 @@ export interface BedrockAgentCoreControl {
170
227
  deleteOauth2CredentialProvider(args: DeleteOauth2CredentialProviderCommandInput, options?: __HttpHandlerOptions): Promise<DeleteOauth2CredentialProviderCommandOutput>;
171
228
  deleteOauth2CredentialProvider(args: DeleteOauth2CredentialProviderCommandInput, cb: (err: any, data?: DeleteOauth2CredentialProviderCommandOutput) => void): void;
172
229
  deleteOauth2CredentialProvider(args: DeleteOauth2CredentialProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOauth2CredentialProviderCommandOutput) => void): void;
230
+ /**
231
+ * @see {@link DeleteOnlineEvaluationConfigCommand}
232
+ */
233
+ deleteOnlineEvaluationConfig(args: DeleteOnlineEvaluationConfigCommandInput, options?: __HttpHandlerOptions): Promise<DeleteOnlineEvaluationConfigCommandOutput>;
234
+ deleteOnlineEvaluationConfig(args: DeleteOnlineEvaluationConfigCommandInput, cb: (err: any, data?: DeleteOnlineEvaluationConfigCommandOutput) => void): void;
235
+ deleteOnlineEvaluationConfig(args: DeleteOnlineEvaluationConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOnlineEvaluationConfigCommandOutput) => void): void;
236
+ /**
237
+ * @see {@link DeletePolicyCommand}
238
+ */
239
+ deletePolicy(args: DeletePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyCommandOutput>;
240
+ deletePolicy(args: DeletePolicyCommandInput, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
241
+ deletePolicy(args: DeletePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
242
+ /**
243
+ * @see {@link DeletePolicyEngineCommand}
244
+ */
245
+ deletePolicyEngine(args: DeletePolicyEngineCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyEngineCommandOutput>;
246
+ deletePolicyEngine(args: DeletePolicyEngineCommandInput, cb: (err: any, data?: DeletePolicyEngineCommandOutput) => void): void;
247
+ deletePolicyEngine(args: DeletePolicyEngineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyEngineCommandOutput) => void): void;
248
+ /**
249
+ * @see {@link DeleteResourcePolicyCommand}
250
+ */
251
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
252
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
253
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
173
254
  /**
174
255
  * @see {@link DeleteWorkloadIdentityCommand}
175
256
  */
@@ -206,6 +287,12 @@ export interface BedrockAgentCoreControl {
206
287
  getCodeInterpreter(args: GetCodeInterpreterCommandInput, options?: __HttpHandlerOptions): Promise<GetCodeInterpreterCommandOutput>;
207
288
  getCodeInterpreter(args: GetCodeInterpreterCommandInput, cb: (err: any, data?: GetCodeInterpreterCommandOutput) => void): void;
208
289
  getCodeInterpreter(args: GetCodeInterpreterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCodeInterpreterCommandOutput) => void): void;
290
+ /**
291
+ * @see {@link GetEvaluatorCommand}
292
+ */
293
+ getEvaluator(args: GetEvaluatorCommandInput, options?: __HttpHandlerOptions): Promise<GetEvaluatorCommandOutput>;
294
+ getEvaluator(args: GetEvaluatorCommandInput, cb: (err: any, data?: GetEvaluatorCommandOutput) => void): void;
295
+ getEvaluator(args: GetEvaluatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvaluatorCommandOutput) => void): void;
209
296
  /**
210
297
  * @see {@link GetGatewayCommand}
211
298
  */
@@ -230,6 +317,36 @@ export interface BedrockAgentCoreControl {
230
317
  getOauth2CredentialProvider(args: GetOauth2CredentialProviderCommandInput, options?: __HttpHandlerOptions): Promise<GetOauth2CredentialProviderCommandOutput>;
231
318
  getOauth2CredentialProvider(args: GetOauth2CredentialProviderCommandInput, cb: (err: any, data?: GetOauth2CredentialProviderCommandOutput) => void): void;
232
319
  getOauth2CredentialProvider(args: GetOauth2CredentialProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOauth2CredentialProviderCommandOutput) => void): void;
320
+ /**
321
+ * @see {@link GetOnlineEvaluationConfigCommand}
322
+ */
323
+ getOnlineEvaluationConfig(args: GetOnlineEvaluationConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetOnlineEvaluationConfigCommandOutput>;
324
+ getOnlineEvaluationConfig(args: GetOnlineEvaluationConfigCommandInput, cb: (err: any, data?: GetOnlineEvaluationConfigCommandOutput) => void): void;
325
+ getOnlineEvaluationConfig(args: GetOnlineEvaluationConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOnlineEvaluationConfigCommandOutput) => void): void;
326
+ /**
327
+ * @see {@link GetPolicyCommand}
328
+ */
329
+ getPolicy(args: GetPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyCommandOutput>;
330
+ getPolicy(args: GetPolicyCommandInput, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
331
+ getPolicy(args: GetPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
332
+ /**
333
+ * @see {@link GetPolicyEngineCommand}
334
+ */
335
+ getPolicyEngine(args: GetPolicyEngineCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyEngineCommandOutput>;
336
+ getPolicyEngine(args: GetPolicyEngineCommandInput, cb: (err: any, data?: GetPolicyEngineCommandOutput) => void): void;
337
+ getPolicyEngine(args: GetPolicyEngineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyEngineCommandOutput) => void): void;
338
+ /**
339
+ * @see {@link GetPolicyGenerationCommand}
340
+ */
341
+ getPolicyGeneration(args: GetPolicyGenerationCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyGenerationCommandOutput>;
342
+ getPolicyGeneration(args: GetPolicyGenerationCommandInput, cb: (err: any, data?: GetPolicyGenerationCommandOutput) => void): void;
343
+ getPolicyGeneration(args: GetPolicyGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyGenerationCommandOutput) => void): void;
344
+ /**
345
+ * @see {@link GetResourcePolicyCommand}
346
+ */
347
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
348
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
349
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
233
350
  /**
234
351
  * @see {@link GetTokenVaultCommand}
235
352
  */
@@ -283,6 +400,13 @@ export interface BedrockAgentCoreControl {
283
400
  listCodeInterpreters(args: ListCodeInterpretersCommandInput, options?: __HttpHandlerOptions): Promise<ListCodeInterpretersCommandOutput>;
284
401
  listCodeInterpreters(args: ListCodeInterpretersCommandInput, cb: (err: any, data?: ListCodeInterpretersCommandOutput) => void): void;
285
402
  listCodeInterpreters(args: ListCodeInterpretersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCodeInterpretersCommandOutput) => void): void;
403
+ /**
404
+ * @see {@link ListEvaluatorsCommand}
405
+ */
406
+ listEvaluators(): Promise<ListEvaluatorsCommandOutput>;
407
+ listEvaluators(args: ListEvaluatorsCommandInput, options?: __HttpHandlerOptions): Promise<ListEvaluatorsCommandOutput>;
408
+ listEvaluators(args: ListEvaluatorsCommandInput, cb: (err: any, data?: ListEvaluatorsCommandOutput) => void): void;
409
+ listEvaluators(args: ListEvaluatorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEvaluatorsCommandOutput) => void): void;
286
410
  /**
287
411
  * @see {@link ListGatewaysCommand}
288
412
  */
@@ -310,6 +434,38 @@ export interface BedrockAgentCoreControl {
310
434
  listOauth2CredentialProviders(args: ListOauth2CredentialProvidersCommandInput, options?: __HttpHandlerOptions): Promise<ListOauth2CredentialProvidersCommandOutput>;
311
435
  listOauth2CredentialProviders(args: ListOauth2CredentialProvidersCommandInput, cb: (err: any, data?: ListOauth2CredentialProvidersCommandOutput) => void): void;
312
436
  listOauth2CredentialProviders(args: ListOauth2CredentialProvidersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOauth2CredentialProvidersCommandOutput) => void): void;
437
+ /**
438
+ * @see {@link ListOnlineEvaluationConfigsCommand}
439
+ */
440
+ listOnlineEvaluationConfigs(): Promise<ListOnlineEvaluationConfigsCommandOutput>;
441
+ listOnlineEvaluationConfigs(args: ListOnlineEvaluationConfigsCommandInput, options?: __HttpHandlerOptions): Promise<ListOnlineEvaluationConfigsCommandOutput>;
442
+ listOnlineEvaluationConfigs(args: ListOnlineEvaluationConfigsCommandInput, cb: (err: any, data?: ListOnlineEvaluationConfigsCommandOutput) => void): void;
443
+ listOnlineEvaluationConfigs(args: ListOnlineEvaluationConfigsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOnlineEvaluationConfigsCommandOutput) => void): void;
444
+ /**
445
+ * @see {@link ListPoliciesCommand}
446
+ */
447
+ listPolicies(args: ListPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListPoliciesCommandOutput>;
448
+ listPolicies(args: ListPoliciesCommandInput, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
449
+ listPolicies(args: ListPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
450
+ /**
451
+ * @see {@link ListPolicyEnginesCommand}
452
+ */
453
+ listPolicyEngines(): Promise<ListPolicyEnginesCommandOutput>;
454
+ listPolicyEngines(args: ListPolicyEnginesCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyEnginesCommandOutput>;
455
+ listPolicyEngines(args: ListPolicyEnginesCommandInput, cb: (err: any, data?: ListPolicyEnginesCommandOutput) => void): void;
456
+ listPolicyEngines(args: ListPolicyEnginesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyEnginesCommandOutput) => void): void;
457
+ /**
458
+ * @see {@link ListPolicyGenerationAssetsCommand}
459
+ */
460
+ listPolicyGenerationAssets(args: ListPolicyGenerationAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyGenerationAssetsCommandOutput>;
461
+ listPolicyGenerationAssets(args: ListPolicyGenerationAssetsCommandInput, cb: (err: any, data?: ListPolicyGenerationAssetsCommandOutput) => void): void;
462
+ listPolicyGenerationAssets(args: ListPolicyGenerationAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyGenerationAssetsCommandOutput) => void): void;
463
+ /**
464
+ * @see {@link ListPolicyGenerationsCommand}
465
+ */
466
+ listPolicyGenerations(args: ListPolicyGenerationsCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyGenerationsCommandOutput>;
467
+ listPolicyGenerations(args: ListPolicyGenerationsCommandInput, cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void): void;
468
+ listPolicyGenerations(args: ListPolicyGenerationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void): void;
313
469
  /**
314
470
  * @see {@link ListTagsForResourceCommand}
315
471
  */
@@ -323,12 +479,24 @@ export interface BedrockAgentCoreControl {
323
479
  listWorkloadIdentities(args: ListWorkloadIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkloadIdentitiesCommandOutput>;
324
480
  listWorkloadIdentities(args: ListWorkloadIdentitiesCommandInput, cb: (err: any, data?: ListWorkloadIdentitiesCommandOutput) => void): void;
325
481
  listWorkloadIdentities(args: ListWorkloadIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkloadIdentitiesCommandOutput) => void): void;
482
+ /**
483
+ * @see {@link PutResourcePolicyCommand}
484
+ */
485
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
486
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
487
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
326
488
  /**
327
489
  * @see {@link SetTokenVaultCMKCommand}
328
490
  */
329
491
  setTokenVaultCMK(args: SetTokenVaultCMKCommandInput, options?: __HttpHandlerOptions): Promise<SetTokenVaultCMKCommandOutput>;
330
492
  setTokenVaultCMK(args: SetTokenVaultCMKCommandInput, cb: (err: any, data?: SetTokenVaultCMKCommandOutput) => void): void;
331
493
  setTokenVaultCMK(args: SetTokenVaultCMKCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetTokenVaultCMKCommandOutput) => void): void;
494
+ /**
495
+ * @see {@link StartPolicyGenerationCommand}
496
+ */
497
+ startPolicyGeneration(args: StartPolicyGenerationCommandInput, options?: __HttpHandlerOptions): Promise<StartPolicyGenerationCommandOutput>;
498
+ startPolicyGeneration(args: StartPolicyGenerationCommandInput, cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void): void;
499
+ startPolicyGeneration(args: StartPolicyGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void): void;
332
500
  /**
333
501
  * @see {@link SynchronizeGatewayTargetsCommand}
334
502
  */
@@ -365,6 +533,12 @@ export interface BedrockAgentCoreControl {
365
533
  updateApiKeyCredentialProvider(args: UpdateApiKeyCredentialProviderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApiKeyCredentialProviderCommandOutput>;
366
534
  updateApiKeyCredentialProvider(args: UpdateApiKeyCredentialProviderCommandInput, cb: (err: any, data?: UpdateApiKeyCredentialProviderCommandOutput) => void): void;
367
535
  updateApiKeyCredentialProvider(args: UpdateApiKeyCredentialProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApiKeyCredentialProviderCommandOutput) => void): void;
536
+ /**
537
+ * @see {@link UpdateEvaluatorCommand}
538
+ */
539
+ updateEvaluator(args: UpdateEvaluatorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEvaluatorCommandOutput>;
540
+ updateEvaluator(args: UpdateEvaluatorCommandInput, cb: (err: any, data?: UpdateEvaluatorCommandOutput) => void): void;
541
+ updateEvaluator(args: UpdateEvaluatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEvaluatorCommandOutput) => void): void;
368
542
  /**
369
543
  * @see {@link UpdateGatewayCommand}
370
544
  */
@@ -389,6 +563,24 @@ export interface BedrockAgentCoreControl {
389
563
  updateOauth2CredentialProvider(args: UpdateOauth2CredentialProviderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOauth2CredentialProviderCommandOutput>;
390
564
  updateOauth2CredentialProvider(args: UpdateOauth2CredentialProviderCommandInput, cb: (err: any, data?: UpdateOauth2CredentialProviderCommandOutput) => void): void;
391
565
  updateOauth2CredentialProvider(args: UpdateOauth2CredentialProviderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOauth2CredentialProviderCommandOutput) => void): void;
566
+ /**
567
+ * @see {@link UpdateOnlineEvaluationConfigCommand}
568
+ */
569
+ updateOnlineEvaluationConfig(args: UpdateOnlineEvaluationConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOnlineEvaluationConfigCommandOutput>;
570
+ updateOnlineEvaluationConfig(args: UpdateOnlineEvaluationConfigCommandInput, cb: (err: any, data?: UpdateOnlineEvaluationConfigCommandOutput) => void): void;
571
+ updateOnlineEvaluationConfig(args: UpdateOnlineEvaluationConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOnlineEvaluationConfigCommandOutput) => void): void;
572
+ /**
573
+ * @see {@link UpdatePolicyCommand}
574
+ */
575
+ updatePolicy(args: UpdatePolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyCommandOutput>;
576
+ updatePolicy(args: UpdatePolicyCommandInput, cb: (err: any, data?: UpdatePolicyCommandOutput) => void): void;
577
+ updatePolicy(args: UpdatePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyCommandOutput) => void): void;
578
+ /**
579
+ * @see {@link UpdatePolicyEngineCommand}
580
+ */
581
+ updatePolicyEngine(args: UpdatePolicyEngineCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyEngineCommandOutput>;
582
+ updatePolicyEngine(args: UpdatePolicyEngineCommandInput, cb: (err: any, data?: UpdatePolicyEngineCommandOutput) => void): void;
583
+ updatePolicyEngine(args: UpdatePolicyEngineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyEngineCommandOutput) => void): void;
392
584
  /**
393
585
  * @see {@link UpdateWorkloadIdentityCommand}
394
586
  */