@awboost/cfn-resource-types 0.1.114 → 0.1.116
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/lib/AWS-Bedrock-Flow.d.ts +614 -0
- package/lib/AWS-Bedrock-Flow.js +12 -0
- package/lib/AWS-Bedrock-FlowAlias.d.ts +96 -0
- package/lib/AWS-Bedrock-FlowAlias.js +12 -0
- package/lib/AWS-Bedrock-FlowVersion.d.ts +625 -0
- package/lib/AWS-Bedrock-FlowVersion.js +12 -0
- package/lib/AWS-Bedrock-Prompt.d.ts +238 -0
- package/lib/AWS-Bedrock-Prompt.js +12 -0
- package/lib/AWS-Bedrock-PromptVersion.d.ts +277 -0
- package/lib/AWS-Bedrock-PromptVersion.js +12 -0
- package/lib/AWS-DMS-ReplicationConfig.d.ts +6 -6
- package/lib/AWS-EntityResolution-IdMappingWorkflow.d.ts +1 -1
- package/lib/AWS-RDS-DBInstance.d.ts +1 -4
- package/package.json +1 -1
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
|
+
/**
|
|
4
|
+
* Definition of AWS::Bedrock::FlowVersion Resource Type
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html}
|
|
6
|
+
*/
|
|
7
|
+
export type BedrockFlowVersionProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Description of the flow version
|
|
10
|
+
* @minLength `1`
|
|
11
|
+
* @maxLength `200`
|
|
12
|
+
*/
|
|
13
|
+
Description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Arn representation of the Flow
|
|
16
|
+
* @pattern `^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10}$`
|
|
17
|
+
*/
|
|
18
|
+
FlowArn: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Attribute type definition for `AWS::Bedrock::FlowVersion`.
|
|
22
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#aws-resource-bedrock-flowversion-return-values}
|
|
23
|
+
*/
|
|
24
|
+
export type BedrockFlowVersionAttributes = {
|
|
25
|
+
/**
|
|
26
|
+
* Time Stamp.
|
|
27
|
+
*/
|
|
28
|
+
CreatedAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* Flow definition
|
|
31
|
+
*/
|
|
32
|
+
Definition: {
|
|
33
|
+
/**
|
|
34
|
+
* List of connections
|
|
35
|
+
* @maxLength `20`
|
|
36
|
+
*/
|
|
37
|
+
Connections: {
|
|
38
|
+
/**
|
|
39
|
+
* Connection configuration
|
|
40
|
+
*/
|
|
41
|
+
Configuration: FlowConnectionConfiguration;
|
|
42
|
+
/**
|
|
43
|
+
* Name of a connection in a flow
|
|
44
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,100}$`
|
|
45
|
+
*/
|
|
46
|
+
Name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Name of a node in a flow
|
|
49
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
50
|
+
*/
|
|
51
|
+
Source: string;
|
|
52
|
+
/**
|
|
53
|
+
* Name of a node in a flow
|
|
54
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
55
|
+
*/
|
|
56
|
+
Target: string;
|
|
57
|
+
/**
|
|
58
|
+
* Connection type
|
|
59
|
+
*/
|
|
60
|
+
Type: FlowConnectionType;
|
|
61
|
+
}[];
|
|
62
|
+
/**
|
|
63
|
+
* List of nodes in a flow
|
|
64
|
+
* @maxLength `20`
|
|
65
|
+
*/
|
|
66
|
+
Nodes: {
|
|
67
|
+
/**
|
|
68
|
+
* Node configuration in a flow
|
|
69
|
+
*/
|
|
70
|
+
Configuration: FlowNodeConfiguration;
|
|
71
|
+
/**
|
|
72
|
+
* List of node inputs in a flow
|
|
73
|
+
* @maxLength `5`
|
|
74
|
+
*/
|
|
75
|
+
Inputs: {
|
|
76
|
+
/**
|
|
77
|
+
* Expression for a node input in a flow
|
|
78
|
+
* @minLength `1`
|
|
79
|
+
* @maxLength `64`
|
|
80
|
+
*/
|
|
81
|
+
Expression: string;
|
|
82
|
+
/**
|
|
83
|
+
* Name of a node input in a flow
|
|
84
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
85
|
+
*/
|
|
86
|
+
Name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Type of input/output for a node in a flow
|
|
89
|
+
*/
|
|
90
|
+
Type: FlowNodeIODataType;
|
|
91
|
+
}[];
|
|
92
|
+
/**
|
|
93
|
+
* Name of a node in a flow
|
|
94
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
95
|
+
*/
|
|
96
|
+
Name: string;
|
|
97
|
+
/**
|
|
98
|
+
* List of node outputs in a flow
|
|
99
|
+
* @maxLength `5`
|
|
100
|
+
*/
|
|
101
|
+
Outputs: {
|
|
102
|
+
/**
|
|
103
|
+
* Name of a node output in a flow
|
|
104
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
105
|
+
*/
|
|
106
|
+
Name: string;
|
|
107
|
+
/**
|
|
108
|
+
* Type of input/output for a node in a flow
|
|
109
|
+
*/
|
|
110
|
+
Type: FlowNodeIODataType;
|
|
111
|
+
}[];
|
|
112
|
+
/**
|
|
113
|
+
* Flow node types
|
|
114
|
+
*/
|
|
115
|
+
Type: FlowNodeType;
|
|
116
|
+
}[];
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* ARN of a IAM role
|
|
120
|
+
* @maxLength `2048`
|
|
121
|
+
* @pattern `^arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/(service-role/)?.+$`
|
|
122
|
+
*/
|
|
123
|
+
ExecutionRoleArn: string;
|
|
124
|
+
/**
|
|
125
|
+
* Identifier for a Flow
|
|
126
|
+
* @pattern `^[0-9a-zA-Z]{10}$`
|
|
127
|
+
*/
|
|
128
|
+
FlowId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Name for the flow
|
|
131
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
132
|
+
*/
|
|
133
|
+
Name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Schema Type for Flow APIs
|
|
136
|
+
*/
|
|
137
|
+
Status: FlowStatus;
|
|
138
|
+
/**
|
|
139
|
+
* Numerical Version.
|
|
140
|
+
* @pattern `^[0-9]{1,5}$`
|
|
141
|
+
*/
|
|
142
|
+
Version: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Type definition for `AWS::Bedrock::FlowVersion.ConditionFlowNodeConfiguration`.
|
|
146
|
+
* Condition flow node configuration
|
|
147
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-conditionflownodeconfiguration.html}
|
|
148
|
+
*/
|
|
149
|
+
export type ConditionFlowNodeConfiguration = {
|
|
150
|
+
/**
|
|
151
|
+
* List of conditions in a condition node
|
|
152
|
+
* @minLength `1`
|
|
153
|
+
* @maxLength `5`
|
|
154
|
+
*/
|
|
155
|
+
Conditions: FlowCondition[];
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowCondition`.
|
|
159
|
+
* Condition branch for a condition node
|
|
160
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html}
|
|
161
|
+
*/
|
|
162
|
+
export type FlowCondition = {
|
|
163
|
+
/**
|
|
164
|
+
* Expression for a condition in a flow
|
|
165
|
+
* @minLength `1`
|
|
166
|
+
* @maxLength `64`
|
|
167
|
+
*/
|
|
168
|
+
Expression?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Name of a condition in a flow
|
|
171
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
172
|
+
*/
|
|
173
|
+
Name: string;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowConditionalConnectionConfiguration`.
|
|
177
|
+
* Conditional connection configuration
|
|
178
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconditionalconnectionconfiguration.html}
|
|
179
|
+
*/
|
|
180
|
+
export type FlowConditionalConnectionConfiguration = {
|
|
181
|
+
/**
|
|
182
|
+
* Name of a condition in a flow
|
|
183
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
184
|
+
*/
|
|
185
|
+
Condition: string;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowConnection`.
|
|
189
|
+
* Flow connection
|
|
190
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html}
|
|
191
|
+
*/
|
|
192
|
+
export type FlowConnection = {
|
|
193
|
+
/**
|
|
194
|
+
* Connection configuration
|
|
195
|
+
*/
|
|
196
|
+
Configuration?: FlowConnectionConfiguration;
|
|
197
|
+
/**
|
|
198
|
+
* Name of a connection in a flow
|
|
199
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,100}$`
|
|
200
|
+
*/
|
|
201
|
+
Name: string;
|
|
202
|
+
/**
|
|
203
|
+
* Name of a node in a flow
|
|
204
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
205
|
+
*/
|
|
206
|
+
Source: string;
|
|
207
|
+
/**
|
|
208
|
+
* Name of a node in a flow
|
|
209
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
210
|
+
*/
|
|
211
|
+
Target: string;
|
|
212
|
+
/**
|
|
213
|
+
* Connection type
|
|
214
|
+
*/
|
|
215
|
+
Type: FlowConnectionType;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowConnectionConfiguration`.
|
|
219
|
+
* Connection configuration
|
|
220
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html}
|
|
221
|
+
*/
|
|
222
|
+
export type FlowConnectionConfiguration = {
|
|
223
|
+
/**
|
|
224
|
+
* Data connection configuration
|
|
225
|
+
*/
|
|
226
|
+
Data: FlowDataConnectionConfiguration;
|
|
227
|
+
} | {
|
|
228
|
+
/**
|
|
229
|
+
* Conditional connection configuration
|
|
230
|
+
*/
|
|
231
|
+
Conditional: FlowConditionalConnectionConfiguration;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowConnectionType`.
|
|
235
|
+
* Connection type
|
|
236
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectiontype.html}
|
|
237
|
+
*/
|
|
238
|
+
export type FlowConnectionType = "Data" | "Conditional";
|
|
239
|
+
/**
|
|
240
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowDataConnectionConfiguration`.
|
|
241
|
+
* Data connection configuration
|
|
242
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html}
|
|
243
|
+
*/
|
|
244
|
+
export type FlowDataConnectionConfiguration = {
|
|
245
|
+
/**
|
|
246
|
+
* Name of a node output in a flow
|
|
247
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
248
|
+
*/
|
|
249
|
+
SourceOutput: string;
|
|
250
|
+
/**
|
|
251
|
+
* Name of a node input in a flow
|
|
252
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
253
|
+
*/
|
|
254
|
+
TargetInput: string;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowDefinition`.
|
|
258
|
+
* Flow definition
|
|
259
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html}
|
|
260
|
+
*/
|
|
261
|
+
export type FlowDefinition = {
|
|
262
|
+
/**
|
|
263
|
+
* List of connections
|
|
264
|
+
* @maxLength `20`
|
|
265
|
+
*/
|
|
266
|
+
Connections?: FlowConnection[];
|
|
267
|
+
/**
|
|
268
|
+
* List of nodes in a flow
|
|
269
|
+
* @maxLength `20`
|
|
270
|
+
*/
|
|
271
|
+
Nodes?: FlowNode[];
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNode`.
|
|
275
|
+
* Internal mixin for flow node
|
|
276
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html}
|
|
277
|
+
*/
|
|
278
|
+
export type FlowNode = {
|
|
279
|
+
/**
|
|
280
|
+
* Node configuration in a flow
|
|
281
|
+
*/
|
|
282
|
+
Configuration?: FlowNodeConfiguration;
|
|
283
|
+
/**
|
|
284
|
+
* List of node inputs in a flow
|
|
285
|
+
* @maxLength `5`
|
|
286
|
+
*/
|
|
287
|
+
Inputs?: FlowNodeInput[];
|
|
288
|
+
/**
|
|
289
|
+
* Name of a node in a flow
|
|
290
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
291
|
+
*/
|
|
292
|
+
Name: string;
|
|
293
|
+
/**
|
|
294
|
+
* List of node outputs in a flow
|
|
295
|
+
* @maxLength `5`
|
|
296
|
+
*/
|
|
297
|
+
Outputs?: FlowNodeOutput[];
|
|
298
|
+
/**
|
|
299
|
+
* Flow node types
|
|
300
|
+
*/
|
|
301
|
+
Type: FlowNodeType;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNodeConfiguration`.
|
|
305
|
+
* Node configuration in a flow
|
|
306
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html}
|
|
307
|
+
*/
|
|
308
|
+
export type FlowNodeConfiguration = {
|
|
309
|
+
/**
|
|
310
|
+
* Input flow node configuration
|
|
311
|
+
*/
|
|
312
|
+
Input: InputFlowNodeConfiguration;
|
|
313
|
+
} | {
|
|
314
|
+
/**
|
|
315
|
+
* Output flow node configuration
|
|
316
|
+
*/
|
|
317
|
+
Output: OutputFlowNodeConfiguration;
|
|
318
|
+
} | {
|
|
319
|
+
/**
|
|
320
|
+
* Knowledge base flow node configuration
|
|
321
|
+
*/
|
|
322
|
+
KnowledgeBase: KnowledgeBaseFlowNodeConfiguration;
|
|
323
|
+
} | {
|
|
324
|
+
/**
|
|
325
|
+
* Condition flow node configuration
|
|
326
|
+
*/
|
|
327
|
+
Condition: ConditionFlowNodeConfiguration;
|
|
328
|
+
} | {
|
|
329
|
+
/**
|
|
330
|
+
* Lex flow node configuration
|
|
331
|
+
*/
|
|
332
|
+
Lex: LexFlowNodeConfiguration;
|
|
333
|
+
} | {
|
|
334
|
+
/**
|
|
335
|
+
* Prompt flow node configuration
|
|
336
|
+
*/
|
|
337
|
+
Prompt: PromptFlowNodeConfiguration;
|
|
338
|
+
} | {
|
|
339
|
+
/**
|
|
340
|
+
* Lambda function flow node configuration
|
|
341
|
+
*/
|
|
342
|
+
LambdaFunction: LambdaFunctionFlowNodeConfiguration;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNodeInput`.
|
|
346
|
+
* Input to a node in a flow
|
|
347
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html}
|
|
348
|
+
*/
|
|
349
|
+
export type FlowNodeInput = {
|
|
350
|
+
/**
|
|
351
|
+
* Expression for a node input in a flow
|
|
352
|
+
* @minLength `1`
|
|
353
|
+
* @maxLength `64`
|
|
354
|
+
*/
|
|
355
|
+
Expression: string;
|
|
356
|
+
/**
|
|
357
|
+
* Name of a node input in a flow
|
|
358
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
359
|
+
*/
|
|
360
|
+
Name: string;
|
|
361
|
+
/**
|
|
362
|
+
* Type of input/output for a node in a flow
|
|
363
|
+
*/
|
|
364
|
+
Type: FlowNodeIODataType;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNodeIODataType`.
|
|
368
|
+
* Type of input/output for a node in a flow
|
|
369
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeiodatatype.html}
|
|
370
|
+
*/
|
|
371
|
+
export type FlowNodeIODataType = "String" | "Number" | "Boolean" | "Object" | "Array";
|
|
372
|
+
/**
|
|
373
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNodeOutput`.
|
|
374
|
+
* Output of a node in a flow
|
|
375
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html}
|
|
376
|
+
*/
|
|
377
|
+
export type FlowNodeOutput = {
|
|
378
|
+
/**
|
|
379
|
+
* Name of a node output in a flow
|
|
380
|
+
* @pattern `^[a-zA-Z]([_]?[0-9a-zA-Z]){1,50}$`
|
|
381
|
+
*/
|
|
382
|
+
Name: string;
|
|
383
|
+
/**
|
|
384
|
+
* Type of input/output for a node in a flow
|
|
385
|
+
*/
|
|
386
|
+
Type: FlowNodeIODataType;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowNodeType`.
|
|
390
|
+
* Flow node types
|
|
391
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodetype.html}
|
|
392
|
+
*/
|
|
393
|
+
export type FlowNodeType = "Input" | "Output" | "KnowledgeBase" | "Condition" | "Lex" | "Prompt" | "LambdaFunction";
|
|
394
|
+
/**
|
|
395
|
+
* Type definition for `AWS::Bedrock::FlowVersion.FlowStatus`.
|
|
396
|
+
* Schema Type for Flow APIs
|
|
397
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowstatus.html}
|
|
398
|
+
*/
|
|
399
|
+
export type FlowStatus = "Failed" | "Prepared" | "Preparing" | "NotPrepared";
|
|
400
|
+
/**
|
|
401
|
+
* Type definition for `AWS::Bedrock::FlowVersion.InputFlowNodeConfiguration`.
|
|
402
|
+
* Input flow node configuration
|
|
403
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inputflownodeconfiguration.html}
|
|
404
|
+
*/
|
|
405
|
+
export type InputFlowNodeConfiguration = Record<string, any>;
|
|
406
|
+
/**
|
|
407
|
+
* Type definition for `AWS::Bedrock::FlowVersion.KnowledgeBaseFlowNodeConfiguration`.
|
|
408
|
+
* Knowledge base flow node configuration
|
|
409
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html}
|
|
410
|
+
*/
|
|
411
|
+
export type KnowledgeBaseFlowNodeConfiguration = {
|
|
412
|
+
/**
|
|
413
|
+
* Identifier of the KnowledgeBase
|
|
414
|
+
* @maxLength `10`
|
|
415
|
+
* @pattern `^[0-9a-zA-Z]+$`
|
|
416
|
+
*/
|
|
417
|
+
KnowledgeBaseId: string;
|
|
418
|
+
/**
|
|
419
|
+
* ARN or name of a Bedrock model.
|
|
420
|
+
* @minLength `1`
|
|
421
|
+
* @maxLength `2048`
|
|
422
|
+
* @pattern `^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)$`
|
|
423
|
+
*/
|
|
424
|
+
ModelId?: string;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Type definition for `AWS::Bedrock::FlowVersion.LambdaFunctionFlowNodeConfiguration`.
|
|
428
|
+
* Lambda function flow node configuration
|
|
429
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html}
|
|
430
|
+
*/
|
|
431
|
+
export type LambdaFunctionFlowNodeConfiguration = {
|
|
432
|
+
/**
|
|
433
|
+
* ARN of a Lambda.
|
|
434
|
+
* @maxLength `2048`
|
|
435
|
+
* @pattern `^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?$`
|
|
436
|
+
*/
|
|
437
|
+
LambdaArn: string;
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Type definition for `AWS::Bedrock::FlowVersion.LexFlowNodeConfiguration`.
|
|
441
|
+
* Lex flow node configuration
|
|
442
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html}
|
|
443
|
+
*/
|
|
444
|
+
export type LexFlowNodeConfiguration = {
|
|
445
|
+
/**
|
|
446
|
+
* ARN of a Lex bot alias
|
|
447
|
+
* @maxLength `78`
|
|
448
|
+
* @pattern `^arn:aws(|-us-gov):lex:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:bot-alias/[0-9a-zA-Z]+/[0-9a-zA-Z]+$`
|
|
449
|
+
*/
|
|
450
|
+
BotAliasArn: string;
|
|
451
|
+
/**
|
|
452
|
+
* Lex bot locale id
|
|
453
|
+
* @minLength `1`
|
|
454
|
+
* @maxLength `10`
|
|
455
|
+
*/
|
|
456
|
+
LocaleId: string;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Type definition for `AWS::Bedrock::FlowVersion.OutputFlowNodeConfiguration`.
|
|
460
|
+
* Output flow node configuration
|
|
461
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-outputflownodeconfiguration.html}
|
|
462
|
+
*/
|
|
463
|
+
export type OutputFlowNodeConfiguration = Record<string, any>;
|
|
464
|
+
/**
|
|
465
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptFlowNodeConfiguration`.
|
|
466
|
+
* Prompt flow node configuration
|
|
467
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html}
|
|
468
|
+
*/
|
|
469
|
+
export type PromptFlowNodeConfiguration = {
|
|
470
|
+
/**
|
|
471
|
+
* Prompt source configuration for prompt node
|
|
472
|
+
*/
|
|
473
|
+
SourceConfiguration: PromptFlowNodeSourceConfiguration;
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptFlowNodeInlineConfiguration`.
|
|
477
|
+
* Inline prompt configuration for prompt node
|
|
478
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html}
|
|
479
|
+
*/
|
|
480
|
+
export type PromptFlowNodeInlineConfiguration = {
|
|
481
|
+
InferenceConfiguration?: PromptInferenceConfiguration;
|
|
482
|
+
/**
|
|
483
|
+
* ARN or name of a Bedrock model.
|
|
484
|
+
* @minLength `1`
|
|
485
|
+
* @maxLength `2048`
|
|
486
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$`
|
|
487
|
+
*/
|
|
488
|
+
ModelId: string;
|
|
489
|
+
TemplateConfiguration: PromptTemplateConfiguration;
|
|
490
|
+
/**
|
|
491
|
+
* Prompt template type
|
|
492
|
+
*/
|
|
493
|
+
TemplateType: PromptTemplateType;
|
|
494
|
+
};
|
|
495
|
+
/**
|
|
496
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptFlowNodeResourceConfiguration`.
|
|
497
|
+
* Resource prompt configuration for prompt node
|
|
498
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownoderesourceconfiguration.html}
|
|
499
|
+
*/
|
|
500
|
+
export type PromptFlowNodeResourceConfiguration = {
|
|
501
|
+
/**
|
|
502
|
+
* ARN of a prompt resource possibly with a version
|
|
503
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?)$`
|
|
504
|
+
*/
|
|
505
|
+
PromptArn: string;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptFlowNodeSourceConfiguration`.
|
|
509
|
+
* Prompt source configuration for prompt node
|
|
510
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html}
|
|
511
|
+
*/
|
|
512
|
+
export type PromptFlowNodeSourceConfiguration = {
|
|
513
|
+
/**
|
|
514
|
+
* Resource prompt configuration for prompt node
|
|
515
|
+
*/
|
|
516
|
+
Resource: PromptFlowNodeResourceConfiguration;
|
|
517
|
+
} | {
|
|
518
|
+
/**
|
|
519
|
+
* Inline prompt configuration for prompt node
|
|
520
|
+
*/
|
|
521
|
+
Inline: PromptFlowNodeInlineConfiguration;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptInferenceConfiguration`.
|
|
525
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinferenceconfiguration.html}
|
|
526
|
+
*/
|
|
527
|
+
export type PromptInferenceConfiguration = {
|
|
528
|
+
/**
|
|
529
|
+
* Prompt model inference configuration
|
|
530
|
+
*/
|
|
531
|
+
Text: PromptModelInferenceConfiguration;
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptInputVariable`.
|
|
535
|
+
* Input variable
|
|
536
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinputvariable.html}
|
|
537
|
+
*/
|
|
538
|
+
export type PromptInputVariable = {
|
|
539
|
+
/**
|
|
540
|
+
* Name for an input variable
|
|
541
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
542
|
+
*/
|
|
543
|
+
Name?: string;
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptModelInferenceConfiguration`.
|
|
547
|
+
* Prompt model inference configuration
|
|
548
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html}
|
|
549
|
+
*/
|
|
550
|
+
export type PromptModelInferenceConfiguration = {
|
|
551
|
+
/**
|
|
552
|
+
* Maximum length of output
|
|
553
|
+
* @min `0`
|
|
554
|
+
* @max `4096`
|
|
555
|
+
*/
|
|
556
|
+
MaxTokens?: number;
|
|
557
|
+
/**
|
|
558
|
+
* List of stop sequences
|
|
559
|
+
* @minLength `0`
|
|
560
|
+
* @maxLength `4`
|
|
561
|
+
*/
|
|
562
|
+
StopSequences?: string[];
|
|
563
|
+
/**
|
|
564
|
+
* Controls randomness, higher values increase diversity
|
|
565
|
+
* @min `0`
|
|
566
|
+
* @max `1`
|
|
567
|
+
*/
|
|
568
|
+
Temperature?: number;
|
|
569
|
+
/**
|
|
570
|
+
* Sample from the k most likely next tokens
|
|
571
|
+
* @min `0`
|
|
572
|
+
* @max `500`
|
|
573
|
+
*/
|
|
574
|
+
TopK?: number;
|
|
575
|
+
/**
|
|
576
|
+
* Cumulative probability cutoff for token selection
|
|
577
|
+
* @min `0`
|
|
578
|
+
* @max `1`
|
|
579
|
+
*/
|
|
580
|
+
TopP?: number;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptTemplateConfiguration`.
|
|
584
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html}
|
|
585
|
+
*/
|
|
586
|
+
export type PromptTemplateConfiguration = {
|
|
587
|
+
/**
|
|
588
|
+
* Configuration for text prompt template
|
|
589
|
+
*/
|
|
590
|
+
Text: TextPromptTemplateConfiguration;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Type definition for `AWS::Bedrock::FlowVersion.PromptTemplateType`.
|
|
594
|
+
* Prompt template type
|
|
595
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplatetype.html}
|
|
596
|
+
*/
|
|
597
|
+
export type PromptTemplateType = "TEXT";
|
|
598
|
+
/**
|
|
599
|
+
* Type definition for `AWS::Bedrock::FlowVersion.TextPromptTemplateConfiguration`.
|
|
600
|
+
* Configuration for text prompt template
|
|
601
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html}
|
|
602
|
+
*/
|
|
603
|
+
export type TextPromptTemplateConfiguration = {
|
|
604
|
+
/**
|
|
605
|
+
* List of input variables
|
|
606
|
+
* @minLength `0`
|
|
607
|
+
* @maxLength `5`
|
|
608
|
+
*/
|
|
609
|
+
InputVariables?: PromptInputVariable[];
|
|
610
|
+
/**
|
|
611
|
+
* Prompt content for String prompt template
|
|
612
|
+
* @minLength `1`
|
|
613
|
+
* @maxLength `200000`
|
|
614
|
+
*/
|
|
615
|
+
Text: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Definition of AWS::Bedrock::FlowVersion Resource Type
|
|
619
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html}
|
|
620
|
+
*/
|
|
621
|
+
export declare class BedrockFlowVersion extends $Resource<"AWS::Bedrock::FlowVersion", BedrockFlowVersionProperties, BedrockFlowVersionAttributes> {
|
|
622
|
+
static readonly Type = "AWS::Bedrock::FlowVersion";
|
|
623
|
+
constructor(logicalId: string, properties: BedrockFlowVersionProperties, options?: $ResourceOptions);
|
|
624
|
+
}
|
|
625
|
+
//# sourceMappingURL=AWS-Bedrock-FlowVersion.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* Definition of AWS::Bedrock::FlowVersion Resource Type
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html}
|
|
5
|
+
*/
|
|
6
|
+
export class BedrockFlowVersion extends $Resource {
|
|
7
|
+
static Type = "AWS::Bedrock::FlowVersion";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, BedrockFlowVersion.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Bedrock-FlowVersion.js.map
|