From 74562cafe52752757e12ca214b26372dae3d7ed2 Mon Sep 17 00:00:00 2001 From: jonathan343 Date: Tue, 10 Feb 2026 14:09:16 -0500 Subject: [PATCH 1/2] Update to the latest bedrock-runtime model and add changelog entries --- ...ange-12f9965268834a989f712d2e197da205.json | 4 + ...ange-435cebed99a34da0adfb5cb36a386d9b.json | 4 + codegen/aws-models/bedrock-runtime.json | 176 ++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-12f9965268834a989f712d2e197da205.json create mode 100644 clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-435cebed99a34da0adfb5cb36a386d9b.json diff --git a/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-12f9965268834a989f712d2e197da205.json b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-12f9965268834a989f712d2e197da205.json new file mode 100644 index 0000000..913344e --- /dev/null +++ b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-12f9965268834a989f712d2e197da205.json @@ -0,0 +1,4 @@ +{ + "type": "api-change", + "description": "Added support for extended prompt caching with one hour TTL." +} \ No newline at end of file diff --git a/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-435cebed99a34da0adfb5cb36a386d9b.json b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-435cebed99a34da0adfb5cb36a386d9b.json new file mode 100644 index 0000000..7cacca6 --- /dev/null +++ b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-api-change-435cebed99a34da0adfb5cb36a386d9b.json @@ -0,0 +1,4 @@ +{ + "type": "api-change", + "description": "Added support for structured outputs to Converse and ConverseStream APIs." +} \ No newline at end of file diff --git a/codegen/aws-models/bedrock-runtime.json b/codegen/aws-models/bedrock-runtime.json index fc1ac68..311d06a 100644 --- a/codegen/aws-models/bedrock-runtime.json +++ b/codegen/aws-models/bedrock-runtime.json @@ -1270,6 +1270,40 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.bedrockruntime#CacheDetail": { + "type": "structure", + "members": { + "ttl": { + "target": "com.amazonaws.bedrockruntime#CacheTTL", + "traits": { + "smithy.api#documentation": "

TTL duration for these cached tokens

", + "smithy.api#required": {} + } + }, + "inputTokens": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Number of tokens written to cache with this TTL (cache creation tokens)

", + "smithy.api#range": { + "min": 0 + }, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Cache creation metrics for a specific TTL duration

" + } + }, + "com.amazonaws.bedrockruntime#CacheDetailsList": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockruntime#CacheDetail" + }, + "traits": { + "smithy.api#documentation": "

List of cache details by TTL

" + } + }, "com.amazonaws.bedrockruntime#CachePointBlock": { "type": "structure", "members": { @@ -1279,6 +1313,12 @@ "smithy.api#documentation": "

Specifies the type of cache point within the CachePointBlock.

", "smithy.api#required": {} } + }, + "ttl": { + "target": "com.amazonaws.bedrockruntime#CacheTTL", + "traits": { + "smithy.api#documentation": "

Optional TTL duration for cache entries. When specified, enables extended TTL caching with the specified duration. When omitted, uses type value for caching behavior.

" + } } }, "traits": { @@ -1296,6 +1336,26 @@ } } }, + "com.amazonaws.bedrockruntime#CacheTTL": { + "type": "enum", + "members": { + "FIVE_MINUTES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "5m" + } + }, + "ONE_HOUR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "1h" + } + } + }, + "traits": { + "smithy.api#documentation": "

Time-to-live duration for ephemeral cache entries

" + } + }, "com.amazonaws.bedrockruntime#Citation": { "type": "structure", "members": { @@ -1908,6 +1968,12 @@ "traits": { "smithy.api#documentation": "

Specifies the processing tier configuration used for serving the request.

" } + }, + "outputConfig": { + "target": "com.amazonaws.bedrockruntime#OutputConfig", + "traits": { + "smithy.api#documentation": "

Output configuration for a model response.

" + } } }, "traits": { @@ -2229,6 +2295,12 @@ "traits": { "smithy.api#documentation": "

Specifies the processing tier configuration used for serving the request.

" } + }, + "outputConfig": { + "target": "com.amazonaws.bedrockruntime#OutputConfig", + "traits": { + "smithy.api#documentation": "

Output configuration for a model response.

" + } } }, "traits": { @@ -5650,6 +5722,33 @@ "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2})|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)$" } }, + "com.amazonaws.bedrockruntime#JsonSchemaDefinition": { + "type": "structure", + "members": { + "schema": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The JSON schema to constrain the model's output. For more information, see JSON Schema Reference.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of the JSON schema.

" + } + }, + "description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A description of the JSON schema.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

JSON schema structured output format options.

" + } + }, "com.amazonaws.bedrockruntime#KmsKeyId": { "type": "string", "traits": { @@ -5970,6 +6069,71 @@ } } }, + "com.amazonaws.bedrockruntime#OutputConfig": { + "type": "structure", + "members": { + "textFormat": { + "target": "com.amazonaws.bedrockruntime#OutputFormat", + "traits": { + "smithy.api#documentation": "

Structured output parameters to control the model's text response.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Output configuration for a model response in a call to Converse or ConverseStream.

