aws / aws-cdk-rfcs

RFCs for the AWS CDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppSync Mapping Template Object Model

duarten opened this issue · comments

PR Champion
#177

Description

AppSync Mapping Templates apply complex transformations to incoming GraphQL requests and to the responses from the data sources. There are multiple facilities that AppSync exposes to help write them, such as variable declaration, access to a Cognito identity, etc. In the CDK, as well as in the console, they're mostly written as raw strings. We propose here a well-defined, typed interface, to make writing mapping templates less error prone, and to make the AppSync facilities discoverable.

Progress

I've been implementing the RFC contents for my company to leverage; currently modeled mostly DynamoDB APIs.

  • Tracking Issue Created
  • RFC PR Created
  • Core Team Member Assigned
  • Initial Approval / Final Comment Period
  • Ready For Implementation
    • implementation issue 1
  • Resolved

Since JS resolvers are coming, we put this on hold. Let's reopen when we have another design outlined.

Superceded by reality. We appreciate the effort that has gone into this proposal. Marking an RFCs as rejected is not a one-way door. If you have made substantial changes to the proposal, please open a new issue/RFC. You might also consider raising a PR to aws/aws-cdk directly or self-publishing to Construct Hub.