aws-solutions-constructs.aws-lambda-elasticachememcached 2.85.1__py3-none-any.whl → 2.85.3__py3-none-any.whl
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-lambda-elasticachememcached might be problematic. Click here for more details.
- aws_solutions_constructs/aws_lambda_elasticachememcached/__init__.py +1 -133
- aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/__init__.py +2 -2
- aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/aws-lambda-elasticachememcached@2.85.3.jsii.tgz +0 -0
- aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/METADATA +28 -0
- aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/RECORD +9 -0
- aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/aws-lambda-elasticachememcached@2.85.1.jsii.tgz +0 -0
- aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/METADATA +0 -160
- aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/RECORD +0 -9
- {aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info → aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info}/LICENSE +0 -0
- {aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info → aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info}/WHEEL +0 -0
- {aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info → aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info}/top_level.txt +0 -0
|
@@ -1,137 +1,5 @@
|
|
|
1
1
|
r'''
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<!--BEGIN STABILITY BANNER-->---
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-

|
|
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|`aws_solutions_constructs.aws_lambda_elasticachememcached`|
|
|
20
|
-
| Typescript|`@aws-solutions-constructs/aws-lambda-elasticachememcached`|
|
|
21
|
-
| Java|`software.amazon.awsconstructs.services.lambdaelasticachememcached`|
|
|
22
|
-
|
|
23
|
-
## Overview
|
|
24
|
-
|
|
25
|
-
This AWS Solutions Construct implements an AWS Lambda function connected to an Amazon Elasticache Memcached cluster.
|
|
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 { LambdaToElasticachememcached } from '@aws-solutions-constructs/aws-lambda-elasticachememcached';
|
|
35
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
36
|
-
|
|
37
|
-
new LambdaToElasticachememcached(this, 'LambdaToElasticachememcachedPattern', {
|
|
38
|
-
lambdaFunctionProps: {
|
|
39
|
-
runtime: lambda.Runtime.NODEJS_20_X,
|
|
40
|
-
handler: 'index.handler',
|
|
41
|
-
code: lambda.Code.fromAsset(`lambda`)
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Python
|
|
47
|
-
|
|
48
|
-
```python
|
|
49
|
-
from aws_solutions_constructs.aws_lambda_elasticachememcached import LambdaToElasticachememcached
|
|
50
|
-
from aws_cdk import (
|
|
51
|
-
aws_lambda as _lambda,
|
|
52
|
-
Stack
|
|
53
|
-
)
|
|
54
|
-
from constructs import Construct
|
|
55
|
-
|
|
56
|
-
LambdaToElasticachememcached(self, 'LambdaToCachePattern',
|
|
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.lambdaelasticachememcached.*;
|
|
75
|
-
|
|
76
|
-
new LambdaToElasticachememcached(this, "LambdaToCachePattern", new LambdaToElasticachememcachedProps.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
|
-
|existingVpc?|[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|An optional, existing VPC into which this pattern should be deployed. When deployed in a VPC, the Lambda function will use ENIs in the VPC to access network resources and an Interface Endpoint will be created in the VPC for Amazon Elasticache. If an existing VPC is provided, the `deployVpc` property cannot be `true`. This uses `ec2.IVpc` to allow clients to supply VPCs that exist outside the stack using the [`ec2.Vpc.fromLookup()`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html#static-fromwbrlookupscope-id-options) method.|
|
|
92
|
-
|vpcProps?|[`ec2.VpcProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpcProps.html)|Optional user provided properties to override the default properties for the new VPC. `subnetConfiguration` is set by the pattern, so any values for those properties supplied here will be overridden. |
|
|
93
|
-
| cacheEndpointEnvironmentVariableName?| string | Optional Name for the Lambda function environment variable set to the cache endpoint. Default: CACHE_ENDPOINT |
|
|
94
|
-
| cacheProps? | [`cache.CfnCacheClusterProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheClusterProps.html) | Optional user provided props to override the default props for the Elasticache Cluster. Providing both this and `existingCache` will cause an error. |
|
|
95
|
-
| existingCache? | [`cache.CfnCacheCluster`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.html#attrconfigurationendpointport) | Existing instance of Elasticache Cluster object, providing both this and `cacheProps` will cause an error. If you provide this, you must provide the associated VPC in existingVpc. |
|
|
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 used by the pattern.|
|
|
102
|
-
|vpc |[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|Returns an interface on the VPC used by the pattern. This may be a VPC created by the pattern or the VPC supplied to the pattern constructor.|
|
|
103
|
-
| cache | [`cache.CfnCacheCluster`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.html#attrconfigurationendpointport) | The Elasticache Memcached cluster used 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
|
-
### AWS Lambda Function
|
|
110
|
-
|
|
111
|
-
* Configure limited privilege access IAM role for Lambda function
|
|
112
|
-
* Enable reusing connections with Keep-Alive for NodeJs Lambda function
|
|
113
|
-
* Enable X-Ray Tracing
|
|
114
|
-
* Attached to self referencing security group to grant access to cache
|
|
115
|
-
* Set Environment Variables
|
|
116
|
-
|
|
117
|
-
* (default) CACHE_ENDPOINT
|
|
118
|
-
* AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
|
|
119
|
-
|
|
120
|
-
### Amazon Elasticache Memcached Cluster
|
|
121
|
-
|
|
122
|
-
* Creates multi node, cross-az cluster by default
|
|
123
|
-
|
|
124
|
-
* 2 cache nodes, type: cache.t3.medium
|
|
125
|
-
* Self referencing security group attached to cluster endpoint
|
|
126
|
-
|
|
127
|
-
## Architecture
|
|
128
|
-
|
|
129
|
-

|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
© 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-lambda-elasticachememcached/README.adoc)
|
|
135
3
|
'''
|
|
136
4
|
from pkgutil import extend_path
|
|
137
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-lambda-elasticachememcached",
|
|
37
|
-
"2.85.
|
|
37
|
+
"2.85.3",
|
|
38
38
|
__name__[0:-6],
|
|
39
|
-
"aws-lambda-elasticachememcached@2.85.
|
|
39
|
+
"aws-lambda-elasticachememcached@2.85.3.jsii.tgz",
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
__all__ = [
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: aws-solutions-constructs.aws-lambda-elasticachememcached
|
|
3
|
+
Version: 2.85.3
|
|
4
|
+
Summary: CDK constructs for defining an interaction between an AWS Lambda function and an Amazon Elasticache memcached cache.
|
|
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-lambda-elasticachememcached/README.adoc)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
aws_solutions_constructs/aws_lambda_elasticachememcached/__init__.py,sha256=OqwXl7gXrwAf4910xrNOyA7pd6MQNumoAmAWWqn-VAU,15860
|
|
2
|
+
aws_solutions_constructs/aws_lambda_elasticachememcached/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/__init__.py,sha256=fZfZBCfw8zUOIeV_U7MmLxqg9M93Wg46Q7NOck6nt_g,1557
|
|
4
|
+
aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/aws-lambda-elasticachememcached@2.85.3.jsii.tgz,sha256=v_lk9eDjS2MCDIF_0ce05hkJXM1qE3-N-pFMXp5AFvg,111940
|
|
5
|
+
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
|
|
6
|
+
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/METADATA,sha256=4c7TJWlTthKpF_xv9jYBooYDP_LUrE5lMzG6XUusHns,1365
|
|
7
|
+
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
8
|
+
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
|
|
9
|
+
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.3.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: aws-solutions-constructs.aws-lambda-elasticachememcached
|
|
3
|
-
Version: 2.85.1
|
|
4
|
-
Summary: CDK constructs for defining an interaction between an AWS Lambda function and an Amazon Elasticache memcached cache.
|
|
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.1
|
|
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-lambda-elasticachememcached module
|
|
29
|
-
|
|
30
|
-
<!--BEGIN STABILITY BANNER-->---
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-

