npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cdk-api-gateway-helper-lib

v0.0.5

Published

This package is used as a helper for API Gateway, to easily add lambda functions to an API Gateway

Readme

CDK - API Gateway Helper

This package is used as a helper for API Gateway, to easily add lambda functions to an API Gateway

API Reference

Classes

ApiGatewayHelper

Initializers

import { ApiGatewayHelper } from 'cdk-api-gateway-helper-lib'

new ApiGatewayHelper(stack: Stack, resourceName: string)

| Name | Type | Description | | --- | --- | --- | | stack | aws-cdk-lib.Stack | No description. | | resourceName | string | No description. |


stackRequired
  • Type: aws-cdk-lib.Stack

resourceNameRequired
  • Type: string

Methods

| Name | Description | | --- | --- | | addApiToGateway | No description. | | addDefaultAuthErrorResponse | No description. | | addUsagePlan | No description. | | returnGateway | No description. |


addApiToGateway
public addApiToGateway(params: IGatewayIF): Method
paramsRequired
  • Type: IGatewayIF

addDefaultAuthErrorResponse
public addDefaultAuthErrorResponse(name: string): void
nameRequired
  • Type: string

addUsagePlan
public addUsagePlan(planName: string, defaultPlan: UsagePlanProps, throttlePerMethod?: ThrottlingPerMethod[], apiKey?: IApiKey): void
planNameRequired
  • Type: string

defaultPlanRequired
  • Type: aws-cdk-lib.aws_apigateway.UsagePlanProps

throttlePerMethodOptional
  • Type: aws-cdk-lib.aws_apigateway.ThrottlingPerMethod[]

apiKeyOptional
  • Type: IApiKey

returnGateway
public returnGateway(): RestApi

Properties

| Name | Type | Description | | --- | --- | --- | | gateway | aws-cdk-lib.aws_apigateway.RestApi | No description. | | resourceName | string | No description. | | stack | aws-cdk-lib.Stack | No description. | | throttlingArr | aws-cdk-lib.aws_apigateway.ThrottlingPerMethod[] | No description. |


gatewayRequired
public readonly gateway: RestApi;
  • Type: aws-cdk-lib.aws_apigateway.RestApi

resourceNameRequired
public readonly resourceName: string;
  • Type: string

stackRequired
public readonly stack: Stack;
  • Type: aws-cdk-lib.Stack

throttlingArrRequired
public readonly throttlingArr: ThrottlingPerMethod[];
  • Type: aws-cdk-lib.aws_apigateway.ThrottlingPerMethod[]

Protocols

IApiKey

  • Implemented By: IApiKey

Properties

| Name | Type | Description | | --- | --- | --- | | key | aws-cdk-lib.aws_apigateway.IApiKey | No description. | | overrideLogicalId | string | No description. |


keyRequired
public readonly key: IApiKey;
  • Type: aws-cdk-lib.aws_apigateway.IApiKey

overrideLogicalIdRequired
public readonly overrideLogicalId: string;
  • Type: string

IGatewayIF

  • Implemented By: IGatewayIF

Properties

| Name | Type | Description | | --- | --- | --- | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | No description. | | methodType | string | No description. | | resourceName | string | No description. | | resourceVersion | string | No description. | | useApiKey | boolean | No description. | | useAuthorizer | boolean | No description. | | userPoolID | string | No description. | | pathParams | string | No description. | | throttling | aws-cdk-lib.aws_apigateway.ThrottleSettings | No description. |


lambdaFunctionRequired
public readonly lambdaFunction: IFunction;
  • Type: aws-cdk-lib.aws_lambda.IFunction

methodTypeRequired
public readonly methodType: string;
  • Type: string

resourceNameRequired
public readonly resourceName: string;
  • Type: string

resourceVersionRequired
public readonly resourceVersion: string;
  • Type: string

useApiKeyRequired
public readonly useApiKey: boolean;
  • Type: boolean

useAuthorizerRequired
public readonly useAuthorizer: boolean;
  • Type: boolean

userPoolIDRequired
public readonly userPoolID: string;
  • Type: string

pathParamsOptional
public readonly pathParams: string;
  • Type: string

throttlingOptional
public readonly throttling: ThrottleSettings;
  • Type: aws-cdk-lib.aws_apigateway.ThrottleSettings