@aws-solutions-constructs/aws-lambda-kinesisstreams 2.85.2 → 2.85.4

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.
package/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-solutions-constructs/core": "2.85.2",
11
+ "@aws-solutions-constructs/core": "2.85.4",
12
12
  "aws-cdk-lib": "^2.193.0",
13
13
  "constructs": "^10.0.0"
14
14
  },
@@ -3993,7 +3993,7 @@
3993
3993
  },
3994
3994
  "name": "@aws-solutions-constructs/aws-lambda-kinesisstreams",
3995
3995
  "readme": {
3996
- "markdown": "# aws-lambda-kinesisstreams module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)\n\n---\n<!--END STABILITY BANNER-->\n\n| **Reference Documentation**:| <span style=\"font-weight: normal\">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|\n|:-------------|:-------------|\n<div style=\"height:8px\"></div>\n\n| **Language** | **Package** |\n|:-------------|-----------------|\n|![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_lambda_kinesis_stream`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-lambda-kinesisstreams`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.lambdakinesisstreams`|\n\n## Overview\nThis AWS Solutions Construct deploys an AWS Lambda Function that can put records on an Amazon Kinesis Data Stream.\n\nHere is a minimal deployable pattern definition:\n\nTypescript\n``` typescript\nimport { Construct } from 'constructs';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { LambdaToKinesisStreamsProps } from '@aws-solutions-constructs/aws-lambda-kinesisstreams';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nnew LambdaToKinesisStreams(this, 'LambdaToKinesisStreams', {\n lambdaFunctionProps: {\n runtime: lambda.Runtime.NODEJS_20_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(`lambda`)\n }\n});\n```\n\nPython\n``` python\nfrom aws_solutions_constructs.aws_lambda_kinesis_stream import LambdaToKinesisStreams\nfrom aws_cdk import (\n aws_lambda as _lambda,\n aws_kinesis as kinesis,\n Stack\n)\nfrom constructs import Construct\n\nLambdaToKinesisStreams(self, 'LambdaToKinesisStreams',\n lambda_function_props=_lambda.FunctionProps(\n runtime=_lambda.Runtime.PYTHON_3_11,\n handler='index.handler',\n code=_lambda.Code.from_asset('lambda')\n )\n )\n```\n\nJava\n``` java\nimport software.constructs.Construct;\n\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.services.lambda.eventsources.*;\nimport software.amazon.awscdk.services.lambda.Runtime;\nimport software.amazon.awsconstructs.services.lambdakinesisstreams.*;\n\nnew LambdaToKinesisStreams(this, \"LambdaToKinesisStreams\", new LambdaToKinesisStreamsProps.Builder()\n .lambdaFunctionProps(new FunctionProps.Builder()\n .runtime(Runtime.NODEJS_20_X)\n .code(Code.fromAsset(\"lambda\"))\n .handler(\"index.handler\")\n .build())\n .build());\n```\n\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of a Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|\n|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.|\n|existingStreamObj?|[`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html)|Existing instance of a Kinesis Data Stream, providing both this and `kinesisStreamProps` will cause an error.|\n|kinesisStreamProps?|[`kinesis.StreamProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.StreamProps.html)|Optional user-provided props to override the default props for the Kinesis Data Stream.|\n|createCloudWatchAlarms|`boolean`|Whether to create recommended CloudWatch Alarms (defaults to true).|\n|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 Streams. 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.|\n|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.|\n|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`.|\n|streamEnvironmentVariableName?|`string`|Optional Name to override the Lambda Function default environment variable name that holds the Kinesis Data Stream name value. Default: KINESIS_DATASTREAM_NAME |\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|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.|\n|kinesisStream|[`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html)|Returns an instance of the Kinesis Data Stream.|\n|cloudwatchAlarms?|[`cloudwatch.Alarm[]`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html)|Returns the CloudWatch Alarms created to monitor the Kinesis Data Stream.|\n|vpc?|[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|Returns an interface to 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.|\n\n## Default settings\n\nOut of the box implementation of the Construct without any overrides will set the following defaults:\n\n### AWS Lambda Function\n* Minimally-permissive IAM role for the Lambda Function to put records on the Kinesis Data Stream\n* Enable X-Ray Tracing\n* Sets an Environment Variable named KINESIS_DATASTREAM_NAME that holds the Kinesis Data Stream Name, which is a required property Kinesis Data Streams SDK when making calls to it\n\n### Amazon Kinesis Stream\n* Enable server-side encryption for the Kinesis Data Stream using AWS Managed CMK\n* Deploy best practices CloudWatch Alarms for the Kinesis Data Stream\n\n## Architecture\n![Architecture Diagram](architecture.png)\n\n***\n&copy; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
3996
+ "markdown": "Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-lambda-kinesisstreams/README.adoc)\n"
3997
3997
  },
