Nonsense Placement Mandatory
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

cdk-appsync-api-gateway-resolvers

1.36.14 • Public • Published

cdk-appsync-api-gateway-resolvers

Built withtypescript version dependants license

Resolvers to map Appsync queries/mutations to API Gateway endpoints

Example Useage

const resolverRole = new ApiGatewayResolverRole(
  this,
  'groupResolverRole',
  legacyApiArn
);
 
const dataSource = new ApiGatewayDataSource(this, 'groupDataSource', {
  apiId,
  httpEndpoint: legacyApiDomain,
  serviceRoleArn: resolverRole.roleArn,
});
 
new GetResolver(this, {
  apiId,
  dataSourceName: dataSource.attrName,
  apiStage: stageName,
  apiPath: 'groups',
  fieldName: 'group',
  responseMappingTemplatePath: join(
    __dirname,
    '../resolvers/getGroupResponse.vtl'
  ),
});

Checklist

CD Feature Provided
Typescript
Linting (AirBnB + Prettier)
Unit tests (Jest)
Coverage check (ideally 100% with Jest)
Github Continuous Deployment

Built by Skyhook

This module is contributed by the team at Skyhook.

Install

npm i cdk-appsync-api-gateway-resolvers

DownloadsWeekly Downloads

3

Version

1.36.14

License

MIT

Unpacked Size

116 kB

Total Files

42

Last publish

Collaborators

  • avatar