chore(bedrock): add Claude Opus 5, Mythos 5, and Fable 5 foundation models - #38571
Open
vishwakt wants to merge 2 commits into
Open
chore(bedrock): add Claude Opus 5, Mythos 5, and Fable 5 foundation models#38571vishwakt wants to merge 2 commits into
vishwakt wants to merge 2 commits into
Conversation
The BedrockFoundationModel class has no predefined constant for Anthropic's Claude Sonnet 5 (anthropic.claude-sonnet-5), which is generally available on Amazon Bedrock. The FoundationModelIdentifier class in aws-cdk-lib gained this model in aws#38272, but the alpha module was not updated alongside it, so referencing Claude Sonnet 5 through the L2 Bedrock constructs requires hand-constructing the model definition. Adds ANTHROPIC_CLAUDE_SONNET_5 with the same model id as the aws-cdk-lib counterpart and the same capability flags as its Sonnet predecessors (supportsAgents, supportsCrossRegion, optimizedForAgents), following the pattern of the Claude Opus 4.8 addition (aws#38038). Closes aws#38556.
…odels Adds the remaining Claude 5 family models to the predefined model constants, verified against the Amazon Bedrock model cards: - FoundationModelIdentifier (aws-cdk-lib/aws-bedrock) gains ANTHROPIC_CLAUDE_OPUS_5 (anthropic.claude-opus-5), ANTHROPIC_CLAUDE_MYTHOS_5 (anthropic.claude-mythos-5), and ANTHROPIC_CLAUDE_FABLE_5 (anthropic.claude-fable-5), following aws#38272. - BedrockFoundationModel (@aws-cdk/aws-bedrock-alpha) gains ANTHROPIC_CLAUDE_OPUS_5 and ANTHROPIC_CLAUDE_FABLE_5 with supportsAgents and supportsCrossRegion per the model cards, following aws#38038 and aws#38557. Fable 5's doc notes the provider_data_share data retention opt-in its model card requires. Mythos 5 is deliberately excluded from the alpha module: per its model card it supports neither Bedrock Agents nor Invoke/Converse (bedrock-mantle Messages API only, Preview, single region), so a BedrockFoundationModel constant would not be usable with the constructs that class serves. The plain identifier in aws-cdk-lib gives users a canonical reference. Closes aws#38570.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #38570.
Reason for this change
The Claude 5 family on Amazon Bedrock includes Claude Opus 5, Claude Fable 5, and Claude Mythos 5, none of which have predefined constants in
FoundationModelIdentifier(aws-cdk-lib/aws-bedrock) orBedrockFoundationModel(@aws-cdk/aws-bedrock-alpha). Sonnet 5 was covered by #38272 and #38557. Prompted by review feedback from @lpizzinidev on #38557.Description of changes
Verified against the Amazon Bedrock model cards:
anthropic.claude-opus-5anthropic.claude-fable-5anthropic.claude-mythos-5FoundationModelIdentifiergains all three identifiers, following chore(bedrock): add Claude Sonnet 5 foundation model identifier #38272.BedrockFoundationModelgainsANTHROPIC_CLAUDE_OPUS_5andANTHROPIC_CLAUDE_FABLE_5withsupportsAgents: true, supportsCrossRegion: trueper the model cards, following chore(bedrock-alpha): add Claude Opus 4.8 foundation model #38038 and chore(bedrock-alpha): add Claude Sonnet 5 foundation model #38557. Fable 5's docstring notes theprovider_data_sharedata retention opt-in its model card requires.BedrockFoundationModelconstant would not be usable with the constructs that class serves. The plain identifier inaws-cdk-libstill gives users a canonical reference.Describe any new or updated permissions being added
None.
Description of how you validated changes
All 534 tests in the alpha module and the aws-bedrock tests in
aws-cdk-libpass. Purely additive constants; no behavior changes. No integration test or README change, consistent with prior model-constant additions (#38038, #38557).Checklist
Credit to @lpizzinidev for flagging the missing models on #38557.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license