feat(appsync): add L2 constuct for AppSync#4438
feat(appsync): add L2 constuct for AppSync#4438mergify[bot] merged 19 commits intoaws:masterfrom hoegertn:appsync-l2
Conversation
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@hoegertn - hey, thanks for getting the ball rolling. I'll take a look and start getting my thoughts together as we work through these. While I ramp up, are there specific use cases with AppSync we're aiming to start with? Or resources that are challenging to use? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Hi, I started with datasources of type DynamoDB and Lambda, but I can provide the rest if the architecture is ok. The main features/benefits are:
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@shivlaks Do you think we can proceed here? I would love to have this in a release any time soon, as I am using this for several projects already. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
shivlaks
left a comment
There was a problem hiding this comment.
this is a great start, what areas did you want to cover first. I think it's better to start small and vet it's usage. Would the DynamoDB data source be a good choice?
| }); | ||
| const customerDS = api.addDynamoDbDataSource('Customer', 'The customer data source', customerTable); | ||
| customerDS.createResolver({ | ||
| typeName: 'Query', |
There was a problem hiding this comment.
are these something we'd want in an enum? I'm assuming they're finite & have a few values that are valid
There was a problem hiding this comment.
THis is a free text and could be anything the user wants
There was a problem hiding this comment.
good point, finally started reading the user guide to get caught up here
| }, | ||
| userPoolConfig: { | ||
| userPool, | ||
| defaultAction: UserPoolDefaultAction.ALLOW, |
There was a problem hiding this comment.
is this required / what would the default be?
| requestMappingTemplate: MappingTemplate.dynamoDbGetItem('id', 'id'), | ||
| responseMappingTemplate: MappingTemplate.dynamoDbResultItem(), |
There was a problem hiding this comment.
I believe these could also point to an S3 location or accept them directly as string right?
There was a problem hiding this comment.
You can also write MappingTemplate.fromFile() or MappingTemplate.fromString()
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@shivlaks can we get this merged? |
|
I merged in the latest release. It would be great if we could get this into master. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@hoegertn LTGM. hang tight, we'll start merging community contributions again in a couple days! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request is now being automatically merged. |
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@shivlaks Hi, can you please approve again? I had to merge master in, due to conflicts. |
|
@hoegertn - done, excited to start growing this L2 and filling in the rest! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Add L2 constructs for AppSync
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license