@aws-sdk/client-bedrock-agentcore-control 3.939.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.
- package/README.md +216 -0
- package/dist-cjs/index.js +2140 -143
- package/dist-es/BedrockAgentCoreControl.js +54 -0
- package/dist-es/commands/CreateEvaluatorCommand.js +16 -0
- package/dist-es/commands/CreateOnlineEvaluationConfigCommand.js +16 -0
- package/dist-es/commands/CreatePolicyCommand.js +16 -0
- package/dist-es/commands/CreatePolicyEngineCommand.js +16 -0
- package/dist-es/commands/DeleteEvaluatorCommand.js +16 -0
- package/dist-es/commands/DeleteOnlineEvaluationConfigCommand.js +16 -0
- package/dist-es/commands/DeletePolicyCommand.js +16 -0
- package/dist-es/commands/DeletePolicyEngineCommand.js +16 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
- package/dist-es/commands/GetEvaluatorCommand.js +16 -0
- package/dist-es/commands/GetOnlineEvaluationConfigCommand.js +16 -0
- package/dist-es/commands/GetPolicyCommand.js +16 -0
- package/dist-es/commands/GetPolicyEngineCommand.js +16 -0
- package/dist-es/commands/GetPolicyGenerationCommand.js +16 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
- package/dist-es/commands/ListEvaluatorsCommand.js +16 -0
- package/dist-es/commands/ListOnlineEvaluationConfigsCommand.js +16 -0
- package/dist-es/commands/ListPoliciesCommand.js +16 -0
- package/dist-es/commands/ListPolicyEnginesCommand.js +16 -0
- package/dist-es/commands/ListPolicyGenerationAssetsCommand.js +16 -0
- package/dist-es/commands/ListPolicyGenerationsCommand.js +16 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
- package/dist-es/commands/StartPolicyGenerationCommand.js +16 -0
- package/dist-es/commands/UpdateEvaluatorCommand.js +16 -0
- package/dist-es/commands/UpdateOnlineEvaluationConfigCommand.js +16 -0
- package/dist-es/commands/UpdatePolicyCommand.js +16 -0
- package/dist-es/commands/UpdatePolicyEngineCommand.js +16 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/models/enums.js +104 -0
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/pagination/ListEvaluatorsPaginator.js +4 -0
- package/dist-es/pagination/ListOnlineEvaluationConfigsPaginator.js +4 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListPolicyEnginesPaginator.js +4 -0
- package/dist-es/pagination/ListPolicyGenerationAssetsPaginator.js +4 -0
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/schemas/schemas_0.js +1320 -97
- package/dist-es/waiters/index.js +5 -0
- package/dist-es/waiters/waitForPolicyActive.js +58 -0
- package/dist-es/waiters/waitForPolicyDeleted.js +43 -0
- package/dist-es/waiters/waitForPolicyEngineActive.js +58 -0
- package/dist-es/waiters/waitForPolicyEngineDeleted.js +43 -0
- package/dist-es/waiters/waitForPolicyGenerationCompleted.js +58 -0
- package/dist-types/BedrockAgentCoreControl.d.ts +192 -0
- package/dist-types/BedrockAgentCoreControlClient.d.ts +29 -2
- package/dist-types/commands/CreateAgentRuntimeCommand.d.ts +18 -0
- package/dist-types/commands/CreateEvaluatorCommand.d.ts +132 -0
- package/dist-types/commands/CreateGatewayCommand.d.ts +44 -0
- package/dist-types/commands/CreateGatewayTargetCommand.d.ts +49 -1
- package/dist-types/commands/CreateMemoryCommand.d.ts +52 -5
- package/dist-types/commands/CreateOnlineEvaluationConfigCommand.d.ts +140 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +119 -0
- package/dist-types/commands/CreatePolicyEngineCommand.d.ts +103 -0
- package/dist-types/commands/CreateWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEvaluatorCommand.d.ts +94 -0
- package/dist-types/commands/DeleteMemoryCommand.d.ts +3 -0
- package/dist-types/commands/DeleteOnlineEvaluationConfigCommand.d.ts +94 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +108 -0
- package/dist-types/commands/DeletePolicyEngineCommand.d.ts +101 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/DeleteWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentRuntimeCommand.d.ts +19 -0
- package/dist-types/commands/GetEvaluatorCommand.d.ts +131 -0
- package/dist-types/commands/GetGatewayCommand.d.ts +22 -0
- package/dist-types/commands/GetGatewayTargetCommand.d.ts +26 -1
- package/dist-types/commands/GetMemoryCommand.d.ts +27 -5
- package/dist-types/commands/GetOnlineEvaluationConfigCommand.d.ts +137 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +105 -0
- package/dist-types/commands/GetPolicyEngineCommand.d.ts +98 -0
- package/dist-types/commands/GetPolicyGenerationCommand.d.ts +103 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +89 -0
- package/dist-types/commands/GetWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/commands/ListEvaluatorsCommand.d.ts +101 -0
- package/dist-types/commands/ListOnlineEvaluationConfigsCommand.d.ts +100 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +113 -0
- package/dist-types/commands/ListPolicyEnginesCommand.d.ts +101 -0
- package/dist-types/commands/ListPolicyGenerationAssetsCommand.d.ts +109 -0
- package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +109 -0
- package/dist-types/commands/ListWorkloadIdentitiesCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +90 -0
- package/dist-types/commands/SetTokenVaultCMKCommand.d.ts +1 -1
- package/dist-types/commands/StartPolicyGenerationCommand.d.ts +116 -0
- package/dist-types/commands/SynchronizeGatewayTargetsCommand.d.ts +26 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentRuntimeCommand.d.ts +18 -0
- package/dist-types/commands/UpdateEvaluatorCommand.d.ts +135 -0
- package/dist-types/commands/UpdateGatewayCommand.d.ts +44 -0
- package/dist-types/commands/UpdateGatewayTargetCommand.d.ts +49 -1
- package/dist-types/commands/UpdateMemoryCommand.d.ts +73 -8
- package/dist-types/commands/UpdateOnlineEvaluationConfigCommand.d.ts +138 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +115 -0
- package/dist-types/commands/UpdatePolicyEngineCommand.d.ts +102 -0
- package/dist-types/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +232 -0
- package/dist-types/models/models_0.d.ts +4160 -2169
- package/dist-types/models/models_1.d.ts +1009 -0
- package/dist-types/pagination/ListEvaluatorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyEnginesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyGenerationAssetsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/schemas/schemas_0.d.ts +156 -0
- package/dist-types/ts3.4/BedrockAgentCoreControl.d.ts +462 -0
- package/dist-types/ts3.4/BedrockAgentCoreControlClient.d.ts +162 -0
- package/dist-types/ts3.4/commands/CreateEvaluatorCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateGatewayTargetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateOnlineEvaluationConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreatePolicyEngineCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteEvaluatorCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteOnlineEvaluationConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeletePolicyEngineCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEvaluatorCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetGatewayTargetCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetOnlineEvaluationConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetPolicyEngineCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetPolicyGenerationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListEvaluatorsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListOnlineEvaluationConfigsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +48 -0
- package/dist-types/ts3.4/commands/ListPolicyEnginesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPolicyGenerationAssetsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWorkloadIdentitiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SetTokenVaultCMKCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartPolicyGenerationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SynchronizeGatewayTargetsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEvaluatorCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateGatewayTargetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOnlineEvaluationConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdatePolicyEngineCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +132 -0
- package/dist-types/ts3.4/models/models_0.d.ts +835 -188
- package/dist-types/ts3.4/models/models_1.d.ts +331 -0
- package/dist-types/ts3.4/pagination/ListEvaluatorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOnlineEvaluationConfigsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyEnginesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyGenerationAssetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +156 -0
- package/dist-types/ts3.4/waiters/index.d.ts +5 -0
- package/dist-types/ts3.4/waiters/waitForPolicyActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPolicyDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPolicyEngineActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPolicyEngineDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPolicyGenerationCompleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +5 -0
- package/dist-types/waiters/waitForPolicyActive.d.ts +14 -0
- package/dist-types/waiters/waitForPolicyDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForPolicyEngineActive.d.ts +14 -0
- package/dist-types/waiters/waitForPolicyEngineDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForPolicyGenerationCompleted.d.ts +14 -0
- 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/
|
|
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";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -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";
|