aws-solutions-constructs.aws-dynamodbstreams-lambda 2.85.2__tar.gz → 2.85.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4/PKG-INFO +28 -0
  2. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4/README.md +1 -0
  3. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/setup.py +3 -3
  4. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs/aws_dynamodbstreams_lambda/__init__.py +1 -136
  5. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/__init__.py +2 -2
  6. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4/src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/aws-dynamodbstreams-lambda@2.85.4.jsii.tgz +0 -0
  7. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/PKG-INFO +28 -0
  8. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/SOURCES.txt +1 -1
  9. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/requires.txt +1 -1
  10. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2/PKG-INFO +0 -163
  11. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2/README.md +0 -136
  12. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2/src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/aws-dynamodbstreams-lambda@2.85.2.jsii.tgz +0 -0
  13. aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/PKG-INFO +0 -163
  14. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/LICENSE +0 -0
  15. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/MANIFEST.in +0 -0
  16. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/pyproject.toml +0 -0
  17. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/setup.cfg +0 -0
  18. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs/aws_dynamodbstreams_lambda/py.typed +0 -0
  19. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/dependency_links.txt +0 -0
  20. {aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.2 → aws_solutions_constructs_aws_dynamodbstreams_lambda-2.85.4}/src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/top_level.txt +0 -0
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-dynamodbstreams-lambda
3
+ Version: 2.85.4
4
+ Summary: CDK Constructs for AWS DynamoDB Streams to AWS Lambda integration.
5
+ Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
+ Author: Amazon Web Services
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: License :: OSI Approved
18
+ Requires-Python: ~=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.85.4
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.111.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
27
+
28
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-dynamodbstreams-lambda/README.adoc)
@@ -0,0 +1 @@
1
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-dynamodbstreams-lambda/README.adoc)
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "aws-solutions-constructs.aws-dynamodbstreams-lambda",
8
- "version": "2.85.2",
8
+ "version": "2.85.4",
9
9
  "description": "CDK Constructs for AWS DynamoDB Streams to AWS Lambda integration.",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/awslabs/aws-solutions-constructs.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "aws_solutions_constructs.aws_dynamodbstreams_lambda._jsii": [
29
- "aws-dynamodbstreams-lambda@2.85.2.jsii.tgz"
29
+ "aws-dynamodbstreams-lambda@2.85.4.jsii.tgz"
30
30
  ],
