Skip to content

Commit

Permalink
Update to version v1.68.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hnishar committed Oct 17, 2020
1 parent 81d3b8b commit f02997e
Show file tree
Hide file tree
Showing 101 changed files with 5,456 additions and 1,789 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ 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.68.0] - 2020-10-16

### Added
- aws-kinesisstreams-kinesisfirehose-s3 pattern added ([#74](https://github.com/awslabs/aws-solutions-constructs/issues/74))
- aws-apigateway-sagemakerendpoint pattern added ([#75](https://github.com/awslabs/aws-solutions-constructs/issues/75))

### Changed
- Upgraded all patterns to CDK v1.68.0
- BREAKING CHANGE: For All `aws-cloudfront-*` patterns, changed the underlying CloudFront L2 construct from `CloudFrontWebDistribution` to `Distribution`

## [1.67.0] - 2020-10-09

### Changed
- Upgraded all patterns to CDK v1.66.0
- Upgraded all patterns to CDK v1.67.0
- Make CloudWatch alarm creation optional ([#85](https://github.com/awslabs/aws-solutions-constructs/issues/85))

## [1.66.0] - 2020-10-06
Expand Down Expand Up @@ -219,4 +229,4 @@ General Availability of the AWS Solutions Constructs!! 🎉🎉🥂🥂🍾🍾
- aws-s3-lambda pattern added
- aws-sns-lambda pattern added
- aws-sqs-lambda pattern added
- core pattern added
- core pattern added
2 changes: 1 addition & 1 deletion source/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"./patterns/@aws-solutions-constructs/*"
],
"rejectCycles": "true",
"version": "1.67.0"
"version": "1.68.0"
}
2 changes: 1 addition & 1 deletion source/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-solutions-constructs",
"version": "1.67.0",
"version": "1.68.0",
"description": "AWS Solutions Constructs Library",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-solutions-constructs/aws-apigateway-dynamodb",
"version": "1.67.0",
"version": "1.68.0",
"description": "CDK Constructs for AWS API Gateway and Amazon DynamoDB integration.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -53,16 +53,16 @@
}
},
"dependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-cdk/aws-dynamodb": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-cdk/aws-dynamodb": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "~1.67.0",
"@aws-cdk/assert": "~1.68.0",
"@types/jest": "^24.0.23",
"@types/node": "^10.3.0"
},
Expand All @@ -72,12 +72,12 @@
]
},
"peerDependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-cdk/aws-dynamodb": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-cdk/aws-dynamodb": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4",
"@aws-cdk/aws-logs": "~1.67.0"
"@aws-cdk/aws-logs": "~1.68.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ This implementation enables write-only messages to be published on given MQTT to

Here is a minimal deployable pattern definition in Typescript:

``` javascript
const { ApiGatewayToIot } from '@aws-solutions-constructs/aws-apigateway-iot';
``` typescript
import { ApiGatewayToIot } from '@aws-solutions-constructs/aws-apigateway-iot';

new ApiGatewayToIot(this, 'ApiGatewayToIotPattern', {
apiGatewayToIotProps: {
iotEndpoint: 'a1234567890123-ats'
}
iotEndpoint: 'a1234567890123-ats'
});

