@aws-sdk/client-bedrock-agentcore-control 3.940.0 → 3.943.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 (178) hide show
  1. package/README.md +216 -0
  2. package/dist-cjs/index.js +2140 -143
  3. package/dist-es/BedrockAgentCoreControl.js +54 -0
  4. package/dist-es/commands/CreateEvaluatorCommand.js +16 -0
  5. package/dist-es/commands/CreateOnlineEvaluationConfigCommand.js +16 -0
  6. package/dist-es/commands/CreatePolicyCommand.js +16 -0
  7. package/dist-es/commands/CreatePolicyEngineCommand.js +16 -0
  8. package/dist-es/commands/DeleteEvaluatorCommand.js +16 -0
  9. package/dist-es/commands/DeleteOnlineEvaluationConfigCommand.js +16 -0
  10. package/dist-es/commands/DeletePolicyCommand.js +16 -0
  11. package/dist-es/commands/DeletePolicyEngineCommand.js +16 -0
  12. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  13. package/dist-es/commands/GetEvaluatorCommand.js +16 -0
  14. package/dist-es/commands/GetOnlineEvaluationConfigCommand.js +16 -0
  15. package/dist-es/commands/GetPolicyCommand.js +16 -0
  16. package/dist-es/commands/GetPolicyEngineCommand.js +16 -0
  17. package/dist-es/commands/GetPolicyGenerationCommand.js +16 -0
  18. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  19. package/dist-es/commands/ListEvaluatorsCommand.js +16 -0
  20. package/dist-es/commands/ListOnlineEvaluationConfigsCommand.js +16 -0
  21. package/dist-es/commands/ListPoliciesCommand.js +16 -0
  22. package/dist-es/commands/ListPolicyEnginesCommand.js +16 -0
  23. package/dist-es/commands/ListPolicyGenerationAssetsCommand.js +16 -0
  24. package/dist-es/commands/ListPolicyGenerationsCommand.js +16 -0
  25. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  26. package/dist-es/commands/StartPolicyGenerationCommand.js +16 -0
  27. package/dist-es/commands/UpdateEvaluatorCommand.js +16 -0
  28. package/dist-es/commands/UpdateOnlineEvaluationConfigCommand.js +16 -0
  29. package/dist-es/commands/UpdatePolicyCommand.js +16 -0
  30. package/dist-es/commands/UpdatePolicyEngineCommand.js +16 -0
  31. package/dist-es/commands/index.js +27 -0
  32. package/dist-es/models/enums.js +104 -0
  33. package/dist-es/models/models_1.js +1 -0
  34. package/dist-es/pagination/ListEvaluatorsPaginator.js +4 -0
  35. package/dist-es/pagination/ListOnlineEvaluationConfigsPaginator.js +4 -0
  36. package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
  37. package/dist-es/pagination/ListPolicyEnginesPaginator.js +4 -0
  38. package/dist-es/pagination/ListPolicyGenerationAssetsPaginator.js +4 -0
  39. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +4 -0
  40. package/dist-es/pagination/index.js +6 -0
  41. package/dist-es/schemas/schemas_0.js +1320 -97
  42. package/dist-es/waiters/index.js +5 -0
  43. package/dist-es/waiters/waitForPolicyActive.js +58 -0
  44. package/dist-es/waiters/waitForPolicyDeleted.js +43 -0
  45. package/dist-es/waiters/waitForPolicyEngineActive.js +58 -0
  46. package/dist-es/waiters/waitForPolicyEngineDeleted.js +43 -0
  47. package/dist-es/waiters/waitForPolicyGenerationCompleted.js +58 -0
  48. package/dist-types/BedrockAgentCoreControl.d.ts +192 -0
  49. package/dist-types/BedrockAgentCoreControlClient.d.ts +29 -2
  50. package/dist-types/commands/CreateAgentRuntimeCommand.d.ts +18 -0
  51. package/dist-types/commands/CreateEvaluatorCommand.d.ts +132 -0
  52. package/dist-types/commands/CreateGatewayCommand.d.ts +44 -0
  53. package/dist-types/commands/CreateGatewayTargetCommand.d.ts +49 -1
  54. package/dist-types/commands/CreateMemoryCommand.d.ts +52 -5
  55. package/dist-types/commands/CreateOnlineEvaluationConfigCommand.d.ts +140 -0
  56. package/dist-types/commands/CreatePolicyCommand.d.ts +119 -0
  57. package/dist-types/commands/CreatePolicyEngineCommand.d.ts +103 -0
  58. package/dist-types/commands/CreateWorkloadIdentityCommand.d.ts +1 -1
  59. package/dist-types/commands/DeleteEvaluatorCommand.d.ts +94 -0
  60. package/dist-types/commands/DeleteMemoryCommand.d.ts +3 -0
  61. package/dist-types/commands/DeleteOnlineEvaluationConfigCommand.d.ts +94 -0
  62. package/dist-types/commands/DeletePolicyCommand.d.ts +108 -0
  63. package/dist-types/commands/DeletePolicyEngineCommand.d.ts +101 -0
  64. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
  65. package/dist-types/commands/DeleteWorkloadIdentityCommand.d.ts +1 -1
  66. package/dist-types/commands/GetAgentRuntimeCommand.d.ts +19 -0
  67. package/dist-types/commands/GetEvaluatorCommand.d.ts +131 -0
  68. package/dist-types/commands/GetGatewayCommand.d.ts +22 -0
  69. package/dist-types/commands/GetGatewayTargetCommand.d.ts +26 -1
  70. package/dist-types/commands/GetMemoryCommand.d.ts +27 -5
  71. package/dist-types/commands/GetOnlineEvaluationConfigCommand.d.ts +137 -0
  72. package/dist-types/commands/GetPolicyCommand.d.ts +105 -0
  73. package/dist-types/commands/GetPolicyEngineCommand.d.ts +98 -0
  74. package/dist-types/commands/GetPolicyGenerationCommand.d.ts +103 -0
  75. package/dist-types/commands/GetResourcePolicyCommand.d.ts +89 -0
  76. package/dist-types/commands/GetWorkloadIdentityCommand.d.ts +1 -1
  77. package/dist-types/commands/ListEvaluatorsCommand.d.ts +101 -0
  78. package/dist-types/commands/ListOnlineEvaluationConfigsCommand.d.ts +100 -0
  79. package/dist-types/commands/ListPoliciesCommand.d.ts +113 -0
  80. package/dist-types/commands/ListPolicyEnginesCommand.d.ts +101 -0
  81. package/dist-types/commands/ListPolicyGenerationAssetsCommand.d.ts +109 -0
  82. package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +109 -0
  83. package/dist-types/commands/ListWorkloadIdentitiesCommand.d.ts +1 -1
  84. package/dist-types/commands/PutResourcePolicyCommand.d.ts +90 -0
  85. package/dist-types/commands/SetTokenVaultCMKCommand.d.ts +1 -1
  86. package/dist-types/commands/StartPolicyGenerationCommand.d.ts +116 -0
  87. package/dist-types/commands/SynchronizeGatewayTargetsCommand.d.ts +26 -1
  88. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  89. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateAgentRuntimeCommand.d.ts +18 -0
  91. package/dist-types/commands/UpdateEvaluatorCommand.d.ts +135 -0
  92. package/dist-types/commands/UpdateGatewayCommand.d.ts +44 -0
  93. package/dist-types/commands/UpdateGatewayTargetCommand.d.ts +49 -1
  94. package/dist-types/commands/UpdateMemoryCommand.d.ts +73 -8
  95. package/dist-types/commands/UpdateOnlineEvaluationConfigCommand.d.ts +138 -0
  96. package/dist-types/commands/UpdatePolicyCommand.d.ts +115 -0
  97. package/dist-types/commands/UpdatePolicyEngineCommand.d.ts +102 -0
  98. package/dist-types/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
  99. package/dist-types/commands/index.d.ts +27 -0
  100. package/dist-types/index.d.ts +1 -0
  101. package/dist-types/models/enums.d.ts +232 -0
  102. package/dist-types/models/models_0.d.ts +4160 -2169
  103. package/dist-types/models/models_1.d.ts +1009 -0
  104. package/dist-types/pagination/ListEvaluatorsPaginator.d.ts +7 -0
  105. package/dist-types/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListPolicyEnginesPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListPolicyGenerationAssetsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +7 -0
  110. package/dist-types/pagination/index.d.ts +6 -0
  111. package/dist-types/schemas/schemas_0.d.ts +156 -0
  112. package/dist-types/ts3.4/BedrockAgentCoreControl.d.ts +462 -0
  113. package/dist-types/ts3.4/BedrockAgentCoreControlClient.d.ts +162 -0
  114. package/dist-types/ts3.4/commands/CreateEvaluatorCommand.d.ts +50 -0
  115. package/dist-types/ts3.4/commands/CreateGatewayTargetCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/CreateOnlineEvaluationConfigCommand.d.ts +51 -0
  117. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +47 -0
  118. package/dist-types/ts3.4/commands/CreatePolicyEngineCommand.d.ts +51 -0
  119. package/dist-types/ts3.4/commands/CreateWorkloadIdentityCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/DeleteEvaluatorCommand.d.ts +50 -0
  121. package/dist-types/ts3.4/commands/DeleteOnlineEvaluationConfigCommand.d.ts +51 -0
  122. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +47 -0
  123. package/dist-types/ts3.4/commands/DeletePolicyEngineCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/DeleteWorkloadIdentityCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/GetEvaluatorCommand.d.ts +47 -0
  127. package/dist-types/ts3.4/commands/GetGatewayTargetCommand.d.ts +2 -4
  128. package/dist-types/ts3.4/commands/GetOnlineEvaluationConfigCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +47 -0
  130. package/dist-types/ts3.4/commands/GetPolicyEngineCommand.d.ts +50 -0
  131. package/dist-types/ts3.4/commands/GetPolicyGenerationCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/GetWorkloadIdentityCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/ListEvaluatorsCommand.d.ts +50 -0
  135. package/dist-types/ts3.4/commands/ListOnlineEvaluationConfigsCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +48 -0
  137. package/dist-types/ts3.4/commands/ListPolicyEnginesCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/ListPolicyGenerationAssetsCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +51 -0
  140. package/dist-types/ts3.4/commands/ListWorkloadIdentitiesCommand.d.ts +1 -1
  141. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  142. package/dist-types/ts3.4/commands/SetTokenVaultCMKCommand.d.ts +1 -1
  143. package/dist-types/ts3.4/commands/StartPolicyGenerationCommand.d.ts +51 -0
  144. package/dist-types/ts3.4/commands/SynchronizeGatewayTargetsCommand.d.ts +2 -4
  145. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  146. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  147. package/dist-types/ts3.4/commands/UpdateEvaluatorCommand.d.ts +50 -0
  148. package/dist-types/ts3.4/commands/UpdateGatewayTargetCommand.d.ts +1 -1
  149. package/dist-types/ts3.4/commands/UpdateOnlineEvaluationConfigCommand.d.ts +51 -0
  150. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +47 -0
  151. package/dist-types/ts3.4/commands/UpdatePolicyEngineCommand.d.ts +51 -0
  152. package/dist-types/ts3.4/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
  153. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  154. package/dist-types/ts3.4/index.d.ts +1 -0
  155. package/dist-types/ts3.4/models/enums.d.ts +132 -0
  156. package/dist-types/ts3.4/models/models_0.d.ts +835 -188
  157. package/dist-types/ts3.4/models/models_1.d.ts +331 -0
  158. package/dist-types/ts3.4/pagination/ListEvaluatorsPaginator.d.ts +11 -0
  159. package/dist-types/ts3.4/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  161. package/dist-types/ts3.4/pagination/ListPolicyEnginesPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListPolicyGenerationAssetsPaginator.d.ts +11 -0
  163. package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  165. package/dist-types/ts3.4/schemas/schemas_0.d.ts +156 -0
  166. package/dist-types/ts3.4/waiters/index.d.ts +5 -0
  167. package/dist-types/ts3.4/waiters/waitForPolicyActive.d.ts +11 -0
  168. package/dist-types/ts3.4/waiters/waitForPolicyDeleted.d.ts +11 -0
  169. package/dist-types/ts3.4/waiters/waitForPolicyEngineActive.d.ts +11 -0
  170. package/dist-types/ts3.4/waiters/waitForPolicyEngineDeleted.d.ts +11 -0
  171. package/dist-types/ts3.4/waiters/waitForPolicyGenerationCompleted.d.ts +11 -0
  172. package/dist-types/waiters/index.d.ts +5 -0
  173. package/dist-types/waiters/waitForPolicyActive.d.ts +14 -0
  174. package/dist-types/waiters/waitForPolicyDeleted.d.ts +14 -0
  175. package/dist-types/waiters/waitForPolicyEngineActive.d.ts +14 -0
  176. package/dist-types/waiters/waitForPolicyEngineDeleted.d.ts +14 -0
  177. package/dist-types/waiters/waitForPolicyGenerationCompleted.d.ts +14 -0
  178. package/package.json +5 -5
