Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "api-change",
"description": "Supporting Request Metadata for Invoke Model and Invoke Model with Response Stream."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the word "Supporting" is a bit inconsistent with another changelog entry in this PR, and the generated CHANGELOG.md of bedrock-runtime will include something like:

# Changelog

## v0.6.1

### API Changes
* Supporting Request Metadata for Invoke Model and Invoke Model with Response Stream.
* Support system role in message.

However, since both wording come from the upstream, it shouldn't be a problem. Approving now.

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "api-change",
"description": "Support system role in message."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "api-change",
"description": "Add support for MedicalScribeBinaryAudioEvent in the Medical Scribe streaming input. This new event type lets you send audio as a raw binary payload instead of a base64-encoded value"
}
217 changes: 217 additions & 0 deletions codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,194 @@
"smithy.api#documentation": "<p>Describes the API operations for running inference using Amazon Bedrock models.</p>",
"smithy.api#httpBearerAuth": {},
"smithy.api#title": "Amazon Bedrock Runtime",
"smithy.rules#endpointBdd": {
"version": "1.1",
"parameters": {
"Region": {
"builtIn": "AWS::Region",
"required": false,
"documentation": "The AWS region used to dispatch the request.",
"type": "string"
},
"UseDualStack": {
"builtIn": "AWS::UseDualStack",
"required": true,
"default": false,
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
"type": "boolean"
},
"UseFIPS": {
"builtIn": "AWS::UseFIPS",
"required": true,
"default": false,
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
"type": "boolean"
},
"Endpoint": {
"builtIn": "SDK::Endpoint",
"required": false,
"documentation": "Override the endpoint used to send this request",
"type": "string"
}
},
"conditions": [
{
"fn": "isSet",
"argv": [
{
"ref": "Endpoint"
}
]
},
{
"fn": "isSet",
"argv": [
{
"ref": "Region"
}
]
},
{
"fn": "aws.partition",
"argv": [
{
"ref": "Region"
}
],
"assign": "PartitionResult"
},
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseFIPS"
},
true
]
},
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseDualStack"
},
true
]
},
{
"fn": "booleanEquals",
"argv": [
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsDualStack"
]
},
true
]
},
{
"fn": "booleanEquals",
"argv": [
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsFIPS"
]
},
true
]
}
],
"results": [
{
"conditions": [],
"error": "Invalid Configuration: FIPS and custom endpoint are not supported",
"type": "error"
},
{
"conditions": [],
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
"type": "error"
},
{
"conditions": [],
"endpoint": {
"url": {
"ref": "Endpoint"
},
"properties": {},
"headers": {}
},
"type": "endpoint"
},
{
"conditions": [],
"endpoint": {
"url": "https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
},
{
"conditions": [],
"endpoint": {
"url": "https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
},
{
"conditions": [],
"endpoint": {
"url": "https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
},
{
"conditions": [],
"endpoint": {
"url": "https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
},
{
"conditions": [],
"error": "Invalid Configuration: Missing Region",
"type": "error"
}
],
"root": 2,
"nodeCount": 13,
"nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED"
},
"smithy.rules#endpointRuleSet": {
"version": "1.0",
"parameters": {
Expand Down Expand Up @@ -1801,6 +1989,12 @@
"traits": {
"smithy.api#enumValue": "assistant"
}
},
"SYSTEM": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "system"
}
}
}
},
Expand Down Expand Up @@ -5336,6 +5530,13 @@
"smithy.api#documentation": "<p>Specifies the processing tier type used for serving the request.</p>",
"smithy.api#httpHeader": "X-Amzn-Bedrock-Service-Tier"
}
},
"requestMetadata": {
"target": "com.amazonaws.bedrockruntime#RequestMetadataJson",
"traits": {
"smithy.api#documentation": "<p>Key-value pairs that you can use to filter invocation logs.</p>",
"smithy.api#httpHeader": "X-Amzn-Bedrock-Request-Metadata"
}
}
},
"traits": {
Expand Down Expand Up @@ -5672,6 +5873,13 @@
"smithy.api#documentation": "<p>Specifies the processing tier type used for serving the request.</p>",
"smithy.api#httpHeader": "X-Amzn-Bedrock-Service-Tier"
}
},
"requestMetadata": {
"target": "com.amazonaws.bedrockruntime#RequestMetadataJson",
"traits": {
"smithy.api#documentation": "<p>Key-value pairs that you can use to filter invocation logs.</p>",
"smithy.api#httpHeader": "X-Amzn-Bedrock-Request-Metadata"
}
}
},
"traits": {
Expand Down Expand Up @@ -6340,6 +6548,15 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockruntime#RequestMetadataJson": {
"type": "string",
"traits": {
"smithy.api#length": {
"max": 8500
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockruntime#ResourceNotFoundException": {
"type": "structure",
"members": {
Expand Down
Loading
Loading