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