@gradientedge/cdk-utils 8.60.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.
Files changed (31) hide show
  1. package/README.md +3 -5
  2. package/app/api-destined-function/node_modules/.bin/rimraf +4 -4
  3. package/app/api-destined-function/package.json +1 -1
  4. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +2 -2
  5. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +2 -2
  6. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +2 -2
  7. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +2 -2
  8. package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +3 -0
  9. package/dist/src/lib/construct/api-to-lambda-target/main.js +3 -0
  10. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +2 -1
  11. package/dist/src/lib/construct/graphql-api-lambda/main.js +2 -1
  12. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +2 -1
  13. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +2 -1
  14. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -0
  15. package/dist/src/lib/construct/site-with-ecs-backend/main.js +1 -0
  16. package/dist/src/lib/construct/static-site/main.d.ts +1 -0
  17. package/dist/src/lib/construct/static-site/main.js +1 -0
  18. package/dist/src/lib/manager/aws/event-manager.js +1 -1
  19. package/dist/src/lib/manager/aws/lambda-manager.js +1 -1
  20. package/dist/src/lib/types/aws/index.d.ts +1 -0
  21. package/package.json +14 -9
  22. package/src/lib/construct/api-to-eventbridge-target/main.ts +2 -2
  23. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +2 -2
  24. package/src/lib/construct/api-to-lambda-target/main.ts +3 -0
  25. package/src/lib/construct/graphql-api-lambda/main.ts +2 -1
  26. package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +2 -1
  27. package/src/lib/construct/site-with-ecs-backend/main.ts +1 -0
  28. package/src/lib/construct/static-site/main.ts +1 -0
  29. package/src/lib/manager/aws/event-manager.ts +1 -1
  30. package/src/lib/manager/aws/lambda-manager.ts +1 -1
  31. package/src/lib/types/aws/index.ts +1 -0
package/README.md CHANGED
@@ -1,6 +1,4 @@
1
- [![Gradient Edge][logo]](https://gradientedge.com)
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] Toolkit.
28
+ Toolkit for working with the [AWS CDK][aws-cdk].
31
29
 
32
- For more details, see our full [API documentation](https://gradientedge.github.io/cdk-utils/).
30
+ For more details, see the full [API documentation](https://gradientedge.github.io/cdk-utils/).
33
31
 
34
32
  ## Installation
35
33
 
@@ -6,12 +6,12 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/src/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/src/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/src/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.0/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules:$NODE_PATH"
11
+ export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/src/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/rimraf@5.0.1/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../node_modules/.pnpm/rimraf@5.0.0/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/rimraf@5.0.1/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
17
17
  fi
@@ -21,6 +21,6 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "mkdirp": "^3.0.1",
24
- "rimraf": "^5.0.0"
24
+ "rimraf": "^5.0.1"
25
25
  }
26
26
  }
@@ -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> ![Architecture](./ApiToEventBridgeTarget.jpg)
11
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTarget.jpg)
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> ![Architecture](./ApiToEventBridgeTarget.jpg)
40
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTarget.jpg)
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> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
13
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
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> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
44
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
16
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
36
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
12
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
38
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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 */
@@ -30,6 +30,7 @@ import { SiteWithEcsBackendProps } from '../../types';
30
30
  * this.initResources()
31
31
  * }
32
32
  * }
33
+ * @mixin
33
34
  */
34
35
  export declare class SiteWithEcsBackend extends CommonConstruct {
35
36
  props: SiteWithEcsBackendProps;
@@ -49,6 +49,7 @@ const common_1 = require("../../common");
49
49
  * this.initResources()
50
50
  * }
51
51
  * }
52
+ * @mixin
52
53
  */
53
54
  class SiteWithEcsBackend extends common_1.CommonConstruct {
54
55
  /* site properties */
@@ -24,6 +24,7 @@ import { StaticSiteProps } from '../../types';
24
24
  * this.initResources()
25
25
  * }
26
26
  * }
27
+ * @mixin
27
28
  */
28
29
  export declare class StaticSite extends CommonConstruct {
29
30
  props: StaticSiteProps;
@@ -45,6 +45,7 @@ const common_1 = require("../../common");
45
45
  * this.initResources()
46
46
  * }
47
47
  * }
48
+ * @mixin
48
49
  */
