Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@condensetech/cdk-lib

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@condensetech/cdk-lib - npm Package Compare versions

Comparing version 0.0.23 to 0.0.30

dist/constructs/monitoring/abstract-monitoring-aspect.d.ts

1

dist/constructs/index.d.ts

@@ -6,1 +6,2 @@ export * from './networking';

export * from './entrypoint';
export * from './monitoring';

3

dist/constructs/index.js

@@ -22,2 +22,3 @@ "use strict";

__exportStar(require("./entrypoint"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29uc3RydWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsK0NBQTZCO0FBQzdCLHlFQUF1RDtBQUN2RCxzREFBb0M7QUFDcEMsbURBQWlDO0FBQ2pDLCtDQUE2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbmV0d29ya2luZyc7XG5leHBvcnQgKiBmcm9tICcuL25haXZlLWJhc2ljLWF1dGgtY2xvdWRmcm9udC1mdW5jdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2RhdGFiYXNlLWluc3RhbmNlJztcbmV4cG9ydCAqIGZyb20gJy4vYXVyb3JhLWNsdXN0ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9lbnRyeXBvaW50JztcbiJdfQ==
__exportStar(require("./monitoring"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29uc3RydWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsK0NBQTZCO0FBQzdCLHlFQUF1RDtBQUN2RCxzREFBb0M7QUFDcEMsbURBQWlDO0FBQ2pDLCtDQUE2QjtBQUM3QiwrQ0FBNkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL25ldHdvcmtpbmcnO1xuZXhwb3J0ICogZnJvbSAnLi9uYWl2ZS1iYXNpYy1hdXRoLWNsb3VkZnJvbnQtZnVuY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9kYXRhYmFzZS1pbnN0YW5jZSc7XG5leHBvcnQgKiBmcm9tICcuL2F1cm9yYS1jbHVzdGVyJztcbmV4cG9ydCAqIGZyb20gJy4vZW50cnlwb2ludCc7XG5leHBvcnQgKiBmcm9tICcuL21vbml0b3JpbmcnO1xuIl19

@@ -6,3 +6,6 @@ import { Construct } from 'constructs';

import { IDatabase } from '../interfaces';
export type AuroraClusterStackProps = AuroraClusterProps & cdk.StackProps;
import { MonitoringFacadeProps } from '../constructs/monitoring/monitoring-facade';
export interface AuroraClusterStackProps extends AuroraClusterProps, cdk.StackProps {
monitoring?: MonitoringFacadeProps;
}
export declare class AuroraClusterStack extends cdk.Stack implements IDatabase {

@@ -9,0 +12,0 @@ private readonly construct;

@@ -6,8 +6,10 @@ "use strict";

const constructs_1 = require("../constructs");
const monitoring_facade_1 = require("../constructs/monitoring/monitoring-facade");
class AuroraClusterStack extends cdk.Stack {
constructor(scope, id, props) {
super(scope, id, props);
this.construct = new constructs_1.AuroraCluster(this, 'DatabaseCluster', {
...props,
});
this.construct = new constructs_1.AuroraCluster(this, 'DatabaseCluster', props);
if (props.monitoring) {
new monitoring_facade_1.MonitoringFacade(this, props.monitoring);
}
}

@@ -25,2 +27,2 @@ get endpoint() {

exports.AuroraClusterStack = AuroraClusterStack;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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CBpZCwgcHJvcHMpO1xuICAgIHRoaXMuY29uc3RydWN0ID0gbmV3IEF1cm9yYUNsdXN0ZXIodGhpcywgJ0RhdGFiYXNlQ2x1c3RlcicsIHByb3BzKTtcbiAgICBpZiAocHJvcHMubW9uaXRvcmluZykge1xuICAgICAgbmV3IE1vbml0b3JpbmdGYWNhZGUodGhpcywgcHJvcHMubW9uaXRvcmluZyk7XG4gICAgfVxuICB9XG5cbiAgZ2V0IGVuZHBvaW50KCk6IHJkcy5FbmRwb2ludCB7XG4gICAgcmV0dXJuIHRoaXMuY29uc3RydWN0LmVuZHBvaW50O1xuICB9XG5cbiAgZ2V0IGNvbm5lY3Rpb25zKCk6IGVjMi5Db25uZWN0aW9ucyB7XG4gICAgcmV0dXJuIHRoaXMuY29uc3RydWN0LmNvbm5lY3Rpb25zO1xuICB9XG5cbiAgcHVibGljIGZldGNoU2VjcmV0KHNjb3BlOiBDb25zdHJ1Y3QsIGlkPzogc3RyaW5nIHwgdW5kZWZpbmVkKTogc20uSVNlY3JldCB7XG4gICAgcmV0dXJuIHRoaXMuY29uc3RydWN0LmZldGNoU2VjcmV0KHNjb3BlLCBpZCk7XG4gIH1cbn1cbiJdfQ==

@@ -6,3 +6,6 @@ import { Construct } from 'constructs';

import { IDatabase } from '../interfaces';
export type DatabaseInstanceStackProps = DatabaseInstanceProps & cdk.StackProps;
import { MonitoringFacadeProps } from '../constructs/monitoring/monitoring-facade';
export interface DatabaseInstanceStackProps extends DatabaseInstanceProps, cdk.StackProps {
monitoring?: MonitoringFacadeProps;
}
export declare class DatabaseInstanceStack extends cdk.Stack implements IDatabase {

@@ -9,0 +12,0 @@ private readonly construct;

@@ -6,8 +6,10 @@ "use strict";

const constructs_1 = require("../constructs");
const monitoring_facade_1 = require("../constructs/monitoring/monitoring-facade");
class DatabaseInstanceStack extends cdk.Stack {
constructor(scope, id, props) {
super(scope, id, props);
this.construct = new constructs_1.DatabaseInstance(this, 'Database', {
...props,
});
this.construct = new constructs_1.DatabaseInstance(this, 'Database', props);
if (props.monitoring) {
new monitoring_facade_1.MonitoringFacade(this, props.monitoring);
}
}

@@ -25,2 +27,2 @@ get endpoint() {

exports.DatabaseInstanceStack = DatabaseInstanceStack;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWJhc2UtaW5zdGFuY2Utc3RhY2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvc3RhY2tzL2RhdGFiYXNlLWluc3RhbmNlLXN0YWNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLG1DQUFtQztBQUVuQyw4Q0FBd0U7QUFLeEUsTUFBYSxxQkFBc0IsU0FBUSxHQUFHLENBQUMsS0FBSztJQUdsRCxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWlDO1FBQ3pFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBQ3hCLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSw2QkFBZ0IsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ3RELEdBQUcsS0FBSztTQUNULENBQUMsQ0FBQztJQUNMLENBQUM7SUFFRCxJQUFJLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDO0lBQ2pDLENBQUM7SUFFRCxJQUFJLFdBQVc7UUFDYixPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDO0lBQ3BDLENBQUM7SUFFTSxXQUFXLENBQUMsS0FBZ0IsRUFBRSxFQUF1QjtRQUMxRCxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztJQUMvQyxDQUFDO0NBQ0Y7QUFyQkQsc0RBcUJDIiwic291cmNlc0NvbnRlbnQiOlsiaW1w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mFzZSB7XG4gIHByaXZhdGUgcmVhZG9ubHkgY29uc3RydWN0OiBJRGF0YWJhc2U7XG5cbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM6IERhdGFiYXNlSW5zdGFuY2VTdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG4gICAgdGhpcy5jb25zdHJ1Y3QgPSBuZXcgRGF0YWJhc2VJbnN0YW5jZSh0aGlzLCAnRGF0YWJhc2UnLCBwcm9wcyk7XG4gICAgaWYgKHByb3BzLm1vbml0b3JpbmcpIHtcbiAgICAgIG5ldyBNb25pdG9yaW5nRmFjYWRlKHRoaXMsIHByb3BzLm1vbml0b3JpbmcpO1xuICAgIH1cbiAgfVxuXG4gIGdldCBlbmRwb2ludCgpOiByZHMuRW5kcG9pbnQge1xuICAgIHJldHVybiB0aGlzLmNvbnN0cnVjdC5lbmRwb2ludDtcbiAgfVxuXG4gIGdldCBjb25uZWN0aW9ucygpOiBlYzIuQ29ubmVjdGlvbnMge1xuICAgIHJldHVybiB0aGlzLmNvbnN0cnVjdC5jb25uZWN0aW9ucztcbiAgfVxuXG4gIHB1YmxpYyBmZXRjaFNlY3JldChzY29wZTogQ29uc3RydWN0LCBpZD86IHN0cmluZyB8IHVuZGVmaW5lZCk6IHNtLklTZWNyZXQge1xuICAgIHJldHVybiB0aGlzLmNvbnN0cnVjdC5mZXRjaFNlY3JldChzY29wZSwgaWQpO1xuICB9XG59XG4iXX0=

@@ -6,3 +6,6 @@ import { Stack, StackProps } from 'aws-cdk-lib';

import { IEntrypoint } from '../interfaces';
export type EntrypointStackProps = EntrypointProps & StackProps;
import { MonitoringFacadeProps } from '../constructs/monitoring/monitoring-facade';
export interface EntrypointStackProps extends EntrypointProps, StackProps {
monitoring?: MonitoringFacadeProps;
}
export declare class EntrypointStack extends Stack implements IEntrypoint {

@@ -9,0 +12,0 @@ private readonly construct;

@@ -6,2 +6,3 @@ "use strict";

const entrypoint_1 = require("../constructs/entrypoint");
const monitoring_facade_1 = require("../constructs/monitoring/monitoring-facade");
class EntrypointStack extends aws_cdk_lib_1.Stack {

@@ -11,2 +12,5 @@ constructor(scope, id, props) {

this.construct = new entrypoint_1.Entrypoint(this, 'Entrypoint', props);
if (props.monitoring) {
new monitoring_facade_1.MonitoringFacade(this, props.monitoring);
}
}

@@ -24,2 +28,2 @@ get alb() {

exports.EntrypointStack = EntrypointStack;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnlwb2ludC1zdGFjay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9zdGFja3MvZW50cnlwb2ludC1zdGFjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2Q0FBZ0Q7QUFHaEQseURBQXVFO0FBS3ZFLE1BQWEsZUFBZ0IsU0FBUSxtQkFBSztJQUd4QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTJCO1FBQ25FLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBQ3hCLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSx1QkFBVSxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDN0QsQ0FBQztJQUVELElBQUksR0FBRztRQUNMLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUM7SUFDNUIsQ0FBQztJQUVELElBQUksVUFBVTtRQUNaLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUM7SUFDbkMsQ0FBQztJQUVELGlCQUFpQixDQUFDLEtBQWdCLEVBQUUsRUFBVTtRQUM1QyxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsaUJBQWlCLENBQUMsS0FBSyxFQUF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ICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wczogRW50cnlwb2ludFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcbiAgICB0aGlzLmNvbnN0cnVjdCA9IG5ldyBFbnRyeXBvaW50KHRoaXMsICdFbnRyeXBvaW50JywgcHJvcHMpO1xuICAgIGlmIChwcm9wcy5tb25pdG9yaW5nKSB7XG4gICAgICBuZXcgTW9uaXRvcmluZ0ZhY2FkZSh0aGlzLCBwcm9wcy5tb25pdG9yaW5nKTtcbiAgICB9XG4gIH1cblxuICBnZXQgYWxiKCk6IGVsYi5JQXBwbGljYXRpb25Mb2FkQmFsYW5jZXIge1xuICAgIHJldHVybiB0aGlzLmNvbnN0cnVjdC5hbGI7XG4gIH1cblxuICBnZXQgZG9tYWluTmFtZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmNvbnN0cnVjdC5kb21haW5OYW1lO1xuICB9XG5cbiAgcmVmZXJlbmNlTGlzdGVuZXIoc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZyk6IGVsYi5JQXBwbGljYXRpb25MaXN0ZW5lciB7XG4gICAgcmV0dXJuIHRoaXMuY29uc3RydWN0LnJlZmVyZW5jZUxpc3RlbmVyKHNjb3BlLCBpZCk7XG4gIH1cbn1cbiJdfQ==
{
"name": "@condensetech/cdk-lib",
"version": "0.0.23",
"version": "0.0.30",
"main": "dist/index.js",

@@ -43,2 +43,2 @@ "types": "dist/index.d.ts",

}
}
}

@@ -55,1 +55,30 @@ # Condense Opinionated CDK Library

[NaiveBasicAuthCloudfrontFunction](lib/constructs/naive-basic-auth-cloudfront-function.ts) is useful when a basic protection layer must be added to Cloudfront (for SPAs or static sites) and you just need to avoid crawlers and unwanted visitors.
### Monitoring Facade
By instantiating this class in a stack, it ensures all resources are properly monitored by CloudWatch.
Further configuration can be done by `.of` method.
```ts
class Stack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const monitoring = new MonitoringFacade(this, 'Monitoring');
const construct = new MyConstruct(this, 'MyConstruct');
}
}
export class MyConstruct extends Construct {
constructor(scope: Construct, id: string) {
super(scope, id);
const elb = new elbv2.ApplicationLoadBalancer(this, 'ALB', {
...
});
MonitoringFacade.of(this).configAppliationLoadBalancer(elb, {
target5xxErrorsThreshold: 1,
});
}
}
```
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