Skip to content

Commit bbe9734

Browse files
author
awstools
committed
feat(client-bedrock-agent): This release adds support for saving Bedrock Flows while node configuration is still in progress, even if the Flow is not yet able to be invoked
1 parent 370b0e4 commit bbe9734

File tree

1 file changed

+105
-37
lines changed

1 file changed

+105
-37
lines changed

codegen/sdk-codegen/aws-models/bedrock-agent.json

Lines changed: 105 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,10 @@
995995
"type": "structure",
996996
"members": {
997997
"agentAliasArn": {
998-
"target": "com.amazonaws.bedrockagent#AgentAliasArn",
998+
"target": "com.amazonaws.bedrockagent#FlowAgentAliasArn",
999999
"traits": {
1000+
"smithy.api#addedDefault": {},
1001+
"smithy.api#default": "",
10001002
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the alias of the agent to invoke.</p>",
10011003
"smithy.api#required": {}
10021004
}
@@ -6593,6 +6595,15 @@
65936595
"smithy.api#documentation": "<p>Configurations for when you choose fixed-size chunking. If you set the <code>chunkingStrategy</code> as <code>NONE</code>, exclude this field.</p>"
65946596
}
65956597
},
6598+
"com.amazonaws.bedrockagent#FlowAgentAliasArn": {
6599+
"type": "string",
6600+
"traits": {
6601+
"smithy.api#length": {
6602+
"max": 2048
6603+
},
6604+
"smithy.api#pattern": "^$|^arn:aws(-cn|-us-gov|-eusc|-iso(-[b-f])?)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:agent-alias/[0-9a-zA-Z]{10}/[0-9a-zA-Z]{10}$"
6605+
}
6606+
},
65966607
"com.amazonaws.bedrockagent#FlowAliasArn": {
65976608
"type": "string",
65986609
"traits": {
@@ -7015,6 +7026,42 @@
70157026
"smithy.api#pattern": "^(arn:aws:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10})|([0-9a-zA-Z]{10})$"
70167027
}
70177028
},
7029+
"com.amazonaws.bedrockagent#FlowKnowledgeBaseId": {
7030+
"type": "string",
7031+
"traits": {
7032+
"smithy.api#length": {
7033+
"max": 10
7034+
},
7035+
"smithy.api#pattern": "^$|^[0-9a-zA-Z]+$"
7036+
}
7037+
},
7038+
"com.amazonaws.bedrockagent#FlowLambdaArn": {
7039+
"type": "string",
7040+
"traits": {
7041+
"smithy.api#length": {
7042+
"max": 2048
7043+
},
7044+
"smithy.api#pattern": "^$|^arn:aws(-cn|-us-gov|-eusc|-iso(-[b-f])?)?:lambda:([a-z]{2,}-){2,}\\d:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"
7045+
}
7046+
},
7047+
"com.amazonaws.bedrockagent#FlowLexBotAliasArn": {
7048+
"type": "string",
7049+
"traits": {
7050+
"smithy.api#length": {
7051+
"max": 78
7052+
},
7053+
"smithy.api#pattern": "^$|^arn:aws(-cn|-us-gov|-eusc|-iso(-[b-f])?)?:lex:([a-z]{2,}-){2,}\\d:\\d{12}:bot-alias/[0-9a-zA-Z]+/[0-9a-zA-Z]+$"
7054+
}
7055+
},
7056+
"com.amazonaws.bedrockagent#FlowLexBotLocaleId": {
7057+
"type": "string",
7058+
"traits": {
7059+
"smithy.api#length": {
7060+
"min": 0,
7061+
"max": 10
7062+
}
7063+
}
7064+
},
70187065
"com.amazonaws.bedrockagent#FlowName": {
70197066
"type": "string",
70207067
"traits": {
@@ -7442,6 +7489,22 @@
74427489
}
74437490
}
74447491
},
7492+
"com.amazonaws.bedrockagent#FlowPromptArn": {
7493+
"type": "string",
7494+
"traits": {
7495+
"smithy.api#pattern": "^$|^(arn:aws(-cn|-us-gov|-eusc|-iso(-[b-f])?)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?)$"
7496+
}
7497+
},
7498+
"com.amazonaws.bedrockagent#FlowPromptModelIdentifier": {
7499+
"type": "string",
7500+
"traits": {
7501+
"smithy.api#length": {
7502+
"min": 0,
7503+
"max": 2048
7504+
},
7505+
"smithy.api#pattern": "^$|^(arn:aws(-cn|-us-gov|-eusc|-iso(-[b-f])?)?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
7506+
}
7507+
},
74457508
"com.amazonaws.bedrockagent#FlowResource": {
74467509
"type": "resource",
74477510
"identifiers": {
@@ -7483,6 +7546,16 @@
74837546
}
74847547
}
74857548
},
7549+
"com.amazonaws.bedrockagent#FlowS3BucketName": {
7550+
"type": "string",
7551+
"traits": {
7552+
"smithy.api#length": {
7553+
"min": 0,
7554+
"max": 63
7555+
},
7556+
"smithy.api#pattern": "^$|^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"
7557+
}
7558+
},
74867559
"com.amazonaws.bedrockagent#FlowStatus": {
74877560
"type": "enum",
74887561
"members": {
@@ -10215,7 +10288,7 @@
1021510288
"type": "string",
1021610289
"traits": {
1021710290
"smithy.api#length": {
10218-
"min": 1,
10291+
"min": 0,
1021910292
"max": 5000000
1022010293
},
1022110294
"smithy.api#sensitive": {}
@@ -10227,13 +10300,17 @@
1022710300
"code": {
1022810301
"target": "com.amazonaws.bedrockagent#InlineCode",
1022910302
"traits": {
10303+
"smithy.api#addedDefault": {},
10304+
"smithy.api#default": "",
1023010305
"smithy.api#documentation": "<p>The code that's executed in your inline code node. The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow.</p> <p>The code must be valid in the programming <code>language</code> that you specify.</p>",
1023110306
"smithy.api#required": {}
1023210307
}
1023310308
},
1023410309
"language": {
1023510310
"target": "com.amazonaws.bedrockagent#SupportedLanguages",
1023610311
"traits": {
10312+
"smithy.api#addedDefault": {},
10313+
"smithy.api#default": "Python_3",
1023710314
"smithy.api#documentation": "<p>The programming language used by your inline code node.</p> <p>The code must be valid in the programming <code>language</code> that you specify. Currently, only Python 3 (<code>Python_3</code>) is supported.</p>",
1023810315
"smithy.api#required": {}
1023910316
}
@@ -10641,8 +10718,10 @@
1064110718
"type": "structure",
1064210719
"members": {
1064310720
"knowledgeBaseId": {
10644-
"target": "com.amazonaws.bedrockagent#KnowledgeBaseId",
10721+
"target": "com.amazonaws.bedrockagent#FlowKnowledgeBaseId",
1064510722
"traits": {
10723+
"smithy.api#addedDefault": {},
10724+
"smithy.api#default": "",
1064610725
"smithy.api#documentation": "<p>The unique identifier of the knowledge base to query.</p>",
1064710726
"smithy.api#required": {}
1064810727
}
@@ -10698,15 +10777,6 @@
1069810777
"smithy.api#documentation": "<p>Contains configurations for a knowledge base node in a flow. This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html\">Node types in a flow</a> in the Amazon Bedrock User Guide.</p>"
1069910778
}
1070010779
},
10701-
"com.amazonaws.bedrockagent#KnowledgeBaseId": {
10702-
"type": "string",
10703-
"traits": {
10704-
"smithy.api#length": {
10705-
"max": 10
10706-
},
10707-
"smithy.api#pattern": "^[0-9a-zA-Z]+$"
10708-
}
10709-
},
1071010780
"com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier": {
1071110781
"type": "string",
1071210782
"traits": {
@@ -11012,8 +11082,10 @@
1101211082
"type": "structure",
1101311083
"members": {
1101411084
"lambdaArn": {
11015-
"target": "com.amazonaws.bedrockagent#LambdaArn",
11085+
"target": "com.amazonaws.bedrockagent#FlowLambdaArn",
1101611086
"traits": {
11087+
"smithy.api#addedDefault": {},
11088+
"smithy.api#default": "",
1101711089
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Lambda function to invoke.</p>",
1101811090
"smithy.api#required": {}
1101911091
}
@@ -11023,37 +11095,23 @@
1102311095
"smithy.api#documentation": "<p>Contains configurations for a Lambda function node in the flow. You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html\">Node types in a flow</a> in the Amazon Bedrock User Guide.</p>"
1102411096
}
1102511097
},
11026-
"com.amazonaws.bedrockagent#LexBotAliasArn": {
11027-
"type": "string",
11028-
"traits": {
11029-
"smithy.api#length": {
11030-
"max": 78
11031-
},
11032-
"smithy.api#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]+$"
11033-
}
11034-
},
11035-
"com.amazonaws.bedrockagent#LexBotLocaleId": {
11036-
"type": "string",
11037-
"traits": {
11038-
"smithy.api#length": {
11039-
"min": 1,
11040-
"max": 10
11041-
}
11042-
}
11043-
},
1104411098
"com.amazonaws.bedrockagent#LexFlowNodeConfiguration": {
1104511099
"type": "structure",
1104611100
"members": {
1104711101
"botAliasArn": {
11048-
"target": "com.amazonaws.bedrockagent#LexBotAliasArn",
11102+
"target": "com.amazonaws.bedrockagent#FlowLexBotAliasArn",
1104911103
"traits": {
11104+
"smithy.api#addedDefault": {},
11105+
"smithy.api#default": "",
1105011106
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.</p>",
1105111107
"smithy.api#required": {}
1105211108
}
1105311109
},
1105411110
"localeId": {
11055-
"target": "com.amazonaws.bedrockagent#LexBotLocaleId",
11111+
"target": "com.amazonaws.bedrockagent#FlowLexBotLocaleId",
1105611112
"traits": {
11113+
"smithy.api#addedDefault": {},
11114+
"smithy.api#default": "",
1105711115
"smithy.api#documentation": "<p>The Region to invoke the Amazon Lex bot in.</p>",
1105811116
"smithy.api#required": {}
1105911117
}
@@ -14088,6 +14146,8 @@
1408814146
"templateType": {
1408914147
"target": "com.amazonaws.bedrockagent#PromptTemplateType",
1409014148
"traits": {
14149+
"smithy.api#addedDefault": {},
14150+
"smithy.api#default": "TEXT",
1409114151
"smithy.api#documentation": "<p>The type of prompt template.</p>",
1409214152
"smithy.api#required": {}
1409314153
}
@@ -14100,8 +14160,10 @@
1410014160
}
1410114161
},
1410214162
"modelId": {
14103-
"target": "com.amazonaws.bedrockagent#PromptModelIdentifier",
14163+
"target": "com.amazonaws.bedrockagent#FlowPromptModelIdentifier",
1410414164
"traits": {
14165+
"smithy.api#addedDefault": {},
14166+
"smithy.api#default": "",
1410514167
"smithy.api#documentation": "<p>The unique identifier of the model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> to run inference with.</p>",
1410614168
"smithy.api#required": {}
1410714169
}
@@ -14127,8 +14189,10 @@
1412714189
"type": "structure",
1412814190
"members": {
1412914191
"promptArn": {
14130-
"target": "com.amazonaws.bedrockagent#PromptArn",
14192+
"target": "com.amazonaws.bedrockagent#FlowPromptArn",
1413114193
"traits": {
14194+
"smithy.api#addedDefault": {},
14195+
"smithy.api#default": "",
1413214196
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the prompt from Prompt management.</p>",
1413314197
"smithy.api#required": {}
1413414198
}
@@ -15412,8 +15476,10 @@
1541215476
"type": "structure",
1541315477
"members": {
1541415478
"bucketName": {
15415-
"target": "com.amazonaws.bedrockagent#S3BucketName",
15479+
"target": "com.amazonaws.bedrockagent#FlowS3BucketName",
1541615480
"traits": {
15481+
"smithy.api#addedDefault": {},
15482+
"smithy.api#default": "",
1541715483
"smithy.api#documentation": "<p>The name of the Amazon S3 bucket from which to retrieve data.</p>",
1541815484
"smithy.api#required": {}
1541915485
}
@@ -16300,8 +16366,10 @@
1630016366
"type": "structure",
1630116367
"members": {
1630216368
"bucketName": {
16303-
"target": "com.amazonaws.bedrockagent#S3BucketName",
16369+
"target": "com.amazonaws.bedrockagent#FlowS3BucketName",
1630416370
"traits": {
16371+
"smithy.api#addedDefault": {},
16372+
"smithy.api#default": "",
1630516373
"smithy.api#documentation": "<p>The name of the Amazon S3 bucket in which to store the input into the node.</p>",
1630616374
"smithy.api#required": {}
1630716375
}

0 commit comments

Comments
 (0)