@aws-sdk/client-bedrock 3.859.0 → 3.861.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 +192 -0
- package/dist-cjs/index.js +2684 -369
- package/dist-es/Bedrock.js +48 -0
- package/dist-es/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.js +22 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyVersionCommand.js +23 -0
- package/dist-es/commands/CreateGuardrailCommand.js +1 -1
- package/dist-es/commands/CreateGuardrailVersionCommand.js +1 -1
- package/dist-es/commands/CreateInferenceProfileCommand.js +1 -1
- package/dist-es/commands/CreatePromptRouterCommand.js +1 -1
- package/dist-es/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.js +22 -0
- package/dist-es/commands/DeleteAutomatedReasoningPolicyCommand.js +22 -0
- package/dist-es/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.js +22 -0
- package/dist-es/commands/ExportAutomatedReasoningPolicyVersionCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyAnnotationsCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyNextScenarioCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyTestResultCommand.js +23 -0
- package/dist-es/commands/GetGuardrailCommand.js +1 -1
- package/dist-es/commands/GetInferenceProfileCommand.js +1 -1
- package/dist-es/commands/GetModelInvocationJobCommand.js +1 -1
- package/dist-es/commands/GetPromptRouterCommand.js +1 -1
- package/dist-es/commands/ListAutomatedReasoningPoliciesCommand.js +23 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.js +22 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyTestCasesCommand.js +23 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyTestResultsCommand.js +23 -0
- package/dist-es/commands/ListGuardrailsCommand.js +1 -1
- package/dist-es/commands/ListInferenceProfilesCommand.js +1 -1
- package/dist-es/commands/ListModelInvocationJobsCommand.js +1 -1
- package/dist-es/commands/ListPromptRoutersCommand.js +1 -1
- package/dist-es/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.js +23 -0
- package/dist-es/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.js +22 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.js +23 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/UpdateGuardrailCommand.js +1 -1
- package/dist-es/commands/index.js +24 -0
- package/dist-es/models/models_0.js +742 -315
- package/dist-es/models/models_1.js +300 -1
- package/dist-es/pagination/ListAutomatedReasoningPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +997 -31
- package/dist-types/Bedrock.d.ts +169 -0
- package/dist-types/BedrockClient.d.ts +26 -2
- package/dist-types/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +86 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyCommand.d.ts +139 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +99 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +106 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +90 -0
- package/dist-types/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +85 -0
- package/dist-types/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +93 -0
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +115 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +172 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +96 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +307 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyCommand.d.ts +94 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +96 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +97 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +258 -0
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/GetImportedModelCommand.d.ts +1 -1
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetPromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomatedReasoningPoliciesCommand.d.ts +100 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +99 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +100 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +265 -0
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -2
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +222 -0
- package/dist-types/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +95 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +175 -0
- package/dist-types/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +127 -0
- package/dist-types/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +102 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/index.d.ts +24 -0
- package/dist-types/models/models_0.d.ts +3899 -3774
- package/dist-types/models/models_1.d.ts +3320 -1
- package/dist-types/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +216 -0
- package/dist-types/ts3.4/Bedrock.d.ts +523 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +144 -0
- package/dist-types/ts3.4/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreatePromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPoliciesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +24 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2324 -1702
- package/dist-types/ts3.4/models/models_1.d.ts +970 -2
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +288 -0
- package/package.json +1 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput extends GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput extends GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* buildWorkflowId: "STRING_VALUE", // required
|
|
40
|
+
* assetType: "BUILD_LOG" || "QUALITY_REPORT" || "POLICY_DEFINITION", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse
|
|
45
|
+
* // policyArn: "STRING_VALUE", // required
|
|
46
|
+
* // buildWorkflowId: "STRING_VALUE", // required
|
|
47
|
+
* // buildWorkflowAssets: { // AutomatedReasoningPolicyBuildResultAssets Union: only one key present
|
|
48
|
+
* // policyDefinition: { // AutomatedReasoningPolicyDefinition
|
|
49
|
+
* // version: "STRING_VALUE",
|
|
50
|
+
* // types: [ // AutomatedReasoningPolicyDefinitionTypeList
|
|
51
|
+
* // { // AutomatedReasoningPolicyDefinitionType
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // description: "STRING_VALUE",
|
|
54
|
+
* // values: [ // AutomatedReasoningPolicyDefinitionTypeValueList // required
|
|
55
|
+
* // { // AutomatedReasoningPolicyDefinitionTypeValue
|
|
56
|
+
* // value: "STRING_VALUE", // required
|
|
57
|
+
* // description: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // rules: [ // AutomatedReasoningPolicyDefinitionRuleList
|
|
63
|
+
* // { // AutomatedReasoningPolicyDefinitionRule
|
|
64
|
+
* // id: "STRING_VALUE", // required
|
|
65
|
+
* // expression: "STRING_VALUE", // required
|
|
66
|
+
* // alternateExpression: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // variables: [ // AutomatedReasoningPolicyDefinitionVariableList
|
|
70
|
+
* // { // AutomatedReasoningPolicyDefinitionVariable
|
|
71
|
+
* // name: "STRING_VALUE", // required
|
|
72
|
+
* // type: "STRING_VALUE", // required
|
|
73
|
+
* // description: "STRING_VALUE", // required
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // },
|
|
77
|
+
* // qualityReport: { // AutomatedReasoningPolicyDefinitionQualityReport
|
|
78
|
+
* // typeCount: Number("int"), // required
|
|
79
|
+
* // variableCount: Number("int"), // required
|
|
80
|
+
* // ruleCount: Number("int"), // required
|
|
81
|
+
* // unusedTypes: [ // AutomatedReasoningPolicyDefinitionTypeNameList // required
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // unusedTypeValues: [ // AutomatedReasoningPolicyDefinitionTypeValuePairList // required
|
|
85
|
+
* // { // AutomatedReasoningPolicyDefinitionTypeValuePair
|
|
86
|
+
* // typeName: "STRING_VALUE", // required
|
|
87
|
+
* // valueName: "STRING_VALUE", // required
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
90
|
+
* // unusedVariables: [ // AutomatedReasoningPolicyDefinitionVariableNameList // required
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // conflictingRules: [ // AutomatedReasoningPolicyConflictedRuleIdList // required
|
|
94
|
+
* // "STRING_VALUE",
|
|
95
|
+
* // ],
|
|
96
|
+
* // disjointRuleSets: [ // AutomatedReasoningPolicyDisjointRuleSetList // required
|
|
97
|
+
* // { // AutomatedReasoningPolicyDisjointRuleSet
|
|
98
|
+
* // variables: [ // required
|
|
99
|
+
* // "STRING_VALUE",
|
|
100
|
+
* // ],
|
|
101
|
+
* // rules: [ // AutomatedReasoningPolicyDisjointedRuleIdList // required
|
|
102
|
+
* // "STRING_VALUE",
|
|
103
|
+
* // ],
|
|
104
|
+
* // },
|
|
105
|
+
* // ],
|
|
106
|
+
* // },
|
|
107
|
+
* // buildLog: { // AutomatedReasoningPolicyBuildLog
|
|
108
|
+
* // entries: [ // AutomatedReasoningPolicyBuildLogEntryList // required
|
|
109
|
+
* // { // AutomatedReasoningPolicyBuildLogEntry
|
|
110
|
+
* // annotation: { // AutomatedReasoningPolicyAnnotation Union: only one key present
|
|
111
|
+
* // addType: { // AutomatedReasoningPolicyAddTypeAnnotation
|
|
112
|
+
* // name: "STRING_VALUE", // required
|
|
113
|
+
* // description: "STRING_VALUE", // required
|
|
114
|
+
* // values: [ // required
|
|
115
|
+
* // {
|
|
116
|
+
* // value: "STRING_VALUE", // required
|
|
117
|
+
* // description: "STRING_VALUE",
|
|
118
|
+
* // },
|
|
119
|
+
* // ],
|
|
120
|
+
* // },
|
|
121
|
+
* // updateType: { // AutomatedReasoningPolicyUpdateTypeAnnotation
|
|
122
|
+
* // name: "STRING_VALUE", // required
|
|
123
|
+
* // newName: "STRING_VALUE",
|
|
124
|
+
* // description: "STRING_VALUE",
|
|
125
|
+
* // values: [ // AutomatedReasoningPolicyTypeValueAnnotationList // required
|
|
126
|
+
* // { // AutomatedReasoningPolicyTypeValueAnnotation Union: only one key present
|
|
127
|
+
* // addTypeValue: { // AutomatedReasoningPolicyAddTypeValue
|
|
128
|
+
* // value: "STRING_VALUE", // required
|
|
129
|
+
* // description: "STRING_VALUE",
|
|
130
|
+
* // },
|
|
131
|
+
* // updateTypeValue: { // AutomatedReasoningPolicyUpdateTypeValue
|
|
132
|
+
* // value: "STRING_VALUE", // required
|
|
133
|
+
* // newValue: "STRING_VALUE",
|
|
134
|
+
* // description: "STRING_VALUE",
|
|
135
|
+
* // },
|
|
136
|
+
* // deleteTypeValue: { // AutomatedReasoningPolicyDeleteTypeValue
|
|
137
|
+
* // value: "STRING_VALUE", // required
|
|
138
|
+
* // },
|
|
139
|
+
* // },
|
|
140
|
+
* // ],
|
|
141
|
+
* // },
|
|
142
|
+
* // deleteType: { // AutomatedReasoningPolicyDeleteTypeAnnotation
|
|
143
|
+
* // name: "STRING_VALUE", // required
|
|
144
|
+
* // },
|
|
145
|
+
* // addVariable: { // AutomatedReasoningPolicyAddVariableAnnotation
|
|
146
|
+
* // name: "STRING_VALUE", // required
|
|
147
|
+
* // type: "STRING_VALUE", // required
|
|
148
|
+
* // description: "STRING_VALUE", // required
|
|
149
|
+
* // },
|
|
150
|
+
* // updateVariable: { // AutomatedReasoningPolicyUpdateVariableAnnotation
|
|
151
|
+
* // name: "STRING_VALUE", // required
|
|
152
|
+
* // newName: "STRING_VALUE",
|
|
153
|
+
* // description: "STRING_VALUE",
|
|
154
|
+
* // },
|
|
155
|
+
* // deleteVariable: { // AutomatedReasoningPolicyDeleteVariableAnnotation
|
|
156
|
+
* // name: "STRING_VALUE", // required
|
|
157
|
+
* // },
|
|
158
|
+
* // addRule: { // AutomatedReasoningPolicyAddRuleAnnotation
|
|
159
|
+
* // expression: "STRING_VALUE", // required
|
|
160
|
+
* // },
|
|
161
|
+
* // updateRule: { // AutomatedReasoningPolicyUpdateRuleAnnotation
|
|
162
|
+
* // ruleId: "STRING_VALUE", // required
|
|
163
|
+
* // expression: "STRING_VALUE", // required
|
|
164
|
+
* // },
|
|
165
|
+
* // deleteRule: { // AutomatedReasoningPolicyDeleteRuleAnnotation
|
|
166
|
+
* // ruleId: "STRING_VALUE", // required
|
|
167
|
+
* // },
|
|
168
|
+
* // addRuleFromNaturalLanguage: { // AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation
|
|
169
|
+
* // naturalLanguage: "STRING_VALUE", // required
|
|
170
|
+
* // },
|
|
171
|
+
* // updateFromRulesFeedback: { // AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation
|
|
172
|
+
* // ruleIds: [ // AutomatedReasoningPolicyDefinitionRuleIdList
|
|
173
|
+
* // "STRING_VALUE",
|
|
174
|
+
* // ],
|
|
175
|
+
* // feedback: "STRING_VALUE", // required
|
|
176
|
+
* // },
|
|
177
|
+
* // updateFromScenarioFeedback: { // AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation
|
|
178
|
+
* // ruleIds: [
|
|
179
|
+
* // "STRING_VALUE",
|
|
180
|
+
* // ],
|
|
181
|
+
* // scenarioExpression: "STRING_VALUE", // required
|
|
182
|
+
* // feedback: "STRING_VALUE",
|
|
183
|
+
* // },
|
|
184
|
+
* // ingestContent: { // AutomatedReasoningPolicyIngestContentAnnotation
|
|
185
|
+
* // content: "STRING_VALUE", // required
|
|
186
|
+
* // },
|
|
187
|
+
* // },
|
|
188
|
+
* // status: "APPLIED" || "FAILED", // required
|
|
189
|
+
* // buildSteps: [ // AutomatedReasoningPolicyBuildStepList // required
|
|
190
|
+
* // { // AutomatedReasoningPolicyBuildStep
|
|
191
|
+
* // context: { // AutomatedReasoningPolicyBuildStepContext Union: only one key present
|
|
192
|
+
* // planning: {},
|
|
193
|
+
* // mutation: { // AutomatedReasoningPolicyMutation Union: only one key present
|
|
194
|
+
* // addType: { // AutomatedReasoningPolicyAddTypeMutation
|
|
195
|
+
* // type: {
|
|
196
|
+
* // name: "STRING_VALUE", // required
|
|
197
|
+
* // description: "STRING_VALUE",
|
|
198
|
+
* // values: "<AutomatedReasoningPolicyDefinitionTypeValueList>", // required
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
201
|
+
* // updateType: { // AutomatedReasoningPolicyUpdateTypeMutation
|
|
202
|
+
* // type: {
|
|
203
|
+
* // name: "STRING_VALUE", // required
|
|
204
|
+
* // description: "STRING_VALUE",
|
|
205
|
+
* // values: "<AutomatedReasoningPolicyDefinitionTypeValueList>", // required
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // deleteType: { // AutomatedReasoningPolicyDeleteTypeMutation
|
|
209
|
+
* // name: "STRING_VALUE", // required
|
|
210
|
+
* // },
|
|
211
|
+
* // addVariable: { // AutomatedReasoningPolicyAddVariableMutation
|
|
212
|
+
* // variable: {
|
|
213
|
+
* // name: "STRING_VALUE", // required
|
|
214
|
+
* // type: "STRING_VALUE", // required
|
|
215
|
+
* // description: "STRING_VALUE", // required
|
|
216
|
+
* // },
|
|
217
|
+
* // },
|
|
218
|
+
* // updateVariable: { // AutomatedReasoningPolicyUpdateVariableMutation
|
|
219
|
+
* // variable: {
|
|
220
|
+
* // name: "STRING_VALUE", // required
|
|
221
|
+
* // type: "STRING_VALUE", // required
|
|
222
|
+
* // description: "STRING_VALUE", // required
|
|
223
|
+
* // },
|
|
224
|
+
* // },
|
|
225
|
+
* // deleteVariable: { // AutomatedReasoningPolicyDeleteVariableMutation
|
|
226
|
+
* // name: "STRING_VALUE", // required
|
|
227
|
+
* // },
|
|
228
|
+
* // addRule: { // AutomatedReasoningPolicyAddRuleMutation
|
|
229
|
+
* // rule: {
|
|
230
|
+
* // id: "STRING_VALUE", // required
|
|
231
|
+
* // expression: "STRING_VALUE", // required
|
|
232
|
+
* // alternateExpression: "STRING_VALUE",
|
|
233
|
+
* // },
|
|
234
|
+
* // },
|
|
235
|
+
* // updateRule: { // AutomatedReasoningPolicyUpdateRuleMutation
|
|
236
|
+
* // rule: {
|
|
237
|
+
* // id: "STRING_VALUE", // required
|
|
238
|
+
* // expression: "STRING_VALUE", // required
|
|
239
|
+
* // alternateExpression: "STRING_VALUE",
|
|
240
|
+
* // },
|
|
241
|
+
* // },
|
|
242
|
+
* // deleteRule: { // AutomatedReasoningPolicyDeleteRuleMutation
|
|
243
|
+
* // id: "STRING_VALUE", // required
|
|
244
|
+
* // },
|
|
245
|
+
* // },
|
|
246
|
+
* // },
|
|
247
|
+
* // priorElement: { // AutomatedReasoningPolicyDefinitionElement Union: only one key present
|
|
248
|
+
* // policyDefinitionVariable: "<AutomatedReasoningPolicyDefinitionVariable>",
|
|
249
|
+
* // policyDefinitionType: "<AutomatedReasoningPolicyDefinitionType>",
|
|
250
|
+
* // policyDefinitionRule: "<AutomatedReasoningPolicyDefinitionRule>",
|
|
251
|
+
* // },
|
|
252
|
+
* // messages: [ // AutomatedReasoningPolicyBuildStepMessageList // required
|
|
253
|
+
* // { // AutomatedReasoningPolicyBuildStepMessage
|
|
254
|
+
* // message: "STRING_VALUE", // required
|
|
255
|
+
* // messageType: "INFO" || "WARNING" || "ERROR", // required
|
|
256
|
+
* // },
|
|
257
|
+
* // ],
|
|
258
|
+
* // },
|
|
259
|
+
* // ],
|
|
260
|
+
* // },
|
|
261
|
+
* // ],
|
|
262
|
+
* // },
|
|
263
|
+
* // },
|
|
264
|
+
* // };
|
|
265
|
+
*
|
|
266
|
+
* ```
|
|
267
|
+
*
|
|
268
|
+
* @param GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput - {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput}
|
|
269
|
+
* @returns {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput}
|
|
270
|
+
* @see {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput} for command's `input` shape.
|
|
271
|
+
* @see {@link GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput} for command's `response` shape.
|
|
272
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
273
|
+
*
|
|
274
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
275
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
276
|
+
*
|
|
277
|
+
* @throws {@link InternalServerException} (server fault)
|
|
278
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
279
|
+
*
|
|
280
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
281
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
282
|
+
*
|
|
283
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
284
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
285
|
+
*
|
|
286
|
+
* @throws {@link ValidationException} (client fault)
|
|
287
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
288
|
+
*
|
|
289
|
+
* @throws {@link BedrockServiceException}
|
|
290
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
291
|
+
*
|
|
292
|
+
*
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
export declare class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand extends GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand_base {
|
|
296
|
+
/** @internal type navigation helper, not in runtime. */
|
|
297
|
+
protected static __types: {
|
|
298
|
+
api: {
|
|
299
|
+
input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest;
|
|
300
|
+
output: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse;
|
|
301
|
+
};
|
|
302
|
+
sdk: {
|
|
303
|
+
input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput;
|
|
304
|
+
output: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetAutomatedReasoningPolicyRequest, GetAutomatedReasoningPolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyCommandInput extends GetAutomatedReasoningPolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyCommandOutput extends GetAutomatedReasoningPolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyCommandInput, GetAutomatedReasoningPolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyCommandInput, GetAutomatedReasoningPolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetAutomatedReasoningPolicyCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetAutomatedReasoningPolicyResponse
|
|
43
|
+
* // policyArn: "STRING_VALUE", // required
|
|
44
|
+
* // name: "STRING_VALUE", // required
|
|
45
|
+
* // version: "STRING_VALUE", // required
|
|
46
|
+
* // policyId: "STRING_VALUE", // required
|
|
47
|
+
* // description: "STRING_VALUE",
|
|
48
|
+
* // definitionHash: "STRING_VALUE", // required
|
|
49
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
50
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GetAutomatedReasoningPolicyCommandInput - {@link GetAutomatedReasoningPolicyCommandInput}
|
|
56
|
+
* @returns {@link GetAutomatedReasoningPolicyCommandOutput}
|
|
57
|
+
* @see {@link GetAutomatedReasoningPolicyCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GetAutomatedReasoningPolicyCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link BedrockServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class GetAutomatedReasoningPolicyCommand extends GetAutomatedReasoningPolicyCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: GetAutomatedReasoningPolicyRequest;
|
|
87
|
+
output: GetAutomatedReasoningPolicyResponse;
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: GetAutomatedReasoningPolicyCommandInput;
|
|
91
|
+
output: GetAutomatedReasoningPolicyCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetAutomatedReasoningPolicyNextScenarioRequest, GetAutomatedReasoningPolicyNextScenarioResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyNextScenarioCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyNextScenarioCommandInput extends GetAutomatedReasoningPolicyNextScenarioRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyNextScenarioCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyNextScenarioCommandOutput extends GetAutomatedReasoningPolicyNextScenarioResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyNextScenarioCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyNextScenarioCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyNextScenarioCommandInput, GetAutomatedReasoningPolicyNextScenarioCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyNextScenarioCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyNextScenarioCommandInput, GetAutomatedReasoningPolicyNextScenarioCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyNextScenarioCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyNextScenarioCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyNextScenarioRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* buildWorkflowId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAutomatedReasoningPolicyNextScenarioCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAutomatedReasoningPolicyNextScenarioResponse
|
|
44
|
+
* // policyArn: "STRING_VALUE", // required
|
|
45
|
+
* // scenario: { // AutomatedReasoningPolicyScenario
|
|
46
|
+
* // expression: "STRING_VALUE", // required
|
|
47
|
+
* // alternateExpression: "STRING_VALUE", // required
|
|
48
|
+
* // ruleIds: [ // AutomatedReasoningPolicyDefinitionRuleIdList // required
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // expectedResult: "VALID" || "INVALID" || "SATISFIABLE" || "IMPOSSIBLE" || "TRANSLATION_AMBIGUOUS" || "TOO_COMPLEX" || "NO_TRANSLATION", // required
|
|
52
|
+
* // },
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param GetAutomatedReasoningPolicyNextScenarioCommandInput - {@link GetAutomatedReasoningPolicyNextScenarioCommandInput}
|
|
58
|
+
* @returns {@link GetAutomatedReasoningPolicyNextScenarioCommandOutput}
|
|
59
|
+
* @see {@link GetAutomatedReasoningPolicyNextScenarioCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link GetAutomatedReasoningPolicyNextScenarioCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
64
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link BedrockServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class GetAutomatedReasoningPolicyNextScenarioCommand extends GetAutomatedReasoningPolicyNextScenarioCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: GetAutomatedReasoningPolicyNextScenarioRequest;
|
|
89
|
+
output: GetAutomatedReasoningPolicyNextScenarioResponse;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: GetAutomatedReasoningPolicyNextScenarioCommandInput;
|
|
93
|
+
output: GetAutomatedReasoningPolicyNextScenarioCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetAutomatedReasoningPolicyTestCaseRequest, GetAutomatedReasoningPolicyTestCaseResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyTestCaseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyTestCaseCommandInput extends GetAutomatedReasoningPolicyTestCaseRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyTestCaseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyTestCaseCommandOutput extends GetAutomatedReasoningPolicyTestCaseResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyTestCaseCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyTestCaseCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyTestCaseCommandInput, GetAutomatedReasoningPolicyTestCaseCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyTestCaseCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyTestCaseCommandInput, GetAutomatedReasoningPolicyTestCaseCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves details about a specific Automated Reasoning policy test.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyTestCaseCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyTestCaseCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyTestCaseRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* testCaseId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAutomatedReasoningPolicyTestCaseCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAutomatedReasoningPolicyTestCaseResponse
|
|
44
|
+
* // policyArn: "STRING_VALUE", // required
|
|
45
|
+
* // testCase: { // AutomatedReasoningPolicyTestCase
|
|
46
|
+
* // testCaseId: "STRING_VALUE", // required
|
|
47
|
+
* // guardContent: "STRING_VALUE", // required
|
|
48
|
+
* // queryContent: "STRING_VALUE",
|
|
49
|
+
* // expectedAggregatedFindingsResult: "VALID" || "INVALID" || "SATISFIABLE" || "IMPOSSIBLE" || "TRANSLATION_AMBIGUOUS" || "TOO_COMPLEX" || "NO_TRANSLATION",
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // confidenceThreshold: Number("double"),
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetAutomatedReasoningPolicyTestCaseCommandInput - {@link GetAutomatedReasoningPolicyTestCaseCommandInput}
|
|
59
|
+
* @returns {@link GetAutomatedReasoningPolicyTestCaseCommandOutput}
|
|
60
|
+
* @see {@link GetAutomatedReasoningPolicyTestCaseCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetAutomatedReasoningPolicyTestCaseCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link BedrockServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class GetAutomatedReasoningPolicyTestCaseCommand extends GetAutomatedReasoningPolicyTestCaseCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: GetAutomatedReasoningPolicyTestCaseRequest;
|
|
90
|
+
output: GetAutomatedReasoningPolicyTestCaseResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: GetAutomatedReasoningPolicyTestCaseCommandInput;
|
|
94
|
+
output: GetAutomatedReasoningPolicyTestCaseCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|