```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-solutions-constructs/aws-apigateway-iot",
"version": "1.67.0",
"version": "1.68.0",
"description": "CDK constructs to proxy communication to IotCore using a APIGateway(REST).",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -53,15 +53,15 @@
}
},
"dependencies": {
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "~1.67.0",
"@aws-cdk/assert": "~1.68.0",
"@types/jest": "^24.0.23",
"@types/node": "^10.3.0"
},
Expand All @@ -71,11 +71,11 @@
]
},
"peerDependencies": {
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-cdk/core": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-cdk/core": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4",
"@aws-cdk/aws-iam": "~1.67.0"
"@aws-cdk/aws-iam": "~1.68.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-solutions-constructs/aws-apigateway-kinesisstreams",
"version": "1.67.0",
"version": "1.68.0",
"description": "CDK Constructs for AWS API Gateway and Amazon Kinesis Data Streams integration.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -53,16 +53,16 @@
}
},
"dependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-cdk/aws-kinesis": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-cdk/aws-kinesis": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "~1.67.0",
"@aws-cdk/assert": "~1.68.0",
"@types/jest": "^24.0.23",
"@types/node": "^10.3.0"
},
Expand All @@ -72,12 +72,12 @@
]
},
"peerDependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-cdk/aws-kinesis": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-cdk/aws-kinesis": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4",
"@aws-cdk/aws-logs": "~1.67.0"
"@aws-cdk/aws-logs": "~1.68.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-solutions-constructs/aws-apigateway-lambda",
"version": "1.67.0",
"version": "1.68.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",
Expand Down Expand Up @@ -53,16 +53,16 @@
}
},
"dependencies": {
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-lambda": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-lambda": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "~1.67.0",
"@aws-cdk/assert": "~1.68.0",
"@types/jest": "^24.0.23",
"@types/node": "^10.3.0"
},
Expand All @@ -72,12 +72,12 @@
]
},
"peerDependencies": {
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-lambda": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-cdk/core": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-lambda": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-cdk/core": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4",
"@aws-cdk/aws-iam": "~1.67.0"
"@aws-cdk/aws-iam": "~1.68.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,24 @@ Here is a minimal deployable pattern definition in Typescript:
``` javascript
import { ApiGatewayToSageMakerEndpoint, ApiGatewayToSageMakerEndpointProps } from '@aws-solutions-constructs/aws-apigateway-sagemakerendpoint';

// Below is an example VTL (Velocity Template Language) mapping template for mapping the Api GET request to the Sagemaker POST request
const requestTemplate =
`{
"instances": [
#set( $user_id = $input.params("user_id") )
#set( $items = $input.params("items") )
#foreach( $item in $items.split(",") )
{"in0": [$user_id], "in1": [$item]}#if( $foreach.hasNext ),#end
$esc.newline
#end
]
}`;

// Replace 'my-endpoint' with your Sagemaker Inference Endpoint
new ApiGatewayToSageMakerEndpoint(this, 'test-apigw-sagemakerendpoint', {
endpointName: 'my-endpoint',
resourcePath: '{my_param}',
requestMappingTemplate: 'my-request-vtl-template'
resourcePath: '{user_id}',
requestMappingTemplate: requestTemplate
});
```

Expand Down Expand Up @@ -77,7 +91,7 @@ _Parameters_
| **Method** | **Request Path** | **Query String** | **SageMaker Action** | **Description** |
|:-------------|:----------------|-----------------|-----------------|-----------------|
|GET|`/predicted-ratings/321`| `items=101,131,162` |`sagemaker:InvokeEndpoint`|Retrieves the predictions for a specific user and items.|
|GET|`/321`| `items=101,131,162` |`sagemaker:InvokeEndpoint`|Retrieves the predictions for a specific user and items.|

## Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class ApiGatewayToSageMakerEndpoint extends Construct {
* @param {cdk.App} scope - represents the scope for all the resources.
* @param {string} id - this is a a scope-unique id.
* @param {ApiGatewayToSageMakerEndpointProps} props - user provided props for the construct.
* @since 1.67.0
* @since 1.68.0
* @access public
*/
constructor(scope: Construct, id: string, props: ApiGatewayToSageMakerEndpointProps) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-solutions-constructs/aws-apigateway-sagemakerendpoint",
"version": "1.67.0",
"version": "1.68.0",
"description": "CDK Constructs for AWS API Gateway and Amazon SageMaker Endpoint integration.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -53,15 +53,15 @@
}
},
"dependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-cdk/aws-logs": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-cdk/aws-logs": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4"
},
"devDependencies": {
"@aws-cdk/assert": "~1.67.0",
"@aws-cdk/assert": "~1.68.0",
"@types/jest": "^24.0.23",
"@types/node": "^10.3.0"
},
Expand All @@ -71,11 +71,11 @@
]
},
"peerDependencies": {
"@aws-cdk/core": "~1.67.0",
"@aws-cdk/aws-apigateway": "~1.67.0",
"@aws-cdk/aws-iam": "~1.67.0",
"@aws-solutions-constructs/core": "~1.67.0",
"@aws-cdk/core": "~1.68.0",
"@aws-cdk/aws-apigateway": "~1.68.0",
"@aws-cdk/aws-iam": "~1.68.0",
"@aws-solutions-constructs/core": "~1.68.0",
"constructs": "^3.0.4",
"@aws-cdk/aws-logs": "~1.67.0"
"@aws-cdk/aws-logs": "~1.68.0"
}
}
Loading

0 comments on commit f02997e

Please sign in to comment.