@aws-sdk/client-bedrock-agent 3.609.0 → 3.614.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 +168 -0
- package/dist-cjs/index.js +2007 -14
- package/dist-es/BedrockAgent.js +42 -0
- package/dist-es/commands/CreateDataSourceCommand.js +2 -1
- package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
- package/dist-es/commands/CreateFlowCommand.js +25 -0
- package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
- package/dist-es/commands/CreatePromptCommand.js +25 -0
- package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
- package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
- package/dist-es/commands/DeleteFlowCommand.js +24 -0
- package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
- package/dist-es/commands/DeletePromptCommand.js +24 -0
- package/dist-es/commands/GetDataSourceCommand.js +2 -1
- package/dist-es/commands/GetFlowAliasCommand.js +24 -0
- package/dist-es/commands/GetFlowCommand.js +25 -0
- package/dist-es/commands/GetFlowVersionCommand.js +25 -0
- package/dist-es/commands/GetPromptCommand.js +25 -0
- package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
- package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
- package/dist-es/commands/ListFlowsCommand.js +24 -0
- package/dist-es/commands/ListPromptsCommand.js +24 -0
- package/dist-es/commands/PrepareFlowCommand.js +24 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
- package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
- package/dist-es/commands/UpdateFlowCommand.js +25 -0
- package/dist-es/commands/UpdatePromptCommand.js +25 -0
- package/dist-es/commands/index.js +21 -0
- package/dist-es/models/models_0.js +418 -0
- package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
- package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListFlowsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1041 -25
- package/dist-types/BedrockAgent.d.ts +149 -0
- package/dist-types/BedrockAgentClient.d.ts +23 -2
- package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
- package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
- package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
- package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
- package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
- package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
- package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
- package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
- package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
- package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentCommand.d.ts +6 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
- package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
- package/dist-types/commands/GetFlowCommand.d.ts +202 -0
- package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
- package/dist-types/commands/GetPromptCommand.d.ts +112 -0
- package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
- package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
- package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
- package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
- package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
- package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
- package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
- package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
- package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/models/models_0.d.ts +4252 -772
- package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +128 -2
- package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
- package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptsPaginator.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 +252 -0
- package/package.json +20 -20
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { UpdateFlowRequest, UpdateFlowResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateFlowCommandInput extends UpdateFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateFlowCommand_base: {
|
|
25
|
+
new (input: UpdateFlowCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateFlowCommandInput, UpdateFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateFlowCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateFlowCommandInput, UpdateFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html">How it works</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-create.html">Create a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, UpdateFlowCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, UpdateFlowCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // UpdateFlowRequest
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* executionRoleArn: "STRING_VALUE", // required
|
|
41
|
+
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
42
|
+
* definition: { // FlowDefinition
|
|
43
|
+
* nodes: [ // FlowNodes
|
|
44
|
+
* { // FlowNode
|
|
45
|
+
* name: "STRING_VALUE", // required
|
|
46
|
+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
47
|
+
* configuration: { // FlowNodeConfiguration Union: only one key present
|
|
48
|
+
* input: {},
|
|
49
|
+
* output: {},
|
|
50
|
+
* knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
|
|
51
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
52
|
+
* modelId: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* condition: { // ConditionFlowNodeConfiguration
|
|
55
|
+
* conditions: [ // FlowConditions // required
|
|
56
|
+
* { // FlowCondition
|
|
57
|
+
* name: "STRING_VALUE", // required
|
|
58
|
+
* expression: "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* lex: { // LexFlowNodeConfiguration
|
|
63
|
+
* botAliasArn: "STRING_VALUE", // required
|
|
64
|
+
* localeId: "STRING_VALUE", // required
|
|
65
|
+
* },
|
|
66
|
+
* prompt: { // PromptFlowNodeConfiguration
|
|
67
|
+
* sourceConfiguration: { // PromptFlowNodeSourceConfiguration Union: only one key present
|
|
68
|
+
* resource: { // PromptFlowNodeResourceConfiguration
|
|
69
|
+
* promptArn: "STRING_VALUE", // required
|
|
70
|
+
* },
|
|
71
|
+
* inline: { // PromptFlowNodeInlineConfiguration
|
|
72
|
+
* templateType: "TEXT", // required
|
|
73
|
+
* templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
74
|
+
* text: { // TextPromptTemplateConfiguration
|
|
75
|
+
* text: "STRING_VALUE", // required
|
|
76
|
+
* inputVariables: [ // PromptInputVariablesList
|
|
77
|
+
* { // PromptInputVariable
|
|
78
|
+
* name: "STRING_VALUE",
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* modelId: "STRING_VALUE", // required
|
|
84
|
+
* inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
85
|
+
* text: { // PromptModelInferenceConfiguration
|
|
86
|
+
* temperature: Number("float"),
|
|
87
|
+
* topP: Number("float"),
|
|
88
|
+
* topK: Number("int"),
|
|
89
|
+
* maxTokens: Number("int"),
|
|
90
|
+
* stopSequences: [ // StopSequences
|
|
91
|
+
* "STRING_VALUE",
|
|
92
|
+
* ],
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* },
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
|
|
99
|
+
* lambdaArn: "STRING_VALUE", // required
|
|
100
|
+
* },
|
|
101
|
+
* storage: { // StorageFlowNodeConfiguration
|
|
102
|
+
* serviceConfiguration: { // StorageFlowNodeServiceConfiguration Union: only one key present
|
|
103
|
+
* s3: { // StorageFlowNodeS3Configuration
|
|
104
|
+
* bucketName: "STRING_VALUE", // required
|
|
105
|
+
* },
|
|
106
|
+
* },
|
|
107
|
+
* },
|
|
108
|
+
* agent: { // AgentFlowNodeConfiguration
|
|
109
|
+
* agentAliasArn: "STRING_VALUE", // required
|
|
110
|
+
* },
|
|
111
|
+
* retrieval: { // RetrievalFlowNodeConfiguration
|
|
112
|
+
* serviceConfiguration: { // RetrievalFlowNodeServiceConfiguration Union: only one key present
|
|
113
|
+
* s3: { // RetrievalFlowNodeS3Configuration
|
|
114
|
+
* bucketName: "STRING_VALUE", // required
|
|
115
|
+
* },
|
|
116
|
+
* },
|
|
117
|
+
* },
|
|
118
|
+
* iterator: {},
|
|
119
|
+
* collector: {},
|
|
120
|
+
* },
|
|
121
|
+
* inputs: [ // FlowNodeInputs
|
|
122
|
+
* { // FlowNodeInput
|
|
123
|
+
* name: "STRING_VALUE", // required
|
|
124
|
+
* type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
125
|
+
* expression: "STRING_VALUE", // required
|
|
126
|
+
* },
|
|
127
|
+
* ],
|
|
128
|
+
* outputs: [ // FlowNodeOutputs
|
|
129
|
+
* { // FlowNodeOutput
|
|
130
|
+
* name: "STRING_VALUE", // required
|
|
131
|
+
* type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
132
|
+
* },
|
|
133
|
+
* ],
|
|
134
|
+
* },
|
|
135
|
+
* ],
|
|
136
|
+
* connections: [ // FlowConnections
|
|
137
|
+
* { // FlowConnection
|
|
138
|
+
* type: "Data" || "Conditional", // required
|
|
139
|
+
* name: "STRING_VALUE", // required
|
|
140
|
+
* source: "STRING_VALUE", // required
|
|
141
|
+
* target: "STRING_VALUE", // required
|
|
142
|
+
* configuration: { // FlowConnectionConfiguration Union: only one key present
|
|
143
|
+
* data: { // FlowDataConnectionConfiguration
|
|
144
|
+
* sourceOutput: "STRING_VALUE", // required
|
|
145
|
+
* targetInput: "STRING_VALUE", // required
|
|
146
|
+
* },
|
|
147
|
+
* conditional: { // FlowConditionalConnectionConfiguration
|
|
148
|
+
* condition: "STRING_VALUE", // required
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* },
|
|
152
|
+
* ],
|
|
153
|
+
* },
|
|
154
|
+
* flowIdentifier: "STRING_VALUE", // required
|
|
155
|
+
* };
|
|
156
|
+
* const command = new UpdateFlowCommand(input);
|
|
157
|
+
* const response = await client.send(command);
|
|
158
|
+
* // { // UpdateFlowResponse
|
|
159
|
+
* // name: "STRING_VALUE", // required
|
|
160
|
+
* // description: "STRING_VALUE",
|
|
161
|
+
* // executionRoleArn: "STRING_VALUE", // required
|
|
162
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
163
|
+
* // id: "STRING_VALUE", // required
|
|
164
|
+
* // arn: "STRING_VALUE", // required
|
|
165
|
+
* // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
|
|
166
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
167
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
168
|
+
* // version: "STRING_VALUE", // required
|
|
169
|
+
* // definition: { // FlowDefinition
|
|
170
|
+
* // nodes: [ // FlowNodes
|
|
171
|
+
* // { // FlowNode
|
|
172
|
+
* // name: "STRING_VALUE", // required
|
|
173
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
174
|
+
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
175
|
+
* // input: {},
|
|
176
|
+
* // output: {},
|
|
177
|
+
* // knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
|
|
178
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
179
|
+
* // modelId: "STRING_VALUE",
|
|
180
|
+
* // },
|
|
181
|
+
* // condition: { // ConditionFlowNodeConfiguration
|
|
182
|
+
* // conditions: [ // FlowConditions // required
|
|
183
|
+
* // { // FlowCondition
|
|
184
|
+
* // name: "STRING_VALUE", // required
|
|
185
|
+
* // expression: "STRING_VALUE",
|
|
186
|
+
* // },
|
|
187
|
+
* // ],
|
|
188
|
+
* // },
|
|
189
|
+
* // lex: { // LexFlowNodeConfiguration
|
|
190
|
+
* // botAliasArn: "STRING_VALUE", // required
|
|
191
|
+
* // localeId: "STRING_VALUE", // required
|
|
192
|
+
* // },
|
|
193
|
+
* // prompt: { // PromptFlowNodeConfiguration
|
|
194
|
+
* // sourceConfiguration: { // PromptFlowNodeSourceConfiguration Union: only one key present
|
|
195
|
+
* // resource: { // PromptFlowNodeResourceConfiguration
|
|
196
|
+
* // promptArn: "STRING_VALUE", // required
|
|
197
|
+
* // },
|
|
198
|
+
* // inline: { // PromptFlowNodeInlineConfiguration
|
|
199
|
+
* // templateType: "TEXT", // required
|
|
200
|
+
* // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
201
|
+
* // text: { // TextPromptTemplateConfiguration
|
|
202
|
+
* // text: "STRING_VALUE", // required
|
|
203
|
+
* // inputVariables: [ // PromptInputVariablesList
|
|
204
|
+
* // { // PromptInputVariable
|
|
205
|
+
* // name: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // ],
|
|
208
|
+
* // },
|
|
209
|
+
* // },
|
|
210
|
+
* // modelId: "STRING_VALUE", // required
|
|
211
|
+
* // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
212
|
+
* // text: { // PromptModelInferenceConfiguration
|
|
213
|
+
* // temperature: Number("float"),
|
|
214
|
+
* // topP: Number("float"),
|
|
215
|
+
* // topK: Number("int"),
|
|
216
|
+
* // maxTokens: Number("int"),
|
|
217
|
+
* // stopSequences: [ // StopSequences
|
|
218
|
+
* // "STRING_VALUE",
|
|
219
|
+
* // ],
|
|
220
|
+
* // },
|
|
221
|
+
* // },
|
|
222
|
+
* // },
|
|
223
|
+
* // },
|
|
224
|
+
* // },
|
|
225
|
+
* // lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
|
|
226
|
+
* // lambdaArn: "STRING_VALUE", // required
|
|
227
|
+
* // },
|
|
228
|
+
* // storage: { // StorageFlowNodeConfiguration
|
|
229
|
+
* // serviceConfiguration: { // StorageFlowNodeServiceConfiguration Union: only one key present
|
|
230
|
+
* // s3: { // StorageFlowNodeS3Configuration
|
|
231
|
+
* // bucketName: "STRING_VALUE", // required
|
|
232
|
+
* // },
|
|
233
|
+
* // },
|
|
234
|
+
* // },
|
|
235
|
+
* // agent: { // AgentFlowNodeConfiguration
|
|
236
|
+
* // agentAliasArn: "STRING_VALUE", // required
|
|
237
|
+
* // },
|
|
238
|
+
* // retrieval: { // RetrievalFlowNodeConfiguration
|
|
239
|
+
* // serviceConfiguration: { // RetrievalFlowNodeServiceConfiguration Union: only one key present
|
|
240
|
+
* // s3: { // RetrievalFlowNodeS3Configuration
|
|
241
|
+
* // bucketName: "STRING_VALUE", // required
|
|
242
|
+
* // },
|
|
243
|
+
* // },
|
|
244
|
+
* // },
|
|
245
|
+
* // iterator: {},
|
|
246
|
+
* // collector: {},
|
|
247
|
+
* // },
|
|
248
|
+
* // inputs: [ // FlowNodeInputs
|
|
249
|
+
* // { // FlowNodeInput
|
|
250
|
+
* // name: "STRING_VALUE", // required
|
|
251
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
252
|
+
* // expression: "STRING_VALUE", // required
|
|
253
|
+
* // },
|
|
254
|
+
* // ],
|
|
255
|
+
* // outputs: [ // FlowNodeOutputs
|
|
256
|
+
* // { // FlowNodeOutput
|
|
257
|
+
* // name: "STRING_VALUE", // required
|
|
258
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
259
|
+
* // },
|
|
260
|
+
* // ],
|
|
261
|
+
* // },
|
|
262
|
+
* // ],
|
|
263
|
+
* // connections: [ // FlowConnections
|
|
264
|
+
* // { // FlowConnection
|
|
265
|
+
* // type: "Data" || "Conditional", // required
|
|
266
|
+
* // name: "STRING_VALUE", // required
|
|
267
|
+
* // source: "STRING_VALUE", // required
|
|
268
|
+
* // target: "STRING_VALUE", // required
|
|
269
|
+
* // configuration: { // FlowConnectionConfiguration Union: only one key present
|
|
270
|
+
* // data: { // FlowDataConnectionConfiguration
|
|
271
|
+
* // sourceOutput: "STRING_VALUE", // required
|
|
272
|
+
* // targetInput: "STRING_VALUE", // required
|
|
273
|
+
* // },
|
|
274
|
+
* // conditional: { // FlowConditionalConnectionConfiguration
|
|
275
|
+
* // condition: "STRING_VALUE", // required
|
|
276
|
+
* // },
|
|
277
|
+
* // },
|
|
278
|
+
* // },
|
|
279
|
+
* // ],
|
|
280
|
+
* // },
|
|
281
|
+
* // };
|
|
282
|
+
*
|
|
283
|
+
* ```
|
|
284
|
+
*
|
|
285
|
+
* @param UpdateFlowCommandInput - {@link UpdateFlowCommandInput}
|
|
286
|
+
* @returns {@link UpdateFlowCommandOutput}
|
|
287
|
+
* @see {@link UpdateFlowCommandInput} for command's `input` shape.
|
|
288
|
+
* @see {@link UpdateFlowCommandOutput} for command's `response` shape.
|
|
289
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
290
|
+
*
|
|
291
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
292
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
293
|
+
*
|
|
294
|
+
* @throws {@link ConflictException} (client fault)
|
|
295
|
+
* <p>There was a conflict performing an operation.</p>
|
|
296
|
+
*
|
|
297
|
+
* @throws {@link InternalServerException} (server fault)
|
|
298
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
299
|
+
*
|
|
300
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
301
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
302
|
+
*
|
|
303
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
304
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
305
|
+
*
|
|
306
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
307
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
308
|
+
*
|
|
309
|
+
* @throws {@link ValidationException} (client fault)
|
|
310
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
311
|
+
*
|
|
312
|
+
* @throws {@link BedrockAgentServiceException}
|
|
313
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
314
|
+
*
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
export declare class UpdateFlowCommand extends UpdateFlowCommand_base {
|
|
318
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdatePromptCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePromptCommandInput extends UpdatePromptRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePromptCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePromptCommandOutput extends UpdatePromptResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdatePromptCommand_base: {
|
|
25
|
+
new (input: UpdatePromptCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePromptCommandInput, UpdatePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdatePromptCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePromptCommandInput, UpdatePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html">Prompt management in Amazon Bedrock</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-edit">Edit prompts in your prompt library</a> in the Amazon Bedrock User Guide.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, UpdatePromptCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, UpdatePromptCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // UpdatePromptRequest
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
41
|
+
* defaultVariant: "STRING_VALUE",
|
|
42
|
+
* variants: [ // PromptVariantList
|
|
43
|
+
* { // PromptVariant
|
|
44
|
+
* name: "STRING_VALUE", // required
|
|
45
|
+
* templateType: "TEXT", // required
|
|
46
|
+
* templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
47
|
+
* text: { // TextPromptTemplateConfiguration
|
|
48
|
+
* text: "STRING_VALUE", // required
|
|
49
|
+
* inputVariables: [ // PromptInputVariablesList
|
|
50
|
+
* { // PromptInputVariable
|
|
51
|
+
* name: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* modelId: "STRING_VALUE",
|
|
57
|
+
* inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
58
|
+
* text: { // PromptModelInferenceConfiguration
|
|
59
|
+
* temperature: Number("float"),
|
|
60
|
+
* topP: Number("float"),
|
|
61
|
+
* topK: Number("int"),
|
|
62
|
+
* maxTokens: Number("int"),
|
|
63
|
+
* stopSequences: [ // StopSequences
|
|
64
|
+
* "STRING_VALUE",
|
|
65
|
+
* ],
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* promptIdentifier: "STRING_VALUE", // required
|
|
71
|
+
* };
|
|
72
|
+
* const command = new UpdatePromptCommand(input);
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* // { // UpdatePromptResponse
|
|
75
|
+
* // name: "STRING_VALUE", // required
|
|
76
|
+
* // description: "STRING_VALUE",
|
|
77
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
78
|
+
* // defaultVariant: "STRING_VALUE",
|
|
79
|
+
* // variants: [ // PromptVariantList
|
|
80
|
+
* // { // PromptVariant
|
|
81
|
+
* // name: "STRING_VALUE", // required
|
|
82
|
+
* // templateType: "TEXT", // required
|
|
83
|
+
* // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
84
|
+
* // text: { // TextPromptTemplateConfiguration
|
|
85
|
+
* // text: "STRING_VALUE", // required
|
|
86
|
+
* // inputVariables: [ // PromptInputVariablesList
|
|
87
|
+
* // { // PromptInputVariable
|
|
88
|
+
* // name: "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // ],
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
93
|
+
* // modelId: "STRING_VALUE",
|
|
94
|
+
* // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
95
|
+
* // text: { // PromptModelInferenceConfiguration
|
|
96
|
+
* // temperature: Number("float"),
|
|
97
|
+
* // topP: Number("float"),
|
|
98
|
+
* // topK: Number("int"),
|
|
99
|
+
* // maxTokens: Number("int"),
|
|
100
|
+
* // stopSequences: [ // StopSequences
|
|
101
|
+
* // "STRING_VALUE",
|
|
102
|
+
* // ],
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // id: "STRING_VALUE", // required
|
|
108
|
+
* // arn: "STRING_VALUE", // required
|
|
109
|
+
* // version: "STRING_VALUE", // required
|
|
110
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
111
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
112
|
+
* // };
|
|
113
|
+
*
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @param UpdatePromptCommandInput - {@link UpdatePromptCommandInput}
|
|
117
|
+
* @returns {@link UpdatePromptCommandOutput}
|
|
118
|
+
* @see {@link UpdatePromptCommandInput} for command's `input` shape.
|
|
119
|
+
* @see {@link UpdatePromptCommandOutput} for command's `response` shape.
|
|
120
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
123
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ConflictException} (client fault)
|
|
126
|
+
* <p>There was a conflict performing an operation.</p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link InternalServerException} (server fault)
|
|
129
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
132
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
135
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
138
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ValidationException} (client fault)
|
|
141
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link BedrockAgentServiceException}
|
|
144
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export declare class UpdatePromptCommand extends UpdatePromptCommand_base {
|
|
149
|
+
}
|
|
@@ -3,13 +3,22 @@ export * from "./CreateAgentActionGroupCommand";
|
|
|
3
3
|
export * from "./CreateAgentAliasCommand";
|
|
4
4
|
export * from "./CreateAgentCommand";
|
|
5
5
|
export * from "./CreateDataSourceCommand";
|
|
6
|
+
export * from "./CreateFlowAliasCommand";
|
|
7
|
+
export * from "./CreateFlowCommand";
|
|
8
|
+
export * from "./CreateFlowVersionCommand";
|
|
6
9
|
export * from "./CreateKnowledgeBaseCommand";
|
|
10
|
+
export * from "./CreatePromptCommand";
|
|
11
|
+
export * from "./CreatePromptVersionCommand";
|
|
7
12
|
export * from "./DeleteAgentActionGroupCommand";
|
|
8
13
|
export * from "./DeleteAgentAliasCommand";
|
|
9
14
|
export * from "./DeleteAgentCommand";
|
|
10
15
|
export * from "./DeleteAgentVersionCommand";
|
|
11
16
|
export * from "./DeleteDataSourceCommand";
|
|
17
|
+
export * from "./DeleteFlowAliasCommand";
|
|
18
|
+
export * from "./DeleteFlowCommand";
|
|
19
|
+
export * from "./DeleteFlowVersionCommand";
|
|
12
20
|
export * from "./DeleteKnowledgeBaseCommand";
|
|
21
|
+
export * from "./DeletePromptCommand";
|
|
13
22
|
export * from "./DisassociateAgentKnowledgeBaseCommand";
|
|
14
23
|
export * from "./GetAgentActionGroupCommand";
|
|
15
24
|
export * from "./GetAgentAliasCommand";
|
|
@@ -17,18 +26,27 @@ export * from "./GetAgentCommand";
|
|
|
17
26
|
export * from "./GetAgentKnowledgeBaseCommand";
|
|
18
27
|
export * from "./GetAgentVersionCommand";
|
|
19
28
|
export * from "./GetDataSourceCommand";
|
|
29
|
+
export * from "./GetFlowAliasCommand";
|
|
30
|
+
export * from "./GetFlowCommand";
|
|
31
|
+
export * from "./GetFlowVersionCommand";
|
|
20
32
|
export * from "./GetIngestionJobCommand";
|
|
21
33
|
export * from "./GetKnowledgeBaseCommand";
|
|
34
|
+
export * from "./GetPromptCommand";
|
|
22
35
|
export * from "./ListAgentActionGroupsCommand";
|
|
23
36
|
export * from "./ListAgentAliasesCommand";
|
|
24
37
|
export * from "./ListAgentKnowledgeBasesCommand";
|
|
25
38
|
export * from "./ListAgentVersionsCommand";
|
|
26
39
|
export * from "./ListAgentsCommand";
|
|
27
40
|
export * from "./ListDataSourcesCommand";
|
|
41
|
+
export * from "./ListFlowAliasesCommand";
|
|
42
|
+
export * from "./ListFlowVersionsCommand";
|
|
43
|
+
export * from "./ListFlowsCommand";
|
|
28
44
|
export * from "./ListIngestionJobsCommand";
|
|
29
45
|
export * from "./ListKnowledgeBasesCommand";
|
|
46
|
+
export * from "./ListPromptsCommand";
|
|
30
47
|
export * from "./ListTagsForResourceCommand";
|
|
31
48
|
export * from "./PrepareAgentCommand";
|
|
49
|
+
export * from "./PrepareFlowCommand";
|
|
32
50
|
export * from "./StartIngestionJobCommand";
|
|
33
51
|
export * from "./TagResourceCommand";
|
|
34
52
|
export * from "./UntagResourceCommand";
|
|
@@ -37,4 +55,7 @@ export * from "./UpdateAgentAliasCommand";
|
|
|
37
55
|
export * from "./UpdateAgentCommand";
|
|
38
56
|
export * from "./UpdateAgentKnowledgeBaseCommand";
|
|
39
57
|
export * from "./UpdateDataSourceCommand";
|
|
58
|
+
export * from "./UpdateFlowAliasCommand";
|
|
59
|
+
export * from "./UpdateFlowCommand";
|
|
40
60
|
export * from "./UpdateKnowledgeBaseCommand";
|
|
61
|
+
export * from "./UpdatePromptCommand";
|