1.0.15 • Published 2 years ago

@climatehub/cdk-constructs v1.0.15

Weekly downloads
28
License
ISC
Repository
github
Last release
2 years ago

What is this?

Stores cdk constructs useful in constructing our services.

Installation

npm install @climatehub/cdk-constructs

Example Usage

import {SingleLambdaBackedRestApi} from '@climatehub/cdk-constructs';

const restApi = new SingleLambdaBackedRestApi(this, 'rest-api', {
  restApiName: `${props.domain}-rest-api`,
  handler: apiHandlerLambda,
  corsEnabled: true,
  loggingOptions: {
    accessLoggingEnabled: true,
    dataTraceEnabled: true,
    metricsEnabled: true,
    tracingEnabled: true,
  },
  resources: new Map<string, string[]>([
    ['/help/contact', ['POST']],
    ['/account', ['GET', 'POST']],
    ['/login', ['POST']],
    ['/logout', ['POST']],
    ['/company', ['POST']],
    ['/investor', ['POST']],
    ['/company/profile/{profileId}', ['PUT']],
    ['/investor/profile/{profileId}', ['PUT']],
    ['/company/account/{accountId}/profile/{profileId}', ['GET']],
    ['/investor/account/{accountId}/profile/{profileId}', ['GET']],
    ['/feedPost', ['POST', 'PUT', 'DELETE']],
    ['/feedPost/{feedPostId}/likedStatus', ['POST']],
    ['/feedPost/{feedPostId}/comment', ['POST', 'PUT', 'DELETE']],
    ['/feedPosts', ['GET']],
    ['/query/companies', ['POST']],
    ['/query/investors', ['POST']]
  ])
});
1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

3 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago