aws / aws/aws-sdk-java-v2

BedrockRuntimeClient service metadata regions using incorrect ID

Open
#4,681 2 comments 0 reactions 0 assignees View on GitHub
bug p2 service-api service:bedrock-runtime
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### Describe the bug

When calling BedrockRuntimeClient.serviceMetadata().regions() an empty array is returned however doing ServiceMetadata.of("bedrock") returns the correct expected regions

BedrockRuntimeClient.serviceMetadata() is using the SERVICE_METADATA_ID = "bedrock-runtime" however it is only possible to get the correct regions using String SERVICE_NAME = "bedrock";

### Expected Behavior

BedrockRuntimeClient.serviceMetadata().regions() returns the correct supported regions for aws bedrock

### Current Behavior

BedrockRuntimeClient.serviceMetadata().regions() returns an empty array

### Reproduction Steps

call BedrockRuntimeClient.serviceMetadata().regions()

### Possible Solution

correct the SERVICE_METADATA_ID ?

### Additional Information/Context

_No response_

### AWS Java SDK version used

2.21.17

### JDK version used

17

### Operating System and version

macOS Ventura 13.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.