@guardian/cdk 48.5.1-beta.1 → 48.5.2
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/lib/bin/commands/new-project/index.d.ts +1 -1
- package/lib/bin/commands/new-project/index.d.ts.map +1 -1
- package/lib/constants/metadata-keys.d.ts +0 -1
- package/lib/constants/metadata-keys.d.ts.map +1 -1
- package/lib/constants/metadata-keys.js +0 -1
- package/lib/constants/metadata-keys.js.map +1 -1
- package/lib/constructs/acm/certificate.d.ts +1 -1
- package/lib/constructs/acm/certificate.d.ts.map +1 -1
- package/lib/constructs/autoscaling/user-data.d.ts +1 -1
- package/lib/constructs/autoscaling/user-data.d.ts.map +1 -1
- package/lib/constructs/autoscaling/user-data.js +8 -8
- package/lib/constructs/autoscaling/user-data.js.map +1 -1
- package/lib/constructs/core/parameters/base.d.ts +2 -2
- package/lib/constructs/core/parameters/base.d.ts.map +1 -1
- package/lib/constructs/core/stack.js +27 -27
- package/lib/constructs/core/stack.js.map +1 -1
- package/lib/constructs/ec2/vpc.d.ts +1 -1
- package/lib/constructs/ec2/vpc.d.ts.map +1 -1
- package/lib/constructs/ecs/ecs-task.d.ts +4 -4
- package/lib/constructs/ecs/ecs-task.d.ts.map +1 -1
- package/lib/constructs/iam/policies/base-policy.d.ts +3 -3
- package/lib/constructs/iam/policies/base-policy.d.ts.map +1 -1
- package/lib/constructs/iam/roles/instance-role.d.ts +1 -1
- package/lib/constructs/iam/roles/instance-role.d.ts.map +1 -1
- package/lib/constructs/iam/roles/roles.d.ts +1 -1
- package/lib/constructs/iam/roles/roles.d.ts.map +1 -1
- package/lib/constructs/kinesis/kinesis-stream.d.ts +1 -1
- package/lib/constructs/kinesis/kinesis-stream.d.ts.map +1 -1
- package/lib/constructs/sns/sns-topic.d.ts +1 -1
- package/lib/constructs/sns/sns-topic.d.ts.map +1 -1
- package/lib/constructs/vpc/vpc.d.ts +1 -1
- package/lib/constructs/vpc/vpc.d.ts.map +1 -1
- package/lib/experimental/constructs/error-budget-alarm.d.ts +2 -18
- package/lib/experimental/constructs/error-budget-alarm.d.ts.map +1 -1
- package/lib/experimental/constructs/error-budget-alarm.js +1 -81
- package/lib/experimental/constructs/error-budget-alarm.js.map +1 -1
- package/lib/experimental/riff-raff-yaml-file/index.js +48 -48
- package/lib/experimental/riff-raff-yaml-file/index.js.map +1 -1
- package/lib/experimental/riff-raff-yaml-file/types.d.ts +7 -7
- package/lib/experimental/riff-raff-yaml-file/types.d.ts.map +1 -1
- package/lib/patterns/api-multiple-lambdas.d.ts +1 -1
- package/lib/patterns/api-multiple-lambdas.d.ts.map +1 -1
- package/lib/patterns/ec2-app/base.d.ts.map +1 -1
- package/lib/patterns/ec2-app/base.js +0 -5
- package/lib/patterns/ec2-app/base.js.map +1 -1
- package/lib/patterns/ec2-app/framework.d.ts +1 -1
- package/lib/patterns/ec2-app/framework.d.ts.map +1 -1
- package/lib/types/access.d.ts +1 -1
- package/lib/types/access.d.ts.map +1 -1
- package/lib/types/cli.d.ts +1 -1
- package/lib/types/cli.d.ts.map +1 -1
- package/lib/utils/lambda/event-source.d.ts +4 -4
- package/lib/utils/lambda/event-source.d.ts.map +1 -1
- package/lib/utils/lambda/event-source.js +4 -4
- package/lib/utils/lambda/event-source.js.map +1 -1
- package/lib/utils/mixin/types.d.ts +1 -1
- package/lib/utils/mixin/types.d.ts.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-source.js","sourceRoot":"","sources":["../../../src/utils/lambda/event-source.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAuCvC,SAAgB,uBAAuB,CAAC,kBAA4C;IAClF,OAAO;QACL,kBAAkB,EAAE,kBAAkB,CAAC,kBAAkB;QACzD,SAAS,EAAE,kBAAkB,CAAC,gCAAgC;QAC9D,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE;KACjD,CAAC;AACJ,CAAC;AAND,0DAMC;AAKD;;;;;;;;;GASG;AACH,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"event-source.js","sourceRoot":"","sources":["../../../src/utils/lambda/event-source.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAuCvC,SAAgB,uBAAuB,CAAC,kBAA4C;IAClF,OAAO;QACL,kBAAkB,EAAE,kBAAkB,CAAC,kBAAkB;QACzD,SAAS,EAAE,kBAAkB,CAAC,gCAAgC;QAC9D,GAAG,kBAAkB,CAAC,cAAc,CAAC,SAAS,EAAE;KACjD,CAAC;AACJ,CAAC;AAND,0DAMC;AAKD;;;;;;;;;GASG;AACH,MAAa,WAAW;IACf,MAAM,CAAC,WAAW,CAAC,MAAc;QACtC,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;IACM,MAAM,CAAC,MAAM,CAAC,QAAkB;QACrC,OAAO,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,WAAW,CAAC,CAAC;IAC5D,CAAC;IACM,SAAS;QACd,OAAO,IAAI,CAAC,SAAS,KAAK,UAAU;YAClC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;YAChC,CAAC,CAAC,EAAE,YAAY,EAAE,sBAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACtD,CAAC;IAID,YAAoB,MAAc,EAAE,IAAe;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;CACF;AAnBD,kCAmBC","sourcesContent":["import { Duration } from \"aws-cdk-lib\";\nimport type { IEventSourceDlq } from \"aws-cdk-lib/aws-lambda\";\nimport type { KinesisEventSourceProps } from \"aws-cdk-lib/aws-lambda-event-sources\";\n\nexport type StreamProcessingProps = Omit<\n KinesisEventSourceProps,\n \"bisectBatchOnError\" | \"maxRecordAge\" | \"onFailure\" | \"retryAttempts\"\n>;\n\n/**\n * In order to prevent your lambda from continuously retrying if it encounters errors\n * whilst processing a batch, use `retryBehaviour` to give up on a record once it reaches a certain age,\n * or after a specified number of attempts. See [[`StreamRetry`]] for more details.\n *\n * In order to isolate bad records as part of the retry process, you may also want to bisect problematic batches\n * using `bisectBatchOnError`. For example:\n *\n * ```typescript\n * const errorHandlingProps: ErrorHandlingProps = {\n * bisectBatchOnError: true,\n * retryBehaviour: StreamRetry.maxAttempts(5),\n * }\n * ```\n *\n * Records which could not be processed successfully can (optionally) be sent to a dead letter queue\n * via `deadLetterQueueForSkippedRecords`.\n */\nexport interface StreamErrorHandlingProps {\n retryBehaviour: StreamRetry;\n bisectBatchOnError: boolean;\n deadLetterQueueForSkippedRecords?: IEventSourceDlq;\n blockProcessingAndRetryIndefinitely?: false;\n}\n\ntype AwsErrorHandlingProps = Pick<\n KinesisEventSourceProps,\n \"bisectBatchOnError\" | \"maxRecordAge\" | \"onFailure\" | \"retryAttempts\"\n>;\n\nexport function toAwsErrorHandlingProps(errorHandlingProps: StreamErrorHandlingProps): AwsErrorHandlingProps {\n return {\n bisectBatchOnError: errorHandlingProps.bisectBatchOnError,\n onFailure: errorHandlingProps.deadLetterQueueForSkippedRecords,\n ...errorHandlingProps.retryBehaviour.toAwsProp(),\n };\n}\n\ntype AwsRetryProp = Pick<AwsErrorHandlingProps, \"maxRecordAge\" | \"retryAttempts\">;\ntype RetryType = \"attempts\" | \"recordAge\";\n\n/**\n * To retry based on number of attempts, use:\n * ```typescript\n * StreamRetry.maxAttempts(5)\n * ```\n * To retry based on the age of a record, use:\n * ```typescript\n * StreamRetry.maxAge(Duration.minutes(5))\n * ```\n */\nexport class StreamRetry {\n public static maxAttempts(amount: number): StreamRetry {\n return new StreamRetry(amount, \"attempts\");\n }\n public static maxAge(duration: Duration): StreamRetry {\n return new StreamRetry(duration.toSeconds(), \"recordAge\");\n }\n public toAwsProp(): AwsRetryProp {\n return this.retryType === \"attempts\"\n ? { retryAttempts: this.amount }\n : { maxRecordAge: Duration.seconds(this.amount) };\n }\n private readonly amount: number;\n readonly retryType: RetryType;\n\n private constructor(amount: number, type: RetryType) {\n this.amount = amount;\n this.retryType = type;\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AnyConstructor = new (...args: any[]) => {};
|
|
2
2
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/mixin/types.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/mixin/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/cdk",
|
|
3
3
|
"description": "Generic Guardian flavoured AWS CDK components",
|
|
4
|
-
"version": "48.5.
|
|
4
|
+
"version": "48.5.2",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -28,36 +28,36 @@
|
|
|
28
28
|
"cli:dev": "ts-node src/bin/index.ts"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@guardian/eslint-config-typescript": "
|
|
31
|
+
"@guardian/eslint-config-typescript": "2.0.0",
|
|
32
32
|
"@types/git-url-parse": "^9.0.1",
|
|
33
|
-
"@types/jest": "^29.2.
|
|
33
|
+
"@types/jest": "^29.2.3",
|
|
34
34
|
"@types/js-yaml": "^4.0.5",
|
|
35
35
|
"@types/lodash.camelcase": "^4.3.7",
|
|
36
36
|
"@types/lodash.kebabcase": "^4.1.7",
|
|
37
37
|
"@types/lodash.upperfirst": "^4.3.7",
|
|
38
38
|
"@types/node": "18.11.9",
|
|
39
39
|
"@types/yargs": "^17.0.13",
|
|
40
|
-
"aws-cdk": "2.
|
|
40
|
+
"aws-cdk": "2.51.1",
|
|
41
41
|
"cz-conventional-changelog": "^3.3.0",
|
|
42
|
-
"eslint": "^8.
|
|
42
|
+
"eslint": "^8.28.0",
|
|
43
43
|
"eslint-plugin-custom-rules": "file:tools/eslint",
|
|
44
44
|
"gh-pages": "^4.0.0",
|
|
45
45
|
"jest": "^29.3.1",
|
|
46
|
-
"prettier": "^2.
|
|
46
|
+
"prettier": "^2.8.0",
|
|
47
47
|
"semantic-release": "^19.0.5",
|
|
48
|
-
"serve": "^14.1.
|
|
48
|
+
"serve": "^14.1.2",
|
|
49
49
|
"ts-jest": "^29.0.3",
|
|
50
50
|
"ts-node": "^10.9.1",
|
|
51
|
-
"typedoc": "^0.23.
|
|
52
|
-
"typescript": "~4.
|
|
51
|
+
"typedoc": "^0.23.21",
|
|
52
|
+
"typescript": "~4.9.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@oclif/core": "1.20.4",
|
|
56
|
-
"aws-cdk-lib": "2.
|
|
57
|
-
"aws-sdk": "^2.
|
|
56
|
+
"aws-cdk-lib": "2.51.1",
|
|
57
|
+
"aws-sdk": "^2.1260.0",
|
|
58
58
|
"chalk": "^4.1.2",
|
|
59
59
|
"codemaker": "^1.71.0",
|
|
60
|
-
"constructs": "10.1.
|
|
60
|
+
"constructs": "10.1.167",
|
|
61
61
|
"git-url-parse": "^13.1.0",
|
|
62
62
|
"js-yaml": "^4.1.0",
|
|
63
63
|
"lodash.camelcase": "^4.3.0",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"yargs": "^17.6.2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"aws-cdk": "2.
|
|
71
|
-
"aws-cdk-lib": "2.
|
|
72
|
-
"constructs": "10.1.
|
|
70
|
+
"aws-cdk": "2.51.1",
|
|
71
|
+
"aws-cdk-lib": "2.51.1",
|
|
72
|
+
"constructs": "10.1.167"
|
|
73
73
|
},
|
|
74
74
|
"config": {
|
|
75
75
|
"commitizen": {
|