aws-solutions-constructs.aws-s3-lambda 2.85.2__tar.gz → 2.85.3__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.

Potentially problematic release.


This version of aws-solutions-constructs.aws-s3-lambda might be problematic. Click here for more details.

Files changed (20) hide show
  1. aws_solutions_constructs_aws_s3_lambda-2.85.3/PKG-INFO +28 -0
  2. aws_solutions_constructs_aws_s3_lambda-2.85.3/README.md +1 -0
  3. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/setup.py +3 -3
  4. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs/aws_s3_lambda/__init__.py +1 -135
  5. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs/aws_s3_lambda/_jsii/__init__.py +2 -2
  6. aws_solutions_constructs_aws_s3_lambda-2.85.3/src/aws_solutions_constructs/aws_s3_lambda/_jsii/aws-s3-lambda@2.85.3.jsii.tgz +0 -0
  7. aws_solutions_constructs_aws_s3_lambda-2.85.3/src/aws_solutions_constructs.aws_s3_lambda.egg-info/PKG-INFO +28 -0
  8. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs.aws_s3_lambda.egg-info/SOURCES.txt +1 -1
  9. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs.aws_s3_lambda.egg-info/requires.txt +1 -1
  10. aws_solutions_constructs_aws_s3_lambda-2.85.2/PKG-INFO +0 -162
  11. aws_solutions_constructs_aws_s3_lambda-2.85.2/README.md +0 -135
  12. aws_solutions_constructs_aws_s3_lambda-2.85.2/src/aws_solutions_constructs/aws_s3_lambda/_jsii/aws-s3-lambda@2.85.2.jsii.tgz +0 -0
  13. aws_solutions_constructs_aws_s3_lambda-2.85.2/src/aws_solutions_constructs.aws_s3_lambda.egg-info/PKG-INFO +0 -162
  14. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/LICENSE +0 -0
  15. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/MANIFEST.in +0 -0
  16. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/pyproject.toml +0 -0
  17. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/setup.cfg +0 -0
  18. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs/aws_s3_lambda/py.typed +0 -0
  19. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs.aws_s3_lambda.egg-info/dependency_links.txt +0 -0
  20. {aws_solutions_constructs_aws_s3_lambda-2.85.2 → aws_solutions_constructs_aws_s3_lambda-2.85.3}/src/aws_solutions_constructs.aws_s3_lambda.egg-info/top_level.txt +0 -0
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-s3-lambda
3
+ Version: 2.85.3
4
+ Summary: CDK Constructs for AWS S3 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.3
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-s3-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-s3-lambda/README.adoc)
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "aws-solutions-constructs.aws-s3-lambda",
8
- "version": "2.85.2",
8
+ "version": "2.85.3",
9
9
  "description": "CDK Constructs for AWS S3 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_s3_lambda._jsii": [
29
- "aws-s3-lambda@2.85.2.jsii.tgz"
29
+ "aws-s3-lambda@2.85.3.jsii.tgz"
30
30
  ],