49
50
  class StaticSite extends common_1.CommonConstruct {
50
51
  /* static site properties */
@@ -184,7 +184,7 @@ class EventManager {
184
184
  const pipe = new pipes.CfnPipe(scope, `${id}`, {
185
185
  ...props,
186
186
  name: `${props.name}-${scope.props.stage}`,
187
- description: '',
187
+ description: props.description,
188
188
  source: sourceQueue.queueArn,
189
189
  sourceParameters: {
190
190
  filterCriteria: props.pipeFilterPattern
@@ -122,7 +122,7 @@ class LambdaManager {
122
122
  timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(15),
123
123
  vpc: vpc,
124
124
  vpcSubnets: vpcSubnets,
125
- tracing: props.tracing,
125
+ tracing: scope.props.defaultTracing ?? props.tracing,
126
126
  insightsVersion: props.insightsVersion,
127
127
  },
128
128
  });
@@ -57,6 +57,7 @@ export interface CommonStackProps extends cdk.StackProps {
57
57
  skipStageForARecords: boolean;
58
58
  logRetention?: logs.RetentionDays;
59
59
  defaultReservedLambdaConcurrentExecutions?: number;
60
+ defaultTracing?: lambda.Tracing;
60
61
  excludeDomainNameForBuckets?: boolean;
61
62
  nodejsRuntime?: lambda.Runtime;
62
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.60.0",
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": "npx rimraf api-docs && npx jsdoc --pedantic -c jsdoc.json .",
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": {
@@ -46,11 +47,11 @@
46
47
  },
47
48
  "dependencies": {
48
49
  "@types/lodash": "^4.14.194",
49
- "@types/node": "^20.1.3",
50
+ "@types/node": "^20.2.0",
50
51
  "app-root-path": "^3.1.0",
51
52
  "aws-cdk-lib": "^2.79.1",
52
- "@aws-sdk/client-secrets-manager": "^3.332.0",
53
- "constructs": "^10.2.21",
53
+ "@aws-sdk/client-secrets-manager": "^3.334.0",
54
+ "constructs": "^10.2.27",
54
55
  "lodash": "^4.17.21",
55
56
  "moment": "^2.29.4",
56
57
  "nconf": "^0.12.0",
@@ -62,16 +63,18 @@
62
63
  "@babel/eslint-parser": "^7.21.8",
63
64
  "@babel/plugin-proposal-class-properties": "^7.18.6",
64
65
  "@types/jest": "^29.5.1",
65
- "@typescript-eslint/eslint-plugin": "^5.59.5",
66
- "@typescript-eslint/parser": "^5.59.5",
66
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
67
+ "@typescript-eslint/parser": "^5.59.6",
67
68
  "aws-cdk": "^2.79.1",
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,9 +82,11 @@
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
- "rimraf": "^5.0.0",
89
+ "rimraf": "^5.0.1",
85
90
  "semantic-release": "^21.0.2",
86
91
  "taffydb": "^2.7.3",
87
92
  "ts-jest": "^29.1.0",
@@ -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> ![Architecture](./ApiToEventBridgeTarget.jpg)
18
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTarget.jpg)
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> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
23
+ * <b>Architecture</b><br/> ![Architecture](./ApiToEventBridgeTargetWithSns.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
17
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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> ![Architecture](./GraphQLApiLambda.jpg)
16
+ * <b>Architecture</b><br/> ![Architecture](./GraphQLApiLambda.jpg)
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 */
@@ -33,6 +33,7 @@ import { SiteWithEcsBackendProps } from '../../types'
33
33
  * this.initResources()
34
34
  * }
35
35
  * }
36
+ * @mixin
36
37
  */
37
38
  export class SiteWithEcsBackend extends CommonConstruct {
38
39
  /* site properties */
@@ -25,6 +25,7 @@ import { StaticSiteProps } from '../../types'
25
25
  * this.initResources()
26
26
  * }
27
27
  * }
28
+ * @mixin
28
29
  */
29
30
  export class StaticSite extends CommonConstruct {
30
31
  /* static site properties */
@@ -214,7 +214,7 @@ export class EventManager {
214
214
  const pipe = new pipes.CfnPipe(scope, `${id}`, {
215
215
  ...props,
216
216
  name: `${props.name}-${scope.props.stage}`,
217
- description: '',
217
+ description: props.description,
218
218
  source: sourceQueue.queueArn,
219
219
  sourceParameters: {
220
220
  filterCriteria: props.pipeFilterPattern
@@ -125,7 +125,7 @@ export class LambdaManager {
125
125
  timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(15),
126
126
  vpc: vpc,
127
127
  vpcSubnets: vpcSubnets,
128
- tracing: props.tracing,
128
+ tracing: scope.props.defaultTracing ?? props.tracing,
129
129
  insightsVersion: props.insightsVersion,
130
130
  },
131
131
  })
@@ -59,6 +59,7 @@ export interface CommonStackProps extends cdk.StackProps {
59
59
  skipStageForARecords: boolean
60
60
  logRetention?: logs.RetentionDays
61
61
  defaultReservedLambdaConcurrentExecutions?: number
62
+ defaultTracing?: lambda.Tracing
62
63
  excludeDomainNameForBuckets?: boolean
63
64
  nodejsRuntime?: lambda.Runtime
64
65
  }