@aws-sdk/client-bedrock-agent 3.613.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 { CreateFlowRequest, CreateFlowResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateFlowCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateFlowCommandInput extends CreateFlowRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateFlowCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateFlowCommand_base: {
|
|
25
|
+
new (input: CreateFlowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowCommandInput, CreateFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateFlowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowCommandInput, CreateFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a prompt flow that you can use to send an input through various steps to yield an output. Configure nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths to different outputs. 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, CreateFlowCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, CreateFlowCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // CreateFlowRequest
|
|
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
|
+
* clientToken: "STRING_VALUE",
|
|
155
|
+
* tags: { // TagsMap
|
|
156
|
+
* "<keys>": "STRING_VALUE",
|
|
157
|
+
* },
|
|
158
|
+
* };
|
|
159
|
+
* const command = new CreateFlowCommand(input);
|
|
160
|
+
* const response = await client.send(command);
|
|
161
|
+
* // { // CreateFlowResponse
|
|
162
|
+
* // name: "STRING_VALUE", // required
|
|
163
|
+
* // description: "STRING_VALUE",
|
|
164
|
+
* // executionRoleArn: "STRING_VALUE", // required
|
|
165
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
166
|
+
* // id: "STRING_VALUE", // required
|
|
167
|
+
* // arn: "STRING_VALUE", // required
|
|
168
|
+
* // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
|
|
169
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
170
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
171
|
+
* // version: "STRING_VALUE", // required
|
|
172
|
+
* // definition: { // FlowDefinition
|
|
173
|
+
* // nodes: [ // FlowNodes
|
|
174
|
+
* // { // FlowNode
|
|
175
|
+
* // name: "STRING_VALUE", // required
|
|
176
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
177
|
+
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
178
|
+
* // input: {},
|
|
179
|
+
* // output: {},
|
|
180
|
+
* // knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
|
|
181
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
182
|
+
* // modelId: "STRING_VALUE",
|
|
183
|
+
* // },
|
|
184
|
+
* // condition: { // ConditionFlowNodeConfiguration
|
|
185
|
+
* // conditions: [ // FlowConditions // required
|
|
186
|
+
* // { // FlowCondition
|
|
187
|
+
* // name: "STRING_VALUE", // required
|
|
188
|
+
* // expression: "STRING_VALUE",
|
|
189
|
+
* // },
|
|
190
|
+
* // ],
|
|
191
|
+
* // },
|
|
192
|
+
* // lex: { // LexFlowNodeConfiguration
|
|
193
|
+
* // botAliasArn: "STRING_VALUE", // required
|
|
194
|
+
* // localeId: "STRING_VALUE", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // prompt: { // PromptFlowNodeConfiguration
|
|
197
|
+
* // sourceConfiguration: { // PromptFlowNodeSourceConfiguration Union: only one key present
|
|
198
|
+
* // resource: { // PromptFlowNodeResourceConfiguration
|
|
199
|
+
* // promptArn: "STRING_VALUE", // required
|
|
200
|
+
* // },
|
|
201
|
+
* // inline: { // PromptFlowNodeInlineConfiguration
|
|
202
|
+
* // templateType: "TEXT", // required
|
|
203
|
+
* // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
204
|
+
* // text: { // TextPromptTemplateConfiguration
|
|
205
|
+
* // text: "STRING_VALUE", // required
|
|
206
|
+
* // inputVariables: [ // PromptInputVariablesList
|
|
207
|
+
* // { // PromptInputVariable
|
|
208
|
+
* // name: "STRING_VALUE",
|
|
209
|
+
* // },
|
|
210
|
+
* // ],
|
|
211
|
+
* // },
|
|
212
|
+
* // },
|
|
213
|
+
* // modelId: "STRING_VALUE", // required
|
|
214
|
+
* // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
215
|
+
* // text: { // PromptModelInferenceConfiguration
|
|
216
|
+
* // temperature: Number("float"),
|
|
217
|
+
* // topP: Number("float"),
|
|
218
|
+
* // topK: Number("int"),
|
|
219
|
+
* // maxTokens: Number("int"),
|
|
220
|
+
* // stopSequences: [ // StopSequences
|
|
221
|
+
* // "STRING_VALUE",
|
|
222
|
+
* // ],
|
|
223
|
+
* // },
|
|
224
|
+
* // },
|
|
225
|
+
* // },
|
|
226
|
+
* // },
|
|
227
|
+
* // },
|
|
228
|
+
* // lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
|
|
229
|
+
* // lambdaArn: "STRING_VALUE", // required
|
|
230
|
+
* // },
|
|
231
|
+
* // storage: { // StorageFlowNodeConfiguration
|
|
232
|
+
* // serviceConfiguration: { // StorageFlowNodeServiceConfiguration Union: only one key present
|
|
233
|
+
* // s3: { // StorageFlowNodeS3Configuration
|
|
234
|
+
* // bucketName: "STRING_VALUE", // required
|
|
235
|
+
* // },
|
|
236
|
+
* // },
|
|
237
|
+
* // },
|
|
238
|
+
* // agent: { // AgentFlowNodeConfiguration
|
|
239
|
+
* // agentAliasArn: "STRING_VALUE", // required
|
|
240
|
+
* // },
|
|
241
|
+
* // retrieval: { // RetrievalFlowNodeConfiguration
|
|
242
|
+
* // serviceConfiguration: { // RetrievalFlowNodeServiceConfiguration Union: only one key present
|
|
243
|
+
* // s3: { // RetrievalFlowNodeS3Configuration
|
|
244
|
+
* // bucketName: "STRING_VALUE", // required
|
|
245
|
+
* // },
|
|
246
|
+
* // },
|
|
247
|
+
* // },
|
|
248
|
+
* // iterator: {},
|
|
249
|
+
* // collector: {},
|
|
250
|
+
* // },
|
|
251
|
+
* // inputs: [ // FlowNodeInputs
|
|
252
|
+
* // { // FlowNodeInput
|
|
253
|
+
* // name: "STRING_VALUE", // required
|
|
254
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
255
|
+
* // expression: "STRING_VALUE", // required
|
|
256
|
+
* // },
|
|
257
|
+
* // ],
|
|
258
|
+
* // outputs: [ // FlowNodeOutputs
|
|
259
|
+
* // { // FlowNodeOutput
|
|
260
|
+
* // name: "STRING_VALUE", // required
|
|
261
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
262
|
+
* // },
|
|
263
|
+
* // ],
|
|
264
|
+
* // },
|
|
265
|
+
* // ],
|
|
266
|
+
* // connections: [ // FlowConnections
|
|
267
|
+
* // { // FlowConnection
|
|
268
|
+
* // type: "Data" || "Conditional", // required
|
|
269
|
+
* // name: "STRING_VALUE", // required
|
|
270
|
+
* // source: "STRING_VALUE", // required
|
|
271
|
+
* // target: "STRING_VALUE", // required
|
|
272
|
+
* // configuration: { // FlowConnectionConfiguration Union: only one key present
|
|
273
|
+
* // data: { // FlowDataConnectionConfiguration
|
|
274
|
+
* // sourceOutput: "STRING_VALUE", // required
|
|
275
|
+
* // targetInput: "STRING_VALUE", // required
|
|
276
|
+
* // },
|
|
277
|
+
* // conditional: { // FlowConditionalConnectionConfiguration
|
|
278
|
+
* // condition: "STRING_VALUE", // required
|
|
279
|
+
* // },
|
|
280
|
+
* // },
|
|
281
|
+
* // },
|
|
282
|
+
* // ],
|
|
283
|
+
* // },
|
|
284
|
+
* // };
|
|
285
|
+
*
|
|
286
|
+
* ```
|
|
287
|
+
*
|
|
288
|
+
* @param CreateFlowCommandInput - {@link CreateFlowCommandInput}
|
|
289
|
+
* @returns {@link CreateFlowCommandOutput}
|
|
290
|
+
* @see {@link CreateFlowCommandInput} for command's `input` shape.
|
|
291
|
+
* @see {@link CreateFlowCommandOutput} for command's `response` shape.
|
|
292
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
293
|
+
*
|
|
294
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
295
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
296
|
+
*
|
|
297
|
+
* @throws {@link ConflictException} (client fault)
|
|
298
|
+
* <p>There was a conflict performing an operation.</p>
|
|
299
|
+
*
|
|
300
|
+
* @throws {@link InternalServerException} (server fault)
|
|
301
|
+
* <p>An internal server error occurred. Retry your request.</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 CreateFlowCommand extends CreateFlowCommand_base {
|
|
318
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
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 { CreateFlowVersionRequest, CreateFlowVersionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateFlowVersionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateFlowVersionCommandInput extends CreateFlowVersionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateFlowVersionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateFlowVersionCommandOutput extends CreateFlowVersionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateFlowVersionCommand_base: {
|
|
25
|
+
new (input: CreateFlowVersionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowVersionCommandInput, CreateFlowVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateFlowVersionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowVersionCommandInput, CreateFlowVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a version of the flow that you can deploy. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html">Deploy 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, CreateFlowVersionCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, CreateFlowVersionCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // CreateFlowVersionRequest
|
|
38
|
+
* flowIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* clientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new CreateFlowVersionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // CreateFlowVersionResponse
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // description: "STRING_VALUE",
|
|
47
|
+
* // executionRoleArn: "STRING_VALUE", // required
|
|
48
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // arn: "STRING_VALUE", // required
|
|
51
|
+
* // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
|
|
52
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // version: "STRING_VALUE", // required
|
|
54
|
+
* // definition: { // FlowDefinition
|
|
55
|
+
* // nodes: [ // FlowNodes
|
|
56
|
+
* // { // FlowNode
|
|
57
|
+
* // name: "STRING_VALUE", // required
|
|
58
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
59
|
+
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
60
|
+
* // input: {},
|
|
61
|
+
* // output: {},
|
|
62
|
+
* // knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
|
|
63
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
64
|
+
* // modelId: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // condition: { // ConditionFlowNodeConfiguration
|
|
67
|
+
* // conditions: [ // FlowConditions // required
|
|
68
|
+
* // { // FlowCondition
|
|
69
|
+
* // name: "STRING_VALUE", // required
|
|
70
|
+
* // expression: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // },
|
|
74
|
+
* // lex: { // LexFlowNodeConfiguration
|
|
75
|
+
* // botAliasArn: "STRING_VALUE", // required
|
|
76
|
+
* // localeId: "STRING_VALUE", // required
|
|
77
|
+
* // },
|
|
78
|
+
* // prompt: { // PromptFlowNodeConfiguration
|
|
79
|
+
* // sourceConfiguration: { // PromptFlowNodeSourceConfiguration Union: only one key present
|
|
80
|
+
* // resource: { // PromptFlowNodeResourceConfiguration
|
|
81
|
+
* // promptArn: "STRING_VALUE", // required
|
|
82
|
+
* // },
|
|
83
|
+
* // inline: { // PromptFlowNodeInlineConfiguration
|
|
84
|
+
* // templateType: "TEXT", // required
|
|
85
|
+
* // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
|
|
86
|
+
* // text: { // TextPromptTemplateConfiguration
|
|
87
|
+
* // text: "STRING_VALUE", // required
|
|
88
|
+
* // inputVariables: [ // PromptInputVariablesList
|
|
89
|
+
* // { // PromptInputVariable
|
|
90
|
+
* // name: "STRING_VALUE",
|
|
91
|
+
* // },
|
|
92
|
+
* // ],
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // modelId: "STRING_VALUE", // required
|
|
96
|
+
* // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
97
|
+
* // text: { // PromptModelInferenceConfiguration
|
|
98
|
+
* // temperature: Number("float"),
|
|
99
|
+
* // topP: Number("float"),
|
|
100
|
+
* // topK: Number("int"),
|
|
101
|
+
* // maxTokens: Number("int"),
|
|
102
|
+
* // stopSequences: [ // StopSequences
|
|
103
|
+
* // "STRING_VALUE",
|
|
104
|
+
* // ],
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // },
|
|
110
|
+
* // lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
|
|
111
|
+
* // lambdaArn: "STRING_VALUE", // required
|
|
112
|
+
* // },
|
|
113
|
+
* // storage: { // StorageFlowNodeConfiguration
|
|
114
|
+
* // serviceConfiguration: { // StorageFlowNodeServiceConfiguration Union: only one key present
|
|
115
|
+
* // s3: { // StorageFlowNodeS3Configuration
|
|
116
|
+
* // bucketName: "STRING_VALUE", // required
|
|
117
|
+
* // },
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
120
|
+
* // agent: { // AgentFlowNodeConfiguration
|
|
121
|
+
* // agentAliasArn: "STRING_VALUE", // required
|
|
122
|
+
* // },
|
|
123
|
+
* // retrieval: { // RetrievalFlowNodeConfiguration
|
|
124
|
+
* // serviceConfiguration: { // RetrievalFlowNodeServiceConfiguration Union: only one key present
|
|
125
|
+
* // s3: { // RetrievalFlowNodeS3Configuration
|
|
126
|
+
* // bucketName: "STRING_VALUE", // required
|
|
127
|
+
* // },
|
|
128
|
+
* // },
|
|
129
|
+
* // },
|
|
130
|
+
* // iterator: {},
|
|
131
|
+
* // collector: {},
|
|
132
|
+
* // },
|
|
133
|
+
* // inputs: [ // FlowNodeInputs
|
|
134
|
+
* // { // FlowNodeInput
|
|
135
|
+
* // name: "STRING_VALUE", // required
|
|
136
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
137
|
+
* // expression: "STRING_VALUE", // required
|
|
138
|
+
* // },
|
|
139
|
+
* // ],
|
|
140
|
+
* // outputs: [ // FlowNodeOutputs
|
|
141
|
+
* // { // FlowNodeOutput
|
|
142
|
+
* // name: "STRING_VALUE", // required
|
|
143
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
144
|
+
* // },
|
|
145
|
+
* // ],
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // connections: [ // FlowConnections
|
|
149
|
+
* // { // FlowConnection
|
|
150
|
+
* // type: "Data" || "Conditional", // required
|
|
151
|
+
* // name: "STRING_VALUE", // required
|
|
152
|
+
* // source: "STRING_VALUE", // required
|
|
153
|
+
* // target: "STRING_VALUE", // required
|
|
154
|
+
* // configuration: { // FlowConnectionConfiguration Union: only one key present
|
|
155
|
+
* // data: { // FlowDataConnectionConfiguration
|
|
156
|
+
* // sourceOutput: "STRING_VALUE", // required
|
|
157
|
+
* // targetInput: "STRING_VALUE", // required
|
|
158
|
+
* // },
|
|
159
|
+
* // conditional: { // FlowConditionalConnectionConfiguration
|
|
160
|
+
* // condition: "STRING_VALUE", // required
|
|
161
|
+
* // },
|
|
162
|
+
* // },
|
|
163
|
+
* // },
|
|
164
|
+
* // ],
|
|
165
|
+
* // },
|
|
166
|
+
* // };
|
|
167
|
+
*
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @param CreateFlowVersionCommandInput - {@link CreateFlowVersionCommandInput}
|
|
171
|
+
* @returns {@link CreateFlowVersionCommandOutput}
|
|
172
|
+
* @see {@link CreateFlowVersionCommandInput} for command's `input` shape.
|
|
173
|
+
* @see {@link CreateFlowVersionCommandOutput} for command's `response` shape.
|
|
174
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
175
|
+
*
|
|
176
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
177
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link ConflictException} (client fault)
|
|
180
|
+
* <p>There was a conflict performing an operation.</p>
|
|
181
|
+
*
|
|
182
|
+
* @throws {@link InternalServerException} (server fault)
|
|
183
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
184
|
+
*
|
|
185
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
186
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
187
|
+
*
|
|
188
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
189
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
192
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
193
|
+
*
|
|
194
|
+
* @throws {@link ValidationException} (client fault)
|
|
195
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
196
|
+
*
|
|
197
|
+
* @throws {@link BedrockAgentServiceException}
|
|
198
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
199
|
+
*
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export declare class CreateFlowVersionCommand extends CreateFlowVersionCommand_base {
|
|
203
|
+
}
|