3998
3998
  "repository": {
3999
3999
  "directory": "source/patterns/@aws-solutions-constructs/aws-lambda-kinesisstreams",
@@ -4305,6 +4305,6 @@
4305
4305
  "symbolId": "lib/index:LambdaToKinesisStreamsProps"
4306
4306
  }
4307
4307
  },
4308
- "version": "2.85.2",
4309
- "fingerprint": "cS1wueAPxBxeH5RaaeoedFRWp5n4804yFM5sNnHRfW0="
4308
+ "version": "2.85.4",
4309
+ "fingerprint": "VaucA9puXat9LyeooNH2pm/XEubMGjxRAA3K+LhLc0o="
4310
4310
  }
package/README.adoc ADDED
@@ -0,0 +1,214 @@
1
+ //!!NODE_ROOT <section>
2
+ //== aws-lambda-kinesisstreams module
3
+
4
+ [.topic]
5
+ = aws-lambda-kinesisstreams
6
+ :info_doctype: section
7
+ :info_title: aws-lambda-kinesisstreams
8
+
9
+
10
+ image:https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge[Stability:Experimental]
11
+
12
+ [width="100%",cols="<50%,<50%",options="header",]
13
+ |===
14
+ |*Reference Documentation*:
15
+ |https://docs.aws.amazon.com/solutions/latest/constructs/
16
+ |===
17
+
18
+ [width="100%",cols="<46%,54%",options="header",]
19
+ |===
20
+ |*Language* |*Package*
21
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/python32.png[Python
22
+ Logo] Python
23
+ |`aws_solutions_constructs.aws_lambda_kinesis_stream`
24
+
25
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png[Typescript
26
+ Logo] Typescript |`@aws-solutions-constructs/aws-lambda-kinesisstreams`
27
+
28
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/java32.png[Java
29
+ Logo] Java
30
+ |`software.amazon.awsconstructs.services.lambdakinesisstreams`
31
+ |===
32
+
33
+ == Overview
34
+
35
+ This AWS Solutions Construct deploys an AWS Lambda Function that can put
36
+ records on an Amazon Kinesis Data Stream.
37
+
38
+ Here is a minimal deployable pattern definition:
39
+
40
+ ====
41
+ [role="tablist"]
42
+ Typescript::
43
+ +
44
+ [source,typescript]
45
+ ----
46
+ import { Construct } from 'constructs';
47
+ import { Stack, StackProps } from 'aws-cdk-lib';
48
+ import { LambdaToKinesisStreamsProps } from '@aws-solutions-constructs/aws-lambda-kinesisstreams';
49
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
50
+
51
+ new LambdaToKinesisStreams(this, 'LambdaToKinesisStreams', {
52
+ lambdaFunctionProps: {
53
+ runtime: lambda.Runtime.NODEJS_20_X,
54
+ handler: 'index.handler',
55
+ code: lambda.Code.fromAsset(`lambda`)
56
+ }
57
+ });
58
+ ----
59
+
60
+ Python::
61
+ +
62
+ [source,python]
63
+ ----
64
+ from aws_solutions_constructs.aws_lambda_kinesis_stream import LambdaToKinesisStreams
65
+ from aws_cdk import (
66
+ aws_lambda as _lambda,
67
+ aws_kinesis as kinesis,
68
+ Stack
69
+ )
70
+ from constructs import Construct
71
+
72
+ LambdaToKinesisStreams(self, 'LambdaToKinesisStreams',
73
+ lambda_function_props=_lambda.FunctionProps(
74
+ runtime=_lambda.Runtime.PYTHON_3_11,
75
+ handler='index.handler',
76
+ code=_lambda.Code.from_asset('lambda')
77
+ )
78
+ )
79
+ ----
80
+
81
+ Java::
82
+ +
83
+ [source,java]
84
+ ----
85
+ import software.constructs.Construct;
86
+
87
+ import software.amazon.awscdk.Stack;
88
+ import software.amazon.awscdk.StackProps;
89
+ import software.amazon.awscdk.services.lambda.*;
90
+ import software.amazon.awscdk.services.lambda.eventsources.*;
91
+ import software.amazon.awscdk.services.lambda.Runtime;
92
+ import software.amazon.awsconstructs.services.lambdakinesisstreams.*;
93
+
94
+ new LambdaToKinesisStreams(this, "LambdaToKinesisStreams", new LambdaToKinesisStreamsProps.Builder()
95
+ .lambdaFunctionProps(new FunctionProps.Builder()
96
+ .runtime(Runtime.NODEJS_20_X)
97
+ .code(Code.fromAsset("lambda"))
98
+ .handler("index.handler")
99
+ .build())
100
+ .build());
101
+ ----
102
+ ====
103
+
104
+ == Pattern Construct Props
105
+
106
+ [width="100%",cols="<30%,<35%,35%",options="header",]
107
+ |===
108
+ |*Name* |*Type* |*Description*
109
+ |existingLambdaObj?
110
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
111
+ |Existing instance of a Lambda Function object, providing both this and
112
+ `lambdaFunctionProps` will cause an error.
113
+
114
+ |lambdaFunctionProps?
115
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html[`lambda.FunctionProps`]
116
+ |User provided props to override the default props for the Lambda
117
+ Function.
118
+
119
+ |existingStreamObj?
120
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html[`kinesis.Stream`]
121
+ |Existing instance of a Kinesis Data Stream, providing both this and
122
+ `kinesisStreamProps` will cause an error.
123
+
124
+ |kinesisStreamProps?
125
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.StreamProps.html[`kinesis.StreamProps`]
126
+ |Optional user-provided props to override the default props for the
127
+ Kinesis Data Stream.
128
+
129
+ |createCloudWatchAlarms |`boolean` |Whether to create recommended
130
+ CloudWatch Alarms (defaults to true).
131
+
132
+ |existingVpc?
133
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html[`ec2.IVpc`]
134
+ |An optional, existing VPC into which this pattern should be deployed.
135
+ When deployed in a VPC, the Lambda function will use ENIs in the VPC to
136
+ access network resources and an Interface Endpoint will be created in
137
+ the VPC for Amazon Kinesis Streams. If an existing VPC is provided, the
138
+ `deployVpc` property cannot be `true`. This uses `ec2.IVpc` to allow
139
+ clients to supply VPCs that exist outside the stack using the
140
+ https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html#static-fromwbrlookupscope-id-options[`ec2.Vpc.fromLookup()`]
141
+ method.
142
+
143
+ |vpcProps?
144
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpcProps.html[`ec2.VpcProps`]
145
+ |Optional user-provided properties to override the default properties
146
+ for the new VPC. `enableDnsHostnames`, `enableDnsSupport`, `natGateways`
147
+ and `subnetConfiguration` are set by the pattern, so any values for
148
+ those properties supplied here will be overridden. If `deployVpc` is not
149
+ `true` then this property will be ignored.
150
+
151
+ |deployVpc? |`boolean` |Whether to create a new VPC based on `vpcProps`
152
+ into which to deploy this pattern. Setting this to true will deploy the
153
+ minimal, most private VPC to run the pattern:
154
+
155
+ |streamEnvironmentVariableName? |`string` |Optional Name to override the
156
+ Lambda Function default environment variable name that holds the Kinesis
157
+ Data Stream name value. Default: KINESIS_DATASTREAM_NAME
158
+ |===
159
+
160
+ == Pattern Properties
161
+
162
+ [width="100%",cols="<30%,<35%,35%",options="header",]
163
+ |===
164
+ |*Name* |*Type* |*Description*
165
+ |lambdaFunction
166
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
167
+ |Returns an instance of the Lambda Function.
168
+
169
+ |kinesisStream
170
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html[`kinesis.Stream`]
171
+ |Returns an instance of the Kinesis Data Stream.
172
+
173
+ |cloudwatchAlarms?
174
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html[`cloudwatch.Alarm[\]`]
175
+ |Returns the CloudWatch Alarms created to monitor the Kinesis Data
176
+ Stream.
177
+
178
+ |vpc?
179
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html[`ec2.IVpc`]
180
+ |Returns an interface to the VPC used by the pattern (if any). This may
181
+ be a VPC created by the pattern or the VPC supplied to the pattern
182
+ constructor.
183
+ |===
184
+
185
+ == Default settings
186
+
187
+ Out of the box implementation of the Construct without any overrides
188
+ will set the following defaults:
189
+
190
+ === AWS Lambda Function
191
+
192
+ * Minimally-permissive IAM role for the Lambda Function to put records
193
+ on the Kinesis Data Stream
194
+ * Enable X-Ray Tracing
195
+ * Sets an Environment Variable named KINESIS_DATASTREAM_NAME
196
+ that holds the Kinesis Data Stream Name, which is a required property
197
+ Kinesis Data Streams SDK when making calls to it
198
+
199
+ === Amazon Kinesis Stream
200
+
201
+ * Enable server-side encryption for the Kinesis Data Stream using AWS
202
+ Managed CMK
203
+ * Deploy best practices CloudWatch Alarms for the Kinesis Data Stream
204
+
205
+ == Architecture
206
+
207
+
208
+ image::aws-lambda-kinesisstreams.png["Diagram showing the Lambda function, Kinesis data stream and IAM role created by the construct",scaledwidth=100%]
209
+
210
+ // github block
211
+
212
+ '''''
213
+
214
+ © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
package/README.md CHANGED
@@ -1,121 +1 @@
1
- # aws-lambda-kinesisstreams module
2
- <!--BEGIN STABILITY BANNER-->
3
-
4
- ---
5
-
6
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.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
- <div style="height:8px"></div>
14
-
15
- | **Language** | **Package** |
16
- |:-------------|-----------------|
17
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_lambda_kinesis_stream`|
18
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-lambda-kinesisstreams`|
19
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.lambdakinesisstreams`|
20
-
21
- ## Overview
22
- This AWS Solutions Construct deploys an AWS Lambda Function that can put records on an Amazon Kinesis Data Stream.
23
-
24
- Here is a minimal deployable pattern definition:
25
-
26
- Typescript
27
- ``` typescript
28
- import { Construct } from 'constructs';
29
- import { Stack, StackProps } from 'aws-cdk-lib';
30
- import { LambdaToKinesisStreamsProps } from '@aws-solutions-constructs/aws-lambda-kinesisstreams';
31
- import * as lambda from 'aws-cdk-lib/aws-lambda';
32
-
33
- new LambdaToKinesisStreams(this, 'LambdaToKinesisStreams', {
34
- lambdaFunctionProps: {
35
- runtime: lambda.Runtime.NODEJS_20_X,
36
- handler: 'index.handler',
37
- code: lambda.Code.fromAsset(`lambda`)
38
- }
39
- });
40
- ```
41
-
42
- Python
43
- ``` python
44
- from aws_solutions_constructs.aws_lambda_kinesis_stream import LambdaToKinesisStreams
45
- from aws_cdk import (
46
- aws_lambda as _lambda,
47
- aws_kinesis as kinesis,
48
- Stack
49
- )
50
- from constructs import Construct
51
-
52
- LambdaToKinesisStreams(self, 'LambdaToKinesisStreams',
53
- lambda_function_props=_lambda.FunctionProps(
54
- runtime=_lambda.Runtime.PYTHON_3_11,
55
- handler='index.handler',
56
- code=_lambda.Code.from_asset('lambda')
57
- )
58
- )
59
- ```
60
-
61
- Java
62
- ``` java
63
- import software.constructs.Construct;
64
-
65
- import software.amazon.awscdk.Stack;
66
- import software.amazon.awscdk.StackProps;
67
- import software.amazon.awscdk.services.lambda.*;
68
- import software.amazon.awscdk.services.lambda.eventsources.*;
69
- import software.amazon.awscdk.services.lambda.Runtime;
70
- import software.amazon.awsconstructs.services.lambdakinesisstreams.*;
71
-
72
- new LambdaToKinesisStreams(this, "LambdaToKinesisStreams", new LambdaToKinesisStreamsProps.Builder()
73
- .lambdaFunctionProps(new FunctionProps.Builder()
74
- .runtime(Runtime.NODEJS_20_X)
75
- .code(Code.fromAsset("lambda"))
76
- .handler("index.handler")
77
- .build())
78
- .build());
79
- ```
80
-
81
- ## Pattern Construct Props
82
-
83
- | **Name** | **Type** | **Description** |
84
- |:-------------|:----------------|-----------------|
85
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of a Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
86
- |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.|
87
- |existingStreamObj?|[`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html)|Existing instance of a Kinesis Data Stream, providing both this and `kinesisStreamProps` will cause an error.|
88
- |kinesisStreamProps?|[`kinesis.StreamProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.StreamProps.html)|Optional user-provided props to override the default props for the Kinesis Data Stream.|
89
- |createCloudWatchAlarms|`boolean`|Whether to create recommended CloudWatch Alarms (defaults to true).|
90
- |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 Streams. 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.|
91
- |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.|
92
- |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`.|
93
- |streamEnvironmentVariableName?|`string`|Optional Name to override the Lambda Function default environment variable name that holds the Kinesis Data Stream name value. Default: KINESIS_DATASTREAM_NAME |
94
-
95
- ## Pattern Properties
96
-
97
- | **Name** | **Type** | **Description** |
98
- |:-------------|:----------------|-----------------|
99
- |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.|
100
- |kinesisStream|[`kinesis.Stream`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesis.Stream.html)|Returns an instance of the Kinesis Data Stream.|
101
- |cloudwatchAlarms?|[`cloudwatch.Alarm[]`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html)|Returns the CloudWatch Alarms created to monitor the Kinesis Data Stream.|
102
- |vpc?|[`ec2.IVpc`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html)|Returns an interface to 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.|
103
-
104
- ## Default settings
105
-
106
- Out of the box implementation of the Construct without any overrides will set the following defaults:
107
-
108
- ### AWS Lambda Function
109
- * Minimally-permissive IAM role for the Lambda Function to put records on the Kinesis Data Stream
110
- * Enable X-Ray Tracing
111
- * Sets an Environment Variable named KINESIS_DATASTREAM_NAME that holds the Kinesis Data Stream Name, which is a required property Kinesis Data Streams SDK when making calls to it
112
-
113
- ### Amazon Kinesis Stream
114
- * Enable server-side encryption for the Kinesis Data Stream using AWS Managed CMK
115
- * Deploy best practices CloudWatch Alarms for the Kinesis Data Stream
116
-
117
- ## Architecture
118
- ![Architecture Diagram](architecture.png)
119
-
120
- ***
121
- &copy; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-lambda-kinesisstreams/README.adoc)
package/lib/index.js CHANGED
@@ -62,5 +62,5 @@ class LambdaToKinesisStreams extends constructs_1.Construct {
62
62
  }
63
63
  exports.LambdaToKinesisStreams = LambdaToKinesisStreams;
64
64
  _a = JSII_RTTI_SYMBOL_1;
65
- LambdaToKinesisStreams[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams", version: "2.85.2" };
65
+ LambdaToKinesisStreams[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams", version: "2.85.4" };
66
66
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWdCQSwyREFBMkQ7QUFDM0Qsd0ZBQXdGO0FBQ3hGLDJDQUF1QztBQTREdkM7O0dBRUc7QUFDSCxNQUFhLHNCQUF1QixTQUFRLHNCQUFTO0lBTWpEOzs7Ozs7O09BT0c7SUFDSCxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtDO1FBQzFFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDakIsUUFBUSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUM5QixRQUFRLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDakMsUUFBUSxDQUFDLHVCQUF1QixDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXhDLGdCQUFnQjtRQUNoQixJQUFJLEtBQUssQ0FBQyxTQUFTLElBQUksS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDO1lBQ3pDLElBQUksQ0FBQyxHQUFHLEdBQUcsUUFBUSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUU7Z0JBQ2xDLGVBQWUsRUFBRSxRQUFRLENBQUMsdUJBQXVCLEVBQUU7Z0JBQ25ELFdBQVcsRUFBRSxLQUFLLENBQUMsV0FBVztnQkFDOUIsWUFBWSxFQUFFLEtBQUssQ0FBQyxRQUFRO2dCQ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lvbktleT8uZ3JhbnQodGhpcy5sYW1iZGFGdW5jdGlvbi5ncmFudFByaW5jaXBhbCxcbiAgICAgICAgJ2ttczpEZWNyeXB0JyxcbiAgICAgICAgJ2ttczpHZW5lcmF0ZURhdGFLZXkqJyxcbiAgICAgICk7XG5cbiAgICAgIGlmIChwcm9wcy5jcmVhdGVDbG91ZFdhdGNoQWxhcm1zID09PSB1bmRlZmluZWQgfHwgcHJvcHMuY3JlYXRlQ2xvdWRXYXRjaEFsYXJtcykge1xuICAgICAgICAvLyBEZXBsb3kgYmVzdCBwcmFjdGljZXMgQ1cgQWxhcm1zIGZvciBLaW5lc2lzIFN0cmVhbVxuICAgICAgICB0aGlzLmNsb3Vkd2F0Y2hBbGFybXMgPSBkZWZhdWx0cy5idWlsZEtpbmVzaXNTdHJlYW1DV0FsYXJtcyh0aGlzKTtcbiAgICAgIH1cbiAgICB9XG59Il19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-lambda-kinesisstreams",
3
- "version": "2.85.2",
3
+ "version": "2.85.4",
4
4
  "description": "CDK constructs for defining an interaction between an AWS Lambda Function and an Amazon Kinesis Data Stream.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,12 +22,13 @@
22
22
  "test": "jest --coverage",
23
23
  "clean": "tsc -b --clean",
24
24
  "watch": "tsc -b -w",
25
+ "asciidoc": "asciidoctor --failure-level WARNING -o /dev/null README.adoc",
25
26
  "integ": "integ-runner --update-on-failed",
26
27
  "integ-no-clean": "integ-runner --update-on-failed --no-clean",
27
28
  "integ-assert": "integ-runner",
28
29
  "jsii": "jsii",
29
30
  "jsii-pacmak": "jsii-pacmak",
30
- "build+lint+test": "npm run jsii && npm run lint && npm test && npm run integ-assert",
31
+ "build+lint+test": "npm run jsii && npm run lint && npm run asciidoc && npm test && npm run integ-assert",
31
32
  "blt": "npm run build+lint+test",
32
33
  "snapshot-update": "npm run jsii && npm test -- -u && npm run integ-assert"
33
34
  },
@@ -54,7 +55,7 @@
54
55
  }
55
56
  },
56
57
  "dependencies": {
57
- "@aws-solutions-constructs/core": "2.85.2",
58
+ "@aws-solutions-constructs/core": "2.85.4",
58
59
  "constructs": "^10.0.0"
59
60
  },
60
61
  "devDependencies": {
@@ -78,7 +79,7 @@
78
79
  ]
79
80
  },
80
81
  "peerDependencies": {
81
- "@aws-solutions-constructs/core": "2.85.2",
82
+ "@aws-solutions-constructs/core": "2.85.4",
82
83
  "constructs": "^10.0.0",
83
84
  "aws-cdk-lib": "^2.193.0"
84
85
  },