31
31
  "aws_solutions_constructs.aws_s3_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.3",
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,139 +1,5 @@
1
1
  r'''
2
- # aws-s3-lambda module
3
-
4
- <!--BEGIN STABILITY BANNER-->---
5
-
6
-
7
- ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
8
-
9
- ---
10
- <!--END STABILITY BANNER-->
11
-
12
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
13
- |:-------------|:-------------|
14
-
15
- <div style="height:8px"></div>
16
-
17
- | **Language** | **Package** |
18
- |:-------------|-----------------|
19
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_s3_lambda`|
20
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-s3-lambda`|
21
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.s3lambda`|
22
-
23
- ## Overview
24
-
25
- This AWS Solutions Construct implements an Amazon S3 bucket connected to an AWS Lambda function.
26
-
27
- Here is a minimal deployable pattern definition:
28
-
29
- Typescript
30
-
31
- ```python
32
- import { Construct } from 'constructs';
33
- import { Stack, StackProps } from 'aws-cdk-lib';
34
- import * as lambda from "aws-cdk-lib/aws-lambda";
35
- import { S3ToLambdaProps, S3ToLambda } from '@aws-solutions-constructs/aws-s3-lambda';
36
-
37
- new S3ToLambda(this, 'test-s3-lambda', {
38
- lambdaFunctionProps: {
39
- code: lambda.Code.fromAsset(`lambda`),
40
- runtime: lambda.Runtime.NODEJS_20_X,
41
- handler: 'index.handler'
42
- },
43
- });
44
- ```
45
-
46
- Python
47
-
48
- ```python
49
- from aws_solutions_constructs.aws_s3_lambda import S3ToLambda
50
- from aws_cdk import (
51
- aws_lambda as _lambda,
52
- Stack
53
- )
54
- from constructs import Construct
55
-
56
- S3ToLambda(self, 'test_s3_lambda',
57
- lambda_function_props=_lambda.FunctionProps(
58
- code=_lambda.Code.from_asset('lambda'),
59
- runtime=_lambda.Runtime.PYTHON_3_11,
60
- handler='index.handler'
61
- )
62
- )
63
- ```
64
-
65
- Java
66
-
67
- ```java
68
- import software.constructs.Construct;
69
-
70
- import software.amazon.awscdk.Stack;
71
- import software.amazon.awscdk.StackProps;
72
- import software.amazon.awscdk.services.lambda.*;
73
- import software.amazon.awscdk.services.lambda.Runtime;
74
- import software.amazon.awsconstructs.services.s3lambda.*;
75
-
76
- new S3ToLambda(this, "test-s3-lambda'", new S3ToLambdaProps.Builder()
77
- .lambdaFunctionProps(new FunctionProps.Builder()
78
- .runtime(Runtime.NODEJS_20_X)
79
- .code(Code.fromAsset("lambda"))
80
- .handler("index.handler")
81
- .build())
82
- .build());
83
- ```
84
-
85
- ## Pattern Construct Props
86
-
87
- | **Name** | **Type** | **Description** |
88
- |:-------------|:----------------|-----------------|
89
- |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.|
90
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|Optional user provided props to override the default props for the Lambda function.|
91
- |existingBucketObj?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Existing instance of S3 Bucket object. If this is provided, then also providing bucketProps is an error. |
92
- |bucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Bucket.|
93
- |s3EventSourceProps?|[`S3EventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.S3EventSourceProps.html)|Optional user provided props to override the default props for S3EventSourceProps|
94
- |loggingBucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Logging Bucket.|
95
- |logS3AccessLogs?| boolean|Whether to turn on Access Logging for the S3 bucket. Creates an S3 bucket with associated storage costs for the logs. Enabling Access Logging is a best practice. default - true|
96
-
97
- ## Pattern Properties
98
-
99
- | **Name** | **Type** | **Description** |
100
- |:-------------|:----------------|-----------------|
101
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of the lambda.Function created by the construct|
102
- |s3Bucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of the s3.Bucket created by the construct|
103
- |s3LoggingBucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of s3.Bucket created by the construct as the logging bucket for the primary bucket.|
104
- |s3BucketInterface|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|Returns an instance of s3.IBucket created by the construct|
105
-
106
- ## Default settings
107
-
108
- Out of the box implementation of the Construct without any override will set the following defaults:
109
-
110
- ### Amazon S3 Bucket
111
-
112
- * Configure Access logging for S3 Bucket
113
- * Enable server-side encryption for S3 Bucket using AWS managed KMS Key
114
- * Enforce encryption of data in transit
115
- * Turn on the versioning for S3 Bucket
116
- * Don't allow public access for S3 Bucket
117
- * Retain the S3 Bucket when deleting the CloudFormation stack
118
- * Applies Lifecycle rule to move noncurrent object versions to Glacier storage after 90 days
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
- * 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.
2
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-s3-lambda/README.adoc)
137
3
  '''
138
4
  from pkgutil import extend_path
139
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-s3-lambda",
37
- "2.85.2",
37
+ "2.85.3",
38
38
  __name__[0:-6],
