From df0bba9e973a00c9f41f7363127f47e91677d435 Mon Sep 17 00:00:00 2001 From: mazyu36 Date: Fri, 6 Sep 2024 01:38:23 +0900 Subject: [PATCH] feat(bedrock): add Stable Image Ultra, Stable Diffusion 3 Large, and Stable Image Core model identifiers (#31327) Add new foundation model. Ref: * https://aws.amazon.com/about-aws/whats-new/2024/09/stability-ais-text-to-image-models-amazon-bedrock/ * https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html ### 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* --- packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts index fd1881119b336..6d58fee9c0f5b 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -239,6 +239,15 @@ export class FoundationModelIdentifier { /** Base model "stability.stable-diffusion-xl-v1:0". */ public static readonly STABILITY_STABLE_DIFFUSION_XL_V1_0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1:0'); + /** Base model "stability.sd3-large-v1:0". */ + public static readonly STABILITY_SD3_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-large-v1:0'); + + /** Base model "stability.stable-image-ultra-v1:0". */ + public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_0 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:0'); + + /** Base model "stability.stable-image-core-v1:0". */ + public static readonly STABILITY_STABLE_IMAGE_CORE_V1_0 = new FoundationModelIdentifier('stability.stable-image-core-v1:0'); + /** * Constructor for foundation model identifier * @param modelId the model identifier