Skip to content

[FLINK-AGENTS][api] Add ResourceName constants for AWS integrations#679

Merged
wenjin272 merged 1 commit into
apache:mainfrom
avichaym:feature/aws-resource-names
May 15, 2026
Merged

[FLINK-AGENTS][api] Add ResourceName constants for AWS integrations#679
wenjin272 merged 1 commit into
apache:mainfrom
avichaym:feature/aws-resource-names

Conversation

@avichaym
Copy link
Copy Markdown
Contributor

fixes #675

Adds the missing constants so AWS integrations match every other built-in provider:

ResourceName.ChatModel.BEDROCK_CONNECTION / BEDROCK_SETUP
ResourceName.EmbeddingModel.BEDROCK_CONNECTION / BEDROCK_SETUP
ResourceName.VectorStore.OPENSEARCH_VECTOR_STORE
ResourceName.VectorStore.S3_VECTORS_VECTOR_STORE

Plus matching Python-side entries for cross-language usage.

The Bedrock chat / Bedrock embedding (PR apache#534) and OpenSearch /
S3 Vectors (PR apache#533) integrations were merged without ResourceName
constants. Users currently have to reference these implementations
via fully-qualified class name strings, e.g.

    BedrockChatModelConnection.class.getName()

while every other built-in provider gets a constant under
ResourceName, e.g.

    ResourceName.ChatModel.OLLAMA_CONNECTION

Add the missing constants so AWS integrations match the established
pattern, both for Java agents:

    ResourceName.ChatModel.BEDROCK_CONNECTION / BEDROCK_SETUP
    ResourceName.EmbeddingModel.BEDROCK_CONNECTION / BEDROCK_SETUP
    ResourceName.VectorStore.OPENSEARCH_VECTOR_STORE
    ResourceName.VectorStore.S3_VECTORS_VECTOR_STORE

and Python agents using these via the cross-language wrapper:

    ResourceName.ChatModel.Java.BEDROCK_CONNECTION / BEDROCK_SETUP
    ResourceName.EmbeddingModel.Java.BEDROCK_CONNECTION / BEDROCK_SETUP
    ResourceName.VectorStore.Java.OPENSEARCH_VECTOR_STORE
    ResourceName.VectorStore.Java.S3_VECTORS_VECTOR_STORE

This is purely additive; existing code that references the FQCN
string continues to work unchanged.
@github-actions github-actions Bot added doc-label-missing The Bot applies this label either because none or multiple labels were provided. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue. labels May 14, 2026
@wenjin272 wenjin272 added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing The Bot applies this label either because none or multiple labels were provided. labels May 15, 2026
Copy link
Copy Markdown
Collaborator

@wenjin272 wenjin272 left a comment

Choose a reason for hiding this comment

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

LGTM

@wenjin272 wenjin272 merged commit 8174771 into apache:main May 15, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tech Debt] Adding ResourceName constants for AWS integrations (Bedrock, OpenSearch, S3 Vectors)

2 participants