31
31
  "aws_solutions_constructs.aws_dynamodbstreams_lambda": [
32
32
  "py.typed"
@@ -35,7 +35,7 @@ kwargs = json.loads(
35
35
  "python_requires": "~=3.9",
36
36
  "install_requires": [
37
37
  "aws-cdk-lib>=2.193.0, <3.0.0",
38
- "aws-solutions-constructs.core==2.85.2",
38
+ "aws-solutions-constructs.core==2.85.4",
39
39
  "constructs>=10.0.0, <11.0.0",
40
40
  "jsii>=1.111.0, <2.0.0",
41
41
  "publication>=0.0.3",
@@ -1,140 +1,5 @@
1
1
  r'''
2
- # aws-dynamodbstreams-lambda module
3
-
4
- <!--BEGIN STABILITY BANNER-->---
5
-
6
-
7
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
8
-
9
- > All classes are under active development and subject to non-backward compatible changes or removal in any
10
- > future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
11
- > This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
12
-
13
- ---
14
- <!--END STABILITY BANNER-->
15
-
16
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
17
- |:-------------|:-------------|
18
-
19
- <div style="height:8px"></div>
20
-
21
- | **Language** | **Package** |
22
- |:-------------|-----------------|
23
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_dynamodbstreams_lambda`|
24
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-dynamodbstreams-lambda`|
25
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.dynamodbstreamslambda`|
26
-
27
- ## Overview
28
-
29
- This AWS Solutions Construct implements an Amazon DynamoDB table with stream that invokes an AWS Lambda function with the least privileged permissions.
30
-
31
- Here is a minimal deployable pattern definition:
32
-
33
- Typescript
34
-
35
- ```python
36
- import { Construct } from 'constructs';
37
- import { Stack, StackProps } from 'aws-cdk-lib';
38
- import { DynamoDBStreamsToLambdaProps, DynamoDBStreamsToLambda} from '@aws-solutions-constructs/aws-dynamodbstreams-lambda';
39
- import * as lambda from 'aws-cdk-lib/aws-lambda';
40
-
41
- new DynamoDBStreamsToLambda(this, 'test-dynamodbstreams-lambda', {
42
- lambdaFunctionProps: {
43
- code: lambda.Code.fromAsset(`lambda`),
44
- runtime: lambda.Runtime.NODEJS_20_X,
45
- handler: 'index.handler'
46
- },
47
- });
48
- ```
49
-
50
- Python
51
-
52
- ```python
53
- from aws_solutions_constructs.aws_dynamodbstreams_lambda import DynamoDBStreamsToLambda
54
- from aws_cdk import (
55
- aws_lambda as _lambda,
56
- Stack
57
- )
58
- from constructs import Construct
59
-
60
- DynamoDBStreamsToLambda(self, 'test-dynamodbstreams-lambda',
61
- lambda_function_props=_lambda.FunctionProps(
62
- code=_lambda.Code.from_asset('lambda'),
63
- runtime=_lambda.Runtime.PYTHON_3_11,
64
- handler='index.handler'
65
- )
66
- )
67
- ```
68
-
69
- Java
70
-
71
- ```java
72
- import software.constructs.Construct;
73
-
74
- import software.amazon.awscdk.Stack;
75
- import software.amazon.awscdk.StackProps;
76
- import software.amazon.awscdk.services.lambda.*;
77
- import software.amazon.awscdk.services.lambda.Runtime;
78
- import software.amazon.awsconstructs.services.dynamodbstreamslambda.*;
79
-
80
- new DynamoDBStreamsToLambda(this, "test-dynamodbstreams-lambda",
81
- new DynamoDBStreamsToLambdaProps.Builder()
82
- .lambdaFunctionProps(new FunctionProps.Builder()
83
- .runtime(Runtime.NODEJS_20_X)
84
- .code(Code.fromAsset("lambda"))
85
- .handler("index.handler")
86
- .build())
87
- .build());
88
- ```
89
-
90
- ## Pattern Construct Props
91
-
92
- | **Name** | **Type** | **Description** |
93
- |:-------------|:----------------|-----------------|
94
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
95
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
96
- |dynamoTableProps?|[`dynamodb.TableProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.TableProps.html)|Optional user provided props to override the default props for DynamoDB Table|
97
- |existingTableInterface?|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Existing instance of DynamoDB table object or interface, providing both this and `dynamoTableProps` will cause an error.|
98
- |dynamoEventSourceProps?|[`aws-lambda-event-sources.DynamoEventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.DynamoEventSourceProps.html)|Optional user provided props to override the default props for DynamoDB Event Source|
99
-
100
- ## Pattern Properties
101
-
102
- | **Name** | **Type** | **Description** |
103
- |:-------------|:----------------|-----------------|
104
- |dynamoTableInterface|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Returns an instance of dynamodb.ITable created by the construct|
105
- |dynamoTable?|[`dynamodb.Table`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.Table.html)|Returns an instance of dynamodb.Table created by the construct. IMPORTANT: If existingTableInterface was provided in Pattern Construct Props, this property will be `undefined`|
106
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|
107
-
108
- ## Default settings
109
-
110
- Out of the box implementation of the Construct without any override will set the following defaults:
111
-
112
- ### Amazon DynamoDB Table
113
-
114
- * Set the billing mode for DynamoDB Table to On-Demand (Pay per request)
115
- * Enable server-side encryption for DynamoDB Table using AWS managed KMS Key
116
- * Creates a partition key called 'id' for DynamoDB Table
117
- * Retain the Table when deleting the CloudFormation stack
118
- * Enable continuous backups and point-in-time recovery
119
-
120
- ### AWS Lambda Function
121
-
122
- * Configure limited privilege access IAM role for Lambda function
123
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
124
- * Enable X-Ray Tracing
125
- * Enable Failure-Handling features like enable bisect on function Error, set defaults for Maximum Record Age (24 hours) & Maximum Retry Attempts (500) and deploy SQS dead-letter queue as destination on failure
126
- * Set Environment Variables
127
-
128
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
129
-
130
- ## Architecture
131
-
132
- ![Architecture Diagram](architecture.png)
133
-
134
- ---
135
-
136
-
137
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-dynamodbstreams-lambda/README.adoc)
138
3
  '''
139
4
  from pkgutil import extend_path
140
5
  __path__ = extend_path(__path__, __name__)
@@ -34,9 +34,9 @@ import constructs._jsii
34
34
 
35
35
  __jsii_assembly__ = jsii.JSIIAssembly.load(
36
36
  "@aws-solutions-constructs/aws-dynamodbstreams-lambda",
37
- "2.85.2",
37
+ "2.85.4",
38
38
  __name__[0:-6],
39
- "aws-dynamodbstreams-lambda@2.85.2.jsii.tgz",
39
+ "aws-dynamodbstreams-lambda@2.85.4.jsii.tgz",
40
40
  )
41
41
 
42
42
  __all__ = [
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-dynamodbstreams-lambda
3
+ Version: 2.85.4
4
+ Summary: CDK Constructs for AWS DynamoDB Streams to AWS Lambda integration.
5
+ Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
+ Author: Amazon Web Services
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: License :: OSI Approved
18
+ Requires-Python: ~=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.85.4
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.111.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
27
+
28
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-dynamodbstreams-lambda/README.adoc)
@@ -11,4 +11,4 @@ src/aws_solutions_constructs.aws_dynamodbstreams_lambda.egg-info/top_level.txt
11
11
  src/aws_solutions_constructs/aws_dynamodbstreams_lambda/__init__.py
12
12
  src/aws_solutions_constructs/aws_dynamodbstreams_lambda/py.typed
13
13
  src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/__init__.py
14
- src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/aws-dynamodbstreams-lambda@2.85.2.jsii.tgz
14
+ src/aws_solutions_constructs/aws_dynamodbstreams_lambda/_jsii/aws-dynamodbstreams-lambda@2.85.4.jsii.tgz
@@ -1,5 +1,5 @@
1
1
  aws-cdk-lib<3.0.0,>=2.193.0
2
- aws-solutions-constructs.core==2.85.2
2
+ aws-solutions-constructs.core==2.85.4
3
3
  constructs<11.0.0,>=10.0.0
4
4
  jsii<2.0.0,>=1.111.0
5
5
  publication>=0.0.3
@@ -1,163 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aws-solutions-constructs.aws-dynamodbstreams-lambda
3
- Version: 2.85.2
4
- Summary: CDK Constructs for AWS DynamoDB Streams to AWS Lambda integration.
5
- Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
- Author: Amazon Web Services
7
- License: Apache-2.0
8
- Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: JavaScript
12
- Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Typing :: Typed
17
- Classifier: License :: OSI Approved
18
- Requires-Python: ~=3.9
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE
21
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
- Requires-Dist: aws-solutions-constructs.core==2.85.2
23
- Requires-Dist: constructs<11.0.0,>=10.0.0
24
- Requires-Dist: jsii<2.0.0,>=1.111.0
25
- Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard<4.3.0,>=2.13.3
27
-
28
- # aws-dynamodbstreams-lambda module
29
-
30
- <!--BEGIN STABILITY BANNER-->---
31
-
32
-
33
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
34
-
35
- > All classes are under active development and subject to non-backward compatible changes or removal in any
36
- > future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
37
- > This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
38
-
39
- ---
40
- <!--END STABILITY BANNER-->
41
-
42
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
43
- |:-------------|:-------------|
44
-
45
- <div style="height:8px"></div>
46
-
47
- | **Language** | **Package** |
48
- |:-------------|-----------------|
49
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_dynamodbstreams_lambda`|
50
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-dynamodbstreams-lambda`|
51
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.dynamodbstreamslambda`|
52
-
53
- ## Overview
54
-
55
- This AWS Solutions Construct implements an Amazon DynamoDB table with stream that invokes an AWS Lambda function with the least privileged permissions.
56
-
57
- Here is a minimal deployable pattern definition:
58
-
59
- Typescript
60
-
61
- ```python
62
- import { Construct } from 'constructs';
63
- import { Stack, StackProps } from 'aws-cdk-lib';
64
- import { DynamoDBStreamsToLambdaProps, DynamoDBStreamsToLambda} from '@aws-solutions-constructs/aws-dynamodbstreams-lambda';
65
- import * as lambda from 'aws-cdk-lib/aws-lambda';
66
-
67
- new DynamoDBStreamsToLambda(this, 'test-dynamodbstreams-lambda', {
68
- lambdaFunctionProps: {
69
- code: lambda.Code.fromAsset(`lambda`),
70
- runtime: lambda.Runtime.NODEJS_20_X,
71
- handler: 'index.handler'
72
- },
73
- });
74
- ```
75
-
76
- Python
77
-
78
- ```python
79
- from aws_solutions_constructs.aws_dynamodbstreams_lambda import DynamoDBStreamsToLambda
80
- from aws_cdk import (
81
- aws_lambda as _lambda,
82
- Stack
83
- )
84
- from constructs import Construct
85
-
86
- DynamoDBStreamsToLambda(self, 'test-dynamodbstreams-lambda',
87
- lambda_function_props=_lambda.FunctionProps(
88
- code=_lambda.Code.from_asset('lambda'),
89
- runtime=_lambda.Runtime.PYTHON_3_11,
90
- handler='index.handler'
91
- )
92
- )
93
- ```
94
-
95
- Java
96
-
97
- ```java
98
- import software.constructs.Construct;
99
-
100
- import software.amazon.awscdk.Stack;
101
- import software.amazon.awscdk.StackProps;
102
- import software.amazon.awscdk.services.lambda.*;
103
- import software.amazon.awscdk.services.lambda.Runtime;
104
- import software.amazon.awsconstructs.services.dynamodbstreamslambda.*;
105
-
106
- new DynamoDBStreamsToLambda(this, "test-dynamodbstreams-lambda",
107
- new DynamoDBStreamsToLambdaProps.Builder()
108
- .lambdaFunctionProps(new FunctionProps.Builder()
109
- .runtime(Runtime.NODEJS_20_X)
110
- .code(Code.fromAsset("lambda"))
111
- .handler("index.handler")
112
- .build())
113
- .build());
114
- ```
115
-
116
- ## Pattern Construct Props
117
-
118
- | **Name** | **Type** | **Description** |
119
- |:-------------|:----------------|-----------------|
120
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
121
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
122
- |dynamoTableProps?|[`dynamodb.TableProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.TableProps.html)|Optional user provided props to override the default props for DynamoDB Table|
123
- |existingTableInterface?|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Existing instance of DynamoDB table object or interface, providing both this and `dynamoTableProps` will cause an error.|
124
- |dynamoEventSourceProps?|[`aws-lambda-event-sources.DynamoEventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.DynamoEventSourceProps.html)|Optional user provided props to override the default props for DynamoDB Event Source|
125
-
126
- ## Pattern Properties
127
-
128
- | **Name** | **Type** | **Description** |
129
- |:-------------|:----------------|-----------------|
130
- |dynamoTableInterface|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Returns an instance of dynamodb.ITable created by the construct|
131
- |dynamoTable?|[`dynamodb.Table`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.Table.html)|Returns an instance of dynamodb.Table created by the construct. IMPORTANT: If existingTableInterface was provided in Pattern Construct Props, this property will be `undefined`|
132
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|
133
-
134
- ## Default settings
135
-
136
- Out of the box implementation of the Construct without any override will set the following defaults:
137
-
138
- ### Amazon DynamoDB Table
139
-
140
- * Set the billing mode for DynamoDB Table to On-Demand (Pay per request)
141
- * Enable server-side encryption for DynamoDB Table using AWS managed KMS Key
142
- * Creates a partition key called 'id' for DynamoDB Table
143
- * Retain the Table when deleting the CloudFormation stack
144
- * Enable continuous backups and point-in-time recovery
145
-
146
- ### AWS Lambda Function
147
-
148
- * Configure limited privilege access IAM role for Lambda function
149
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
150
- * Enable X-Ray Tracing
151
- * Enable Failure-Handling features like enable bisect on function Error, set defaults for Maximum Record Age (24 hours) & Maximum Retry Attempts (500) and deploy SQS dead-letter queue as destination on failure
152
- * Set Environment Variables
153
-
154
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
155
-
156
- ## Architecture
157
-
158
- ![Architecture Diagram](architecture.png)
159
-
160
- ---
161
-
162
-
163
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -1,136 +0,0 @@
1
- # aws-dynamodbstreams-lambda module
2
-
3
- <!--BEGIN STABILITY BANNER-->---
4
-
5
-
6
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
7
-
8
- > All classes are under active development and subject to non-backward compatible changes or removal in any
9
- > future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
10
- > This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
11
-
12
- ---
13
- <!--END STABILITY BANNER-->
14
-
15
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
16
- |:-------------|:-------------|
17
-
18
- <div style="height:8px"></div>
19
-
20
- | **Language** | **Package** |
21
- |:-------------|-----------------|
22
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_dynamodbstreams_lambda`|
23
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-dynamodbstreams-lambda`|
24
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.dynamodbstreamslambda`|
25
-
26
- ## Overview
27
-
28
- This AWS Solutions Construct implements an Amazon DynamoDB table with stream that invokes an AWS Lambda function with the least privileged permissions.
29
-
30
- Here is a minimal deployable pattern definition:
31
-
32
- Typescript
33
-
34
- ```python
35
- import { Construct } from 'constructs';
36
- import { Stack, StackProps } from 'aws-cdk-lib';
37
- import { DynamoDBStreamsToLambdaProps, DynamoDBStreamsToLambda} from '@aws-solutions-constructs/aws-dynamodbstreams-lambda';
38
- import * as lambda from 'aws-cdk-lib/aws-lambda';
39
-
40
- new DynamoDBStreamsToLambda(this, 'test-dynamodbstreams-lambda', {
41
- lambdaFunctionProps: {
42
- code: lambda.Code.fromAsset(`lambda`),
43
- runtime: lambda.Runtime.NODEJS_20_X,
44
- handler: 'index.handler'
45
- },
46
- });
47
- ```
48
-
49
- Python
50
-
51
- ```python
52
- from aws_solutions_constructs.aws_dynamodbstreams_lambda import DynamoDBStreamsToLambda
53
- from aws_cdk import (
54
- aws_lambda as _lambda,
55
- Stack
56
- )
57
- from constructs import Construct
58
-
59
- DynamoDBStreamsToLambda(self, 'test-dynamodbstreams-lambda',
60
- lambda_function_props=_lambda.FunctionProps(
61
- code=_lambda.Code.from_asset('lambda'),
62
- runtime=_lambda.Runtime.PYTHON_3_11,
63
- handler='index.handler'
64
- )
65
- )
66
- ```
67
-
68
- Java
69
-
70
- ```java
71
- import software.constructs.Construct;
72
-
73
- import software.amazon.awscdk.Stack;
74
- import software.amazon.awscdk.StackProps;
75
- import software.amazon.awscdk.services.lambda.*;
76
- import software.amazon.awscdk.services.lambda.Runtime;
77
- import software.amazon.awsconstructs.services.dynamodbstreamslambda.*;
78
-
79
- new DynamoDBStreamsToLambda(this, "test-dynamodbstreams-lambda",
80
- new DynamoDBStreamsToLambdaProps.Builder()
81
- .lambdaFunctionProps(new FunctionProps.Builder()
82
- .runtime(Runtime.NODEJS_20_X)
83
- .code(Code.fromAsset("lambda"))
84
- .handler("index.handler")
85
- .build())
86
- .build());
87
- ```
88
-
89
- ## Pattern Construct Props
90
-
91
- | **Name** | **Type** | **Description** |
92
- |:-------------|:----------------|-----------------|
93
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
94
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
95
- |dynamoTableProps?|[`dynamodb.TableProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.TableProps.html)|Optional user provided props to override the default props for DynamoDB Table|
96
- |existingTableInterface?|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Existing instance of DynamoDB table object or interface, providing both this and `dynamoTableProps` will cause an error.|
97
- |dynamoEventSourceProps?|[`aws-lambda-event-sources.DynamoEventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.DynamoEventSourceProps.html)|Optional user provided props to override the default props for DynamoDB Event Source|
98
-
99
- ## Pattern Properties
100
-
101
- | **Name** | **Type** | **Description** |
102
- |:-------------|:----------------|-----------------|
103
- |dynamoTableInterface|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Returns an instance of dynamodb.ITable created by the construct|
104
- |dynamoTable?|[`dynamodb.Table`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.Table.html)|Returns an instance of dynamodb.Table created by the construct. IMPORTANT: If existingTableInterface was provided in Pattern Construct Props, this property will be `undefined`|
105
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|
106
-
107
- ## Default settings
108
-
109
- Out of the box implementation of the Construct without any override will set the following defaults:
110
-
111
- ### Amazon DynamoDB Table
112
-
113
- * Set the billing mode for DynamoDB Table to On-Demand (Pay per request)
114
- * Enable server-side encryption for DynamoDB Table using AWS managed KMS Key
115
- * Creates a partition key called 'id' for DynamoDB Table
116
- * Retain the Table when deleting the CloudFormation stack
117
- * Enable continuous backups and point-in-time recovery
118
-
119
- ### AWS Lambda Function
120
-
121
- * Configure limited privilege access IAM role for Lambda function
122
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
123
- * Enable X-Ray Tracing
124
- * Enable Failure-Handling features like enable bisect on function Error, set defaults for Maximum Record Age (24 hours) & Maximum Retry Attempts (500) and deploy SQS dead-letter queue as destination on failure
125
- * Set Environment Variables
126
-
127
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
128
-
129
- ## Architecture
130
-
131
- ![Architecture Diagram](architecture.png)
132
-
133
- ---
134
-
135
-
136
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -1,163 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aws-solutions-constructs.aws-dynamodbstreams-lambda
3
- Version: 2.85.2
4
- Summary: CDK Constructs for AWS DynamoDB Streams to AWS Lambda integration.
5
- Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
- Author: Amazon Web Services
7
- License: Apache-2.0
8
- Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: JavaScript
12
- Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Typing :: Typed
17
- Classifier: License :: OSI Approved
18
- Requires-Python: ~=3.9
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE
21
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
- Requires-Dist: aws-solutions-constructs.core==2.85.2
23
- Requires-Dist: constructs<11.0.0,>=10.0.0
24
- Requires-Dist: jsii<2.0.0,>=1.111.0
25
- Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard<4.3.0,>=2.13.3
27
-
28
- # aws-dynamodbstreams-lambda module
29
-
30
- <!--BEGIN STABILITY BANNER-->---
31
-
32
-
33
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
34
-
35
- > All classes are under active development and subject to non-backward compatible changes or removal in any
36
- > future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
37
- > This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
38
-
39
- ---
40
- <!--END STABILITY BANNER-->
41
-
42
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
43
- |:-------------|:-------------|
44
-
45
- <div style="height:8px"></div>
46
-
47
- | **Language** | **Package** |
48
- |:-------------|-----------------|
49
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_dynamodbstreams_lambda`|
50
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-dynamodbstreams-lambda`|
51
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.dynamodbstreamslambda`|
52
-
53
- ## Overview
54
-
55
- This AWS Solutions Construct implements an Amazon DynamoDB table with stream that invokes an AWS Lambda function with the least privileged permissions.
56
-
57
- Here is a minimal deployable pattern definition:
58
-
59
- Typescript
60
-
61
- ```python
62
- import { Construct } from 'constructs';
63
- import { Stack, StackProps } from 'aws-cdk-lib';
64
- import { DynamoDBStreamsToLambdaProps, DynamoDBStreamsToLambda} from '@aws-solutions-constructs/aws-dynamodbstreams-lambda';
65
- import * as lambda from 'aws-cdk-lib/aws-lambda';
66
-
67
- new DynamoDBStreamsToLambda(this, 'test-dynamodbstreams-lambda', {
68
- lambdaFunctionProps: {
69
- code: lambda.Code.fromAsset(`lambda`),
70
- runtime: lambda.Runtime.NODEJS_20_X,
71
- handler: 'index.handler'
72
- },
73
- });
74
- ```
75
-
76
- Python
77
-
78
- ```python
79
- from aws_solutions_constructs.aws_dynamodbstreams_lambda import DynamoDBStreamsToLambda
80
- from aws_cdk import (
81
- aws_lambda as _lambda,
82
- Stack
83
- )
84
- from constructs import Construct
85
-
86
- DynamoDBStreamsToLambda(self, 'test-dynamodbstreams-lambda',
87
- lambda_function_props=_lambda.FunctionProps(
88
- code=_lambda.Code.from_asset('lambda'),
89
- runtime=_lambda.Runtime.PYTHON_3_11,
90
- handler='index.handler'
91
- )
92
- )
93
- ```
94
-
95
- Java
96
-
97
- ```java
98
- import software.constructs.Construct;
99
-
100
- import software.amazon.awscdk.Stack;
101
- import software.amazon.awscdk.StackProps;
102
- import software.amazon.awscdk.services.lambda.*;
103
- import software.amazon.awscdk.services.lambda.Runtime;
104
- import software.amazon.awsconstructs.services.dynamodbstreamslambda.*;
105
-
106
- new DynamoDBStreamsToLambda(this, "test-dynamodbstreams-lambda",
107
- new DynamoDBStreamsToLambdaProps.Builder()
108
- .lambdaFunctionProps(new FunctionProps.Builder()
109
- .runtime(Runtime.NODEJS_20_X)
110
- .code(Code.fromAsset("lambda"))
111
- .handler("index.handler")
112
- .build())
113
- .build());
114
- ```
115
-
116
- ## Pattern Construct Props
117
-
118
- | **Name** | **Type** | **Description** |
119
- |:-------------|:----------------|-----------------|
120
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
121
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
122
- |dynamoTableProps?|[`dynamodb.TableProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.TableProps.html)|Optional user provided props to override the default props for DynamoDB Table|
123
- |existingTableInterface?|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Existing instance of DynamoDB table object or interface, providing both this and `dynamoTableProps` will cause an error.|
124
- |dynamoEventSourceProps?|[`aws-lambda-event-sources.DynamoEventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.DynamoEventSourceProps.html)|Optional user provided props to override the default props for DynamoDB Event Source|
125
-
126
- ## Pattern Properties
127
-
128
- | **Name** | **Type** | **Description** |
129
- |:-------------|:----------------|-----------------|
130
- |dynamoTableInterface|[`dynamodb.ITable`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.ITable.html)|Returns an instance of dynamodb.ITable created by the construct|
131
- |dynamoTable?|[`dynamodb.Table`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.Table.html)|Returns an instance of dynamodb.Table created by the construct. IMPORTANT: If existingTableInterface was provided in Pattern Construct Props, this property will be `undefined`|
132
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|
133
-
134
- ## Default settings
135
-
136
- Out of the box implementation of the Construct without any override will set the following defaults:
137
-
138
- ### Amazon DynamoDB Table
139
-
140
- * Set the billing mode for DynamoDB Table to On-Demand (Pay per request)
141
- * Enable server-side encryption for DynamoDB Table using AWS managed KMS Key
142
- * Creates a partition key called 'id' for DynamoDB Table
143
- * Retain the Table when deleting the CloudFormation stack
144
- * Enable continuous backups and point-in-time recovery
145
-
146
- ### AWS Lambda Function
147
-
148
- * Configure limited privilege access IAM role for Lambda function
149
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
150
- * Enable X-Ray Tracing
151
- * Enable Failure-Handling features like enable bisect on function Error, set defaults for Maximum Record Age (24 hours) & Maximum Retry Attempts (500) and deploy SQS dead-letter queue as destination on failure
152
- * Set Environment Variables
153
-
154
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
155
-
156
- ## Architecture
157
-
158
- ![Architecture Diagram](architecture.png)
159
-
160
- ---
161
-
162
-
163
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.