Skip to content

Commit 0fabf51

Browse files
author
AWS
committed
Amazon Bedrock Runtime Update: This release adds support for minor versions/aliases for invoke model identifier.
1 parent 436bd5e commit 0fabf51

File tree

4 files changed

+63
-52
lines changed

4 files changed

+63
-52
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "This release adds support for minor versions/aliases for invoke model identifier."
6+
}

services/bedrockruntime/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -59,7 +58,6 @@
5958
},
6059
{
6160
"conditions": [],
62-
"type": "tree",
6361
"rules": [
6462
{
6563
"conditions": [
@@ -87,13 +85,14 @@
8785
},
8886
"type": "endpoint"
8987
}
90-
]
88+
],
89+
"type": "tree"
9190
}
92-
]
91+
],
92+
"type": "tree"
9393
},
9494
{
9595
"conditions": [],
96-
"type": "tree",
9796
"rules": [
9897
{
9998
"conditions": [
@@ -106,7 +105,6 @@
106105
]
107106
}
108107
],
109-
"type": "tree",
110108
"rules": [
111109
{
112110
"conditions": [
@@ -120,7 +118,6 @@
120118
"assign": "PartitionResult"
121119
}
122120
],
123-
"type": "tree",
124121
"rules": [
125122
{
126123
"conditions": [
@@ -143,7 +140,6 @@
143140
]
144141
}
145142
],
146-
"type": "tree",
147143
"rules": [
148144
{
149145
"conditions": [
@@ -178,11 +174,9 @@
178174
]
179175
}
180176
],
181-
"type": "tree",
182177
"rules": [
183178
{
184179
"conditions": [],
185-
"type": "tree",
186180
"rules": [
187181
{
188182
"conditions": [],
@@ -193,16 +187,19 @@
193187
},
194188
"type": "endpoint"
195189
}
196-
]
190+
],
191+
"type": "tree"
197192
}
198-
]
193+
],
194+
"type": "tree"
199195
},
200196
{
201197
"conditions": [],
202198
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
203199
"type": "error"
204200
}
205-
]
201+
],
202+
"type": "tree"
206203
},
207204
{
208205
"conditions": [
@@ -216,14 +213,12 @@
216213
]
217214
}
218215
],
219-
"type": "tree",
220216
"rules": [
221217
{
222218
"conditions": [
223219
{
224220
"fn": "booleanEquals",
225221
"argv": [
226-
true,
227222
{
228223
"fn": "getAttr",
229224
"argv": [
@@ -232,15 +227,14 @@
232227
},
233228
"supportsFIPS"
234229
]
235-
}
230+
},
231+
true
236232
]
237233
}
238234
],
239-
"type": "tree",
240235
"rules": [
241236
{
242237
"conditions": [],
243-
"type": "tree",
244238
"rules": [
245239
{
246240
"conditions": [],
@@ -251,16 +245,19 @@
251245
},
252246
"type": "endpoint"
253247
}
254-
]
248+
],
249+
"type": "tree"
255250
}
256-
]
251+
],
252+
"type": "tree"
257253
},
258254
{
259255
"conditions": [],
260256
"error": "FIPS is enabled but this partition does not support FIPS",
261257
"type": "error"
262258
}
263-
]
259+
],
260+
"type": "tree"
264261
},
265262
{
266263
"conditions": [
@@ -274,7 +271,6 @@
274271
]
275272
}
276273
],
277-
"type": "tree",
278274
"rules": [
279275
{
280276
"conditions": [
@@ -294,11 +290,9 @@
294290
]
295291
}
296292
],
297-
"type": "tree",
298293
"rules": [
299294
{
300295
"conditions": [],
301-
"type": "tree",
302296
"rules": [
303297
{
304298
"conditions": [],
@@ -309,20 +303,22 @@
309303
},
310304
"type": "endpoint"
311305
}
312-
]
306+
],
307+
"type": "tree"
313308
}
314-
]
309+
],
310+
"type": "tree"
315311
},
316312
{
317313
"conditions": [],
318314
"error": "DualStack is enabled but this partition does not support DualStack",
319315
"type": "error"
320316
}
321-
]
317+
],
318+
"type": "tree"
322319
},
323320
{
324321
"conditions": [],
325-
"type": "tree",
326322
"rules": [
327323
{
328324
"conditions": [],
@@ -333,18 +329,22 @@
333329
},
334330
"type": "endpoint"
335331
}
336-
]
332+
],
333+
"type": "tree"
337334
}
338-
]
335+
],
336+
"type": "tree"
339337
}
340-
]
338+
],
339+
"type": "tree"
341340
},
342341
{
343342
"conditions": [],
344343
"error": "Invalid Configuration: Missing Region",
345344
"type": "error"
346345
}
347-
]
346+
],
347+
"type": "tree"
348348
}
349349
]
350350
}