@@ -0,0 +1,138 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import { UpdateOnlineEvaluationConfigRequest, UpdateOnlineEvaluationConfigResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateOnlineEvaluationConfigCommand}.
14
+ */
15
+ export interface UpdateOnlineEvaluationConfigCommandInput extends UpdateOnlineEvaluationConfigRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateOnlineEvaluationConfigCommand}.
21
+ */
22
+ export interface UpdateOnlineEvaluationConfigCommandOutput extends UpdateOnlineEvaluationConfigResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateOnlineEvaluationConfigCommand_base: {
25
+ new (input: UpdateOnlineEvaluationConfigCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateOnlineEvaluationConfigCommandInput, UpdateOnlineEvaluationConfigCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateOnlineEvaluationConfigCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateOnlineEvaluationConfigCommandInput, UpdateOnlineEvaluationConfigCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p> Updates an online evaluation configuration's settings, including rules, data sources, evaluators, and execution status. Changes take effect immediately for ongoing evaluations. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreControlClient, UpdateOnlineEvaluationConfigCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
35
+ * // const { BedrockAgentCoreControlClient, UpdateOnlineEvaluationConfigCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
36
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
37
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
38
+ * const client = new BedrockAgentCoreControlClient(config);
39
+ * const input = { // UpdateOnlineEvaluationConfigRequest
40
+ * clientToken: "STRING_VALUE",
41
+ * onlineEvaluationConfigId: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * rule: { // Rule
44
+ * samplingConfig: { // SamplingConfig
45
+ * samplingPercentage: Number("double"), // required
46
+ * },
47
+ * filters: [ // FilterList
48
+ * { // Filter
49
+ * key: "STRING_VALUE", // required
50
+ * operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
51
+ * value: { // FilterValue Union: only one key present
52
+ * stringValue: "STRING_VALUE",
53
+ * doubleValue: Number("double"),
54
+ * booleanValue: true || false,
55
+ * },
56
+ * },
57
+ * ],
58
+ * sessionConfig: { // SessionConfig
59
+ * sessionTimeoutMinutes: Number("int"), // required
60
+ * },
61
+ * },
62
+ * dataSourceConfig: { // DataSourceConfig Union: only one key present
63
+ * cloudWatchLogs: { // CloudWatchLogsInputConfig
64
+ * logGroupNames: [ // LogGroupNamesList // required
65
+ * "STRING_VALUE",
66
+ * ],
67
+ * serviceNames: [ // ServiceNamesList // required
68
+ * "STRING_VALUE",
69
+ * ],
70
+ * },
71
+ * },
72
+ * evaluators: [ // EvaluatorList
73
+ * { // EvaluatorReference Union: only one key present
74
+ * evaluatorId: "STRING_VALUE",
75
+ * },
76
+ * ],
77
+ * evaluationExecutionRoleArn: "STRING_VALUE",
78
+ * executionStatus: "ENABLED" || "DISABLED",
79
+ * };
80
+ * const command = new UpdateOnlineEvaluationConfigCommand(input);
81
+ * const response = await client.send(command);
82
+ * // { // UpdateOnlineEvaluationConfigResponse
83
+ * // onlineEvaluationConfigArn: "STRING_VALUE", // required
84
+ * // onlineEvaluationConfigId: "STRING_VALUE", // required
85
+ * // updatedAt: new Date("TIMESTAMP"), // required
86
+ * // status: "ACTIVE" || "CREATING" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING", // required
87
+ * // executionStatus: "ENABLED" || "DISABLED", // required
88
+ * // failureReason: "STRING_VALUE",
89
+ * // };
90
+ *
91
+ * ```
92
+ *
93
+ * @param UpdateOnlineEvaluationConfigCommandInput - {@link UpdateOnlineEvaluationConfigCommandInput}
94
+ * @returns {@link UpdateOnlineEvaluationConfigCommandOutput}
95
+ * @see {@link UpdateOnlineEvaluationConfigCommandInput} for command's `input` shape.
96
+ * @see {@link UpdateOnlineEvaluationConfigCommandOutput} for command's `response` shape.
97
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
98
+ *
99
+ * @throws {@link AccessDeniedException} (client fault)
100
+ * <p>This exception is thrown when a request is denied per access permissions</p>
101
+ *
102
+ * @throws {@link ConflictException} (client fault)
103
+ * <p>This exception is thrown when there is a conflict performing an operation</p>
104
+ *
105
+ * @throws {@link InternalServerException} (server fault)
106
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
107
+ *
108
+ * @throws {@link ResourceNotFoundException} (client fault)
109
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
110
+ *
111
+ * @throws {@link ServiceQuotaExceededException} (client fault)
112
+ * <p>This exception is thrown when a request is made beyond the service quota</p>
113
+ *
114
+ * @throws {@link ThrottlingException} (client fault)
115
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
116
+ *
117
+ * @throws {@link ValidationException} (client fault)
118
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
119
+ *
120
+ * @throws {@link BedrockAgentCoreControlServiceException}
121
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
122
+ *
123
+ *
124
+ * @public
125
+ */
126
+ export declare class UpdateOnlineEvaluationConfigCommand extends UpdateOnlineEvaluationConfigCommand_base {
127
+ /** @internal type navigation helper, not in runtime. */
128
+ protected static __types: {
129
+ api: {
130
+ input: UpdateOnlineEvaluationConfigRequest;
131
+ output: UpdateOnlineEvaluationConfigResponse;
132
+ };
133
+ sdk: {
134
+ input: UpdateOnlineEvaluationConfigCommandInput;
135
+ output: UpdateOnlineEvaluationConfigCommandOutput;
136
+ };
137
+ };
138
+ }
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import { UpdatePolicyRequest, UpdatePolicyResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePolicyCommand}.
14
+ */
15
+ export interface UpdatePolicyCommandInput extends UpdatePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePolicyCommand}.
21
+ */
22
+ export interface UpdatePolicyCommandOutput extends UpdatePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdatePolicyCommand_base: {
25
+ new (input: UpdatePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdatePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing policy within the AgentCore Policy system. This operation allows modification of the policy description and definition while maintaining the policy's identity. The updated policy is validated against the Cedar schema before being applied. This is an asynchronous operation. Use the <code>GetPolicy</code> operation to poll the <code>status</code> field to track completion.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreControlClient, UpdatePolicyCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
35
+ * // const { BedrockAgentCoreControlClient, UpdatePolicyCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
36
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
37
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
38
+ * const client = new BedrockAgentCoreControlClient(config);
39
+ * const input = { // UpdatePolicyRequest
40
+ * policyEngineId: "STRING_VALUE", // required
41
+ * policyId: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * definition: { // PolicyDefinition Union: only one key present
44
+ * cedar: { // CedarPolicy
45
+ * statement: "STRING_VALUE", // required
46
+ * },
47
+ * },
48
+ * validationMode: "FAIL_ON_ANY_FINDINGS" || "IGNORE_ALL_FINDINGS",
49
+ * };
50
+ * const command = new UpdatePolicyCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // UpdatePolicyResponse
53
+ * // policyId: "STRING_VALUE", // required
54
+ * // name: "STRING_VALUE", // required
55
+ * // policyEngineId: "STRING_VALUE", // required
56
+ * // definition: { // PolicyDefinition Union: only one key present
57
+ * // cedar: { // CedarPolicy
58
+ * // statement: "STRING_VALUE", // required
59
+ * // },
60
+ * // },
61
+ * // description: "STRING_VALUE",
62
+ * // createdAt: new Date("TIMESTAMP"), // required
63
+ * // updatedAt: new Date("TIMESTAMP"), // required
64
+ * // policyArn: "STRING_VALUE", // required
65
+ * // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
66
+ * // statusReasons: [ // PolicyStatusReasons // required
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param UpdatePolicyCommandInput - {@link UpdatePolicyCommandInput}
74
+ * @returns {@link UpdatePolicyCommandOutput}
75
+ * @see {@link UpdatePolicyCommandInput} for command's `input` shape.
76
+ * @see {@link UpdatePolicyCommandOutput} for command's `response` shape.
77
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>This exception is thrown when a request is denied per access permissions</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>This exception is thrown when there is a conflict performing an operation</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
96
+ *
97
+ * @throws {@link BedrockAgentCoreControlServiceException}
98
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
99
+ *
100
+ *
101
+ * @public
102
+ */
103
+ export declare class UpdatePolicyCommand extends UpdatePolicyCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: UpdatePolicyRequest;
108
+ output: UpdatePolicyResponse;
109
+ };
110
+ sdk: {
111
+ input: UpdatePolicyCommandInput;
112
+ output: UpdatePolicyCommandOutput;
113
+ };
114
+ };
115
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import { UpdatePolicyEngineRequest, UpdatePolicyEngineResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePolicyEngineCommand}.
14
+ */
15
+ export interface UpdatePolicyEngineCommandInput extends UpdatePolicyEngineRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePolicyEngineCommand}.
21
+ */
22
+ export interface UpdatePolicyEngineCommandOutput extends UpdatePolicyEngineResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdatePolicyEngineCommand_base: {
25
+ new (input: UpdatePolicyEngineCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePolicyEngineCommandInput, UpdatePolicyEngineCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdatePolicyEngineCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePolicyEngineCommandInput, UpdatePolicyEngineCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing policy engine within the AgentCore Policy system. This operation allows modification of the policy engine description while maintaining its identity. This is an asynchronous operation. Use the <code>GetPolicyEngine</code> operation to poll the <code>status</code> field to track completion.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreControlClient, UpdatePolicyEngineCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
35
+ * // const { BedrockAgentCoreControlClient, UpdatePolicyEngineCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
36
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
37
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
38
+ * const client = new BedrockAgentCoreControlClient(config);
39
+ * const input = { // UpdatePolicyEngineRequest
40
+ * policyEngineId: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * };
43
+ * const command = new UpdatePolicyEngineCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // UpdatePolicyEngineResponse
46
+ * // policyEngineId: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // createdAt: new Date("TIMESTAMP"), // required
50
+ * // updatedAt: new Date("TIMESTAMP"), // required
51
+ * // policyEngineArn: "STRING_VALUE", // required
52
+ * // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
53
+ * // statusReasons: [ // PolicyStatusReasons // required
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param UpdatePolicyEngineCommandInput - {@link UpdatePolicyEngineCommandInput}
61
+ * @returns {@link UpdatePolicyEngineCommandOutput}
62
+ * @see {@link UpdatePolicyEngineCommandInput} for command's `input` shape.
63
+ * @see {@link UpdatePolicyEngineCommandOutput} for command's `response` shape.
64
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>This exception is thrown when a request is denied per access permissions</p>
68
+ *
69
+ * @throws {@link ConflictException} (client fault)
70
+ * <p>This exception is thrown when there is a conflict performing an operation</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
74
+ *
75
+ * @throws {@link ResourceNotFoundException} (client fault)
76
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
83
+ *
84
+ * @throws {@link BedrockAgentCoreControlServiceException}
85
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class UpdatePolicyEngineCommand extends UpdatePolicyEngineCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: UpdatePolicyEngineRequest;
95
+ output: UpdatePolicyEngineResponse;
96
+ };
97
+ sdk: {
98
+ input: UpdatePolicyEngineCommandInput;
99
+ output: UpdatePolicyEngineCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
- import { UpdateWorkloadIdentityRequest, UpdateWorkloadIdentityResponse } from "../models/models_0";
4
+ import { UpdateWorkloadIdentityRequest, UpdateWorkloadIdentityResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -3,30 +3,45 @@ export * from "./CreateAgentRuntimeEndpointCommand";
3
3
  export * from "./CreateApiKeyCredentialProviderCommand";
4
4
  export * from "./CreateBrowserCommand";
5
5
  export * from "./CreateCodeInterpreterCommand";
6
+ export * from "./CreateEvaluatorCommand";
6
7
  export * from "./CreateGatewayCommand";
7
8
  export * from "./CreateGatewayTargetCommand";
8
9
  export * from "./CreateMemoryCommand";
9
10
  export * from "./CreateOauth2CredentialProviderCommand";
11
+ export * from "./CreateOnlineEvaluationConfigCommand";
12
+ export * from "./CreatePolicyCommand";
13
+ export * from "./CreatePolicyEngineCommand";
10
14
  export * from "./CreateWorkloadIdentityCommand";
11
15
  export * from "./DeleteAgentRuntimeCommand";
12
16
  export * from "./DeleteAgentRuntimeEndpointCommand";
13
17
  export * from "./DeleteApiKeyCredentialProviderCommand";
14
18
  export * from "./DeleteBrowserCommand";
15
19
  export * from "./DeleteCodeInterpreterCommand";
20
+ export * from "./DeleteEvaluatorCommand";
16
21
  export * from "./DeleteGatewayCommand";
17
22
  export * from "./DeleteGatewayTargetCommand";
18
23
  export * from "./DeleteMemoryCommand";
19
24
  export * from "./DeleteOauth2CredentialProviderCommand";
25
+ export * from "./DeleteOnlineEvaluationConfigCommand";
26
+ export * from "./DeletePolicyCommand";
27
+ export * from "./DeletePolicyEngineCommand";
28
+ export * from "./DeleteResourcePolicyCommand";
20
29
  export * from "./DeleteWorkloadIdentityCommand";
21
30
  export * from "./GetAgentRuntimeCommand";
22
31
  export * from "./GetAgentRuntimeEndpointCommand";
23
32
  export * from "./GetApiKeyCredentialProviderCommand";
24
33
  export * from "./GetBrowserCommand";
25
34
  export * from "./GetCodeInterpreterCommand";
35
+ export * from "./GetEvaluatorCommand";
26
36
  export * from "./GetGatewayCommand";
27
37
  export * from "./GetGatewayTargetCommand";
28
38
  export * from "./GetMemoryCommand";
29
39
  export * from "./GetOauth2CredentialProviderCommand";
40
+ export * from "./GetOnlineEvaluationConfigCommand";
41
+ export * from "./GetPolicyCommand";
42
+ export * from "./GetPolicyEngineCommand";
43
+ export * from "./GetPolicyGenerationCommand";
44
+ export * from "./GetResourcePolicyCommand";
30
45
  export * from "./GetTokenVaultCommand";
31
46
  export * from "./GetWorkloadIdentityCommand";
32
47
  export * from "./ListAgentRuntimeEndpointsCommand";
@@ -35,21 +50,33 @@ export * from "./ListAgentRuntimesCommand";
35
50
  export * from "./ListApiKeyCredentialProvidersCommand";
36
51
  export * from "./ListBrowsersCommand";
37
52
  export * from "./ListCodeInterpretersCommand";
53
+ export * from "./ListEvaluatorsCommand";
38
54
  export * from "./ListGatewayTargetsCommand";
39
55
  export * from "./ListGatewaysCommand";
40
56
  export * from "./ListMemoriesCommand";
41
57
  export * from "./ListOauth2CredentialProvidersCommand";
58
+ export * from "./ListOnlineEvaluationConfigsCommand";
59
+ export * from "./ListPoliciesCommand";
60
+ export * from "./ListPolicyEnginesCommand";
61
+ export * from "./ListPolicyGenerationAssetsCommand";
62
+ export * from "./ListPolicyGenerationsCommand";
42
63
  export * from "./ListTagsForResourceCommand";
43
64
  export * from "./ListWorkloadIdentitiesCommand";
65
+ export * from "./PutResourcePolicyCommand";
44
66
  export * from "./SetTokenVaultCMKCommand";
67
+ export * from "./StartPolicyGenerationCommand";
45
68
  export * from "./SynchronizeGatewayTargetsCommand";
46
69
  export * from "./TagResourceCommand";
47
70
  export * from "./UntagResourceCommand";
48
71
  export * from "./UpdateAgentRuntimeCommand";
49
72
  export * from "./UpdateAgentRuntimeEndpointCommand";
50
73
  export * from "./UpdateApiKeyCredentialProviderCommand";
74
+ export * from "./UpdateEvaluatorCommand";
51
75
  export * from "./UpdateGatewayCommand";
52
76
  export * from "./UpdateGatewayTargetCommand";
53
77
  export * from "./UpdateMemoryCommand";
54
78
  export * from "./UpdateOauth2CredentialProviderCommand";
79
+ export * from "./UpdateOnlineEvaluationConfigCommand";
80
+ export * from "./UpdatePolicyCommand";
81
+ export * from "./UpdatePolicyEngineCommand";
55
82
  export * from "./UpdateWorkloadIdentityCommand";
@@ -14,4 +14,5 @@ export * from "./waiters";
14
14
  export * from "./models/enums";
15
15
  export * from "./models/errors";
16
16
  export type * from "./models/models_0";
17
+ export type * from "./models/models_1";
17
18
  export { BedrockAgentCoreControlServiceException } from "./models/BedrockAgentCoreControlServiceException";