aws / aws/aws-cdk

(aws-appsync): Introduce `addBedrockDataSource()` to `GraphqlApi`

Open
#34,265 3 comments 1 reaction 0 assignees View on GitHub
@aws-cdk/aws-appsync effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Last re:Invent, [AppSync added data source integration for Bedrock](https://aws.amazon.com/about-aws/whats-new/2024/11/aws-appsync-ai-gateway-bedrock-integration-appsync-graphql/), but this functionality has not yet been added to the `GraphqlApi` construct.

### Use Case

- Create AI/ML powered GraphQL APIs
- Simplify integration between GraphQL and generative AI features
- Enable streamlined development of AI-enhanced applications

### Proposed Solution

Add a new method to the `GraphqlApi` construct:

```typescript
addBedrockDataSource(id: string, props: BedrockDataSourceProps): BedrockDataSource
```

This would allow developers to easily connect their AppSync GraphQL APIs with Amazon Bedrock models.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.190.0

### Environment details (OS name and version, etc.)

Ubuntu 24.04

Contributor guide

Open the contributing guide

Research direction

The issue names the GraphqlApi construct but no source files or tests. Start at GraphqlApi and inspect how existing data-source methods are exposed, then trace the AppSync and Bedrock resource types needed for the proposed signature. Done means GraphqlApi provides addBedrockDataSource(id, props) and the construct behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql, typescript
Domain
api, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.