services/bedrockruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"type":"string",
9292
"max":2048,
9393
"min":1,
94-
"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][_-]?)+)$"
94+
"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][_-]?)+)"
9595
},
9696
"InvokeModelRequest":{
9797
"type":"structure",
@@ -100,12 +100,6 @@
100100
"modelId"
101101
],
102102
"members":{
103-
"accept":{
104-
"shape":"MimeType",
105-
"documentation":"<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>",
106-
"location":"header",
107-
"locationName":"Accept"
108-
},
109103
"body":{
110104
"shape":"Body",
111105
"documentation":"<p>Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>"
@@ -116,6 +110,12 @@
116110
"location":"header",
117111
"locationName":"Content-Type"
118112
},
113+
"accept":{
114+
"shape":"MimeType",
115+
"documentation":"<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>",
116+
"location":"header",
117+
"locationName":"Accept"
118+
},
119119
"modelId":{
120120
"shape":"InvokeModelIdentifier",
121121
"documentation":"<p>Identifier of the model. </p>",
@@ -152,12 +152,6 @@
152152
"modelId"
153153
],
154154
"members":{
155-
"accept":{
156-
"shape":"MimeType",
157-
"documentation":"<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>",
158-
"location":"header",
159-
"locationName":"X-Amzn-Bedrock-Accept"
160-
},
161155
"body":{
162156
"shape":"Body",
163157
"documentation":"<p>Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>"
@@ -168,6 +162,12 @@
168162
"location":"header",
169163
"locationName":"Content-Type"
170164
},
165+
"accept":{
166+
"shape":"MimeType",
167+
"documentation":"<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>",
168+
"location":"header",
169+
"locationName":"X-Amzn-Bedrock-Accept"
170+
},
171171
"modelId":{
172172
"shape":"InvokeModelIdentifier",
173173
"documentation":"<p>Id of the model to invoke using the streaming request.</p>",
@@ -234,13 +234,13 @@
234234
"type":"structure",
235235
"members":{
236236
"message":{"shape":"NonBlankString"},
237-
"originalMessage":{
238-
"shape":"NonBlankString",
239-
"documentation":"<p>The original message.</p>"
240-
},
241237
"originalStatusCode":{
242238
"shape":"StatusCode",
243239
"documentation":"<p>The original status code.</p>"
240+
},
241+
"originalMessage":{
242+
"shape":"NonBlankString",
243+
"documentation":"<p>The original message.</p>"
244244
}
245245
},
246246
"documentation":"<p>An error occurred while streaming the response.</p>",
@@ -264,7 +264,7 @@
264264
},
265265
"NonBlankString":{
266266
"type":"string",
267-
"pattern":"^[\\s\\S]*$"
267+
"pattern":"[\\s\\S]*"
268268
},
269269
"PartBody":{
270270
"type":"blob",
@@ -305,9 +305,9 @@
305305
},
306306
"internalServerException":{"shape":"InternalServerException"},
307307
"modelStreamErrorException":{"shape":"ModelStreamErrorException"},
308-
"modelTimeoutException":{"shape":"ModelTimeoutException"},
308+
"validationException":{"shape":"ValidationException"},
309309
"throttlingException":{"shape":"ThrottlingException"},
310-
"validationException":{"shape":"ValidationException"}
310+
"modelTimeoutException":{"shape":"ModelTimeoutException"}
311311
},
312312
"documentation":"<p>Definition of content in the response stream.</p>",
313313
"eventstream":true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": 2,
3+
"waiters": {
4+
}
5+
}

0 commit comments

Comments
 (0)