aws-solutions-constructs.aws-lambda-kinesisfirehose 2.85.2__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.
- aws_solutions_constructs/aws_lambda_kinesisfirehose/__init__.py +1 -144
- aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/__init__.py +2 -2
- aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.3.jsii.tgz +0 -0
- aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/METADATA +29 -0
- aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/RECORD +9 -0
- aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.2.jsii.tgz +0 -0
- aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/METADATA +0 -172
- aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/RECORD +0 -9
- {aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info → aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info}/LICENSE +0 -0
- {aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info → aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info}/WHEEL +0 -0
- {aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info → aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info}/top_level.txt +0 -0
@@ -1,148 +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_kinesisfirehose`|
|
20
|
-
| Typescript|`@aws-solutions-constructs/aws-lambda-kinesisfirehose`|
|
21
|
-
| Java|`software.amazon.awsconstructs.services.lambdakinesisfirehose`|
|
22
|
-
|
23
|
-
## Overview
|
24
|
-
|
25
|
-
This AWS Solutions Construct implements an AWS Lambda function connected to an existing Amazon Kinesis Firehose Delivery Stream.
|
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 { LambdaToS3 } from '@aws-solutions-constructs/aws-lambda-kinesisfirehose';
|
35
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
36
|
-
|
37
|
-
// The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
38
|
-
// from a previously instantiated construct that created an Firehose Delivery Stream
|
39
|
-
const existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
40
|
-
|
41
|
-
new LambdaToKinesisFirehose(this, 'LambdaToFirehosePattern', {
|
42
|
-
lambdaFunctionProps: {
|
43
|
-
runtime: lambda.Runtime.NODEJS_20_X,
|
44
|
-
handler: 'index.handler',
|
45
|
-
code: lambda.Code.fromAsset(`lambda`)
|
46
|
-
},
|
47
|
-
existingKinesisFirehose: existingFirehoseDeliveryStream
|
48
|
-
});
|
49
|
-
```
|
50
|
-
|
51
|
-
Python
|
52
|
-
|
53
|
-
```python
|
54
|
-
from aws_solutions_constructs.aws_lambda_kinesisfirehose import LambdaToKinesisFirehose
|
55
|
-
from aws_cdk import (
|
56
|
-
aws_lambda as _lambda,
|
57
|
-
Stack
|
58
|
-
)
|
59
|
-
from constructs import Construct
|
60
|
-
|
61
|
-
# The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
62
|
-
# from a previously instantiated construct that created an Firehose Delivery Stream
|
63
|
-
existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
64
|
-
|
65
|
-
LambdaToKinesisFirehose(self, 'LambdaToFirehosePattern',
|
66
|
-
existingKinesisFirehose=existingFirehoseDeliveryStream,
|
67
|
-
lambda_function_props=_lambda.FunctionProps(
|
68
|
-
code=_lambda.Code.from_asset('lambda'),
|
69
|
-
runtime=_lambda.Runtime.PYTHON_3_11,
|
70
|
-
handler='index.handler'
|
71
|
-
)
|
72
|
-
)
|
73
|
-
```
|
74
|
-
|
75
|
-
Java
|
76
|
-
|
77
|
-
```java
|
78
|
-
import software.constructs.Construct;
|
79
|
-
|
80
|
-
import software.amazon.awscdk.Stack;
|
81
|
-
import software.amazon.awscdk.StackProps;
|
82
|
-
import software.amazon.awscdk.services.lambda.*;
|
83
|
-
import software.amazon.awscdk.services.lambda.Runtime;
|
84
|
-
import software.amazon.awsconstructs.services.lambdakinesisfirehose.*;
|
85
|
-
|
86
|
-
// The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
87
|
-
// from a previously instantiated construct that created an Firehose Delivery Stream
|
88
|
-
existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
89
|
-
|
90
|
-
new LambdaToKinesisFirehose(this, "LambdaToFirehosePattern", new LambdaToKinesisFirehoseProps.Builder()
|
91
|
-
.existingKinesisFirehose(existingFirehoseDeliveryStream)
|
92
|
-
.lambdaFunctionProps(new FunctionProps.Builder()
|
93
|
-
.runtime(Runtime.NODEJS_20_X)
|
94
|
-
.code(Code.fromAsset("lambda"))
|
95
|
-
.handler("index.handler")
|
96
|
-
.build())
|
97
|
-
.build());
|
98
|
-
```
|
99
|
-
|
100
|
-
## Pattern Construct Props
|
101
|
-
|
102
|
-
| **Name** | **Type** | **Description** |
|
103
|
-
|:-------------|:----------------|-----------------|
|
104
|
-
|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.|
|
105
|
-
|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.|
|
106
|
-
|existingKinesisFirehose|[kinesisfirehose.CfnDeliveryStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.html)|An existing Kinesis Firehose Delivery Stream to which the Lambda function can put data. Note - the delivery stream construct must have already been created and have the deliveryStreamName set. This construct will *not* create a new Delivery Stream.|
|
107
|
-
|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 Kinesis Data Firehose. 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.|
|
108
|
-
|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. `enableDnsHostnames`, `enableDnsSupport`, `natGateways` and `subnetConfiguration` are set by the pattern, so any values for those properties supplied here will be overridden. If `deployVpc` is not `true` then this property will be ignored.|
|
109
|
-
|deployVpc?|`boolean`|Whether to create a new VPC based on `vpcProps` into which to deploy this pattern. Setting this to true will deploy the minimal, most private VPC to run the pattern:<ul><li> One isolated subnet in each Availability Zone used by the CDK program</li><li>`enableDnsHostnames` and `enableDnsSupport` will both be set to true</li></ul>If this property is `true` then `existingVpc` cannot be specified. Defaults to `false`.|
|
110
|
-
|firehoseEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the name of the delivery stream. Default: FIREHOSE_DELIVERYSTREAM_NAME |
|
111
|
-
|
112
|
-
## Pattern Properties
|
113
|
-
|
114
|
-
| **Name** | **Type** | **Description** |
|
115
|
-
|:-------------|:----------------|-----------------|
|
116
|
-
|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 pattern.|
|
117
|
-
|kinesisFirehose|[kinesisfirehose.CfnDeliveryStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.html)|The Kinesis Firehose Delivery Stream used by the construct.|
|
118
|
-
|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 (if any). This may be a VPC created by the pattern or the VPC supplied to the pattern constructor.|
|
119
|
-
|
120
|
-
## Default settings
|
121
|
-
|
122
|
-
Out of the box implementation of the Construct without any override will set the following defaults:
|
123
|
-
|
124
|
-
### AWS Lambda Function
|
125
|
-
|
126
|
-
* Configure limited privilege access IAM role for Lambda function
|
127
|
-
* Enable reusing connections with Keep-Alive for NodeJs Lambda function
|
128
|
-
* Enable X-Ray Tracing
|
129
|
-
* Set Environment Variables
|
130
|
-
|
131
|
-
* (default) FIREHOSE_DELIVERYSTREAM_NAME
|
132
|
-
* AWS_NODEJS_CONNECTION_REUSE_ENABLED
|
133
|
-
|
134
|
-
### Amazon Kinesis Firehose Delivery Stream
|
135
|
-
|
136
|
-
* This construct must be provided a configured Stream construct, it does not change this Stream.
|
137
|
-
|
138
|
-
## Architecture
|
139
|
-
|
140
|
-