|
|
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|`aws_solutions_constructs.aws_lambda_elasticachememcached`|
|
|
46
|
-
| Typescript|`@aws-solutions-constructs/aws-lambda-elasticachememcached`|
|
|
47
|
-
| Java|`software.amazon.awsconstructs.services.lambdaelasticachememcached`|
|
|
48
|
-
|
|
49
|
-
## Overview
|
|
50
|
-
|
|
51
|
-
This AWS Solutions Construct implements an AWS Lambda function connected to an Amazon Elasticache Memcached cluster.
|
|
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 { LambdaToElasticachememcached } from '@aws-solutions-constructs/aws-lambda-elasticachememcached';
|
|
61
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
62
|
-
|
|
63
|
-
new LambdaToElasticachememcached(this, 'LambdaToElasticachememcachedPattern', {
|
|
64
|
-
lambdaFunctionProps: {
|
|
65
|
-
runtime: lambda.Runtime.NODEJS_20_X,
|
|
66
|
-
handler: 'index.handler',
|
|
67
|
-
code: lambda.Code.fromAsset(`lambda`)
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Python
|
|
73
|
-
|
|
74
|
-
```python
|
|
75
|
-
from aws_solutions_constructs.aws_lambda_elasticachememcached import LambdaToElasticachememcached
|
|
76
|
-
from aws_cdk import (
|
|
77
|
-
aws_lambda as _lambda,
|
|
78
|
-
Stack
|
|
79
|
-
)
|
|
80
|
-
from constructs import Construct
|
|
81
|
-
|
|
82
|
-
LambdaToElasticachememcached(self, 'LambdaToCachePattern',
|
|
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.lambdaelasticachememcached.*;
|
|
101
|
-
|
|
102
|
-
new LambdaToElasticachememcached(this, "LambdaToCachePattern", new LambdaToElasticachememcachedProps.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
|
-
|existingVpc?|[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|An optional, existing VPC into which this pattern should be deployed. When deployed in a VPC, the Lambda function will use ENIs in the VPC to access network resources and an Interface Endpoint will be created in the VPC for Amazon Elasticache. If an existing VPC is provided, the `deployVpc` property cannot be `true`. This uses `ec2.IVpc` to allow clients to supply VPCs that exist outside the stack using the [`ec2.Vpc.fromLookup()`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html#static-fromwbrlookupscope-id-options) method.|
|
|
118
|
-
|vpcProps?|[`ec2.VpcProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpcProps.html)|Optional user provided properties to override the default properties for the new VPC. `subnetConfiguration` is set by the pattern, so any values for those properties supplied here will be overridden. |
|
|
119
|
-
| cacheEndpointEnvironmentVariableName?| string | Optional Name for the Lambda function environment variable set to the cache endpoint. Default: CACHE_ENDPOINT |
|
|
120
|
-
| cacheProps? | [`cache.CfnCacheClusterProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheClusterProps.html) | Optional user provided props to override the default props for the Elasticache Cluster. Providing both this and `existingCache` will cause an error. |
|
|
121
|
-
| existingCache? | [`cache.CfnCacheCluster`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.html#attrconfigurationendpointport) | Existing instance of Elasticache Cluster object, providing both this and `cacheProps` will cause an error. If you provide this, you must provide the associated VPC in existingVpc. |
|
|
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 used by the pattern.|
|
|
128
|
-
|vpc |[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|Returns an interface on the VPC used by the pattern. This may be a VPC created by the pattern or the VPC supplied to the pattern constructor.|
|
|
129
|
-
| cache | [`cache.CfnCacheCluster`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.html#attrconfigurationendpointport) | The Elasticache Memcached cluster used by the construct. |
|
|
130
|
-
|
|
131
|
-
## Default settings
|
|
132
|
-
|
|
133
|
-
Out of the box implementation of the Construct without any override will set the following defaults:
|
|
134
|
-
|
|
135
|
-
### AWS Lambda Function
|
|
136
|
-
|
|
137
|
-
* Configure limited privilege access IAM role for Lambda function
|
|
138
|
-
* Enable reusing connections with Keep-Alive for NodeJs Lambda function
|
|
139
|
-
* Enable X-Ray Tracing
|
|
140
|
-
* Attached to self referencing security group to grant access to cache
|
|
141
|
-
* Set Environment Variables
|
|
142
|
-
|
|
143
|
-
* (default) CACHE_ENDPOINT
|
|
144
|
-
* AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
|
|
145
|
-
|
|
146
|
-
### Amazon Elasticache Memcached Cluster
|
|
147
|
-
|
|
148
|
-
* Creates multi node, cross-az cluster by default
|
|
149
|
-
|
|
150
|
-
* 2 cache nodes, type: cache.t3.medium
|
|
151
|
-
* Self referencing security group attached to cluster endpoint
|
|
152
|
-
|
|
153
|
-
## Architecture
|
|
154
|
-
|
|
155
|
-

|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
© Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
aws_solutions_constructs/aws_lambda_elasticachememcached/__init__.py,sha256=F6uSgk5KkoVQ1m63pFiit_FX_KlqcASjhbA9zZkoiPA,22445
|
|
2
|
-
aws_solutions_constructs/aws_lambda_elasticachememcached/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/__init__.py,sha256=ZF6dvylMFZ5ovqchKLfxoiHTDZrMaZrs9FV8wDGu2kk,1557
|
|
4
|
-
aws_solutions_constructs/aws_lambda_elasticachememcached/_jsii/aws-lambda-elasticachememcached@2.85.1.jsii.tgz,sha256=nz5aB-wBgEchaI0WmOkMiF3pr6mKOitltMyjRlE2TDo,113615
|
|
5
|
-
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
|
|
6
|
-
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/METADATA,sha256=BqMzkoU1xiHDNy9XbnBT_0T0IcEIyC_nqOCm1sqHvMc,7950
|
|
7
|
-
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
8
|
-
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
|
|
9
|
-
aws_solutions_constructs_aws_lambda_elasticachememcached-2.85.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|