Skip to content

ReadWriteTimeout property missing from AmazonBedrockRuntimeConfig #3938

@amaralenzo

Description

@amaralenzo

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

  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:
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.documentationThis is a problem with documentation.p1This is a high priority issuequeued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions