You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

cdk-appsync-api-gateway-resolvers

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-appsync-api-gateway-resolvers

Resolvers to map Appsync queries/mutations to API Gateway endpoints

1.36.15
latest
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created

cdk-appsync-api-gateway-resolvers

Built with
typescript 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 FeatureProvided
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.

FAQs

Package last updated on 30 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts