@gradientedge/cdk-utils 8.61.0 → 8.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +3 -0
- package/dist/src/lib/construct/api-to-lambda-target/main.js +3 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +2 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.js +2 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +2 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +2 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +1 -0
- package/dist/src/lib/construct/static-site/main.d.ts +1 -0
- package/dist/src/lib/construct/static-site/main.js +1 -0
- package/package.json +8 -3
- package/src/lib/construct/api-to-eventbridge-target/main.ts +2 -2
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +2 -2
- package/src/lib/construct/api-to-lambda-target/main.ts +3 -0
- package/src/lib/construct/graphql-api-lambda/main.ts +2 -1
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +2 -1
- package/src/lib/construct/site-with-ecs-backend/main.ts +1 -0
- package/src/lib/construct/static-site/main.ts +1 -0
package/README.md
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# Gradient Edge CDK Utils
|
|
1
|
+
# <img src="https://cdn.gradientedge.io/images/ge-logo-1200.png" width="175px" alt="Gradient Edge"> CDK Utils
|
|
4
2
|
|
|
5
3
|
[![Release][release]][release-url]
|
|
6
4
|
[![version][version]][version-url]
|
|
@@ -27,9 +25,9 @@
|
|
|
27
25
|
|
|
28
26
|
## Introduction
|
|
29
27
|
|
|
30
|
-
Toolkit for working with the [AWS CDK][aws-cdk]
|
|
28
|
+
Toolkit for working with the [AWS CDK][aws-cdk].
|
|
31
29
|
|
|
32
|
-
For more details, see
|
|
30
|
+
For more details, see the full [API documentation](https://gradientedge.github.io/cdk-utils/).
|
|
33
31
|
|
|
34
32
|
## Installation
|
|
35
33
|
|
|
@@ -8,7 +8,7 @@ import * as types from '../../types/aws';
|
|
|
8
8
|
* @subcategory construct
|
|
9
9
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
10
10
|
*
|
|
11
|
-
* <b>Architecture</b
|
|
11
|
+
* <b>Architecture</b><br/> 
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* import { ApiToEventBridgeTarget, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -22,7 +22,7 @@ import * as types from '../../types/aws';
|
|
|
22
22
|
* this.initResources()
|
|
23
23
|
* }
|
|
24
24
|
* }
|
|
25
|
-
*
|
|
25
|
+
* @mixin
|
|
26
26
|
*/
|
|
27
27
|
export declare class ApiToEventBridgeTarget extends CommonConstruct {
|
|
28
28
|
props: types.ApiToEventBridgeTargetProps;
|
|
@@ -37,7 +37,7 @@ const helper = __importStar(require("../../helper"));
|
|
|
37
37
|
* @subcategory construct
|
|
38
38
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
39
39
|
*
|
|
40
|
-
* <b>Architecture</b
|
|
40
|
+
* <b>Architecture</b><br/> 
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* import { ApiToEventBridgeTarget, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -51,7 +51,7 @@ const helper = __importStar(require("../../helper"));
|
|
|
51
51
|
* this.initResources()
|
|
52
52
|
* }
|
|
53
53
|
* }
|
|
54
|
-
*
|
|
54
|
+
* @mixin
|
|
55
55
|
*/
|
|
56
56
|
class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
57
57
|
props;
|
|
@@ -10,7 +10,7 @@ import * as types from '../../types';
|
|
|
10
10
|
* @subcategory construct
|
|
11
11
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
12
12
|
*
|
|
13
|
-
* <b>Architecture</b
|
|
13
|
+
* <b>Architecture</b><br/> 
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* import { ApiToEventBridgeTargetWithSns, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -24,7 +24,7 @@ import * as types from '../../types';
|
|
|
24
24
|
* this.initResources()
|
|
25
25
|
* }
|
|
26
26
|
* }
|
|
27
|
-
*
|
|
27
|
+
* @mixin
|
|
28
28
|
*/
|
|
29
29
|
export declare class ApiToEventBridgeTargetWithSns extends CommonConstruct {
|
|
30
30
|
props: types.ApiToEventBridgeTargetProps;
|
|
@@ -41,7 +41,7 @@ const api_destined_lambda_1 = require("./api-destined-lambda");
|
|
|
41
41
|
* @subcategory construct
|
|
42
42
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
43
43
|
*
|
|
44
|
-
* <b>Architecture</b
|
|
44
|
+
* <b>Architecture</b><br/> 
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* import { ApiToEventBridgeTargetWithSns, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -55,7 +55,7 @@ const api_destined_lambda_1 = require("./api-destined-lambda");
|
|
|
55
55
|
* this.initResources()
|
|
56
56
|
* }
|
|
57
57
|
* }
|
|
58
|
-
*
|
|
58
|
+
* @mixin
|
|
59
59
|
*/
|
|
60
60
|
class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
61
61
|
props;
|
|
@@ -2,6 +2,9 @@ import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
import { CommonConstruct } from '../../common';
|
|
4
4
|
import * as types from '../../types/aws';
|
|
5
|
+
/**
|
|
6
|
+
* @mixin
|
|
7
|
+
*/
|
|
5
8
|
export declare class ApiToLambdaTarget extends CommonConstruct {
|
|
6
9
|
props: types.ApiToLambdaTargetProps;
|
|
7
10
|
id: string;
|
|
@@ -30,6 +30,9 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
30
30
|
const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
|
|
31
31
|
const common_1 = require("../../common");
|
|
32
32
|
const helper = __importStar(require("../../helper"));
|
|
33
|
+
/**
|
|
34
|
+
* @mixin
|
|
35
|
+
*/
|
|
33
36
|
class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
34
37
|
props;
|
|
35
38
|
id;
|
|
@@ -13,7 +13,7 @@ import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from '../../types'
|
|
|
13
13
|
* @subcategory construct
|
|
14
14
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda
|
|
15
15
|
*
|
|
16
|
-
* <b>Architecture</b
|
|
16
|
+
* <b>Architecture</b><br/> 
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* import { GraphQLApiLambda, GraphQlApiLambdaProps } '@gradientedge/cdk-utils'
|
|
@@ -27,6 +27,7 @@ import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from '../../types'
|
|
|
27
27
|
* this.initResources()
|
|
28
28
|
* }
|
|
29
29
|
* }
|
|
30
|
+
* @mixin
|
|
30
31
|
*/
|
|
31
32
|
export declare class GraphQLApiLambda extends CommonConstruct {
|
|
32
33
|
props: GraphQlApiLambdaProps;
|
|
@@ -33,7 +33,7 @@ const common_1 = require("../../common");
|
|
|
33
33
|
* @subcategory construct
|
|
34
34
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda
|
|
35
35
|
*
|
|
36
|
-
* <b>Architecture</b
|
|
36
|
+
* <b>Architecture</b><br/> 
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* import { GraphQLApiLambda, GraphQlApiLambdaProps } '@gradientedge/cdk-utils'
|
|
@@ -47,6 +47,7 @@ const common_1 = require("../../common");
|
|
|
47
47
|
* this.initResources()
|
|
48
48
|
* }
|
|
49
49
|
* }
|
|
50
|
+
* @mixin
|
|
50
51
|
*/
|
|
51
52
|
class GraphQLApiLambda extends common_1.CommonConstruct {
|
|
52
53
|
/* graphql restApi props */
|
|
@@ -9,7 +9,7 @@ import { GraphQlApiLambdaWithCacheProps } from '../../types';
|
|
|
9
9
|
* @subcategory construct
|
|
10
10
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda with Caching
|
|
11
11
|
*
|
|
12
|
-
* <b>Architecture</b
|
|
12
|
+
* <b>Architecture</b><br/> 
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* import { GraphQlApiLambdaWithCacheProps } '@gradientedge/cdk-utils'
|
|
@@ -23,6 +23,7 @@ import { GraphQlApiLambdaWithCacheProps } from '../../types';
|
|
|
23
23
|
* this.initResources()
|
|
24
24
|
* }
|
|
25
25
|
* }
|
|
26
|
+
* @mixin
|
|
26
27
|
*/
|
|
27
28
|
export declare class GraphQLApiLambdaWithCache extends GraphQLApiLambda {
|
|
28
29
|
props: GraphQlApiLambdaWithCacheProps;
|
|
@@ -35,7 +35,7 @@ const utils = __importStar(require("../../utils"));
|
|
|
35
35
|
* @subcategory construct
|
|
36
36
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda with Caching
|
|
37
37
|
*
|
|
38
|
-
* <b>Architecture</b
|
|
38
|
+
* <b>Architecture</b><br/> 
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* import { GraphQlApiLambdaWithCacheProps } '@gradientedge/cdk-utils'
|
|
@@ -49,6 +49,7 @@ const utils = __importStar(require("../../utils"));
|
|
|
49
49
|
* this.initResources()
|
|
50
50
|
* }
|
|
51
51
|
* }
|
|
52
|
+
* @mixin
|
|
52
53
|
*/
|
|
53
54
|
class GraphQLApiLambdaWithCache extends __1.GraphQLApiLambda {
|
|
54
55
|
/* graphql restApi props */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.62.0",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"build:production": "rimraf dist/ && npx tsc -p tsconfig.prd.json && pnpm -r build",
|
|
31
31
|
"ci": "pnpm install --frozen-lockfile && pnpm build && pnpm validate && pnpm run docs",
|
|
32
32
|
"cz": "npx cz",
|
|
33
|
-
"docs": "
|
|
33
|
+
"override:plugin:docs": "cp theme/type-converter.js node_modules/better-docs/typescript",
|
|
34
|
+
"docs": "npx rimraf api-docs && pnpm override:plugin:docs && npx jsdoc --pedantic -c jsdoc.json .",
|
|
34
35
|
"lint": "pnpm prettify && eslint **/*.ts --cache --max-warnings=0",
|
|
35
36
|
"fix": "pnpm prettify && eslint --fix **/*.ts",
|
|
36
37
|
"prettier": "npx prettier --cache --check \"**/*.{ts,json,md}\"",
|
|
37
38
|
"prettify": "npx prettier --cache --write \"**/*.{ts,json,md}\"",
|
|
38
39
|
"test": "npx rimraf coverage && npx jest --ci --maxWorkers=100%",
|
|
39
40
|
"update:deps": "ncu -u --deep --reject react,react-dom",
|
|
40
|
-
"validate": "pnpm prettier && pnpm test"
|
|
41
|
+
"validate": "pnpm prettier && pnpm lint && pnpm test"
|
|
41
42
|
},
|
|
42
43
|
"husky": {
|
|
43
44
|
"hooks": {
|
|
@@ -68,10 +69,12 @@
|
|
|
68
69
|
"better-docs": "^2.7.2",
|
|
69
70
|
"codecov": "^3.8.3",
|
|
70
71
|
"commitizen": "^4.3.0",
|
|
72
|
+
"docdash": "^2.0.1",
|
|
71
73
|
"dotenv": "^16.0.3",
|
|
72
74
|
"eslint": "^8.40.0",
|
|
73
75
|
"eslint-config-prettier": "^8.8.0",
|
|
74
76
|
"eslint-plugin-import": "^2.27.5",
|
|
77
|
+
"eslint-plugin-jsdoc": "^44.2.4",
|
|
75
78
|
"husky": "^8.0.3",
|
|
76
79
|
"jest": "^29.5.0",
|
|
77
80
|
"jest-extended": "^3.2.4",
|
|
@@ -79,6 +82,8 @@
|
|
|
79
82
|
"jsdoc": "^4.0.2",
|
|
80
83
|
"jsdoc-babel": "^0.5.0",
|
|
81
84
|
"jsdoc-mermaid": "^1.0.0",
|
|
85
|
+
"jsdoc-to-markdown": "^8.0.0",
|
|
86
|
+
"jsdoc-plugin-typescript": "^2.2.1",
|
|
82
87
|
"prettier": "^2.8.8",
|
|
83
88
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
84
89
|
"rimraf": "^5.0.1",
|
|
@@ -15,7 +15,7 @@ import * as types from '../../types/aws'
|
|
|
15
15
|
* @subcategory construct
|
|
16
16
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
17
17
|
*
|
|
18
|
-
* <b>Architecture</b
|
|
18
|
+
* <b>Architecture</b><br/> 
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* import { ApiToEventBridgeTarget, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -29,7 +29,7 @@ import * as types from '../../types/aws'
|
|
|
29
29
|
* this.initResources()
|
|
30
30
|
* }
|
|
31
31
|
* }
|
|
32
|
-
*
|
|
32
|
+
* @mixin
|
|
33
33
|
*/
|
|
34
34
|
export class ApiToEventBridgeTarget extends CommonConstruct {
|
|
35
35
|
props: types.ApiToEventBridgeTargetProps
|
|
@@ -20,7 +20,7 @@ import { ApiDestinedLambda } from './api-destined-lambda'
|
|
|
20
20
|
* @subcategory construct
|
|
21
21
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
22
22
|
*
|
|
23
|
-
* <b>Architecture</b
|
|
23
|
+
* <b>Architecture</b><br/> 
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { ApiToEventBridgeTargetWithSns, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
|
|
@@ -34,7 +34,7 @@ import { ApiDestinedLambda } from './api-destined-lambda'
|
|
|
34
34
|
* this.initResources()
|
|
35
35
|
* }
|
|
36
36
|
* }
|
|
37
|
-
*
|
|
37
|
+
* @mixin
|
|
38
38
|
*/
|
|
39
39
|
export class ApiToEventBridgeTargetWithSns extends CommonConstruct {
|
|
40
40
|
props: types.ApiToEventBridgeTargetProps
|
|
@@ -8,6 +8,9 @@ import { CommonConstruct } from '../../common'
|
|
|
8
8
|
import * as helper from '../../helper'
|
|
9
9
|
import * as types from '../../types/aws'
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @mixin
|
|
13
|
+
*/
|
|
11
14
|
export class ApiToLambdaTarget extends CommonConstruct {
|
|
12
15
|
props: types.ApiToLambdaTargetProps
|
|
13
16
|
id: string
|
|
@@ -14,7 +14,7 @@ import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from '../../types'
|
|
|
14
14
|
* @subcategory construct
|
|
15
15
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda
|
|
16
16
|
*
|
|
17
|
-
* <b>Architecture</b
|
|
17
|
+
* <b>Architecture</b><br/> 
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* import { GraphQLApiLambda, GraphQlApiLambdaProps } '@gradientedge/cdk-utils'
|
|
@@ -28,6 +28,7 @@ import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from '../../types'
|
|
|
28
28
|
* this.initResources()
|
|
29
29
|
* }
|
|
30
30
|
* }
|
|
31
|
+
* @mixin
|
|
31
32
|
*/
|
|
32
33
|
export class GraphQLApiLambda extends CommonConstruct {
|
|
33
34
|
/* graphql restApi props */
|
|
@@ -13,7 +13,7 @@ import * as utils from '../../utils'
|
|
|
13
13
|
* @subcategory construct
|
|
14
14
|
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda with Caching
|
|
15
15
|
*
|
|
16
|
-
* <b>Architecture</b
|
|
16
|
+
* <b>Architecture</b><br/> 
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* import { GraphQlApiLambdaWithCacheProps } '@gradientedge/cdk-utils'
|
|
@@ -27,6 +27,7 @@ import * as utils from '../../utils'
|
|
|
27
27
|
* this.initResources()
|
|
28
28
|
* }
|
|
29
29
|
* }
|
|
30
|
+
* @mixin
|
|
30
31
|
*/
|
|
31
32
|
export class GraphQLApiLambdaWithCache extends GraphQLApiLambda {
|
|
32
33
|
/* graphql restApi props */
|