- Newest
- Most votes
- Most comments
Based on the available information, the CachePointBlock's ttl attribute is an optional field that enables extended TTL caching with specified durations of either "5m" or "1h". When the ttl is omitted, the CachePointBlock uses the type value for caching behavior instead.
However, I don't have specific information about why the JavaScript v3 SDK's TypeScript definitions might not include the ttl attribute in the CachePointBlock interface, even though it's documented in the API reference. This could be due to several possibilities:
- The SDK version you're using may not yet include support for the ttl attribute if it was added more recently to the Bedrock API
- There may be a lag between API feature releases and SDK updates
- The feature might be in a preview or limited availability state
I'd recommend checking if you're using the latest version of the @aws-sdk/client-bedrock-runtime package, as updating to the most recent version may resolve this discrepancy. If the issue persists with the latest SDK version, you may want to file an issue with the AWS SDK for JavaScript repository on GitHub, as this would represent a gap between the documented API capabilities and the SDK's type definitions.
Sources
CachePointBlock - Amazon Bedrock
CacheDetail - Amazon Bedrock
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago

My bad. I should have checked the version first! Thanks AI! ;-)