39
- "aws-s3-lambda@2.85.2.jsii.tgz",
39
+ "aws-s3-lambda@2.85.3.jsii.tgz",
40
40
  )
41
41
 
42
42
  __all__ = [
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-s3-lambda
3
+ Version: 2.85.3
4
+ Summary: CDK Constructs for AWS S3 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.3
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-s3-lambda/README.adoc)
@@ -11,4 +11,4 @@ src/aws_solutions_constructs.aws_s3_lambda.egg-info/top_level.txt
11
11
  src/aws_solutions_constructs/aws_s3_lambda/__init__.py
12
12
  src/aws_solutions_constructs/aws_s3_lambda/py.typed
13
13
  src/aws_solutions_constructs/aws_s3_lambda/_jsii/__init__.py
14
- src/aws_solutions_constructs/aws_s3_lambda/_jsii/aws-s3-lambda@2.85.2.jsii.tgz
14
+ src/aws_solutions_constructs/aws_s3_lambda/_jsii/aws-s3-lambda@2.85.3.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.3
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,162 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aws-solutions-constructs.aws-s3-lambda
3
- Version: 2.85.2
4
- Summary: CDK Constructs for AWS S3 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-s3-lambda module
29
-
30
- <!--BEGIN STABILITY BANNER-->---
31
-
32
-
33
- ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
34
-
35
- ---
36
- <!--END STABILITY BANNER-->
37
-
38
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
39
- |:-------------|:-------------|
40
-
41
- <div style="height:8px"></div>
42
-
43
- | **Language** | **Package** |
44
- |:-------------|-----------------|
45
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_s3_lambda`|
46
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-s3-lambda`|
47
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.s3lambda`|
48
-
49
- ## Overview
50
-
51
- This AWS Solutions Construct implements an Amazon S3 bucket connected to an AWS Lambda function.
52
-
53
- Here is a minimal deployable pattern definition:
54
-
55
- Typescript
56
-
57
- ```python
58
- import { Construct } from 'constructs';
59
- import { Stack, StackProps } from 'aws-cdk-lib';
60
- import * as lambda from "aws-cdk-lib/aws-lambda";
61
- import { S3ToLambdaProps, S3ToLambda } from '@aws-solutions-constructs/aws-s3-lambda';
62
-
63
- new S3ToLambda(this, 'test-s3-lambda', {
64
- lambdaFunctionProps: {
65
- code: lambda.Code.fromAsset(`lambda`),
66
- runtime: lambda.Runtime.NODEJS_20_X,
67
- handler: 'index.handler'
68
- },
69
- });
70
- ```
71
-
72
- Python
73
-
74
- ```python
75
- from aws_solutions_constructs.aws_s3_lambda import S3ToLambda
76
- from aws_cdk import (
77
- aws_lambda as _lambda,
78
- Stack
79
- )
80
- from constructs import Construct
81
-
82
- S3ToLambda(self, 'test_s3_lambda',
83
- lambda_function_props=_lambda.FunctionProps(
84
- code=_lambda.Code.from_asset('lambda'),
85
- runtime=_lambda.Runtime.PYTHON_3_11,
86
- handler='index.handler'
87
- )
88
- )
89
- ```
90
-
91
- Java
92
-
93
- ```java
94
- import software.constructs.Construct;
95
-
96
- import software.amazon.awscdk.Stack;
97
- import software.amazon.awscdk.StackProps;
98
- import software.amazon.awscdk.services.lambda.*;
99
- import software.amazon.awscdk.services.lambda.Runtime;
100
- import software.amazon.awsconstructs.services.s3lambda.*;
101
-
102
- new S3ToLambda(this, "test-s3-lambda'", new S3ToLambdaProps.Builder()
103
- .lambdaFunctionProps(new FunctionProps.Builder()
104
- .runtime(Runtime.NODEJS_20_X)
105
- .code(Code.fromAsset("lambda"))
106
- .handler("index.handler")
107
- .build())
108
- .build());
109
- ```
110
-
111
- ## Pattern Construct Props
112
-
113
- | **Name** | **Type** | **Description** |
114
- |:-------------|:----------------|-----------------|
115
- |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.|
116
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|Optional user provided props to override the default props for the Lambda function.|
117
- |existingBucketObj?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Existing instance of S3 Bucket object. If this is provided, then also providing bucketProps is an error. |
118
- |bucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Bucket.|
119
- |s3EventSourceProps?|[`S3EventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.S3EventSourceProps.html)|Optional user provided props to override the default props for S3EventSourceProps|
120
- |loggingBucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Logging Bucket.|
121
- |logS3AccessLogs?| boolean|Whether to turn on Access Logging for the S3 bucket. Creates an S3 bucket with associated storage costs for the logs. Enabling Access Logging is a best practice. default - true|
122
-
123
- ## Pattern Properties
124
-
125
- | **Name** | **Type** | **Description** |
126
- |:-------------|:----------------|-----------------|
127
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of the lambda.Function created by the construct|
128
- |s3Bucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of the s3.Bucket created by the construct|
129
- |s3LoggingBucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of s3.Bucket created by the construct as the logging bucket for the primary bucket.|
130
- |s3BucketInterface|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|Returns an instance of s3.IBucket created by the construct|
131
-
132
- ## Default settings
133
-
134
- Out of the box implementation of the Construct without any override will set the following defaults:
135
-
136
- ### Amazon S3 Bucket
137
-
138
- * Configure Access logging for S3 Bucket
139
- * Enable server-side encryption for S3 Bucket using AWS managed KMS Key
140
- * Enforce encryption of data in transit
141
- * Turn on the versioning for S3 Bucket
142
- * Don't allow public access for S3 Bucket
143
- * Retain the S3 Bucket when deleting the CloudFormation stack
144
- * Applies Lifecycle rule to move noncurrent object versions to Glacier storage after 90 days
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
- * Set Environment Variables
152
-
153
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
154
-
155
- ## Architecture
156
-
157
- ![Architecture Diagram](architecture.png)
158
-
159
- ---
160
-
161
-
162
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -1,135 +0,0 @@
1
- # aws-s3-lambda module
2
-
3
- <!--BEGIN STABILITY BANNER-->---
4
-
5
-
6
- ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
7
-
8
- ---
9
- <!--END STABILITY BANNER-->
10
-
11
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
12
- |:-------------|:-------------|
13
-
14
- <div style="height:8px"></div>
15
-
16
- | **Language** | **Package** |
17
- |:-------------|-----------------|
18
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_s3_lambda`|
19
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-s3-lambda`|
20
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.s3lambda`|
21
-
22
- ## Overview
23
-
24
- This AWS Solutions Construct implements an Amazon S3 bucket connected to an AWS Lambda function.
25
-
26
- Here is a minimal deployable pattern definition:
27
-
28
- Typescript
29
-
30
- ```python
31
- import { Construct } from 'constructs';
32
- import { Stack, StackProps } from 'aws-cdk-lib';
33
- import * as lambda from "aws-cdk-lib/aws-lambda";
34
- import { S3ToLambdaProps, S3ToLambda } from '@aws-solutions-constructs/aws-s3-lambda';
35
-
36
- new S3ToLambda(this, 'test-s3-lambda', {
37
- lambdaFunctionProps: {
38
- code: lambda.Code.fromAsset(`lambda`),
39
- runtime: lambda.Runtime.NODEJS_20_X,
40
- handler: 'index.handler'
41
- },
42
- });
43
- ```
44
-
45
- Python
46
-
47
- ```python
48
- from aws_solutions_constructs.aws_s3_lambda import S3ToLambda
49
- from aws_cdk import (
50
- aws_lambda as _lambda,
51
- Stack
52
- )
53
- from constructs import Construct
54
-
55
- S3ToLambda(self, 'test_s3_lambda',
56
- lambda_function_props=_lambda.FunctionProps(
57
- code=_lambda.Code.from_asset('lambda'),
58
- runtime=_lambda.Runtime.PYTHON_3_11,
59
- handler='index.handler'
60
- )
61
- )
62
- ```
63
-
64
- Java
65
-
66
- ```java
67
- import software.constructs.Construct;
68
-
69
- import software.amazon.awscdk.Stack;
70
- import software.amazon.awscdk.StackProps;
71
- import software.amazon.awscdk.services.lambda.*;
72
- import software.amazon.awscdk.services.lambda.Runtime;
73
- import software.amazon.awsconstructs.services.s3lambda.*;
74
-
75
- new S3ToLambda(this, "test-s3-lambda'", new S3ToLambdaProps.Builder()
76
- .lambdaFunctionProps(new FunctionProps.Builder()
77
- .runtime(Runtime.NODEJS_20_X)
78
- .code(Code.fromAsset("lambda"))
79
- .handler("index.handler")
80
- .build())
81
- .build());
82
- ```
83
-
84
- ## Pattern Construct Props
85
-
86
- | **Name** | **Type** | **Description** |
87
- |:-------------|:----------------|-----------------|
88
- |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.|
89
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|Optional user provided props to override the default props for the Lambda function.|
90
- |existingBucketObj?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Existing instance of S3 Bucket object. If this is provided, then also providing bucketProps is an error. |
91
- |bucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Bucket.|
92
- |s3EventSourceProps?|[`S3EventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.S3EventSourceProps.html)|Optional user provided props to override the default props for S3EventSourceProps|
93
- |loggingBucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Logging Bucket.|
94
- |logS3AccessLogs?| boolean|Whether to turn on Access Logging for the S3 bucket. Creates an S3 bucket with associated storage costs for the logs. Enabling Access Logging is a best practice. default - true|
95
-
96
- ## Pattern Properties
97
-
98
- | **Name** | **Type** | **Description** |
99
- |:-------------|:----------------|-----------------|
100
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of the lambda.Function created by the construct|
101
- |s3Bucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of the s3.Bucket created by the construct|
102
- |s3LoggingBucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of s3.Bucket created by the construct as the logging bucket for the primary bucket.|
103
- |s3BucketInterface|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|Returns an instance of s3.IBucket created by the construct|
104
-
105
- ## Default settings
106
-
107
- Out of the box implementation of the Construct without any override will set the following defaults:
108
-
109
- ### Amazon S3 Bucket
110
-
111
- * Configure Access logging for S3 Bucket
112
- * Enable server-side encryption for S3 Bucket using AWS managed KMS Key
113
- * Enforce encryption of data in transit
114
- * Turn on the versioning for S3 Bucket
115
- * Don't allow public access for S3 Bucket
116
- * Retain the S3 Bucket when deleting the CloudFormation stack
117
- * Applies Lifecycle rule to move noncurrent object versions to Glacier storage after 90 days
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
- * Set Environment Variables
125
-
126
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
127
-
128
- ## Architecture
129
-
130
- ![Architecture Diagram](architecture.png)
131
-
132
- ---
133
-
134
-
135
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -1,162 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aws-solutions-constructs.aws-s3-lambda
3
- Version: 2.85.2
4
- Summary: CDK Constructs for AWS S3 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-s3-lambda module
29
-
30
- <!--BEGIN STABILITY BANNER-->---
31
-
32
-
33
- ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
34
-
35
- ---
36
- <!--END STABILITY BANNER-->
37
-
38
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
39
- |:-------------|:-------------|
40
-
41
- <div style="height:8px"></div>
42
-
43
- | **Language** | **Package** |
44
- |:-------------|-----------------|
45
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_s3_lambda`|
46
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-s3-lambda`|
47
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.s3lambda`|
48
-
49
- ## Overview
50
-
51
- This AWS Solutions Construct implements an Amazon S3 bucket connected to an AWS Lambda function.
52
-
53
- Here is a minimal deployable pattern definition:
54
-
55
- Typescript
56
-
57
- ```python
58
- import { Construct } from 'constructs';
59
- import { Stack, StackProps } from 'aws-cdk-lib';
60
- import * as lambda from "aws-cdk-lib/aws-lambda";
61
- import { S3ToLambdaProps, S3ToLambda } from '@aws-solutions-constructs/aws-s3-lambda';
62
-
63
- new S3ToLambda(this, 'test-s3-lambda', {
64
- lambdaFunctionProps: {
65
- code: lambda.Code.fromAsset(`lambda`),
66
- runtime: lambda.Runtime.NODEJS_20_X,
67
- handler: 'index.handler'
68
- },
69
- });
70
- ```
71
-
72
- Python
73
-
74
- ```python
75
- from aws_solutions_constructs.aws_s3_lambda import S3ToLambda
76
- from aws_cdk import (
77
- aws_lambda as _lambda,
78
- Stack
79
- )
80
- from constructs import Construct
81
-
82
- S3ToLambda(self, 'test_s3_lambda',
83
- lambda_function_props=_lambda.FunctionProps(
84
- code=_lambda.Code.from_asset('lambda'),
85
- runtime=_lambda.Runtime.PYTHON_3_11,
86
- handler='index.handler'
87
- )
88
- )
89
- ```
90
-
91
- Java
92
-
93
- ```java
94
- import software.constructs.Construct;
95
-
96
- import software.amazon.awscdk.Stack;
97
- import software.amazon.awscdk.StackProps;
98
- import software.amazon.awscdk.services.lambda.*;
99
- import software.amazon.awscdk.services.lambda.Runtime;
100
- import software.amazon.awsconstructs.services.s3lambda.*;
101
-
102
- new S3ToLambda(this, "test-s3-lambda'", new S3ToLambdaProps.Builder()
103
- .lambdaFunctionProps(new FunctionProps.Builder()
104
- .runtime(Runtime.NODEJS_20_X)
105
- .code(Code.fromAsset("lambda"))
106
- .handler("index.handler")
107
- .build())
108
- .build());
109
- ```
110
-
111
- ## Pattern Construct Props
112
-
113
- | **Name** | **Type** | **Description** |
114
- |:-------------|:----------------|-----------------|
115
- |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.|
116
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|Optional user provided props to override the default props for the Lambda function.|
117
- |existingBucketObj?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Existing instance of S3 Bucket object. If this is provided, then also providing bucketProps is an error. |
118
- |bucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Bucket.|
119
- |s3EventSourceProps?|[`S3EventSourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.S3EventSourceProps.html)|Optional user provided props to override the default props for S3EventSourceProps|
120
- |loggingBucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketProps.html)|Optional user provided props to override the default props for the S3 Logging Bucket.|
121
- |logS3AccessLogs?| boolean|Whether to turn on Access Logging for the S3 bucket. Creates an S3 bucket with associated storage costs for the logs. Enabling Access Logging is a best practice. default - true|
122
-
123
- ## Pattern Properties
124
-
125
- | **Name** | **Type** | **Description** |
126
- |:-------------|:----------------|-----------------|
127
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of the lambda.Function created by the construct|
128
- |s3Bucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of the s3.Bucket created by the construct|
129
- |s3LoggingBucket?|[`s3.Bucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html)|Returns an instance of s3.Bucket created by the construct as the logging bucket for the primary bucket.|
130
- |s3BucketInterface|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|Returns an instance of s3.IBucket created by the construct|
131
-
132
- ## Default settings
133
-
134
- Out of the box implementation of the Construct without any override will set the following defaults:
135
-
136
- ### Amazon S3 Bucket
137
-
138
- * Configure Access logging for S3 Bucket
139
- * Enable server-side encryption for S3 Bucket using AWS managed KMS Key
140
- * Enforce encryption of data in transit
141
- * Turn on the versioning for S3 Bucket
142
- * Don't allow public access for S3 Bucket
143
- * Retain the S3 Bucket when deleting the CloudFormation stack
144
- * Applies Lifecycle rule to move noncurrent object versions to Glacier storage after 90 days
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
- * Set Environment Variables
152
-
153
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
154
-
155
- ## Architecture
156
-
157
- ![Architecture Diagram](architecture.png)
158
-
159
- ---
160
-
161
-
162
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.