@aws-solutions-constructs/aws-lambda-sns 2.85.1 → 2.85.3

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.1",
11
+ "@aws-solutions-constructs/core": "2.85.3",
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-sns",
3995
3995
  "readme": {
3996
- "markdown": "# aws-lambda-sns module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.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_sns`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-lambda-sns`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.lambdasns`|\n\n## Overview\nThis AWS Solutions Construct implements an AWS Lambda function connected to an Amazon SNS topic.\n\nHere is a minimal deployable pattern definition:\n\nTypescript\n``` typescript\nimport { Construct } from 'constructs';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { LambdaToSns, LambdaToSnsProps } from \"@aws-solutions-constructs/aws-lambda-sns\";\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nnew LambdaToSns(this, 'test-lambda-sns', {\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_sns import LambdaToSns\nfrom aws_cdk import (\n aws_lambda as _lambda,\n Stack\n)\nfrom constructs import Construct\n\nLambdaToSns(\n self, 'test-lambda-sns-stack',\n lambda_function_props=_lambda.FunctionProps(\n code=_lambda.Code.from_asset('lambda'),\n runtime=_lambda.Runtime.PYTHON_3_11,\n handler='index.handler'\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.Runtime;\nimport software.amazon.awsconstructs.services.lambdasns.*;\n\nnew LambdaToSns(this, \"test-lambda-sns-stack\", new LambdaToSnsProps.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 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|existingTopicObj?|[`sns.Topic`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of SNS Topic object, providing both this and `topicProps` will cause an error.|\n|topicProps?|[`sns.TopicProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.TopicProps.html)|Optional user provided properties to override the default properties for the SNS topic.|\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 SNS. 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|topicArnEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the arn of the topic. Default: SNS_TOPIC_ARN |\n|topicNameEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the name of the topic. Default: SNS_TOPIC_NAME |\n|enableEncryptionWithCustomerManagedKey?|`boolean`|If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, encryptionKey or encryptionKeyProps.|\n|encryptionKey?|[`kms.Key`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html)|An optional, imported encryption key to encrypt the SNS Topic with.|\n|encryptionKeyProps?|[`kms.KeyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html#construct-props)|Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with.|\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 created by the pattern.|\n|snsTopic|[`sns.Topic`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.Topic.html)|Returns an instance of the SNS topic created by the pattern.|\n|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.|\n\n## Default settings\n\nOut of the box implementation of the Construct without any override will set the following defaults:\n\n### AWS Lambda Function\n* Configure limited privilege access IAM role for Lambda function to access the Firehose Delivery Stream\n* Enable reusing connections with Keep-Alive for NodeJs Lambda function\n* Enable X-Ray Tracing\n* Set Environment Variables\n * (default) SNS_TOPIC_NAME\n * (default) SNS_TOPIC_ARN\n * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)\n\n### Amazon SNS Topic\n* Configure least privilege access permissions for SNS Topic\n* Enable server-side encryption forSNS Topic using AWS managed KMS Key\n* Enforce encryption of data in transit\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-sns/README.adoc)\n"
3997
3997
  },
3998
3998
  "repository": {
3999
3999
  "directory": "source/patterns/@aws-solutions-constructs/aws-lambda-sns",
@@ -4342,6 +4342,6 @@
4342
4342
  "symbolId": "lib/index:LambdaToSnsProps"
4343
4343
  }
4344
4344
  },
4345
- "version": "2.85.1",
4346
- "fingerprint": "GwzOdEI5yIDR5123v3qdxNX8wgo/S0xg1SrHTXlgHoY="
4345
+ "version": "2.85.3",
4346
+ "fingerprint": "mLal81ugK1+YwlBjR250qLkUlkb05R4TgRo47DTva+o="
4347
4347
  }
