Skip to content

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

Open
avichaym wants to merge 1 commit into
apache:mainfrom
avichaym:feature/aws-resource-names
Open

[FLINK-AGENTS][api] Add ResourceName constants for AWS integrations#679
avichaym wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

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)

1 participant