@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,115 @@
|
|
|
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 { ExportAutomatedReasoningPolicyVersionRequest, ExportAutomatedReasoningPolicyVersionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ExportAutomatedReasoningPolicyVersionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExportAutomatedReasoningPolicyVersionCommandInput extends ExportAutomatedReasoningPolicyVersionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ExportAutomatedReasoningPolicyVersionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ExportAutomatedReasoningPolicyVersionCommandOutput extends ExportAutomatedReasoningPolicyVersionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ExportAutomatedReasoningPolicyVersionCommand_base: {
|
|
25
|
+
new (input: ExportAutomatedReasoningPolicyVersionCommandInput): import("@smithy/smithy-client").CommandImpl<ExportAutomatedReasoningPolicyVersionCommandInput, ExportAutomatedReasoningPolicyVersionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ExportAutomatedReasoningPolicyVersionCommandInput): import("@smithy/smithy-client").CommandImpl<ExportAutomatedReasoningPolicyVersionCommandInput, ExportAutomatedReasoningPolicyVersionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Exports the policy definition for an Automated Reasoning policy version. Returns the complete policy definition including rules, variables, and custom variable types in a structured format.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, ExportAutomatedReasoningPolicyVersionCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, ExportAutomatedReasoningPolicyVersionCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // ExportAutomatedReasoningPolicyVersionRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ExportAutomatedReasoningPolicyVersionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ExportAutomatedReasoningPolicyVersionResponse
|
|
43
|
+
* // policyDefinition: { // AutomatedReasoningPolicyDefinition
|
|
44
|
+
* // version: "STRING_VALUE",
|
|
45
|
+
* // types: [ // AutomatedReasoningPolicyDefinitionTypeList
|
|
46
|
+
* // { // AutomatedReasoningPolicyDefinitionType
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // values: [ // AutomatedReasoningPolicyDefinitionTypeValueList // required
|
|
50
|
+
* // { // AutomatedReasoningPolicyDefinitionTypeValue
|
|
51
|
+
* // value: "STRING_VALUE", // required
|
|
52
|
+
* // description: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // rules: [ // AutomatedReasoningPolicyDefinitionRuleList
|
|
58
|
+
* // { // AutomatedReasoningPolicyDefinitionRule
|
|
59
|
+
* // id: "STRING_VALUE", // required
|
|
60
|
+
* // expression: "STRING_VALUE", // required
|
|
61
|
+
* // alternateExpression: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // variables: [ // AutomatedReasoningPolicyDefinitionVariableList
|
|
65
|
+
* // { // AutomatedReasoningPolicyDefinitionVariable
|
|
66
|
+
* // name: "STRING_VALUE", // required
|
|
67
|
+
* // type: "STRING_VALUE", // required
|
|
68
|
+
* // description: "STRING_VALUE", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // };
|
|
73
|
+
*
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param ExportAutomatedReasoningPolicyVersionCommandInput - {@link ExportAutomatedReasoningPolicyVersionCommandInput}
|
|
77
|
+
* @returns {@link ExportAutomatedReasoningPolicyVersionCommandOutput}
|
|
78
|
+
* @see {@link ExportAutomatedReasoningPolicyVersionCommandInput} for command's `input` shape.
|
|
79
|
+
* @see {@link ExportAutomatedReasoningPolicyVersionCommandOutput} for command's `response` shape.
|
|
80
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
83
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link InternalServerException} (server fault)
|
|
86
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
89
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link BedrockServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
99
|
+
*
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class ExportAutomatedReasoningPolicyVersionCommand extends ExportAutomatedReasoningPolicyVersionCommand_base {
|
|
104
|
+
/** @internal type navigation helper, not in runtime. */
|
|
105
|
+
protected static __types: {
|
|
106
|
+
api: {
|
|
107
|
+
input: ExportAutomatedReasoningPolicyVersionRequest;
|
|
108
|
+
output: ExportAutomatedReasoningPolicyVersionResponse;
|
|
109
|
+
};
|
|
110
|
+
sdk: {
|
|
111
|
+
input: ExportAutomatedReasoningPolicyVersionCommandInput;
|
|
112
|
+
output: ExportAutomatedReasoningPolicyVersionCommandOutput;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
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 { GetAutomatedReasoningPolicyAnnotationsRequest, GetAutomatedReasoningPolicyAnnotationsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyAnnotationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyAnnotationsCommandInput extends GetAutomatedReasoningPolicyAnnotationsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyAnnotationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyAnnotationsCommandOutput extends GetAutomatedReasoningPolicyAnnotationsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyAnnotationsCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyAnnotationsCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyAnnotationsCommandInput, GetAutomatedReasoningPolicyAnnotationsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyAnnotationsCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyAnnotationsCommandInput, GetAutomatedReasoningPolicyAnnotationsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyAnnotationsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyAnnotationsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyAnnotationsRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* buildWorkflowId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAutomatedReasoningPolicyAnnotationsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAutomatedReasoningPolicyAnnotationsResponse
|
|
44
|
+
* // policyArn: "STRING_VALUE", // required
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // buildWorkflowId: "STRING_VALUE", // required
|
|
47
|
+
* // annotations: [ // AutomatedReasoningPolicyAnnotationList // required
|
|
48
|
+
* // { // AutomatedReasoningPolicyAnnotation Union: only one key present
|
|
49
|
+
* // addType: { // AutomatedReasoningPolicyAddTypeAnnotation
|
|
50
|
+
* // name: "STRING_VALUE", // required
|
|
51
|
+
* // description: "STRING_VALUE", // required
|
|
52
|
+
* // values: [ // AutomatedReasoningPolicyDefinitionTypeValueList // required
|
|
53
|
+
* // { // AutomatedReasoningPolicyDefinitionTypeValue
|
|
54
|
+
* // value: "STRING_VALUE", // required
|
|
55
|
+
* // description: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // updateType: { // AutomatedReasoningPolicyUpdateTypeAnnotation
|
|
60
|
+
* // name: "STRING_VALUE", // required
|
|
61
|
+
* // newName: "STRING_VALUE",
|
|
62
|
+
* // description: "STRING_VALUE",
|
|
63
|
+
* // values: [ // AutomatedReasoningPolicyTypeValueAnnotationList // required
|
|
64
|
+
* // { // AutomatedReasoningPolicyTypeValueAnnotation Union: only one key present
|
|
65
|
+
* // addTypeValue: { // AutomatedReasoningPolicyAddTypeValue
|
|
66
|
+
* // value: "STRING_VALUE", // required
|
|
67
|
+
* // description: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // updateTypeValue: { // AutomatedReasoningPolicyUpdateTypeValue
|
|
70
|
+
* // value: "STRING_VALUE", // required
|
|
71
|
+
* // newValue: "STRING_VALUE",
|
|
72
|
+
* // description: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // deleteTypeValue: { // AutomatedReasoningPolicyDeleteTypeValue
|
|
75
|
+
* // value: "STRING_VALUE", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // },
|
|
80
|
+
* // deleteType: { // AutomatedReasoningPolicyDeleteTypeAnnotation
|
|
81
|
+
* // name: "STRING_VALUE", // required
|
|
82
|
+
* // },
|
|
83
|
+
* // addVariable: { // AutomatedReasoningPolicyAddVariableAnnotation
|
|
84
|
+
* // name: "STRING_VALUE", // required
|
|
85
|
+
* // type: "STRING_VALUE", // required
|
|
86
|
+
* // description: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // updateVariable: { // AutomatedReasoningPolicyUpdateVariableAnnotation
|
|
89
|
+
* // name: "STRING_VALUE", // required
|
|
90
|
+
* // newName: "STRING_VALUE",
|
|
91
|
+
* // description: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // deleteVariable: { // AutomatedReasoningPolicyDeleteVariableAnnotation
|
|
94
|
+
* // name: "STRING_VALUE", // required
|
|
95
|
+
* // },
|
|
96
|
+
* // addRule: { // AutomatedReasoningPolicyAddRuleAnnotation
|
|
97
|
+
* // expression: "STRING_VALUE", // required
|
|
98
|
+
* // },
|
|
99
|
+
* // updateRule: { // AutomatedReasoningPolicyUpdateRuleAnnotation
|
|
100
|
+
* // ruleId: "STRING_VALUE", // required
|
|
101
|
+
* // expression: "STRING_VALUE", // required
|
|
102
|
+
* // },
|
|
103
|
+
* // deleteRule: { // AutomatedReasoningPolicyDeleteRuleAnnotation
|
|
104
|
+
* // ruleId: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // addRuleFromNaturalLanguage: { // AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation
|
|
107
|
+
* // naturalLanguage: "STRING_VALUE", // required
|
|
108
|
+
* // },
|
|
109
|
+
* // updateFromRulesFeedback: { // AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation
|
|
110
|
+
* // ruleIds: [ // AutomatedReasoningPolicyDefinitionRuleIdList
|
|
111
|
+
* // "STRING_VALUE",
|
|
112
|
+
* // ],
|
|
113
|
+
* // feedback: "STRING_VALUE", // required
|
|
114
|
+
* // },
|
|
115
|
+
* // updateFromScenarioFeedback: { // AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation
|
|
116
|
+
* // ruleIds: [
|
|
117
|
+
* // "STRING_VALUE",
|
|
118
|
+
* // ],
|
|
119
|
+
* // scenarioExpression: "STRING_VALUE", // required
|
|
120
|
+
* // feedback: "STRING_VALUE",
|
|
121
|
+
* // },
|
|
122
|
+
* // ingestContent: { // AutomatedReasoningPolicyIngestContentAnnotation
|
|
123
|
+
* // content: "STRING_VALUE", // required
|
|
124
|
+
* // },
|
|
125
|
+
* // },
|
|
126
|
+
* // ],
|
|
127
|
+
* // annotationSetHash: "STRING_VALUE", // required
|
|
128
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
129
|
+
* // };
|
|
130
|
+
*
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @param GetAutomatedReasoningPolicyAnnotationsCommandInput - {@link GetAutomatedReasoningPolicyAnnotationsCommandInput}
|
|
134
|
+
* @returns {@link GetAutomatedReasoningPolicyAnnotationsCommandOutput}
|
|
135
|
+
* @see {@link GetAutomatedReasoningPolicyAnnotationsCommandInput} for command's `input` shape.
|
|
136
|
+
* @see {@link GetAutomatedReasoningPolicyAnnotationsCommandOutput} for command's `response` shape.
|
|
137
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
140
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link InternalServerException} (server fault)
|
|
143
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
146
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
149
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link ValidationException} (client fault)
|
|
152
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link BedrockServiceException}
|
|
155
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
156
|
+
*
|
|
157
|
+
*
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export declare class GetAutomatedReasoningPolicyAnnotationsCommand extends GetAutomatedReasoningPolicyAnnotationsCommand_base {
|
|
161
|
+
/** @internal type navigation helper, not in runtime. */
|
|
162
|
+
protected static __types: {
|
|
163
|
+
api: {
|
|
164
|
+
input: GetAutomatedReasoningPolicyAnnotationsRequest;
|
|
165
|
+
output: GetAutomatedReasoningPolicyAnnotationsResponse;
|
|
166
|
+
};
|
|
167
|
+
sdk: {
|
|
168
|
+
input: GetAutomatedReasoningPolicyAnnotationsCommandInput;
|
|
169
|
+
output: GetAutomatedReasoningPolicyAnnotationsCommandOutput;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
}
|
|
@@ -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 { GetAutomatedReasoningPolicyBuildWorkflowRequest, GetAutomatedReasoningPolicyBuildWorkflowResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomatedReasoningPolicyBuildWorkflowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomatedReasoningPolicyBuildWorkflowCommandInput extends GetAutomatedReasoningPolicyBuildWorkflowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomatedReasoningPolicyBuildWorkflowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomatedReasoningPolicyBuildWorkflowCommandOutput extends GetAutomatedReasoningPolicyBuildWorkflowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomatedReasoningPolicyBuildWorkflowCommand_base: {
|
|
25
|
+
new (input: GetAutomatedReasoningPolicyBuildWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyBuildWorkflowCommandInput, GetAutomatedReasoningPolicyBuildWorkflowCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomatedReasoningPolicyBuildWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomatedReasoningPolicyBuildWorkflowCommandInput, GetAutomatedReasoningPolicyBuildWorkflowCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetAutomatedReasoningPolicyBuildWorkflowCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetAutomatedReasoningPolicyBuildWorkflowCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetAutomatedReasoningPolicyBuildWorkflowRequest
|
|
38
|
+
* policyArn: "STRING_VALUE", // required
|
|
39
|
+
* buildWorkflowId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAutomatedReasoningPolicyBuildWorkflowCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAutomatedReasoningPolicyBuildWorkflowResponse
|
|
44
|
+
* // policyArn: "STRING_VALUE", // required
|
|
45
|
+
* // buildWorkflowId: "STRING_VALUE", // required
|
|
46
|
+
* // status: "SCHEDULED" || "CANCEL_REQUESTED" || "PREPROCESSING" || "BUILDING" || "TESTING" || "COMPLETED" || "FAILED" || "CANCELLED", // required
|
|
47
|
+
* // buildWorkflowType: "INGEST_CONTENT" || "REFINE_POLICY" || "IMPORT_POLICY", // required
|
|
48
|
+
* // documentName: "STRING_VALUE",
|
|
49
|
+
* // documentContentType: "pdf" || "txt",
|
|
50
|
+
* // documentDescription: "STRING_VALUE",
|
|
51
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param GetAutomatedReasoningPolicyBuildWorkflowCommandInput - {@link GetAutomatedReasoningPolicyBuildWorkflowCommandInput}
|
|
58
|
+
* @returns {@link GetAutomatedReasoningPolicyBuildWorkflowCommandOutput}
|
|
59
|
+
* @see {@link GetAutomatedReasoningPolicyBuildWorkflowCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link GetAutomatedReasoningPolicyBuildWorkflowCommandOutput} 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 GetAutomatedReasoningPolicyBuildWorkflowCommand extends GetAutomatedReasoningPolicyBuildWorkflowCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: GetAutomatedReasoningPolicyBuildWorkflowRequest;
|
|
89
|
+
output: GetAutomatedReasoningPolicyBuildWorkflowResponse;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: GetAutomatedReasoningPolicyBuildWorkflowCommandInput;
|
|
93
|
+
output: GetAutomatedReasoningPolicyBuildWorkflowCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|