ReadWriteTimeout property missing from AmazonBedrockRuntimeConfig
- Dominant language
- C#
- Stars
- 140
- Forks
- 891
- Avg merge
- 21h 51m
- Merged PRs (30d)
- 10
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](https://docs.aws.amazon.com/sdkfornet/v4/apidocs/items/BedrockRuntime/TBedrockRuntimeConfig.html) 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 values
- Should inherit from Amazon.Runtime.ClientConfig like other AWS service configurations
- Should allow fine-grained control over read/write timeouts for Bedrock operations
```csharp
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
1. Create a new .NET project
2. Install `AWSSDK.BedrockRuntime` package (version 4.0.2 or 4.0.2.1)
3. Add the following code:
```csharp
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` version `4.0.2.1`
- **Core Package**: `AWSSDK.Core` version `4.0.0.17`
- **Issue reproduced with**: Both `4.0.2` and `4.0.2.1` versions of BedrockRuntime
### Targeted .NET Platform
.NET 9
### Operating System and version
Windows 11
Contributor guide
Research direction
Start at AmazonBedrockRuntimeConfig and its Amazon.Runtime.ClientConfig inheritance, then compare the service configuration with the documented ReadWriteTimeout property. Re-run the provided AWSSDK.BedrockRuntime 4.0.2.1 reproduction; done means the ReadWriteTimeout assignment compiles and remains available alongside the other configuration properties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100