@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.
- 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,137 @@
|
|
|
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 { GetOnlineEvaluationConfigRequest, GetOnlineEvaluationConfigResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetOnlineEvaluationConfigCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetOnlineEvaluationConfigCommandInput extends GetOnlineEvaluationConfigRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetOnlineEvaluationConfigCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetOnlineEvaluationConfigCommandOutput extends GetOnlineEvaluationConfigResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetOnlineEvaluationConfigCommand_base: {
|
|
25
|
+
new (input: GetOnlineEvaluationConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetOnlineEvaluationConfigCommandInput, GetOnlineEvaluationConfigCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetOnlineEvaluationConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetOnlineEvaluationConfigCommandInput, GetOnlineEvaluationConfigCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, GetOnlineEvaluationConfigCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, GetOnlineEvaluationConfigCommand } = 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 = { // GetOnlineEvaluationConfigRequest
|
|
40
|
+
* onlineEvaluationConfigId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetOnlineEvaluationConfigCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetOnlineEvaluationConfigResponse
|
|
45
|
+
* // onlineEvaluationConfigArn: "STRING_VALUE", // required
|
|
46
|
+
* // onlineEvaluationConfigId: "STRING_VALUE", // required
|
|
47
|
+
* // onlineEvaluationConfigName: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // rule: { // Rule
|
|
50
|
+
* // samplingConfig: { // SamplingConfig
|
|
51
|
+
* // samplingPercentage: Number("double"), // required
|
|
52
|
+
* // },
|
|
53
|
+
* // filters: [ // FilterList
|
|
54
|
+
* // { // Filter
|
|
55
|
+
* // key: "STRING_VALUE", // required
|
|
56
|
+
* // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
|
|
57
|
+
* // value: { // FilterValue Union: only one key present
|
|
58
|
+
* // stringValue: "STRING_VALUE",
|
|
59
|
+
* // doubleValue: Number("double"),
|
|
60
|
+
* // booleanValue: true || false,
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // sessionConfig: { // SessionConfig
|
|
65
|
+
* // sessionTimeoutMinutes: Number("int"), // required
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // dataSourceConfig: { // DataSourceConfig Union: only one key present
|
|
69
|
+
* // cloudWatchLogs: { // CloudWatchLogsInputConfig
|
|
70
|
+
* // logGroupNames: [ // LogGroupNamesList // required
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // serviceNames: [ // ServiceNamesList // required
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // evaluators: [ // EvaluatorList // required
|
|
79
|
+
* // { // EvaluatorReference Union: only one key present
|
|
80
|
+
* // evaluatorId: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // outputConfig: { // OutputConfig
|
|
84
|
+
* // cloudWatchConfig: { // CloudWatchOutputConfig
|
|
85
|
+
* // logGroupName: "STRING_VALUE", // required
|
|
86
|
+
* // },
|
|
87
|
+
* // },
|
|
88
|
+
* // evaluationExecutionRoleArn: "STRING_VALUE",
|
|
89
|
+
* // status: "ACTIVE" || "CREATING" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING", // required
|
|
90
|
+
* // executionStatus: "ENABLED" || "DISABLED", // required
|
|
91
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
93
|
+
* // failureReason: "STRING_VALUE",
|
|
94
|
+
* // };
|
|
95
|
+
*
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @param GetOnlineEvaluationConfigCommandInput - {@link GetOnlineEvaluationConfigCommandInput}
|
|
99
|
+
* @returns {@link GetOnlineEvaluationConfigCommandOutput}
|
|
100
|
+
* @see {@link GetOnlineEvaluationConfigCommandInput} for command's `input` shape.
|
|
101
|
+
* @see {@link GetOnlineEvaluationConfigCommandOutput} for command's `response` shape.
|
|
102
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
105
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link InternalServerException} (server fault)
|
|
108
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
111
|
+
* <p>This exception is thrown when a resource referenced by the operation does not exist</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
114
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ValidationException} (client fault)
|
|
117
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
120
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare class GetOnlineEvaluationConfigCommand extends GetOnlineEvaluationConfigCommand_base {
|
|
126
|
+
/** @internal type navigation helper, not in runtime. */
|
|
127
|
+
protected static __types: {
|
|
128
|
+
api: {
|
|
129
|
+
input: GetOnlineEvaluationConfigRequest;
|
|
130
|
+
output: GetOnlineEvaluationConfigResponse;
|
|
131
|
+
};
|
|
132
|
+
sdk: {
|
|
133
|
+
input: GetOnlineEvaluationConfigCommandInput;
|
|
134
|
+
output: GetOnlineEvaluationConfigCommandOutput;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { GetPolicyRequest, GetPolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyCommandInput extends GetPolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPolicyCommand_base: {
|
|
25
|
+
new (input: GetPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyCommandInput, GetPolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyCommandInput, GetPolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves detailed information about a specific policy within the AgentCore Policy system. This operation returns the complete policy definition, metadata, and current status, allowing administrators to review and manage policy configurations.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, GetPolicyCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, GetPolicyCommand } = 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 = { // GetPolicyRequest
|
|
40
|
+
* policyEngineId: "STRING_VALUE", // required
|
|
41
|
+
* policyId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetPolicyCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetPolicyResponse
|
|
46
|
+
* // policyId: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // policyEngineId: "STRING_VALUE", // required
|
|
49
|
+
* // definition: { // PolicyDefinition Union: only one key present
|
|
50
|
+
* // cedar: { // CedarPolicy
|
|
51
|
+
* // statement: "STRING_VALUE", // required
|
|
52
|
+
* // },
|
|
53
|
+
* // },
|
|
54
|
+
* // description: "STRING_VALUE",
|
|
55
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // policyArn: "STRING_VALUE", // required
|
|
58
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
|
|
59
|
+
* // statusReasons: [ // PolicyStatusReasons // required
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param GetPolicyCommandInput - {@link GetPolicyCommandInput}
|
|
67
|
+
* @returns {@link GetPolicyCommandOutput}
|
|
68
|
+
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>This exception is thrown when a resource referenced by the operation does not exist</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class GetPolicyCommand extends GetPolicyCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: GetPolicyRequest;
|
|
98
|
+
output: GetPolicyResponse;
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: GetPolicyCommandInput;
|
|
102
|
+
output: GetPolicyCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { GetPolicyEngineRequest, GetPolicyEngineResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPolicyEngineCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyEngineCommandInput extends GetPolicyEngineRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyEngineCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyEngineCommandOutput extends GetPolicyEngineResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPolicyEngineCommand_base: {
|
|
25
|
+
new (input: GetPolicyEngineCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyEngineCommandInput, GetPolicyEngineCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPolicyEngineCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyEngineCommandInput, GetPolicyEngineCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, GetPolicyEngineCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, GetPolicyEngineCommand } = 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 = { // GetPolicyEngineRequest
|
|
40
|
+
* policyEngineId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetPolicyEngineCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetPolicyEngineResponse
|
|
45
|
+
* // policyEngineId: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // description: "STRING_VALUE",
|
|
48
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // policyEngineArn: "STRING_VALUE", // required
|
|
51
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
|
|
52
|
+
* // statusReasons: [ // PolicyStatusReasons // required
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetPolicyEngineCommandInput - {@link GetPolicyEngineCommandInput}
|
|
60
|
+
* @returns {@link GetPolicyEngineCommandOutput}
|
|
61
|
+
* @see {@link GetPolicyEngineCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetPolicyEngineCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>This exception is thrown when a resource referenced by the operation does not exist</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class GetPolicyEngineCommand extends GetPolicyEngineCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: GetPolicyEngineRequest;
|
|
91
|
+
output: GetPolicyEngineResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: GetPolicyEngineCommandInput;
|
|
95
|
+
output: GetPolicyEngineCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { GetPolicyGenerationRequest, GetPolicyGenerationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPolicyGenerationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyGenerationCommandInput extends GetPolicyGenerationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyGenerationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyGenerationCommandOutput extends GetPolicyGenerationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPolicyGenerationCommand_base: {
|
|
25
|
+
new (input: GetPolicyGenerationCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyGenerationCommandInput, GetPolicyGenerationCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPolicyGenerationCommandInput): import("@smithy/smithy-client").CommandImpl<GetPolicyGenerationCommandInput, GetPolicyGenerationCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves information about a policy generation request within the AgentCore Policy system. Policy generation converts natural language descriptions into Cedar policy statements using AI-powered translation, enabling non-technical users to create policies.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, GetPolicyGenerationCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, GetPolicyGenerationCommand } = 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 = { // GetPolicyGenerationRequest
|
|
40
|
+
* policyGenerationId: "STRING_VALUE", // required
|
|
41
|
+
* policyEngineId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetPolicyGenerationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetPolicyGenerationResponse
|
|
46
|
+
* // policyEngineId: "STRING_VALUE", // required
|
|
47
|
+
* // policyGenerationId: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // policyGenerationArn: "STRING_VALUE", // required
|
|
50
|
+
* // resource: { // Resource Union: only one key present
|
|
51
|
+
* // arn: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
55
|
+
* // status: "GENERATING" || "GENERATED" || "GENERATE_FAILED" || "DELETE_FAILED", // required
|
|
56
|
+
* // statusReasons: [ // PolicyStatusReasons // required
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // findings: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param GetPolicyGenerationCommandInput - {@link GetPolicyGenerationCommandInput}
|
|
65
|
+
* @returns {@link GetPolicyGenerationCommandOutput}
|
|
66
|
+
* @see {@link GetPolicyGenerationCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link GetPolicyGenerationCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
77
|
+
* <p>This exception is thrown when a resource referenced by the operation does not exist</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
80
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ValidationException} (client fault)
|
|
83
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class GetPolicyGenerationCommand extends GetPolicyGenerationCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: GetPolicyGenerationRequest;
|
|
96
|
+
output: GetPolicyGenerationResponse;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: GetPolicyGenerationCommandInput;
|
|
100
|
+
output: GetPolicyGenerationCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the resource-based policy for a specified resource.</p> <note> <p>This feature is currently available only for AgentCore Runtime and Gateway.</p> </note>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, GetResourcePolicyCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, GetResourcePolicyCommand } = 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 = { // GetResourcePolicyRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetResourcePolicyResponse
|
|
45
|
+
* // policy: "STRING_VALUE",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
51
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
52
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>This exception is thrown when a resource referenced by the operation does not exist</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
66
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
73
|
+
*
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
78
|
+
/** @internal type navigation helper, not in runtime. */
|
|
79
|
+
protected static __types: {
|
|
80
|
+
api: {
|
|
81
|
+
input: GetResourcePolicyRequest;
|
|
82
|
+
output: GetResourcePolicyResponse;
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
input: GetResourcePolicyCommandInput;
|
|
86
|
+
output: GetResourcePolicyCommandOutput;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -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 { GetWorkloadIdentityRequest, GetWorkloadIdentityResponse } from "../models/
|
|
4
|
+
import { GetWorkloadIdentityRequest, GetWorkloadIdentityResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { ListEvaluatorsRequest, ListEvaluatorsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListEvaluatorsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListEvaluatorsCommandInput extends ListEvaluatorsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListEvaluatorsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListEvaluatorsCommandOutput extends ListEvaluatorsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListEvaluatorsCommand_base: {
|
|
25
|
+
new (input: ListEvaluatorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListEvaluatorsCommandInput, ListEvaluatorsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListEvaluatorsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListEvaluatorsCommandInput, ListEvaluatorsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Lists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreControlClient, ListEvaluatorsCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreControlClient, ListEvaluatorsCommand } = 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 = { // ListEvaluatorsRequest
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListEvaluatorsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListEvaluatorsResponse
|
|
46
|
+
* // evaluators: [ // EvaluatorSummaryList // required
|
|
47
|
+
* // { // EvaluatorSummary
|
|
48
|
+
* // evaluatorArn: "STRING_VALUE", // required
|
|
49
|
+
* // evaluatorId: "STRING_VALUE", // required
|
|
50
|
+
* // evaluatorName: "STRING_VALUE", // required
|
|
51
|
+
* // description: "STRING_VALUE",
|
|
52
|
+
* // evaluatorType: "Builtin" || "Custom", // required
|
|
53
|
+
* // level: "TOOL_CALL" || "TRACE" || "SESSION",
|
|
54
|
+
* // status: "ACTIVE" || "CREATING" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING", // required
|
|
55
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // lockedForModification: true || false,
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // nextToken: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ListEvaluatorsCommandInput - {@link ListEvaluatorsCommandInput}
|
|
66
|
+
* @returns {@link ListEvaluatorsCommandOutput}
|
|
67
|
+
* @see {@link ListEvaluatorsCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ListEvaluatorsCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>This exception is thrown when a request is denied per access permissions</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>This exception is thrown if there was an unexpected error during processing of request</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>This exception is thrown when the number of requests exceeds the limit</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link BedrockAgentCoreControlServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class ListEvaluatorsCommand extends ListEvaluatorsCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: ListEvaluatorsRequest;
|
|
94
|
+
output: ListEvaluatorsResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: ListEvaluatorsCommandInput;
|
|
98
|
+
output: ListEvaluatorsCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|