package/README.adoc ADDED
@@ -0,0 +1,225 @@
1
+ //!!NODE_ROOT <section>
2
+ //== aws-lambda-sns module
3
+
4
+ [.topic]
5
+ = aws-lambda-sns
6
+ :info_doctype: section
7
+ :info_title: aws-lambda-sns
8
+
9
+
10
+ image:https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge[Stability:Stable]
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 |`aws_solutions_constructs.aws_lambda_sns`
23
+
24
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png[Typescript
25
+ Logo] Typescript |`@aws-solutions-constructs/aws-lambda-sns`
26
+
27
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/java32.png[Java
28
+ Logo] Java |`software.amazon.awsconstructs.services.lambdasns`
29
+ |===
30
+
31
+ == Overview
32
+
33
+ This AWS Solutions Construct implements an AWS Lambda function connected
34
+ to an Amazon SNS topic.
35
+
36
+ Here is a minimal deployable pattern definition:
37
+
38
+ ====
39
+ [role="tablist"]
40
+ Typescript::
41
+ +
42
+ [source,typescript]
43
+ ----
44
+ import { Construct } from 'constructs';
45
+ import { Stack, StackProps } from 'aws-cdk-lib';
46
+ import { LambdaToSns, LambdaToSnsProps } from "@aws-solutions-constructs/aws-lambda-sns";
47
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
48
+
49
+ new LambdaToSns(this, 'test-lambda-sns', {
50
+ lambdaFunctionProps: {
51
+ runtime: lambda.Runtime.NODEJS_20_X,
52
+ handler: 'index.handler',
53
+ code: lambda.Code.fromAsset(`lambda`)
54
+ }
55
+ });
56
+ ----
57
+
58
+ Python::
59
+ +
60
+ [source,python]
61
+ ----
62
+ from aws_solutions_constructs.aws_lambda_sns import LambdaToSns
63
+ from aws_cdk import (
64
+ aws_lambda as _lambda,
65
+ Stack
66
+ )
67
+ from constructs import Construct
68
+
69
+ LambdaToSns(
70
+ self, 'test-lambda-sns-stack',
71
+ lambda_function_props=_lambda.FunctionProps(
72
+ code=_lambda.Code.from_asset('lambda'),
73
+ runtime=_lambda.Runtime.PYTHON_3_11,
74
+ handler='index.handler'
75
+ )
76
+ )
77
+ ----
78
+
79
+ Java::
80
+ +
81
+ [source,java]
82
+ ----
83
+ import software.constructs.Construct;
84
+
85
+ import software.amazon.awscdk.Stack;
86
+ import software.amazon.awscdk.StackProps;
87
+ import software.amazon.awscdk.services.lambda.*;
88
+ import software.amazon.awscdk.services.lambda.Runtime;
89
+ import software.amazon.awsconstructs.services.lambdasns.*;
90
+
91
+ new LambdaToSns(this, "test-lambda-sns-stack", new LambdaToSnsProps.Builder()
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
+
101
+ == Pattern Construct Props
102
+
103
+ [width="100%",cols="<30%,<35%,35%",options="header",]
104
+ |===
105
+ |*Name* |*Type* |*Description*
106
+ |existingLambdaObj?
107
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
108
+ |Existing instance of Lambda Function object, providing both this and
109
+ `lambdaFunctionProps` will cause an error.
110
+
111
+ |lambdaFunctionProps?
112
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html[`lambda.FunctionProps`]
113
+ |User provided props to override the default props for the Lambda
114
+ function.
115
+
116
+ |existingTopicObj?
117
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`sns.Topic`]
118
+ |Existing instance of SNS Topic object, providing both this and
119
+ `topicProps` will cause an error.
120
+
121
+ |topicProps?
122
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.TopicProps.html[`sns.TopicProps`]
123
+ |Optional user provided properties to override the default properties
124
+ for the SNS topic.
125
+
126
+ |existingVpc?
127
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html[`ec2.IVpc`]
128
+ |An optional, existing VPC into which this pattern should be deployed.
129
+ When deployed in a VPC, the Lambda function will use ENIs in the VPC to
130
+ access network resources and an Interface Endpoint will be created in
131
+ the VPC for Amazon SNS. If an existing VPC is provided, the `deployVpc`
132
+ property cannot be `true`. This uses `ec2.IVpc` to allow clients to
133
+ supply VPCs that exist outside the stack using the
134
+ https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html#static-fromwbrlookupscope-id-options[`ec2.Vpc.fromLookup()`]
135
+ method.
136
+
137
+ |vpcProps?
138
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpcProps.html[`ec2.VpcProps`]
139
+ |Optional user-provided properties to override the default properties
140
+ for the new VPC. `enableDnsHostnames`, `enableDnsSupport`, `natGateways`
141
+ and `subnetConfiguration` are set by the pattern, so any values for
142
+ those properties supplied here will be overridden. If `deployVpc` is not
143
+ `true` then this property will be ignored.
144
+
145
+ |deployVpc? |`boolean` |Whether to create a new VPC based on `vpcProps`
146
+ into which to deploy this pattern. Setting this to true will deploy the
147
+ minimal, most private VPC to run the pattern:
148
+
149
+ |topicArnEnvironmentVariableName? |`string` |Optional Name for the
150
+ Lambda function environment variable set to the arn of the topic.
151
+ Default: SNS_TOPIC_ARN
152
+
153
+ |topicNameEnvironmentVariableName? |`string` |Optional Name for the
154
+ Lambda function environment variable set to the name of the topic.
155
+ Default: SNS_TOPIC_NAME
156
+
157
+ |enableEncryptionWithCustomerManagedKey? |`boolean` |If no key is
158
+ provided, this flag determines whether the SNS Topic is encrypted with a
159
+ new CMK or an AWS managed key. This flag is ignored if any of the
160
+ following are defined: topicProps.masterKey, encryptionKey or
161
+ encryptionKeyProps.
162
+
163
+ |encryptionKey?
164
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html[`kms.Key`]
165
+ |An optional, imported encryption key to encrypt the SNS Topic with.
166
+
167
+ |encryptionKeyProps?
168
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html#construct-props[`kms.KeyProps`]
169
+ |Optional user provided properties to override the default properties
170
+ for the KMS encryption key used to encrypt the SNS Topic with.
171
+ |===
172
+
173
+ == Pattern Properties
174
+
175
+ [width="100%",cols="<30%,<35%,35%",options="header",]
176
+ |===
177
+ |*Name* |*Type* |*Description*
178
+ |lambdaFunction
179
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
180
+ |Returns an instance of the Lambda function created by the pattern.
181
+
182
+ |snsTopic
183
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.Topic.html[`sns.Topic`]
184
+ |Returns an instance of the SNS topic created by the pattern.
185
+
186
+ |vpc?
187
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html[`ec2.IVpc`]
188
+ |Returns an interface on the VPC used by the pattern (if any). This may
189
+ be a VPC created by the pattern or the VPC supplied to the pattern
190
+ constructor.
191
+ |===
192
+
193
+ == Default settings
194
+
195
+ Out of the box implementation of the Construct without any override will
196
+ set the following defaults:
197
+
198
+ === AWS Lambda Function
199
+
200
+ * Configure limited privilege access IAM role for Lambda function to
201
+ access the Firehose Delivery Stream
202
+ * Enable reusing connections with Keep-Alive for NodeJs Lambda function
203
+ * Enable X-Ray Tracing
204
+ * Set Environment Variables
205
+ ** (default) SNS_TOPIC_NAME
206
+ ** (default) SNS_TOPIC_ARN
207
+ ** AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x
208
+ and higher functions)
209
+
210
+ === Amazon SNS Topic
211
+
212
+ * Configure least privilege access permissions for SNS Topic
213
+ * Enable server-side encryption forSNS Topic using AWS managed KMS Key
214
+ * Enforce encryption of data in transit
215
+
216
+ == Architecture
217
+
218
+
219
+ image::aws-lambda-sns.png["Diagram showing the Lambda function, SNS topic and IAM role created by the construct",scaledwidth=100%]
220
+
221
+ // github block
222
+
223
+ '''''
224
+
225
+ © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
package/README.md CHANGED
@@ -1,127 +1 @@
1
- # aws-lambda-sns module
2
- <!--BEGIN STABILITY BANNER-->
3
-
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
- <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_sns`|
18
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-lambda-sns`|
19
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.lambdasns`|
20
-
21
- ## Overview
22
- This AWS Solutions Construct implements an AWS Lambda function connected to an Amazon SNS topic.
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 { LambdaToSns, LambdaToSnsProps } from "@aws-solutions-constructs/aws-lambda-sns";
31
- import * as lambda from 'aws-cdk-lib/aws-lambda';
32
-
33
- new LambdaToSns(this, 'test-lambda-sns', {
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_sns import LambdaToSns
45
- from aws_cdk import (
46
- aws_lambda as _lambda,
47
- Stack
48
- )
49
- from constructs import Construct
50
-
51
- LambdaToSns(
52
- self, 'test-lambda-sns-stack',
53
- lambda_function_props=_lambda.FunctionProps(
54
- code=_lambda.Code.from_asset('lambda'),
55
- runtime=_lambda.Runtime.PYTHON_3_11,
56
- handler='index.handler'
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.Runtime;
69
- import software.amazon.awsconstructs.services.lambdasns.*;
70
-
71
- new LambdaToSns(this, "test-lambda-sns-stack", new LambdaToSnsProps.Builder()
72
- .lambdaFunctionProps(new FunctionProps.Builder()
73
- .runtime(Runtime.NODEJS_20_X)
74
- .code(Code.fromAsset("lambda"))
75
- .handler("index.handler")
76
- .build())
77
- .build());
78
- ```
79
-
80
- ## Pattern Construct Props
81
-
82
- | **Name** | **Type** | **Description** |
83
- |:-------------|:----------------|-----------------|
84
- |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.|
85
- |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.|
86
- |existingTopicObj?|[`sns.Topic`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of SNS Topic object, providing both this and `topicProps` will cause an error.|
87
- |topicProps?|[`sns.TopicProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.TopicProps.html)|Optional user provided properties to override the default properties for the SNS topic.|
88
- |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 SNS. 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.|
89
- |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.|
90
- |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`.|
91
- |topicArnEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the arn of the topic. Default: SNS_TOPIC_ARN |
92
- |topicNameEnvironmentVariableName?|`string`|Optional Name for the Lambda function environment variable set to the name of the topic. Default: SNS_TOPIC_NAME |
93
- |enableEncryptionWithCustomerManagedKey?|`boolean`|If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, encryptionKey or encryptionKeyProps.|
94
- |encryptionKey?|[`kms.Key`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html)|An optional, imported encryption key to encrypt the SNS Topic with.|
95
- |encryptionKeyProps?|[`kms.KeyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html#construct-props)|Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with.|
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 pattern.|
102
- |snsTopic|[`sns.Topic`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.Topic.html)|Returns an instance of the SNS topic created by the pattern.|
103
- |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.|
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
- * Configure limited privilege access IAM role for Lambda function to access the Firehose Delivery Stream
111
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
112
- * Enable X-Ray Tracing
113
- * Set Environment Variables
114
- * (default) SNS_TOPIC_NAME
115
- * (default) SNS_TOPIC_ARN
116
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
117
-
118
- ### Amazon SNS Topic
119
- * Configure least privilege access permissions for SNS Topic
120
- * Enable server-side encryption forSNS Topic using AWS managed KMS Key
121
- * Enforce encryption of data in transit
122
-
123
- ## Architecture
124
- ![Architecture Diagram](architecture.png)
125
-
126
- ***
127
- &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-sns/README.adoc)
package/lib/index.js CHANGED
@@ -61,5 +61,5 @@ class LambdaToSns extends constructs_1.Construct {
61
61
  }
62
62
  exports.LambdaToSns = LambdaToSns;
63
63
  _a = JSII_RTTI_SYMBOL_1;
64
- LambdaToSns[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-sns.LambdaToSns", version: "2.85.1" };
64
+ LambdaToSns[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-sns.LambdaToSns", version: "2.85.3" };
65
65
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWlCQSwyREFBMkQ7QUFDM0Qsd0ZBQXdGO0FBQ3hGLDJDQUF1QztBQThFdkM7O0dBRUc7QUFDSCxNQUFhLFdBQVksU0FBUSxzQkFBUztJQUt0Qzs7Ozs7OztPQU9HO0lBQ0gsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF1QjtRQUMvRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLFFBQVEsQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDOUIsUUFBUSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUM5QixRQUFRLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxDQUFDLENBQUM7UU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JtaXNzaW9ucyB0byB0aGUgZnVuY3Rpb25cbiAgICAgIHRoaXMuc25zVG9waWMuZ3JhbnRQdWJsaXNoKHRoaXMubGFtYmRhRnVuY3Rpb24uZ3JhbnRQcmluY2lwYWwpO1xuICAgIH1cbn0iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-lambda-sns",
3
- "version": "2.85.1",
3
+ "version": "2.85.3",
4
4
  "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SNS topic.",
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-assert": "integ-runner",
27
28
  "integ-no-clean": "integ-runner --update-on-failed --no-clean",
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.1",
58
+ "@aws-solutions-constructs/core": "2.85.3",
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.1",
82
+ "@aws-solutions-constructs/core": "2.85.3",
82
83
  "constructs": "^10.0.0",
83
84
  "aws-cdk-lib": "^2.193.0"
84
85
  },
File without changes