From 9d935964104421cfba1320eff12687c1eb2f5a49 Mon Sep 17 00:00:00 2001 From: Hitendra Nishar Date: Thu, 1 Oct 2020 16:37:18 -0400 Subject: [PATCH] Update to version v1.65.0 --- CHANGELOG.md | 5 + source/lerna.json | 2 +- source/package.json | 2 +- .../aws-apigateway-dynamodb/package.json | 28 +- .../package.json | 28 +- .../aws-apigateway-lambda/package.json | 28 +- .../aws-apigateway-sqs/package.json | 32 +- .../package.json | 40 +-- ....cloudfront-apigateway-lambda.test.js.snap | 2 +- .../test/integ.no-arguments.expected.json | 2 +- .../aws-cloudfront-apigateway/package.json | 32 +- .../test.cloudfront-apigateway.test.js.snap | 2 +- .../test/integ.no-arguments.expected.json | 2 +- .../aws-cloudfront-s3/package.json | 24 +- .../test.cloudfront-s3.test.js.snap | 2 +- .../test/integ.existing-bucket.expected.json | 2 +- .../test/integ.no-arguments.expected.json | 2 +- .../integ.no-security-headers.expected.json | 2 +- .../test/test.cloudfront-s3.test.ts | 2 +- .../aws-cognito-apigateway-lambda/README.md | 25 +- .../lib/index.ts | 24 +- .../package.json | 32 +- .../test.cognito-apigateway-lambda.test.ts | 311 +++++++++++++++++- .../package.json | 48 +-- .../aws-dynamodb-stream-lambda/package.json | 28 +- .../aws-events-rule-lambda/package.json | 24 +- .../aws-events-rule-sns/package.json | 28 +- .../aws-events-rule-sqs/package.json | 28 +- .../package.json | 40 +-- .../aws-iot-kinesisfirehose-s3/package.json | 36 +- .../aws-iot-lambda-dynamodb/package.json | 32 +- .../aws-iot-lambda/package.json | 24 +- .../package.json | 40 +-- .../aws-kinesisfirehose-s3/package.json | 28 +- .../aws-kinesisstreams-lambda/package.json | 32 +- .../aws-lambda-dynamodb/package.json | 20 +- .../package.json | 32 +- .../aws-lambda-s3/package.json | 20 +- .../aws-lambda-sns/package.json | 24 +- .../aws-lambda-sqs-lambda/package.json | 28 +- .../aws-lambda-sqs/package.json | 20 +- .../aws-lambda-step-function/package.json | 28 +- .../aws-s3-lambda/package.json | 32 +- .../aws-s3-step-function/package.json | 52 +-- .../aws-sns-lambda/package.json | 32 +- .../aws-sns-sqs/package.json | 32 +- .../aws-sqs-lambda/package.json | 28 +- .../core/lib/override-warning-service.ts | 8 +- .../core/lib/utils.ts | 11 +- .../core/package.json | 92 +++--- ...stribution-api-gateway-helper.test.js.snap | 2 +- ...dfront-distribution-s3-helper.test.js.snap | 2 +- ...nt-distribution-api-gateway-helper.test.ts | 4 +- .../cloudfront-distribution-s3-helper.test.ts | 8 +- source/tools/cdk-integ-tools/package.json | 6 +- .../aws-s3-static-website/package.json | 22 +- .../s3-static-site-stack.test.js.snap | 2 +- .../test/integ.basic-deployment.expected.json | 2 +- .../aws-serverless-image-handler/package.json | 40 +-- ...test.serverless-image-handler.test.js.snap | 2 +- .../test/integ.basic-deployment.expected.json | 2 +- .../aws-serverless-web-app/package.json | 32 +- .../s3-static-site-stack.test.js.snap | 2 +- ...s3-static-website-deployment.expected.json | 2 +- 64 files changed, 985 insertions(+), 621 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf60e14ad..0f01896cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.65.0] - 2020-10-01 + +### Changed +- Upgraded all patterns to CDK v1.65.0 + ## [1.64.1] - 2020-09-26 ### Changed diff --git a/source/lerna.json b/source/lerna.json index fb6792fab..818b1e7ff 100644 --- a/source/lerna.json +++ b/source/lerna.json @@ -6,5 +6,5 @@ "./patterns/@aws-solutions-constructs/*" ], "rejectCycles": "true", - "version": "1.64.1" + "version": "1.65.0" } diff --git a/source/package.json b/source/package.json index b1796a3b9..049cbcf5b 100644 --- a/source/package.json +++ b/source/package.json @@ -1,6 +1,6 @@ { "name": "aws-solutions-constructs", - "version": "1.64.1", + "version": "1.65.0", "description": "AWS Solutions Constructs Library", "repository": { "type": "git", diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json index 6147a41c1..6c1a1588d 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-dynamodb", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS API Gateway and Amazon DynamoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json index 8c7a8acc4..3ab84e002 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-kinesisstreams", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS API Gateway and Amazon Kinesis Data Streams integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json index 4971baa60..e6d064574 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an API Gateway and a Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json index cbec59d60..5f15aeafb 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-sqs", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json index 47f734223..443b863f0 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Cloudfront to AWS API Gateway to AWS Lambda integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/__snapshots__/test.cloudfront-apigateway-lambda.test.js.snap b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/__snapshots__/test.cloudfront-apigateway-lambda.test.js.snap index 7da3226bf..5959db79c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/__snapshots__/test.cloudfront-apigateway-lambda.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/__snapshots__/test.cloudfront-apigateway-lambda.test.js.snap @@ -98,7 +98,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/integ.no-arguments.expected.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/integ.no-arguments.expected.json index 9090547ad..3c513ce49 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/integ.no-arguments.expected.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/test/integ.no-arguments.expected.json @@ -843,7 +843,7 @@ "Bucket": { "Fn::GetAtt": [ "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json index 77e3152b0..73e646d6c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-apigateway", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Cloudfront to AWS API Gateway integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-s3": "~1.64.1" + "@aws-cdk/aws-s3": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/__snapshots__/test.cloudfront-apigateway.test.js.snap b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/__snapshots__/test.cloudfront-apigateway.test.js.snap index 09eccd540..cd4ce5529 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/__snapshots__/test.cloudfront-apigateway.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/__snapshots__/test.cloudfront-apigateway.test.js.snap @@ -668,7 +668,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "testcloudfrontapigatewayCloudfrontLoggingBucket9811F6E8", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/integ.no-arguments.expected.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/integ.no-arguments.expected.json index 9c5322c98..c3f47e445 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/integ.no-arguments.expected.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/test/integ.no-arguments.expected.json @@ -843,7 +843,7 @@ "Bucket": { "Fn::GetAtt": [ "testcloudfrontapigatewayCloudfrontLoggingBucket9811F6E8", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json index f9975d1cc..b8d5d5b5c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-s3", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Cloudfront to AWS S3 integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-lambda": "~1.64.1" + "@aws-cdk/aws-lambda": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/__snapshots__/test.cloudfront-s3.test.js.snap b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/__snapshots__/test.cloudfront-s3.test.js.snap index 6fa18372d..a3ed92b99 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/__snapshots__/test.cloudfront-s3.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/__snapshots__/test.cloudfront-s3.test.js.snap @@ -51,7 +51,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "testcloudfronts3CloudfrontLoggingBucket985C0FE8", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.existing-bucket.expected.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.existing-bucket.expected.json index 414307b25..ad328e5b9 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.existing-bucket.expected.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.existing-bucket.expected.json @@ -490,7 +490,7 @@ "Bucket": { "Fn::GetAtt": [ "testcloudfronts3CloudfrontLoggingBucket985C0FE8", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-arguments.expected.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-arguments.expected.json index eeb4b1139..db14c760b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-arguments.expected.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-arguments.expected.json @@ -491,7 +491,7 @@ "Bucket": { "Fn::GetAtt": [ "testcloudfronts3CloudfrontLoggingBucket985C0FE8", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-security-headers.expected.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-security-headers.expected.json index 4480784d1..ea8a9551b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-security-headers.expected.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/integ.no-security-headers.expected.json @@ -346,7 +346,7 @@ "Bucket": { "Fn::GetAtt": [ "testcloudfronts3nosecurityheadersCloudfrontLoggingBucket92A5E2A5", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/test.cloudfront-s3.test.ts b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/test.cloudfront-s3.test.ts index 5a09c5a2e..7acc94743 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/test.cloudfront-s3.test.ts +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/test/test.cloudfront-s3.test.ts @@ -153,7 +153,7 @@ test('test cloudfront with custom domain names', () => { Bucket: { "Fn::GetAtt": [ "testcloudfronts3CloudfrontLoggingBucket985C0FE8", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false diff --git a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/README.md b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/README.md index 275d0e513..5ac7e2e4c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/README.md +++ b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/README.md @@ -38,6 +38,29 @@ new CognitoToApiGatewayToLambda(this, 'test-cognito-apigateway-lambda', { }); ``` +If you are defining resources and methods on your API (e.g. proxy = false), then you must call addAuthorizers() after the API is fully defined to ensure every method is protected. Here is an example in Typescript: + +``` typescript +import { CognitoToApiGatewayToLambda } from '@aws-solutions-constructs/aws-cognito-apigateway-lambda'; + +const construct = new CognitoToApiGatewayToLambda(this, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps: { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }, + apiGatewayProps: { + proxy: false + } +}); + +const resource = construct.apiGateway.root.addResource('foobar'); +resource.addMethod('POST'); + +// Mandatory to call this method to Apply the Cognito Authorizers on all API methods +construct.addAuthorizers(); +``` + ## Initializer ``` text @@ -84,7 +107,7 @@ Out of the box implementation of the Construct without any override will set the * Deploy an edge-optimized API endpoint * Enable CloudWatch logging for API Gateway * Configure least privilege access IAM role for API Gateway -* Set the default authorizationType for all API methods to IAM +* Set the default authorizationType for all API methods to Cognito User Pool * Enable X-Ray Tracing ### AWS Lambda Function diff --git a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib/index.ts b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib/index.ts index 7e7b52811..f53c18fff 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib/index.ts +++ b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib/index.ts @@ -75,6 +75,24 @@ export class CognitoToApiGatewayToLambda extends Construct { constructor(scope: Construct, id: string, props: CognitoToApiGatewayToLambdaProps) { super(scope, id); + // This Construct requires that the auth type be COGNITO regardless of what is specified in the props + if (props.apiGatewayProps) { + if (props.apiGatewayProps.defaultMethodOptions === undefined) { + props.apiGatewayProps.defaultMethodOptions = { + authorizationType: api.AuthorizationType.COGNITO, + }; + } else if (props.apiGatewayProps?.defaultMethodOptions.authorizationType === undefined) { + props.apiGatewayProps.defaultMethodOptions.authorizationType = api.AuthorizationType.COGNITO; + } else if (props.apiGatewayProps?.defaultMethodOptions.authorizationType !== 'COGNITO_USER_POOLS') { + defaults.printWarning('Overriding Authorization type to be AuthorizationType.COGNITO'); + props.apiGatewayProps.defaultMethodOptions.authorizationType = api.AuthorizationType.COGNITO; + } + } + + if (props.apiGatewayProps && (typeof props.apiGatewayProps.proxy !== 'undefined') && (props.apiGatewayProps.proxy === false)) { + defaults.printWarning('For non-proxy API, addAuthorizers() method must be called after all the resources and methods for API are fuly defined. Not calling addAuthorizers() will result in API methods NOT protected by Cognito.'); + } + this.lambdaFunction = defaults.buildLambdaFunction(this, { existingLambdaObj: props.existingLambdaObj, lambdaFunctionProps: props.lambdaFunctionProps @@ -92,8 +110,12 @@ export class CognitoToApiGatewayToLambda extends Construct { name: "authorizer" }); + this.addAuthorizers(); + } + + public addAuthorizers() { this.apiGateway.methods.forEach((apiMethod) => { - // Leave the authorizer NONE for HTTP OPTIONS method, for the rest set it to COGNITO + // Leave the authorizer NONE for HTTP OPTIONS method to support CORS, for the rest set it to COGNITO const child = apiMethod.node.findChild('Resource') as api.CfnMethod; if (apiMethod.httpMethod === 'OPTIONS') { child.addPropertyOverride('AuthorizationType', 'NONE'); diff --git a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json index 73f1bcdf9..36618a75c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cognito-apigateway-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Cognito to AWS API Gateway to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/test/test.cognito-apigateway-lambda.test.ts b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/test/test.cognito-apigateway-lambda.test.ts index ec761671a..c72027015 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/test/test.cognito-apigateway-lambda.test.ts +++ b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/test/test.cognito-apigateway-lambda.test.ts @@ -16,6 +16,7 @@ import { CognitoToApiGatewayToLambda, CognitoToApiGatewayToLambdaProps } from ". import * as cdk from "@aws-cdk/core"; import * as cognito from '@aws-cdk/aws-cognito'; import * as lambda from '@aws-cdk/aws-lambda'; +import * as api from '@aws-cdk/aws-apigateway'; import '@aws-cdk/assert/jest'; function deployNewFunc(stack: cdk.Stack) { @@ -125,7 +126,315 @@ test('override cognito cognitoUserPoolClientProps', () => { expect(stack).toHaveResource('AWS::Cognito::UserPoolClient', { ExplicitAuthFlows: [ - "ALLOW_USER_SRP_AUTH" + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" ], }); +}); + +test('Check for default Cognito Auth Type', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + +}); + +test('override Auth Type to COGNITO', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + defaultMethodOptions: { + authorizationType: api.AuthorizationType.COGNITO + } + } + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + +}); + +test('Try to override Auth Type to NONE', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + defaultMethodOptions: { + authorizationType: api.AuthorizationType.NONE + } + } + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + +}); + +test('Override apiGatewayProps', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + defaultMethodOptions: { + operationName: 'foo-bar' + } + } + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + OperationName: "foo-bar", + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + OperationName: "foo-bar", + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + +}); + +test('Override apiGatewayProps to support CORS', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + defaultCorsPreflightOptions: { + allowOrigins: api.Cors.ALL_ORIGINS, + allowMethods: api.Cors.ALL_METHODS + } + } + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "ANY", + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "ANY", + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "OPTIONS", + ResourceId: { + "Fn::GetAtt": [ + "testcognitoapigatewaylambdaLambdaRestApi2E272431", + "RootResourceId" + ] + }, + AuthorizationType: "NONE" + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "OPTIONS", + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApiproxy23E1DA20" + }, + AuthorizationType: "NONE" + }); + +}); + +test('Override apiGatewayProps with proxy = false and add POST method', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + const c = new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + proxy: false + } + }); + + const r = c.apiGateway.root.addResource('foo'); + r.addMethod('POST'); + + // Super imporant to call this method to Apply the Cognito Authorizers + c.addAuthorizers(); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "POST", + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApifoo89ACA437" + }, + AuthorizationType: "COGNITO_USER_POOLS", + AuthorizerId: { + Ref: "testcognitoapigatewaylambdaCognitoAuthorizer170CACC9" + }, + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Resource', { + PathPart: "foo", + }); +}); + +test('Override apiGatewayProps with proxy = false and add OPTIONS method', () => { + const stack = new cdk.Stack(); + + const lambdaFunctionProps: lambda.FunctionProps = { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }; + + const c = new CognitoToApiGatewayToLambda(stack, 'test-cognito-apigateway-lambda', { + lambdaFunctionProps, + apiGatewayProps: { + proxy: false + } + }); + + const r = c.apiGateway.root.addResource('foo'); + r.addMethod('OPTIONS'); + + // Mandatory to call this method to Apply the Cognito Authorizers + c.addAuthorizers(); + + expect(stack).toHaveResource('AWS::ApiGateway::Method', { + HttpMethod: "OPTIONS", + ResourceId: { + Ref: "testcognitoapigatewaylambdaLambdaRestApifoo89ACA437" + }, + AuthorizationType: "NONE", + }); + + expect(stack).toHaveResource('AWS::ApiGateway::Resource', { + PathPart: "foo", + }); }); \ No newline at end of file diff --git a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json index b0e5887ad..1ad612ebd 100644 --- a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for Amazon Dynamodb stream to AWS Lambda to AWS Elasticsearch with Kibana integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,21 +53,21 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -77,17 +77,17 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json index bc1671600..6147c1821 100644 --- a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-dynamodb-stream-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS DynamoDB Stream to AWS Lambda integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json index 167749876..9a7d7ff4b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for deploying AWS Events Rule that inveokes AWS Lambda", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json index 42f8a4996..ee59e54a4 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-sns", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS SNS", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json index 6e70f94bb..382c73014 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-sqs", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS SQS", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json index d36a17904..e16243e0a 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-step-function", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS Step Function", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/aws-stepfunctions-tasks": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-stepfunctions-tasks": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json index 9ec1d8261..6ae964c17 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-kinesisfirehose-s3", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS IoT to AWS Kinesis Firehose to AWS S3 integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,18 +53,18 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -74,14 +74,14 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json index 1c65e21c5..8cab9ca44 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-lambda-dynamodb", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS IoT to AWS Lambda to AWS DyanmoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-iot-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-iot-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-iot-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-iot-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json index f3c952e64..d15a424ac 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS IoT to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json index 5fb70d1dc..64ffb05df 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Firehose delivery stream and (1) an Amazon S3 bucket, and (2) an Amazon Kinesis Data Analytics application.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kinesisanalytics": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kinesisanalytics": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kinesisanalytics": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kinesisanalytics": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json index 4deb368c8..12571505b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisfirehose-s3", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Firehose delivery stream and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json index 1d3592c5e..fa5b3fcf9 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisstreams-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Stream and an AWS Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json index a5b9ed2e1..eb0729661 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-dynamodb", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Lambda to AWS DynamoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json index d9a91e2a3..ad37f7014 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS Lambda to AWS Elasticsearch with Kibana integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json index 403f05a62..d3f2384e9 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-s3", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json index 2b76ba4cb..5ab4a330a 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sns", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SNS topic.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json index b410d7a65..9d811c361 100755 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sqs-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK construct that provisions (1) an AWS Lambda function that is configured to send messages to a queue; (2) an Amazon SQS queue; and (3) an AWS Lambda function configured to consume messages from the queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.1", - "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-sqs": "~1.65.0", + "@aws-solutions-constructs/aws-sqs-lambda": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.1", - "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-sqs": "~1.65.0", + "@aws-solutions-constructs/aws-sqs-lambda": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json index c71eb3a39..392fef35f 100755 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sqs", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SQS queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json index fbf898cd4..d63c6a6a8 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-step-function", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an AWS Step Function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0", "eslint-plugin-import": "^2.22.0" @@ -73,12 +73,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json index a7a97ac09..74b3bcc9b 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS S3 to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-s3-notifications": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-s3-notifications": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-s3-notifications": "~1.64.1", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-s3-notifications": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json index f26148267..260e427c7 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-step-function", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS S3 to AWS Step Function integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,22 +53,22 @@ } }, "dependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-cloudtrail": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/aws-stepfunctions-tasks": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-cloudtrail": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-events-rule-step-function": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -78,18 +78,18 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-cloudtrail": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/aws-stepfunctions-tasks": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-cloudtrail": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-solutions-constructs/aws-events-rule-step-function": "~1.65.0", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.1" + "@aws-cdk/aws-logs": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json index 4d4b77736..0c58c4e7c 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sns-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK Constructs for AWS SNS to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json index bb02226a7..df6023b69 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sns-sqs", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an Amazon SNS topic and an Amazon SQS queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-sns-subscriptions": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-sns-subscriptions": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-sns-subscriptions": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-sns-subscriptions": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json index 6abffa73f..0d614d24f 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sqs-lambda", - "version": "1.64.1", + "version": "1.65.0", "description": "CDK constructs for defining an interaction between an Amazon SQS queue and an AWS Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/core/lib/override-warning-service.ts b/source/patterns/@aws-solutions-constructs/core/lib/override-warning-service.ts index 57f8b62a4..04aeb73fc 100644 --- a/source/patterns/@aws-solutions-constructs/core/lib/override-warning-service.ts +++ b/source/patterns/@aws-solutions-constructs/core/lib/override-warning-service.ts @@ -12,7 +12,7 @@ */ import * as deepdiff from 'deep-diff'; -import * as log from 'npmlog'; +import { printWarning } from './utils'; /** * Emits a warning to the console when a prescriptive default value is overridden by the user. @@ -32,13 +32,9 @@ export function flagOverriddenDefaults(defaultProps: object, userProps: object) ); // Format the path for readability const path = formatOverridePath(e.path); - // Style the log output - log.prefixStyle.bold = true; - log.prefixStyle.fg = 'red'; - log.enableColor(); // Output const details = (valuesAreReadable) ? ` Default value: '${e.lhs}'. You provided: '${e.rhs}'.` : ''; - log.warn('AWS_SOLUTIONS_CONSTRUCTS_WARNING: ', `An override has been provided for the property: ${path}.` + details); + printWarning(`An override has been provided for the property: ${path}.` + details); } } diff --git a/source/patterns/@aws-solutions-constructs/core/lib/utils.ts b/source/patterns/@aws-solutions-constructs/core/lib/utils.ts index 424fce576..a255dfde2 100644 --- a/source/patterns/@aws-solutions-constructs/core/lib/utils.ts +++ b/source/patterns/@aws-solutions-constructs/core/lib/utils.ts @@ -13,6 +13,7 @@ import * as deepmerge from 'deepmerge'; import { flagOverriddenDefaults } from './override-warning-service'; +import * as log from 'npmlog'; function isObject(val: object) { return val != null && typeof val === 'object' @@ -76,4 +77,12 @@ export function overrideProps(DefaultProps: object, userProps: object, concatArr isMergeableObject: isPlainObject }); } -} \ No newline at end of file +} + +export function printWarning(message: string) { + // Style the log output + log.prefixStyle.bold = true; + log.prefixStyle.fg = 'red'; + log.enableColor(); + log.warn('AWS_SOLUTIONS_CONSTRUCTS_WARNING: ', message); +} diff --git a/source/patterns/@aws-solutions-constructs/core/package.json b/source/patterns/@aws-solutions-constructs/core/package.json index ff8e83416..1dc846553 100644 --- a/source/patterns/@aws-solutions-constructs/core/package.json +++ b/source/patterns/@aws-solutions-constructs/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/core", - "version": "1.64.1", + "version": "1.65.0", "description": "Core CDK Construct for patterns library", "main": "index.js", "types": "index.ts", @@ -52,28 +52,28 @@ } }, "dependencies": { - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-cloudfront-origins": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kinesisanalytics": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-cloudfront-origins": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kinesisanalytics": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-stepfunctions": "~1.65.0", "@types/deep-diff": "^1.0.0", "@types/npmlog": "^4.1.2", "deep-diff": "^1.0.2", @@ -81,7 +81,7 @@ "npmlog": "^4.1.2" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -98,27 +98,27 @@ "@types/deep-diff" ], "peerDependencies": { - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-cdk/aws-iot": "~1.64.1", - "@aws-cdk/aws-kinesis": "~1.64.1", - "@aws-cdk/aws-kinesisanalytics": "~1.64.1", - "@aws-cdk/aws-kinesisfirehose": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-lambda-event-sources": "~1.64.1", - "@aws-cdk/aws-logs": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/aws-sns": "~1.64.1", - "@aws-cdk/aws-sqs": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-kms": "~1.64.1", - "@aws-cdk/aws-events": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-elasticsearch": "~1.64.1", - "@aws-cdk/aws-cloudwatch": "~1.64.1", - "@aws-cdk/aws-stepfunctions": "~1.64.1", - "@aws-cdk/aws-cloudfront-origins": "~1.64.1" + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-cdk/aws-iot": "~1.65.0", + "@aws-cdk/aws-kinesis": "~1.65.0", + "@aws-cdk/aws-kinesisanalytics": "~1.65.0", + "@aws-cdk/aws-kinesisfirehose": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-lambda-event-sources": "~1.65.0", + "@aws-cdk/aws-logs": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/aws-sns": "~1.65.0", + "@aws-cdk/aws-sqs": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-kms": "~1.65.0", + "@aws-cdk/aws-events": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-elasticsearch": "~1.65.0", + "@aws-cdk/aws-cloudwatch": "~1.65.0", + "@aws-cdk/aws-stepfunctions": "~1.65.0", + "@aws-cdk/aws-cloudfront-origins": "~1.65.0" } } diff --git a/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-api-gateway-helper.test.js.snap b/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-api-gateway-helper.test.js.snap index 529ea55d0..077097722 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-api-gateway-helper.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-api-gateway-helper.test.js.snap @@ -93,7 +93,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-s3-helper.test.js.snap b/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-s3-helper.test.js.snap index 585117347..7768e6ecf 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-s3-helper.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/core/test/__snapshots__/cloudfront-distribution-s3-helper.test.js.snap @@ -51,7 +51,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-api-gateway-helper.test.ts b/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-api-gateway-helper.test.ts index b2e5ba812..4e23dd137 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-api-gateway-helper.test.ts +++ b/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-api-gateway-helper.test.ts @@ -92,7 +92,7 @@ test('test cloudfront for Api Gateway with user provided logging bucket', () => Bucket: { "Fn::GetAtt": [ "MyCloudfrontLoggingBucket9AA652E8", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false @@ -230,7 +230,7 @@ test('test cloudfront for Api Gateway override properties', () => { Bucket: { "Fn::GetAtt": [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false diff --git a/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-s3-helper.test.ts b/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-s3-helper.test.ts index c66b009cb..00ded7fad 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-s3-helper.test.ts +++ b/source/patterns/@aws-solutions-constructs/core/test/cloudfront-distribution-s3-helper.test.ts @@ -208,7 +208,7 @@ test('test cloudfront with no security headers ', () => { Bucket: { "Fn::GetAtt": [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false @@ -298,7 +298,7 @@ test('test cloudfront override cloudfront custom domain names ', () => { Bucket: { "Fn::GetAtt": [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false @@ -387,7 +387,7 @@ test('test cloudfront override cloudfront logging bucket ', () => { Bucket: { "Fn::GetAtt": [ "loggingbucket6D73BD53", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies : true @@ -491,7 +491,7 @@ test('test cloudfront override properties', () => { Bucket: { "Fn::GetAtt": [ "CloudfrontLoggingBucket3C3EFAA7", - "RegionalDomainName" + "DomainName" ] }, IncludeCookies: false diff --git a/source/tools/cdk-integ-tools/package.json b/source/tools/cdk-integ-tools/package.json index 2eb6c3297..6e2103479 100644 --- a/source/tools/cdk-integ-tools/package.json +++ b/source/tools/cdk-integ-tools/package.json @@ -31,9 +31,9 @@ "typescript": "~3.7.4" }, "dependencies": { - "@aws-cdk/cloudformation-diff": "~1.64.1", - "@aws-cdk/cx-api": "~1.64.1", - "aws-cdk": "~1.64.1", + "@aws-cdk/cloudformation-diff": "~1.65.0", + "@aws-cdk/cx-api": "~1.65.0", + "aws-cdk": "~1.65.0", "fs-extra": "^8.1.0", "yargs": "^15.1.0" }, diff --git a/source/use_cases/aws-s3-static-website/package.json b/source/use_cases/aws-s3-static-website/package.json index 8763da5fe..c0648ac57 100644 --- a/source/use_cases/aws-s3-static-website/package.json +++ b/source/use_cases/aws-s3-static-website/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-static-website", - "version": "1.64.1", + "version": "1.65.0", "description": "Use case pattern for deploying a S3 static website.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -28,19 +28,19 @@ "build+lint+test": "npm run build && npm run lint && npm test && npm run integ-assert" }, "dependencies": { - "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/custom-resources": "~1.64.1", - "@aws-cdk/aws-cloudformation": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-cloudfront-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/custom-resources": "~1.65.0", + "@aws-cdk/aws-cloudformation": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "source-map-support": "^0.5.16" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, diff --git a/source/use_cases/aws-s3-static-website/test/__snapshots__/s3-static-site-stack.test.js.snap b/source/use_cases/aws-s3-static-website/test/__snapshots__/s3-static-site-stack.test.js.snap index 6c1adfa59..0ff05a5f6 100644 --- a/source/use_cases/aws-s3-static-website/test/__snapshots__/s3-static-site-stack.test.js.snap +++ b/source/use_cases/aws-s3-static-website/test/__snapshots__/s3-static-site-stack.test.js.snap @@ -95,7 +95,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "CloudFrontToS3CloudfrontLoggingBucket8350BE9B", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/use_cases/aws-s3-static-website/test/integ.basic-deployment.expected.json b/source/use_cases/aws-s3-static-website/test/integ.basic-deployment.expected.json index 0b4969f90..93515cb28 100644 --- a/source/use_cases/aws-s3-static-website/test/integ.basic-deployment.expected.json +++ b/source/use_cases/aws-s3-static-website/test/integ.basic-deployment.expected.json @@ -348,7 +348,7 @@ "Bucket": { "Fn::GetAtt": [ "CloudFrontToS3CloudfrontLoggingBucket8350BE9B", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/use_cases/aws-serverless-image-handler/package.json b/source/use_cases/aws-serverless-image-handler/package.json index 749894099..43bcd1b85 100644 --- a/source/use_cases/aws-serverless-image-handler/package.json +++ b/source/use_cases/aws-serverless-image-handler/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-serverless-image-handler", - "version": "1.64.1", + "version": "1.65.0", "description": "Use case pattern for deploying a serverless image handler API.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,18 +53,18 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-s3": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1" + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-s3": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -74,14 +74,14 @@ ] }, "peerDependencies": { - "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-s3": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1" + "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-s3": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0" } } diff --git a/source/use_cases/aws-serverless-image-handler/test/__snapshots__/test.serverless-image-handler.test.js.snap b/source/use_cases/aws-serverless-image-handler/test/__snapshots__/test.serverless-image-handler.test.js.snap index 15dc8b2cc..7ee7a106b 100644 --- a/source/use_cases/aws-serverless-image-handler/test/__snapshots__/test.serverless-image-handler.test.js.snap +++ b/source/use_cases/aws-serverless-image-handler/test/__snapshots__/test.serverless-image-handler.test.js.snap @@ -98,7 +98,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "testserverlessimagehandlerCloudFrontApiGatewayLambdaCloudFrontToApiGatewayCloudfrontLoggingBucket58AA7378", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/use_cases/aws-serverless-image-handler/test/integ.basic-deployment.expected.json b/source/use_cases/aws-serverless-image-handler/test/integ.basic-deployment.expected.json index 282059c96..e98627cff 100644 --- a/source/use_cases/aws-serverless-image-handler/test/integ.basic-deployment.expected.json +++ b/source/use_cases/aws-serverless-image-handler/test/integ.basic-deployment.expected.json @@ -773,7 +773,7 @@ "Bucket": { "Fn::GetAtt": [ "testserverlessimagehandlerCloudFrontApiGatewayLambdaCloudFrontToApiGatewayCloudfrontLoggingBucket58AA7378", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false diff --git a/source/use_cases/aws-serverless-web-app/package.json b/source/use_cases/aws-serverless-web-app/package.json index 04f714728..e7b788c9d 100644 --- a/source/use_cases/aws-serverless-web-app/package.json +++ b/source/use_cases/aws-serverless-web-app/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-serverless-web-app", - "version": "1.64.1", + "version": "1.65.0", "description": "Use case pattern for deploying a serverless web app.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -28,24 +28,24 @@ "build+lint+test": "npm run build && npm run lint && npm test && npm run integ-assert" }, "dependencies": { - "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.1", - "@aws-solutions-constructs/aws-cognito-apigateway-lambda": "~1.64.1", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", - "@aws-cdk/core": "~1.64.1", - "@aws-cdk/aws-lambda": "~1.64.1", - "@aws-cdk/aws-cloudfront": "~1.64.1", - "@aws-cdk/aws-s3": "~1.64.1", - "@aws-cdk/custom-resources": "~1.64.1", - "@aws-cdk/aws-cloudformation": "~1.64.1", - "@aws-cdk/aws-iam": "~1.64.1", - "@aws-cdk/aws-cognito": "~1.64.1", - "@aws-cdk/aws-apigateway": "~1.64.1", - "@aws-cdk/aws-dynamodb": "~1.64.1", - "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-cloudfront-s3": "~1.65.0", + "@aws-solutions-constructs/aws-cognito-apigateway-lambda": "~1.65.0", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.65.0", + "@aws-cdk/core": "~1.65.0", + "@aws-cdk/aws-lambda": "~1.65.0", + "@aws-cdk/aws-cloudfront": "~1.65.0", + "@aws-cdk/aws-s3": "~1.65.0", + "@aws-cdk/custom-resources": "~1.65.0", + "@aws-cdk/aws-cloudformation": "~1.65.0", + "@aws-cdk/aws-iam": "~1.65.0", + "@aws-cdk/aws-cognito": "~1.65.0", + "@aws-cdk/aws-apigateway": "~1.65.0", + "@aws-cdk/aws-dynamodb": "~1.65.0", + "@aws-solutions-constructs/core": "~1.65.0", "source-map-support": "^0.5.16" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.1", + "@aws-cdk/assert": "~1.65.0", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, diff --git a/source/use_cases/aws-serverless-web-app/test/__snapshots__/s3-static-site-stack.test.js.snap b/source/use_cases/aws-serverless-web-app/test/__snapshots__/s3-static-site-stack.test.js.snap index 0c577a1dc..94d362fc2 100644 --- a/source/use_cases/aws-serverless-web-app/test/__snapshots__/s3-static-site-stack.test.js.snap +++ b/source/use_cases/aws-serverless-web-app/test/__snapshots__/s3-static-site-stack.test.js.snap @@ -103,7 +103,7 @@ Object { "Bucket": Object { "Fn::GetAtt": Array [ "CloudFrontToS3CloudfrontLoggingBucket8350BE9B", - "RegionalDomainName", + "DomainName", ], }, "IncludeCookies": false, diff --git a/source/use_cases/aws-serverless-web-app/test/integ.001-s3-static-website-deployment.expected.json b/source/use_cases/aws-serverless-web-app/test/integ.001-s3-static-website-deployment.expected.json index e8503e711..59b0fe39c 100644 --- a/source/use_cases/aws-serverless-web-app/test/integ.001-s3-static-website-deployment.expected.json +++ b/source/use_cases/aws-serverless-web-app/test/integ.001-s3-static-website-deployment.expected.json @@ -348,7 +348,7 @@ "Bucket": { "Fn::GetAtt": [ "CloudFrontToS3CloudfrontLoggingBucket8350BE9B", - "RegionalDomainName" + "DomainName" ] }, "IncludeCookies": false