" + } + }, + "com.amazonaws.bedrockruntime#OutputFormat": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.bedrockruntime#OutputFormatType", + "traits": { + "smithy.api#documentation": "

The type of structured output format.

", + "smithy.api#required": {} + } + }, + "structure": { + "target": "com.amazonaws.bedrockruntime#OutputFormatStructure", + "traits": { + "smithy.api#documentation": "

The structure that the model's output must adhere to.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Structured output parameters to control the model's response.

" + } + }, + "com.amazonaws.bedrockruntime#OutputFormatStructure": { + "type": "union", + "members": { + "jsonSchema": { + "target": "com.amazonaws.bedrockruntime#JsonSchemaDefinition", + "traits": { + "smithy.api#documentation": "

A JSON schema structure that the model's output must adhere to.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The structure that the model's output must adhere to.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockruntime#OutputFormatType": { + "type": "enum", + "members": { + "JSON_SCHEMA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "json_schema" + } + } + }, + "traits": { + "smithy.api#documentation": "

The type of structured output format. Available options are: json_schema.

" + } + }, "com.amazonaws.bedrockruntime#PaginationToken": { "type": "string", "traits": { @@ -6820,6 +6984,12 @@ "min": 0 } } + }, + "cacheDetails": { + "target": "com.amazonaws.bedrockruntime#CacheDetailsList", + "traits": { + "smithy.api#documentation": "

Detailed breakdown of cache writes by TTL. Empty if no cache creation occurred. Sorted by TTL duration (1h before 5m).

" + } } }, "traits": { @@ -7110,6 +7280,12 @@ "smithy.api#documentation": "

The input schema for the tool in JSON format.

", "smithy.api#required": {} } + }, + "strict": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Flag to enable structured output enforcement on a tool usage response.

" + } } }, "traits": { From 65a6e4034edc2033f8cd38c1a2062559c2cd60e0 Mon Sep 17 00:00:00 2001 From: jonathan343 Date: Tue, 10 Feb 2026 15:00:15 -0500 Subject: [PATCH 2/2] Backfill changlog entries for Google-style docstring migration --- ...-runtime-enhancement-ba0310435c33445295009674f239001b.json | 4 ++++ ...me-http2-enhancement-5857698a440c4354a68b20610d4117ed.json | 4 ++++ ...treaming-enhancement-794a4e99c7e7493195a0ed7f4d2f464e.json | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-enhancement-ba0310435c33445295009674f239001b.json create mode 100644 clients/aws-sdk-sagemaker-runtime-http2/.changes/next-release/aws-sdk-sagemaker-runtime-http2-enhancement-5857698a440c4354a68b20610d4117ed.json create mode 100644 clients/aws-sdk-transcribe-streaming/.changes/next-release/aws-sdk-transcribe-streaming-enhancement-794a4e99c7e7493195a0ed7f4d2f464e.json diff --git a/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-enhancement-ba0310435c33445295009674f239001b.json b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-enhancement-ba0310435c33445295009674f239001b.json new file mode 100644 index 0000000..884e609 --- /dev/null +++ b/clients/aws-sdk-bedrock-runtime/.changes/next-release/aws-sdk-bedrock-runtime-enhancement-ba0310435c33445295009674f239001b.json @@ -0,0 +1,4 @@ +{ + "type": "enhancement", + "description": "Update package docstrings from Sphinx style to Google style for improved readability and consistency with Python community standards. ([#48](https://github.com/awslabs/aws-sdk-python/pull/48)" +} diff --git a/clients/aws-sdk-sagemaker-runtime-http2/.changes/next-release/aws-sdk-sagemaker-runtime-http2-enhancement-5857698a440c4354a68b20610d4117ed.json b/clients/aws-sdk-sagemaker-runtime-http2/.changes/next-release/aws-sdk-sagemaker-runtime-http2-enhancement-5857698a440c4354a68b20610d4117ed.json new file mode 100644 index 0000000..884e609 --- /dev/null +++ b/clients/aws-sdk-sagemaker-runtime-http2/.changes/next-release/aws-sdk-sagemaker-runtime-http2-enhancement-5857698a440c4354a68b20610d4117ed.json @@ -0,0 +1,4 @@ +{ + "type": "enhancement", + "description": "Update package docstrings from Sphinx style to Google style for improved readability and consistency with Python community standards. ([#48](https://github.com/awslabs/aws-sdk-python/pull/48)" +} diff --git a/clients/aws-sdk-transcribe-streaming/.changes/next-release/aws-sdk-transcribe-streaming-enhancement-794a4e99c7e7493195a0ed7f4d2f464e.json b/clients/aws-sdk-transcribe-streaming/.changes/next-release/aws-sdk-transcribe-streaming-enhancement-794a4e99c7e7493195a0ed7f4d2f464e.json new file mode 100644 index 0000000..884e609 --- /dev/null +++ b/clients/aws-sdk-transcribe-streaming/.changes/next-release/aws-sdk-transcribe-streaming-enhancement-794a4e99c7e7493195a0ed7f4d2f464e.json @@ -0,0 +1,4 @@ +{ + "type": "enhancement", + "description": "Update package docstrings from Sphinx style to Google style for improved readability and consistency with Python community standards. ([#48](https://github.com/awslabs/aws-sdk-python/pull/48)" +}