feat(bedrock-agentcore-alpha): add StreamDeliveryResources support to Memory L2 Construct#37527
Open
matoom-nomu wants to merge 6 commits intoaws:mainfrom
Open
feat(bedrock-agentcore-alpha): add StreamDeliveryResources support to Memory L2 Construct#37527matoom-nomu wants to merge 6 commits intoaws:mainfrom
matoom-nomu wants to merge 6 commits intoaws:mainfrom
Conversation
Contributor
|
|
||||||||||||||
Contributor
|
|
||||||||||||||
584bc24 to
46a0938
Compare
added 2 commits
April 6, 2026 23:15
…emory L2 construct Add support for real-time push-based streaming of memory record lifecycle events (created, updated, deleted) to Amazon Kinesis Data Streams. closes aws#37525
46a0938 to
5bd63bd
Compare
…x/issue-37525-memory-stream-delivery
…ssRegionInferenceProfile - Remove separate integ.memory-stream-delivery test file and snapshot - Add stream delivery test case to integ.memory.ts - Fix custom strategy model to use CrossRegionInferenceProfile (us.anthropic.claude-sonnet-4) to resolve 'Bedrock model is not available in region' error - Update integ.memory snapshot with all changes
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)
None
Reason for this change
The
AWS::BedrockAgentCore::Memory L1resource now supportsStreamDeliveryResources.Description of changes
Added
StreamDeliveryContentTypeandStreamDeliveryContentLevelenumsAdded
StreamDeliveryContentConfigurationandStreamDeliveryResourceinterfaces.Both use arrays to match the CloudFormation schema, but currently enforce max length of 1 per the CFn spec.
(It seems odd that the CFn spec expects an array but caps it at max 1. I assumed this limit will be raised in a future update, so kept the array type to avoid a breaking change later.)
Added optional
streamDeliveryResourcesprop to MemoryProps (defaults to MEMORY_RECORDS + FULL_CONTENT when contentConfigurations is omitted)Added
addStreamDeliveryResource()method for post-instantiation configurationAdded
READMEdocumentation with code examplesDescribe any new or updated permissions being added
The Memory execution role is automatically granted the following permissions on each configured Kinesis Data Stream:
kinesis:ListShards,kinesis:PutRecord,kinesis:PutRecords(viastream.grantWrite())kinesis:DescribeStream(explicitly required per the setup guide Document)Description of how you validated changes
Added unit and integ test.
Note: The existing
integ.memory.tswas usingBedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0directly for custom memory strategies, which fails with "Bedrock model is not available in region" because AgentCore Memory requires a cross-region inference profile ID (e.g.us.anthropic.claude-sonnet-4-...confirmed at GUI).I fixed this by using
CrossRegionInferenceProfile.fromConfig()instead.Happy to split this change into a separate PR if preferred.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license