Skip to content

Commit 6af666f

Browse files
committed
Update to version v1.67.0
1 parent 5d64dc2 commit 6af666f

File tree

277 files changed

+1331
-1142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+1331
-1142
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.67.0] - 2020-10-09
8+
9+
### Changed
10+
- Upgraded all patterns to CDK v1.66.0
11+
- Make CloudWatch alarm creation optional ([#85](https://github.com/awslabs/aws-solutions-constructs/issues/85))
12+
713
## [1.66.0] - 2020-10-06
814

915
### Added

NOTICE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AWS Solutions Constructs
2-
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
Licensed under the Apache License Version 2.0 (the "License"). You may not use this file except
44
in compliance with the License. A copy of the License is located at http://www.apache.org/licenses/
55
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ This library includes a collection of functional use case implementations to dem
4646
* Use case pattern: https://github.com/awslabs/aws-solutions-constructs/tree/master/source/use_cases/aws-serverless-web-app
4747

4848
***
49-
© Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
49+
© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

source/lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"./patterns/@aws-solutions-constructs/*"
77
],
88
"rejectCycles": "true",
9-
"version": "1.66.0"
9+
"version": "1.67.0"
1010
}

source/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-solutions-constructs",
3-
"version": "1.66.0",
3+
"version": "1.67.0",
44
"description": "AWS Solutions Constructs Library",
55
"repository": {
66
"type": "git",

source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-solutions-constructs/aws-apigateway-dynamodb",
3-
"version": "1.66.0",
3+
"version": "1.67.0",
44
"description": "CDK Constructs for AWS API Gateway and Amazon DynamoDB integration.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -53,16 +53,16 @@
5353
}
5454
},
5555
"dependencies": {
56-
"@aws-cdk/core": "~1.66.0",
57-
"@aws-cdk/aws-apigateway": "~1.66.0",
58-
"@aws-cdk/aws-iam": "~1.66.0",
59-
"@aws-cdk/aws-dynamodb": "~1.66.0",
60-
"@aws-cdk/aws-logs": "~1.66.0",
61-
"@aws-solutions-constructs/core": "~1.66.0",
56+
"@aws-cdk/core": "~1.67.0",
57+
"@aws-cdk/aws-apigateway": "~1.67.0",
58+
"@aws-cdk/aws-iam": "~1.67.0",
59+
"@aws-cdk/aws-dynamodb": "~1.67.0",
60+
"@aws-cdk/aws-logs": "~1.67.0",
61+
"@aws-solutions-constructs/core": "~1.67.0",
6262
"constructs": "^3.0.4"
6363
},
6464
"devDependencies": {
65-
"@aws-cdk/assert": "~1.66.0",
65+
"@aws-cdk/assert": "~1.67.0",
6666
"@types/jest": "^24.0.23",
6767
"@types/node": "^10.3.0"
6868
},
@@ -72,12 +72,12 @@
7272
]
7373
},
7474
"peerDependencies": {
75-
"@aws-cdk/core": "~1.66.0",
76-
"@aws-cdk/aws-apigateway": "~1.66.0",
77-
"@aws-cdk/aws-iam": "~1.66.0",
78-
"@aws-cdk/aws-dynamodb": "~1.66.0",
79-
"@aws-solutions-constructs/core": "~1.66.0",
75+
"@aws-cdk/core": "~1.67.0",
76+
"@aws-cdk/aws-apigateway": "~1.67.0",
77+
"@aws-cdk/aws-iam": "~1.67.0",
78+
"@aws-cdk/aws-dynamodb": "~1.67.0",
79+
"@aws-solutions-constructs/core": "~1.67.0",
8080
"constructs": "^3.0.4",
81-
"@aws-cdk/aws-logs": "~1.66.0"
81+
"@aws-cdk/aws-logs": "~1.67.0"
8282
}
8383
}

