New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cpmech/az-cdk

Package Overview
Dependencies
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpmech/az-cdk

az-cdk

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

az-cdk Constructs for the AWS CDK (AmaZon)

az-cdk implements some constructs for use with the fantastic AWS CDK tool.

Installation

yarn add @cpmech/az-cdk

Examples

Cognito

import { App, Stack } from '@aws-cdk/core';
import { CognitoConstruct } from '@cpmech/az-cdk';

const app = new App();

const stack = new Stack(app, 'CognitoStack');

const construct = new CognitoConstruct(stack, 'Cognito', {
  emailSendingAccount: 'info@mydomain.com',
  poolName: 'my-users',
});

Receive Emails (SES, SNS, and SQS)

import { App, Stack } from '@aws-cdk/core';
import { ReceiveEmailSQSConstruct } from '@cpmech/az-cdk';

const app = new App();

const stack = new Stack(app, 'EmailsStack');

new ReceiveEmailSQSConstruct(stack, 'EmailSQS', {
  ruleSetName: 'my-emails',
  emails: [
    {
      email: envars.TESTER_EMAIL,
      topic: 'my-emails',
    },
  ],
});

Lambda and API Gateway

import { App, Stack } from '@aws-cdk/cdk';
import { LambdaApi } from '@cpmech/az-cdk';

const app = new App();

const stack = new Stack(app, 'ServiceStack');

new LambdaApiConstruct(stack, 'API', {
  gatewayName: 'TestAPI',
  assetsDir: 'dist',
  cognitoId: '<cognito-user-pool-id>',
  lambdas: [
    {
      filenameKey: 'open',
      handlerName: 'open',
      httpMethods: ['GET'],
      route: 'open',
      unprotected: true,
    },
    {
      filenameKey: 'closed',
      handlerName: 'closed',
      httpMethods: ['GET'],
      route: 'closed',
    },
  ],
});

Keywords

FAQs

Package last updated on 18 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc