Skip to content

Commit f937d30

Browse files
authored
chore(bedrock): update foundation models (#32516)
### Issue # (if applicable) Could not find any in the backlog ### Reason for this change Update the CDK listed Bedrock foundation models to match the current availability, as well as add missing deprecated versions ### Description of changes * Added new models * Marked existing models as deprecated ### Description of how you validated changes I compared the current CDK models to live SDK data, using the `bedrock:ListFoundationModels` API results. Deprecated versions were established using the `modelLifecycle.status` field ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 283edd6 commit f937d30

File tree

1 file changed

+93
-18
lines changed

1 file changed

+93
-18
lines changed

packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts

+93-18
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,46 @@ export class FoundationModelIdentifier {
8686
/** Base model "amazon.nova-reel-v1:0". */
8787
public static readonly AMAZON_NOVA_REEL_V1_0 = new FoundationModelIdentifier('amazon.nova-reel-v1:0');
8888

89-
/** Base model "ai21.j2-mid". */
89+
/**
90+
* Base model "ai21.j2-mid".
91+
* @deprecated use latest version of the model
92+
*/
9093
public static readonly AI21_J2_MID = new FoundationModelIdentifier('ai21.j2-mid');
9194

92-
/** Base model "ai21.j2-mid-v1". */
95+
/**
96+
* Base model "ai21.j2-mid-v1".
97+
* @deprecated use latest version of the model
98+
*/
9399
public static readonly AI21_LABS_JURASSIC_2_MID_V1 = new FoundationModelIdentifier('ai21.j2-mid-v1');
94100

95-
/** Base model "ai21.j2-ultra". */
101+
/**
102+
* Base model "ai21.j2-ultra".
103+
* @deprecated use latest version of the model
104+
*/
96105
public static readonly AI21_J2_ULTRA = new FoundationModelIdentifier('ai21.j2-ultra');
97106

98-
/** Base model "ai21.j2-ultra-v1". */
107+
/**
108+
* Base model "ai21.j2-ultra-v1".
109+
* @deprecated use latest version of the model
110+
*/
99111
public static readonly AI21_LABS_JURASSIC_2_ULTRA_V1 = new FoundationModelIdentifier('ai21.j2-ultra-v1');
100112

101-
/** Base model "ai21.j2-ultra-v1:0:8k". */
113+
/**
114+
* Base model "ai21.j2-ultra-v1:0:8k".
115+
* @deprecated use latest version of the model
116+
*/
102117
public static readonly AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K = new FoundationModelIdentifier('ai21.j2-ultra-v1:0:8k');
103118

104-
/** Base model "ai21.j2-grande-instruct". */
119+
/**
120+
* Base model "ai21.j2-grande-instruct".
121+
* @deprecated use latest version of the model
122+
*/
105123
public static readonly AI21_J2_GRANDE_INSTRUCT = new FoundationModelIdentifier('ai21.j2-grande-instruct');
106124

107-
/** Base model "ai21.j2-jumbo-instruct". */
125+
/**
126+
* Base model "ai21.j2-jumbo-instruct".
127+
* @deprecated use latest version of the model
128+
*/
108129
public static readonly AI21_J2_JUMBO_INSTRUCT = new FoundationModelIdentifier('ai21.j2-jumbo-instruct');
109130

110131
/** Base model "ai21.jamba-instruct-v1:0". */
@@ -152,6 +173,15 @@ export class FoundationModelIdentifier {
152173
/** Base model "anthropic.claude-3-5-sonnet-20240620-v1:0" */
153174
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0 = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20240620-v1:0');
154175

176+
/** Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:18k". */
177+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20240620-v1:0:18k');
178+
179+
/** Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:51k". */
180+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20240620-v1:0:51k');
181+
182+
/** Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:200k". */
183+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20240620-v1:0:200k');
184+
155185
/** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0" */
156186
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0');
157187

@@ -170,6 +200,15 @@ export class FoundationModelIdentifier {
170200
/** Base model "anthropic.claude-3-opus-20240229-v1:0" */
171201
public static readonly ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0 = new FoundationModelIdentifier('anthropic.claude-3-opus-20240229-v1:0');
172202

203+
/** Base model "anthropic.claude-3-opus-20240229-v1:0:12k". */
204+
public static readonly ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12K = new FoundationModelIdentifier('anthropic.claude-3-opus-20240229-v1:0:12k');
205+
206+
/** Base model "anthropic.claude-3-opus-20240229-v1:0:28k". */
207+
public static readonly ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28K = new FoundationModelIdentifier('anthropic.claude-3-opus-20240229-v1:0:28k');
208+
209+
/** Base model "anthropic.claude-3-opus-20240229-v1:0:200k". */
210+
public static readonly ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K = new FoundationModelIdentifier('anthropic.claude-3-opus-20240229-v1:0:200k');
211+
173212
/** Base model "anthropic.claude-instant-v1". */
174213
public static readonly ANTHROPIC_CLAUDE_INSTANT_V1 = new FoundationModelIdentifier('anthropic.claude-instant-v1');
175214

@@ -209,28 +248,52 @@ export class FoundationModelIdentifier {
209248
/** Base model "cohere.embed-multilingual-v3:0:512". */
210249
public static readonly COHERE_EMBED_MULTILINGUAL_V3_0_512 = new FoundationModelIdentifier('cohere.embed-multilingual-v3:0:512');
211250

212-
/** Base model "meta.llama2-13b-v1". */
251+
/**
252+
* Base model "meta.llama2-13b-v1".
253+
* @deprecated use latest version of the model
254+
*/
213255
public static readonly META_LLAMA_2_13B_V1 = new FoundationModelIdentifier('meta.llama2-13b-v1');
214256

215-
/** Base model "meta.llama2-13b-v1:0:4k". */
257+
/**
258+
* Base model "meta.llama2-13b-v1:0:4k".
259+
* @deprecated use latest version of the model
260+
*/
216261
public static readonly META_LLAMA_2_13B_V1_0_4K = new FoundationModelIdentifier('meta.llama2-13b-v1:0:4k');
217262

218-
/** Base model "meta.llama2-13b-chat-v1:0:4k". */
263+
/**
264+
* Base model "meta.llama2-13b-chat-v1:0:4k".
265+
* @deprecated use latest version of the model
266+
*/
219267
public static readonly META_LLAMA_2_13B_CHAT_V1_0_4K = new FoundationModelIdentifier('meta.llama2-13b-chat-v1:0:4k');
220268

221-
/** Base model "meta.llama2-70b-v1". */
269+
/**
270+
* Base model "meta.llama2-70b-v1".
271+
* @deprecated use latest version of the model
272+
*/
222273
public static readonly META_LLAMA_2_70B_V1 = new FoundationModelIdentifier('meta.llama2-70b-v1');
223274

224-
/** Base model "meta.llama2-70b-v1:0:4k". */
275+
/**
276+
* Base model "meta.llama2-70b-v1:0:4k".
277+
* @deprecated use latest version of the model
278+
*/
225279
public static readonly META_LLAMA_2_70B_V1_0_4K = new FoundationModelIdentifier('meta.llama2-70b-v1:0:4k');
226280

227-
/** Base model "meta.llama2-13b-chat-v1". */
281+
/**
282+
* Base model "meta.llama2-13b-chat-v1".
283+
* @deprecated use latest version of the model
284+
*/
228285
public static readonly META_LLAMA_2_CHAT_13B_V1 = new FoundationModelIdentifier('meta.llama2-13b-chat-v1');
229286

230-
/** Base model "meta.llama2-70b-chat-v1". */
287+
/**
288+
* Base model "meta.llama2-70b-chat-v1".
289+
* @deprecated use latest version of the model
290+
*/
231291
public static readonly META_LLAMA_2_CHAT_70B_V1 = new FoundationModelIdentifier('meta.llama2-70b-chat-v1');
232292

233-
/** Base model "meta.llama2-70b-chat-v1:0:4k". */
293+
/**
294+
* Base model "meta.llama2-70b-chat-v1:0:4k".
295+
* @deprecated use latest version of the model
296+
*/
234297
public static readonly META_LLAMA_2_70B_CHAT_V1_0_4K = new FoundationModelIdentifier('meta.llama2-70b-chat-v1:0:4k');
235298

236299
/** Base model "meta.llama3-8b-instruct-v1:0". */
@@ -242,9 +305,15 @@ export class FoundationModelIdentifier {
242305
/** Base model "meta.llama3-1-8b-instruct-v1:0". */
243306
public static readonly META_LLAMA_3_1_8B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-1-8b-instruct-v1:0');
244307

308+
/** Base model "meta.llama3-1-8b-instruct-v1:0:128". */
309+
public static readonly META_LLAMA_3_1_8B_INSTRUCT_V_128K = new FoundationModelIdentifier('meta.llama3-1-8b-instruct-v1:0:128k');
310+
245311
/** Base model "meta.llama3-1-70b-instruct-v1:0". */
246312
public static readonly META_LLAMA_3_1_70_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-1-70b-instruct-v1:0');
247313

314+
/** Base model "meta.llama3-1-70b-instruct-v1:0:128k". */
315+
public static readonly META_LLAMA_3_1_70_INSTRUCT_V1_128K = new FoundationModelIdentifier('meta.llama3-1-70b-instruct-v1:0:128k');
316+
248317
/** Base model "meta.llama3-1-405b-instruct-v1:0". */
249318
public static readonly META_LLAMA_3_1_405_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-1-405b-instruct-v1:0');
250319

@@ -282,15 +351,21 @@ export class FoundationModelIdentifier {
282351
public static readonly STABILITY_STABLE_DIFFUSION_XL = new FoundationModelIdentifier('stability.stable-diffusion-xl');
283352

284353
/**
285-
* Base model "stability.stable-diffusion-xl-v0".
354+
* Base model "stability.stable-diffusion-xl-v0".
286355
* @deprecated use latest version of the model
287356
*/
288357
public static readonly STABILITY_STABLE_DIFFUSION_XL_V0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v0');
289358

290-
/** Base model "stability.stable-diffusion-xl-v1". */
359+
/**
360+
* Base model "stability.stable-diffusion-xl-v1".
361+
* @deprecated use latest version of the model
362+
*/
291363
public static readonly STABILITY_STABLE_DIFFUSION_XL_V1 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1');
292364

293-
/** Base model "stability.stable-diffusion-xl-v1:0". */
365+
/**
366+
* Base model "stability.stable-diffusion-xl-v1:0".
367+
* @deprecated use latest version of the model
368+
*/
294369
public static readonly STABILITY_STABLE_DIFFUSION_XL_V1_0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1:0');
295370

296371
/** Base model "stability.sd3-large-v1:0". */

0 commit comments

Comments
 (0)