|
141
|
-
|
142
|
-
---
|
143
|
-
|
144
|
-
|
145
|
-
© 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-kinesisfirehose/README.adoc)
|
146
3
|
'''
|
147
4
|
from pkgutil import extend_path
|
148
5
|
__path__ = extend_path(__path__, __name__)
|
@@ -35,9 +35,9 @@ import constructs._jsii
|
|
35
35
|
|
36
36
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
37
37
|
"@aws-solutions-constructs/aws-lambda-kinesisfirehose",
|
38
|
-
"2.85.
|
38
|
+
"2.85.3",
|
39
39
|
__name__[0:-6],
|
40
|
-
"aws-lambda-kinesisfirehose@2.85.
|
40
|
+
"aws-lambda-kinesisfirehose@2.85.3.jsii.tgz",
|
41
41
|
)
|
42
42
|
|
43
43
|
__all__ = [
|
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.3.jsii.tgz
ADDED
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: aws-solutions-constructs.aws-lambda-kinesisfirehose
|
3
|
+
Version: 2.85.3
|
4
|
+
Summary: CDK constructs for defining an interaction between an AWS Lambda function and an existing Amazon Kinesis Firehose Delivery Stream.
|
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.aws-kinesis-firehose-s3==2.85.3
|
23
|
+
Requires-Dist: aws-solutions-constructs.core==2.85.3
|
24
|
+
Requires-Dist: constructs<11.0.0,>=10.0.0
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.111.0
|
26
|
+
Requires-Dist: publication>=0.0.3
|
27
|
+
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
28
|
+
|
29
|
+
Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-lambda-kinesisfirehose/README.adoc)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aws_solutions_constructs/aws_lambda_kinesisfirehose/__init__.py,sha256=UvGvHUBpO51JgF3DT1rxLCujExPHml7Fumv7oN330vE,15497
|
2
|
+
aws_solutions_constructs/aws_lambda_kinesisfirehose/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/__init__.py,sha256=W4sM_fa9bU4EsQAVSS-cd0_mhX0dJzn8Ag6D9PIXShE,1609
|
4
|
+
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.3.jsii.tgz,sha256=8pdeAM-KuUSub4lmANHzYhKvGoE1nnF2dCxayQsDwDE,99036
|
5
|
+
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
|
6
|
+
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/METADATA,sha256=Qvv0QCaq633WUjVxkc4BxAYY3nEiDdl8RJpdYPp4_WQ,1441
|
7
|
+
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
+
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
|
9
|
+
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.3.dist-info/RECORD,,
|
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.2.jsii.tgz
DELETED
Binary file
|
@@ -1,172 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: aws-solutions-constructs.aws-lambda-kinesisfirehose
|
3
|
-
Version: 2.85.2
|
4
|
-
Summary: CDK constructs for defining an interaction between an AWS Lambda function and an existing Amazon Kinesis Firehose Delivery Stream.
|
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.aws-kinesis-firehose-s3==2.85.2
|
23
|
-
Requires-Dist: aws-solutions-constructs.core==2.85.2
|
24
|
-
Requires-Dist: constructs<11.0.0,>=10.0.0
|
25
|
-
Requires-Dist: jsii<2.0.0,>=1.111.0
|
26
|
-
Requires-Dist: publication>=0.0.3
|
27
|
-
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
28
|
-
|
29
|
-
# aws-lambda-kinesisfirehose module
|
30
|
-
|
31
|
-
<!--BEGIN STABILITY BANNER-->---
|
32
|
-
|
33
|
-
|
34
|
-

|
35
|
-
|
36
|
-
---
|
37
|
-
<!--END STABILITY BANNER-->
|
38
|
-
|
39
|
-
| **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
|
40
|
-
|:-------------|:-------------|
|
41
|
-
|
42
|
-
<div style="height:8px"></div>
|
43
|
-
|
44
|
-
| **Language** | **Package** |
|
45
|
-
|:-------------|-----------------|
|
46
|
-
| Python|`aws_solutions_constructs.aws_lambda_kinesisfirehose`|
|
47
|
-
| Typescript|`@aws-solutions-constructs/aws-lambda-kinesisfirehose`|
|
48
|
-
| Java|`software.amazon.awsconstructs.services.lambdakinesisfirehose`|
|
49
|
-
|
50
|
-
## Overview
|
51
|
-
|
52
|
-
This AWS Solutions Construct implements an AWS Lambda function connected to an existing Amazon Kinesis Firehose Delivery Stream.
|
53
|
-
|
54
|
-
Here is a minimal deployable pattern definition :
|
55
|
-
|
56
|
-
Typescript
|
57
|
-
|
58
|
-
```python
|
59
|
-
import { Construct } from 'constructs';
|
60
|
-
import { Stack, StackProps } from 'aws-cdk-lib';
|
61
|
-
import { LambdaToS3 } from '@aws-solutions-constructs/aws-lambda-kinesisfirehose';
|
62
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
63
|
-
|
64
|
-
// The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
65
|
-
// from a previously instantiated construct that created an Firehose Delivery Stream
|
66
|
-
const existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
67
|
-
|
68
|
-
new LambdaToKinesisFirehose(this, 'LambdaToFirehosePattern', {
|
69
|
-
lambdaFunctionProps: {
|
70
|
-
runtime: lambda.Runtime.NODEJS_20_X,
|
71
|
-
handler: 'index.handler',
|
72
|
-
code: lambda.Code.fromAsset(`lambda`)
|
73
|
-
},
|
74
|
-
existingKinesisFirehose: existingFirehoseDeliveryStream
|
75
|
-
});
|
76
|
-
```
|
77
|
-
|
78
|
-
Python
|
79
|
-
|
80
|
-
```python
|
81
|
-
from aws_solutions_constructs.aws_lambda_kinesisfirehose import LambdaToKinesisFirehose
|
82
|
-
from aws_cdk import (
|
83
|
-
aws_lambda as _lambda,
|
84
|
-
Stack
|
85
|
-
)
|
86
|
-
from constructs import Construct
|
87
|
-
|
88
|
-
# The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
89
|
-
# from a previously instantiated construct that created an Firehose Delivery Stream
|
90
|
-
existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
91
|
-
|
92
|
-
LambdaToKinesisFirehose(self, 'LambdaToFirehosePattern',
|
93
|
-
existingKinesisFirehose=existingFirehoseDeliveryStream,
|
94
|
-
lambda_function_props=_lambda.FunctionProps(
|
95
|
-
code=_lambda.Code.from_asset('lambda'),
|
96
|
-
runtime=_lambda.Runtime.PYTHON_3_11,
|
97
|
-
handler='index.handler'
|
98
|
-
)
|
99
|
-
)
|
100
|
-
```
|
101
|
-
|
102
|
-
Java
|
103
|
-
|
104
|
-
```java
|
105
|
-
import software.constructs.Construct;
|
106
|
-
|
107
|
-
import software.amazon.awscdk.Stack;
|
108
|
-
import software.amazon.awscdk.StackProps;
|
109
|
-
import software.amazon.awscdk.services.lambda.*;
|
110
|
-
import software.amazon.awscdk.services.lambda.Runtime;
|
111
|
-
import software.amazon.awsconstructs.services.lambdakinesisfirehose.*;
|
112
|
-
|
113
|
-
// The construct requires an existing Firehose Delivery Stream, this can be created in raw CDK or extracted
|
114
|
-
// from a previously instantiated construct that created an Firehose Delivery Stream
|
115
|
-
existingFirehoseDeliveryStream = previouslyCreatedKinesisFirehoseToS3Construct.kinesisFirehose;
|
116
|
-
|
117
|
-
new LambdaToKinesisFirehose(this, "LambdaToFirehosePattern", new LambdaToKinesisFirehoseProps.Builder()
|
118
|
-
.existingKinesisFirehose(existingFirehoseDeliveryStream)
|
119
|
-
.lambdaFunctionProps(new FunctionProps.Builder()
|
120
|
-
.runtime(Runtime.NODEJS_20_X)
|
121
|
-
.code(Code.fromAsset("lambda"))
|
122
|
-
.handler("index.handler")
|
123
|
-
.build())
|
124
|
-
.build());
|
125
|
-
```
|
126
|
-
|
127
|
-
## Pattern Construct Props
|
128
|
-
|
129
|
-
| **Name** | **Type** | **Description** |
|
130
|
-
|:-------------|:----------------|-----------------|
|
131
|
-
|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.|
|
132
|
-
|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.|
|
133
|
-
|existingKinesisFirehose|[kinesisfirehose.CfnDeliveryStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.html)|An existing Kinesis Firehose Delivery Stream to which the Lambda function can put data. Note - the delivery stream construct must have already been created and have the deliveryStreamName set. This construct will *not* create a new Delivery Stream.|
|
134
|
-
|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 Kinesis Data Firehose. 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.|
|
135
|
-
|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. `enableDnsHostnames`, `enableDnsSupport`, `natGateways` and `subnetConfiguration` are set by the pattern, so any values for those properties supplied here will be overridden. If `deployVpc` is not `true` then this property will be ignored.|
|
136
|
-
|deployVpc?|`boolean`|Whether to create a new VPC based on `vpcProps` into which to deploy this pattern. Setting this to true will deploy the minimal, most private VPC to run the pattern:<ul><li> One isolated subnet in each Availability Zone used by the CDK program</li><li>`enableDnsHostnames` and `enableDnsSupport` will both be set to true</li></ul>If this property is `true` then `existingVpc` cannot be specified. Defaults to `false`.|
|
137
|
-
|firehoseEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the name of the delivery stream. Default: FIREHOSE_DELIVERYSTREAM_NAME |
|
138
|
-
|
139
|
-
## Pattern Properties
|
140
|
-
|
141
|
-
| **Name** | **Type** | **Description** |
|
142
|
-
|:-------------|:----------------|-----------------|
|
143
|
-
|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 pattern.|
|
144
|
-
|kinesisFirehose|[kinesisfirehose.CfnDeliveryStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.html)|The Kinesis Firehose Delivery Stream used by the construct.|
|
145
|
-
|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 (if any). This may be a VPC created by the pattern or the VPC supplied to the pattern constructor.|
|
146
|
-
|
147
|
-
## Default settings
|
148
|
-
|
149
|
-
Out of the box implementation of the Construct without any override will set the following defaults:
|
150
|
-
|
151
|
-
### AWS Lambda Function
|
152
|
-
|
153
|
-
* Configure limited privilege access IAM role for Lambda function
|
154
|
-
* Enable reusing connections with Keep-Alive for NodeJs Lambda function
|
155
|
-
* Enable X-Ray Tracing
|
156
|
-
* Set Environment Variables
|
157
|
-
|
158
|
-
* (default) FIREHOSE_DELIVERYSTREAM_NAME
|
159
|
-
* AWS_NODEJS_CONNECTION_REUSE_ENABLED
|
160
|
-
|
161
|
-
### Amazon Kinesis Firehose Delivery Stream
|
162
|
-
|
163
|
-
* This construct must be provided a configured Stream construct, it does not change this Stream.
|
164
|
-
|
165
|
-
## Architecture
|
166
|
-
|
167
|
-

|
168
|
-
|
169
|
-
---
|
170
|
-
|
171
|
-
|
172
|
-
© Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
@@ -1,9 +0,0 @@
|
|
1
|
-
aws_solutions_constructs/aws_lambda_kinesisfirehose/__init__.py,sha256=lPRyqnlXMNn7KElyZ9br02zfb7ucwTCJ3xV4dWWxQCs,23278
|
2
|
-
aws_solutions_constructs/aws_lambda_kinesisfirehose/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/__init__.py,sha256=8xovhMGVSlLRJen7BUKvKOJARLFgqJhfw3t8RL5DNzA,1609
|
4
|
-
aws_solutions_constructs/aws_lambda_kinesisfirehose/_jsii/aws-lambda-kinesisfirehose@2.85.2.jsii.tgz,sha256=5zlqRDpSycpTfELEFw-Sj5caVNEqb9T9_hVeUcZ4lrk,100914
|
5
|
-
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
|
6
|
-
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/METADATA,sha256=-O-w1k2AnvR5KWzqXFEcFJ4joTbRfKsS7jyyrMKzvt8,9222
|
7
|
-
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
-
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
|
9
|
-
aws_solutions_constructs_aws_lambda_kinesisfirehose-2.85.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|