-
Notifications
You must be signed in to change notification settings - Fork 868
Open
Labels
bugThis issue is a bug.This issue is a bug.documentationThis is a problem with documentation.This is a problem with documentation.p1This is a high priority issueThis is a high priority issuequeued
Description
Describe the bug
When attempting to configure AmazonBedrockRuntimeConfig with the ReadWriteTimeout property as shown in the official documentation, the compiler throws an error stating that the property does not exist. The AWS SDK documentation clearly states this property should be inherited from Amazon.Runtime.ClientConfig, but it's not accessible in practice.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
The ReadWriteTimeout property should be available on AmazonBedrockRuntimeConfig as documented:
- Property should be settable with System.Nullable<System.TimeSpan> values
- Should inherit from Amazon.Runtime.ClientConfig like other AWS service configurations
- Should allow fine-grained control over read/write timeouts for Bedrock operations
var config = new AmazonBedrockRuntimeConfig
{
RegionEndpoint = RegionEndpoint.USEast1,
Timeout = TimeSpan.FromMinutes(20),
MaxErrorRetry = 3,
RetryMode = Amazon.Runtime.RequestRetryMode.Adaptive,
ReadWriteTimeout = TimeSpan.FromMinutes(20), // This should work
};
Current Behavior
Compilation fails with the following error:
CS0117: 'AmazonBedrockRuntimeConfig' does not contain a definition for 'ReadWriteTimeout'
The property is completely unavailable, forcing developers to remove it and rely only on the general Timeout property, which may not provide adequate control for long-running AI model inference requests.
Reproduction Steps
- Create a new .NET project
- Install
AWSSDK.BedrockRuntime
package (version 4.0.2 or 4.0.2.1) - Add the following code:
using Amazon;
using Amazon.BedrockRuntime;
var config = new AmazonBedrockRuntimeConfig
{
RegionEndpoint = RegionEndpoint.USEast1,
Timeout = TimeSpan.FromMinutes(10),
ReadWriteTimeout = TimeSpan.FromMinutes(20), // Compilation error here
};
var client = new AmazonBedrockRuntimeClient(config);
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
- Primary Package:
AWSSDK.BedrockRuntime
version4.0.2.1
- Core Package:
AWSSDK.Core
version4.0.0.17
- Issue reproduced with: Both
4.0.2
and4.0.2.1
versions of BedrockRuntime
Targeted .NET Platform
.NET 9
Operating System and version
Windows 11
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.documentationThis is a problem with documentation.This is a problem with documentation.p1This is a high priority issueThis is a high priority issuequeued