source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/test/apigateway-dynamodb.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/test/integ.apigateway-dynamodb-CRUD.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/test/integ.no-arguments.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-solutions-constructs/aws-apigateway-iot",
3-
"version": "1.66.0",
3+
"version": "1.67.0",
44
"description": "CDK constructs to proxy communication to IotCore using a APIGateway(REST).",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -53,15 +53,15 @@
5353
}
5454
},
5555
"dependencies": {
56-
"@aws-cdk/aws-apigateway": "~1.66.0",
57-
"@aws-cdk/aws-logs": "~1.66.0",
58-
"@aws-cdk/core": "~1.66.0",
59-
"@aws-cdk/aws-iam": "~1.66.0",
60-
"@aws-solutions-constructs/core": "~1.66.0",
56+
"@aws-cdk/aws-apigateway": "~1.67.0",
57+
"@aws-cdk/aws-logs": "~1.67.0",
58+
"@aws-cdk/core": "~1.67.0",
59+
"@aws-cdk/aws-iam": "~1.67.0",
60+
"@aws-solutions-constructs/core": "~1.67.0",
6161
"constructs": "^3.0.4"
6262
},
6363
"devDependencies": {
64-
"@aws-cdk/assert": "~1.66.0",
64+
"@aws-cdk/assert": "~1.67.0",
6565
"@types/jest": "^24.0.23",
6666
"@types/node": "^10.3.0"
6767
},
@@ -71,11 +71,11 @@
7171
]
7272
},
7373
"peerDependencies": {
74-
"@aws-cdk/aws-apigateway": "~1.66.0",
75-
"@aws-cdk/aws-logs": "~1.66.0",
76-
"@aws-cdk/core": "~1.66.0",
77-
"@aws-solutions-constructs/core": "~1.66.0",
74+
"@aws-cdk/aws-apigateway": "~1.67.0",
75+
"@aws-cdk/aws-logs": "~1.67.0",
76+
"@aws-cdk/core": "~1.67.0",
77+
"@aws-solutions-constructs/core": "~1.67.0",
7878
"constructs": "^3.0.4",
79-
"@aws-cdk/aws-iam": "~1.66.0"
79+
"@aws-cdk/aws-iam": "~1.67.0"
8080
}
8181
}

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/test/integ.defaultParams.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/test/integ.overrideParams.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/test/integ.override_auth_api_keys.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-iot/test/test.apigateway-iot.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-solutions-constructs/aws-apigateway-kinesisstreams",
3-
"version": "1.66.0",
3+
"version": "1.67.0",
44
"description": "CDK Constructs for AWS API Gateway and Amazon Kinesis Data Streams integration.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -53,16 +53,16 @@
5353
}
5454
},
5555
"dependencies": {
56-
"@aws-cdk/core": "~1.66.0",
57-
"@aws-cdk/aws-apigateway": "~1.66.0",
58-
"@aws-cdk/aws-iam": "~1.66.0",
59-
"@aws-cdk/aws-kinesis": "~1.66.0",
60-
"@aws-cdk/aws-logs": "~1.66.0",
61-
"@aws-solutions-constructs/core": "~1.66.0",
56+
"@aws-cdk/core": "~1.67.0",
57+
"@aws-cdk/aws-apigateway": "~1.67.0",
58+
"@aws-cdk/aws-iam": "~1.67.0",
59+
"@aws-cdk/aws-kinesis": "~1.67.0",
60+
"@aws-cdk/aws-logs": "~1.67.0",
61+
"@aws-solutions-constructs/core": "~1.67.0",
6262
"constructs": "^3.0.4"
6363
},
6464
"devDependencies": {
65-
"@aws-cdk/assert": "~1.66.0",
65+
"@aws-cdk/assert": "~1.67.0",
6666
"@types/jest": "^24.0.23",
6767
"@types/node": "^10.3.0"
6868
},
@@ -72,12 +72,12 @@
7272
]
7373
},
7474
"peerDependencies": {
75-
"@aws-cdk/core": "~1.66.0",
76-
"@aws-cdk/aws-apigateway": "~1.66.0",
77-
"@aws-cdk/aws-iam": "~1.66.0",
78-
"@aws-cdk/aws-kinesis": "~1.66.0",
79-
"@aws-solutions-constructs/core": "~1.66.0",
75+
"@aws-cdk/core": "~1.67.0",
76+
"@aws-cdk/aws-apigateway": "~1.67.0",
77+
"@aws-cdk/aws-iam": "~1.67.0",
78+
"@aws-cdk/aws-kinesis": "~1.67.0",
79+
"@aws-solutions-constructs/core": "~1.67.0",
8080
"constructs": "^3.0.4",
81-
"@aws-cdk/aws-logs": "~1.66.0"
81+
"@aws-cdk/aws-logs": "~1.67.0"
8282
}
8383
}

source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/test/apigateway-kinesis.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/test/integ.apigateway-kinesis-overwrite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/test/integ.no-arguments.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-solutions-constructs/aws-apigateway-lambda",
3-
"version": "1.66.0",
3+
"version": "1.67.0",
44
"description": "CDK constructs for defining an interaction between an API Gateway and a Lambda function.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -53,16 +53,16 @@
5353
}
5454
},
5555
"dependencies": {
56-
"@aws-cdk/aws-apigateway": "~1.66.0",
57-
"@aws-cdk/aws-lambda": "~1.66.0",
58-
"@aws-cdk/aws-logs": "~1.66.0",
59-
"@aws-cdk/core": "~1.66.0",
60-
"@aws-cdk/aws-iam": "~1.66.0",
61-
"@aws-solutions-constructs/core": "~1.66.0",
56+
"@aws-cdk/aws-apigateway": "~1.67.0",
57+
"@aws-cdk/aws-lambda": "~1.67.0",
58+
"@aws-cdk/aws-logs": "~1.67.0",
59+
"@aws-cdk/core": "~1.67.0",
60+
"@aws-cdk/aws-iam": "~1.67.0",
61+
"@aws-solutions-constructs/core": "~1.67.0",
6262
"constructs": "^3.0.4"
6363
},
6464
"devDependencies": {
65-
"@aws-cdk/assert": "~1.66.0",
65+
"@aws-cdk/assert": "~1.67.0",
6666
"@types/jest": "^24.0.23",
6767
"@types/node": "^10.3.0"
6868
},
@@ -72,12 +72,12 @@
7272
]
7373
},
7474
"peerDependencies": {
75-
"@aws-cdk/aws-apigateway": "~1.66.0",
76-
"@aws-cdk/aws-lambda": "~1.66.0",
77-
"@aws-cdk/aws-logs": "~1.66.0",
78-
"@aws-cdk/core": "~1.66.0",
79-
"@aws-solutions-constructs/core": "~1.66.0",
75+
"@aws-cdk/aws-apigateway": "~1.67.0",
76+
"@aws-cdk/aws-lambda": "~1.67.0",
77+
"@aws-cdk/aws-logs": "~1.67.0",
78+
"@aws-cdk/core": "~1.67.0",
79+
"@aws-solutions-constructs/core": "~1.67.0",
8080
"constructs": "^3.0.4",
81-
"@aws-cdk/aws-iam": "~1.66.0"
81+
"@aws-cdk/aws-iam": "~1.67.0"
8282
}
8383
}

source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/test/integ.deployFunction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/test/integ.existingFunction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at

source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/test/test.apigateway-lambda.test.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
55
* with the License. A copy of the License is located at
@@ -191,4 +191,32 @@ test('Test deployment ApiGateway AuthorizationType override', () => {
191191
HttpMethod: "ANY",
192192
AuthorizationType: "NONE"
193193
});
194-
});
194+
});
195+
196+
// -----------------------------------------------------------------
197+
// Test deployment for override ApiGateway cloudWatchRole = false
198+
// -----------------------------------------------------------------
199+
test('Test deployment ApiGateway override cloudWatchRole = false', () => {
200+
// Stack
201+
const stack = new Stack();
202+
// Helper declaration
203+
new ApiGatewayToLambda(stack, 'api-gateway-lambda', {
204+
apiGatewayProps: {
205+
cloudWatchRole: false
206+
},
207+
lambdaFunctionProps: {
208+
runtime: lambda.Runtime.NODEJS_10_X,
209+
handler: 'index.handler',
210+
code: lambda.Code.fromAsset(`${__dirname}/lambda`)
211+
}
212+
});
213+
// Assertion 1
214+
expect(stack).toHaveResourceLike("AWS::ApiGateway::Account", {
215+
CloudWatchRoleArn: {
216+
"Fn::GetAtt": [
217+
"apigatewaylambdaLambdaRestApiCloudWatchRoleA759E8AC",
218+
"Arn"
219+
]
220+
}
221+
});
222+
});

0 commit comments

Comments
 (0)