@aws-solutions-constructs/aws-lambda-sns 1.123.0 → 1.127.0

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,12 +8,12 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-cdk/aws-ec2": "1.123.0",
12
- "@aws-cdk/aws-kms": "1.123.0",
13
- "@aws-cdk/aws-lambda": "1.123.0",
14
- "@aws-cdk/aws-sns": "1.123.0",
15
- "@aws-cdk/core": "1.123.0",
16
- "@aws-solutions-constructs/core": "1.123.0",
11
+ "@aws-cdk/aws-ec2": "1.127.0",
12
+ "@aws-cdk/aws-kms": "1.127.0",
13
+ "@aws-cdk/aws-lambda": "1.127.0",
14
+ "@aws-cdk/aws-sns": "1.127.0",
15
+ "@aws-cdk/core": "1.127.0",
16
+ "@aws-solutions-constructs/core": "1.127.0",
17
17
  "constructs": "^3.2.0"
18
18
  },
19
19
  "dependencyClosure": {
@@ -181,12 +181,7 @@
181
181
  },
182
182
  "@aws-cdk/aws-cloudfront": {
183
183
  "submodules": {
184
- "@aws-cdk/aws-cloudfront.experimental": {
185
- "locationInModule": {
186
- "filename": "lib/index.ts",
187
- "line": 12
188
- }
189
- }
184
+ "@aws-cdk/aws-cloudfront.experimental": {}
190
185
  },
191
186
  "targets": {
192
187
  "dotnet": {
@@ -511,6 +506,33 @@
511
506
  }
512
507
  }
513
508
  },
509
+ "@aws-cdk/aws-elasticloadbalancingv2-targets": {
510
+ "targets": {
511
+ "dotnet": {
512
+ "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
513
+ "namespace": "Amazon.CDK.AWS.ElasticLoadBalancingV2.Targets",
514
+ "packageId": "Amazon.CDK.AWS.ElasticLoadBalancingV2.Targets"
515
+ },
516
+ "java": {
517
+ "maven": {
518
+ "artifactId": "elasticloadbalancingv2-targets",
519
+ "groupId": "software.amazon.awscdk"
520
+ },
521
+ "package": "software.amazon.awscdk.services.elasticloadbalancingv2.targets"
522
+ },
523
+ "js": {
524
+ "npm": "@aws-cdk/aws-elasticloadbalancingv2-targets"
525
+ },
526
+ "python": {
527
+ "classifiers": [
528
+ "Framework :: AWS CDK",
529
+ "Framework :: AWS CDK :: 1"
530
+ ],
531
+ "distName": "aws-cdk.aws-elasticloadbalancingv2-targets",
532
+ "module": "aws_cdk.aws_elasticloadbalancingv2_targets"
533
+ }
534
+ }
535
+ },
514
536
  "@aws-cdk/aws-elasticsearch": {
515
537
  "targets": {
516
538
  "dotnet": {
@@ -1427,7 +1449,7 @@
1427
1449
  },
1428
1450
  "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SNS topic.",
1429
1451
  "homepage": "https://github.com/awslabs/aws-solutions-constructs.git",
1430
- "jsiiVersion": "1.34.0 (build 9b72778)",
1452
+ "jsiiVersion": "1.46.0 (build cd08c55)",
1431
1453
  "keywords": [
1432
1454
  "aws",
1433
1455
  "cdk",
@@ -1446,7 +1468,7 @@
1446
1468
  },
1447
1469
  "name": "@aws-solutions-constructs/aws-lambda-sns",
1448
1470
  "readme": {
1449
- "markdown": "# aws-lambda-sns 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> All classes are under active development and subject to non-backward compatible changes or removal in any\n> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.\n> This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.\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\nThis AWS Solutions Construct implements an AWS Lambda function connected to an Amazon SNS topic.\n\nHere is a minimal deployable pattern definition in Typescript:\n\n``` typescript\nimport { LambdaToSns, LambdaToSnsProps } from \"@aws-solutions-constructs/aws-lambda-sns\";\n\nnew LambdaToSns(this, 'test-lambda-sns', {\n lambdaFunctionProps: {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(`${__dirname}/lambda`)\n }\n});\n\n```\n\n## Initializer\n\n``` text\nnew LambdaToSns(scope: Construct, id: string, props: LambdaToSnsProps);\n```\n\n_Parameters_\n\n* scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)\n* id `string`\n* props [`LambdaToSnsProps`](#pattern-construct-props)\n\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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 SQS. 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/latest/docs/@aws-cdk_aws-ec2.Vpc.html#static-fromwbrlookupscope-id-options) method.|\n|vpcProps?|[`ec2.VpcProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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 overrriden. 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 SNS topic arn environment variable set for the Lambda function.|\n|topicNameEnvironmentVariableName?|`string`|Optional Name for the SNS topic name environment variable set for the Lambda function.|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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\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 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved."
1471
+ "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\nThis AWS Solutions Construct implements an AWS Lambda function connected to an Amazon SNS topic.\n\nHere is a minimal deployable pattern definition in Typescript:\n\n``` typescript\nimport { LambdaToSns, LambdaToSnsProps } from \"@aws-solutions-constructs/aws-lambda-sns\";\n\nnew LambdaToSns(this, 'test-lambda-sns', {\n lambdaFunctionProps: {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(`${__dirname}/lambda`)\n }\n});\n\n```\n\n## Initializer\n\n``` text\nnew LambdaToSns(scope: Construct, id: string, props: LambdaToSnsProps);\n```\n\n_Parameters_\n\n* scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)\n* id `string`\n* props [`LambdaToSnsProps`](#pattern-construct-props)\n\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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 SQS. 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/latest/docs/@aws-cdk_aws-ec2.Vpc.html#static-fromwbrlookupscope-id-options) method.|\n|vpcProps?|[`ec2.VpcProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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 overrriden. 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 SNS topic arn environment variable set for the Lambda function.|\n|topicNameEnvironmentVariableName?|`string`|Optional Name for the SNS topic name environment variable set for the Lambda function.|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_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\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 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
1450
1472
  },
1451
1473
  "repository": {
1452
1474
  "directory": "source/patterns/@aws-solutions-constructs/aws-lambda-sns",
@@ -1457,8 +1479,8 @@
1457
1479
  "targets": {
1458
1480
  "dotnet": {
1459
1481
  "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
1460
- "namespace": "Amazon.Constructs.AWS.LambdaSns",
1461
- "packageId": "Amazon.Constructs.AWS.LambdaSns",
1482
+ "namespace": "Amazon.SolutionsConstructs.AWS.LambdaSns",
1483
+ "packageId": "Amazon.SolutionsConstructs.AWS.LambdaSns",
1462
1484
  "signAssembly": true
1463
1485
  },
1464
1486
  "java": {
@@ -1569,7 +1591,8 @@
1569
1591
  "fqn": "@aws-cdk/aws-ec2.IVpc"
1570
1592
  }
1571
1593
  }
1572
- ]
1594
+ ],
1595
+ "symbolId": "lib/index:LambdaToSns"
1573
1596
  },
1574
1597
  "@aws-solutions-constructs/aws-lambda-sns.LambdaToSnsProps": {
1575
1598
  "assembly": "@aws-solutions-constructs/aws-lambda-sns",
@@ -1738,9 +1761,10 @@
1738
1761
  "fqn": "@aws-cdk/aws-ec2.VpcProps"
1739
1762
  }
1740
1763
  }
1741
- ]
1764
+ ],
1765
+ "symbolId": "lib/index:LambdaToSnsProps"
1742
1766
  }
1743
1767
  },
1744
- "version": "1.123.0",
1745
- "fingerprint": "+azc7VYqBHoGiD6WVFnsbIxz9TXXX37+IW6DibMlaVI="
1768
+ "version": "1.127.0",
1769
+ "fingerprint": "fg4P7DCDtzXPEGor0XnPrEflLp0Tn847AIyNF6l/5tY="
1746
1770
  }
package/README.md CHANGED
@@ -3,11 +3,7 @@
3
3
 
4
4
  ---
5
5
 
6
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
7
-
8
- > All classes are under active development and subject to non-backward compatible changes or removal in any
9
- > future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
10
- > This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
6
+ ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
11
7
 
12
8
  ---
13
9
  <!--END STABILITY BANNER-->
@@ -95,4 +91,4 @@ Out of the box implementation of the Construct without any override will set the
95
91
  ![Architecture Diagram](architecture.png)
96
92
 
97
93
  ***
98
- &copy; Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
94
+ &copy; Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package/lib/index.js CHANGED
@@ -58,5 +58,5 @@ class LambdaToSns extends core_1.Construct {
58
58
  }
59
59
  exports.LambdaToSns = LambdaToSns;
60
60
  _a = JSII_RTTI_SYMBOL_1;
61
- LambdaToSns[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-sns.LambdaToSns", version: "1.123.0" };
61
+ LambdaToSns[_a] = { fqn: "@aws-solutions-constructs/aws-lambda-sns.LambdaToSns", version: "1.127.0" };
62
62
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWdCQSwyREFBMkQ7QUFDM0Qsd0ZBQXdGO0FBQ3hGLHdDQUEwQzs7OztBQTBCMUMsTUFBYSxXQUFZLFNBQVEsZ0JBQVM7Ozs7Ozs7OztJQU10QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQXVCO1FBQy9ELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDakIsUUFBUSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUUzQixJQUFJLEtBQUssQ0FBQyxTQUFTLElBQUksS0FBSyxDQUFDLFdBQV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ICAgICAgICAgICBcbiAgcmVhZG9ubHkgZXhpc3RpbmdMYW1iZGFPYmo/OiBsYW1iZGEuRnVuY3Rpb247XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbGFtYmRhRnVuY3Rpb25Qcm9wcz86IGxhbWJkYS5GdW5jdGlvblByb3BzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGV4aXN0aW5nVG9waWNPYmo/OiBzbnMuVG9waWM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRvcGljUHJvcHM/OiBzbnMuVG9waWNQcm9wcztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBleGlzdGluZ1ZwYz86IGVjMi5JVnBjO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2cGNQcm9wcz86IGVjMi5WcGNQcm9wcztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGRlcGxveVZwYz86IGJvb2xlYW47XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB0b3BpY0FybkVudmlyb25tZW50VmFyaWFibGVOYW1lPzogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRvcGljTmFtZUVudmlyb25tZW50VmFyaWFibGVOYW1lPzogc3RyaW5nO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBjbGFzcyBMYW1iZGFUb1NucyBleHRlbmRzIENvbnN0cnVjdCB7XG4gICAgcHVibGljIHJlYWRvbmx5IGxhbWJkYUZ1bmN0aW9uOiBsYW1iZGEuRnVuY3Rpb247XG4gICAgcHVibGljIHJlYWRvbmx5IHNuc1RvcGljOiBzbnMuVG9waWM7XG4gICAgcHVibGljIHJlYWRvbmx5IHZwYz86IGVjMi5JVnBjO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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m1lbnQodG9waWNOYW1lRW52aXJvbm1lbnRWYXJpYWJsZU5hbWUsIHRoaXMuc25zVG9waWMudG9waWNOYW1lKTtcblxuICAgICAgLy8gQWRkIHB1Ymxpc2hpbmcgcGVybWlzc2lvbnMgdG8gdGhlIGZ1bmN0aW9uXG4gICAgICB0aGlzLnNuc1RvcGljLmdyYW50UHVibGlzaCh0aGlzLmxhbWJkYUZ1bmN0aW9uLmdyYW50UHJpbmNpcGFsKTtcbiAgICB9XG59Il19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-lambda-sns",
3
- "version": "1.123.0",
3
+ "version": "1.127.0",
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",
@@ -41,8 +41,8 @@
41
41
  }
42
42
  },
43
43
  "dotnet": {
44
- "namespace": "Amazon.Constructs.AWS.LambdaSns",
45
- "packageId": "Amazon.Constructs.AWS.LambdaSns",
44
+ "namespace": "Amazon.SolutionsConstructs.AWS.LambdaSns",
45
+ "packageId": "Amazon.SolutionsConstructs.AWS.LambdaSns",
46
46
  "signAssembly": true,
47
47
  "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
48
48
  },
@@ -53,16 +53,16 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@aws-cdk/aws-lambda": "1.123.0",
57
- "@aws-cdk/aws-sns": "1.123.0",
58
- "@aws-cdk/aws-kms": "1.123.0",
59
- "@aws-cdk/core": "1.123.0",
60
- "@aws-cdk/aws-ec2": "1.123.0",
61
- "@aws-solutions-constructs/core": "1.123.0",
56
+ "@aws-cdk/aws-lambda": "1.127.0",
57
+ "@aws-cdk/aws-sns": "1.127.0",
58
+ "@aws-cdk/aws-kms": "1.127.0",
59
+ "@aws-cdk/core": "1.127.0",
60
+ "@aws-cdk/aws-ec2": "1.127.0",
61
+ "@aws-solutions-constructs/core": "1.127.0",
62
62
  "constructs": "^3.2.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@aws-cdk/assert": "1.123.0",
65
+ "@aws-cdk/assert": "1.127.0",
66
66
  "@types/jest": "^26.0.22",
67
67
  "@types/node": "^10.3.0"
68
68
  },
@@ -81,12 +81,12 @@
81
81
  ]
82
82
  },
83
83
  "peerDependencies": {
84
- "@aws-cdk/aws-lambda": "1.123.0",
85
- "@aws-cdk/aws-sns": "1.123.0",
86
- "@aws-cdk/aws-kms": "1.123.0",
87
- "@aws-cdk/aws-ec2": "1.123.0",
88
- "@aws-cdk/core": "1.123.0",
89
- "@aws-solutions-constructs/core": "1.123.0",
84
+ "@aws-cdk/aws-lambda": "1.127.0",
85
+ "@aws-cdk/aws-sns": "1.127.0",
86
+ "@aws-cdk/aws-kms": "1.127.0",
87
+ "@aws-cdk/aws-ec2": "1.127.0",
88
+ "@aws-cdk/core": "1.127.0",
89
+ "@aws-solutions-constructs/core": "1.127.0",
90
90
  "constructs": "^3.2.0"
91
91
  },
92
92
  "keywords": [
@@ -102,41 +102,9 @@
102
102
  "Properties": {
103
103
  "Code": {
104
104
  "S3Bucket": {
105
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458"
105
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
106
106
  },
107
- "S3Key": {
108
- "Fn::Join": [
109
- "",
110
- [
111
- {
112
- "Fn::Select": [
113
- 0,
114
- {
115
- "Fn::Split": [
116
- "||",
117
- {
118
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
119
- }
120
- ]
121
- }
122
- ]
123
- },
124
- {
125
- "Fn::Select": [
126
- 1,
127
- {
128
- "Fn::Split": [
129
- "||",
130
- {
131
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
132
- }
133
- ]
134
- }
135
- ]
136
- }
137
- ]
138
- ]
139
- }
107
+ "S3Key": "8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420.zip"
140
108
  },
141
109
  "Role": {
142
110
  "Fn::GetAtt": [
@@ -298,17 +266,37 @@
298
266
  }
299
267
  },
300
268
  "Parameters": {
301
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458": {
302
- "Type": "String",
303
- "Description": "S3 bucket for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
304
- },
305
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D": {
306
- "Type": "String",
307
- "Description": "S3 key for asset version \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
308
- },
309
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420ArtifactHashA71E92AD": {
310
- "Type": "String",
311
- "Description": "Artifact hash for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
269
+ "BootstrapVersion": {
270
+ "Type": "AWS::SSM::Parameter::Value<String>",
271
+ "Default": "/cdk-bootstrap/hnb659fds/version",
272
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store."
273
+ }
274
+ },
275
+ "Rules": {
276
+ "CheckBootstrapVersion": {
277
+ "Assertions": [
278
+ {
279
+ "Assert": {
280
+ "Fn::Not": [
281
+ {
282
+ "Fn::Contains": [
283
+ [
284
+ "1",
285
+ "2",
286
+ "3",
287
+ "4",
288
+ "5"
289
+ ],
290
+ {
291
+ "Ref": "BootstrapVersion"
292
+ }
293
+ ]
294
+ }
295
+ ]
296
+ },
297
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
298
+ }
299
+ ]
312
300
  }
313
301
  }
314
302
  }
@@ -143,41 +143,9 @@
143
143
  "Properties": {
144
144
  "Code": {
145
145
  "S3Bucket": {
146
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458"
146
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
147
147
  },
148
- "S3Key": {
149
- "Fn::Join": [
150
- "",
151
- [
152
- {
153
- "Fn::Select": [
154
- 0,
155
- {
156
- "Fn::Split": [
157
- "||",
158
- {
159
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
160
- }
161
- ]
162
- }
163
- ]
164
- },
165
- {
166
- "Fn::Select": [
167
- 1,
168
- {
169
- "Fn::Split": [
170
- "||",
171
- {
172
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
173
- }
174
- ]
175
- }
176
- ]
177
- }
178
- ]
179
- ]
180
- }
148
+ "S3Key": "8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420.zip"
181
149
  },
182
150
  "Role": {
183
151
  "Fn::GetAtt": [
@@ -731,17 +699,37 @@
731
699
  }
732
700
  },
733
701
  "Parameters": {
734
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458": {
735
- "Type": "String",
736
- "Description": "S3 bucket for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
737
- },
738
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D": {
739
- "Type": "String",
740
- "Description": "S3 key for asset version \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
741
- },
742
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420ArtifactHashA71E92AD": {
743
- "Type": "String",
744
- "Description": "Artifact hash for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
702
+ "BootstrapVersion": {
703
+ "Type": "AWS::SSM::Parameter::Value<String>",
704
+ "Default": "/cdk-bootstrap/hnb659fds/version",
705
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store."
706
+ }
707
+ },
708
+ "Rules": {
709
+ "CheckBootstrapVersion": {
710
+ "Assertions": [
711
+ {
712
+ "Assert": {
713
+ "Fn::Not": [
714
+ {
715
+ "Fn::Contains": [
716
+ [
717
+ "1",
718
+ "2",
719
+ "3",
720
+ "4",
721
+ "5"
722
+ ],
723
+ {
724
+ "Ref": "BootstrapVersion"
725
+ }
726
+ ]
727
+ }
728
+ ]
729
+ },
730
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
731
+ }
732
+ ]
745
733
  }
746
734
  }
747
735
  }
@@ -102,41 +102,9 @@
102
102
  "Properties": {
103
103
  "Code": {
104
104
  "S3Bucket": {
105
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458"
105
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
106
106
  },
107
- "S3Key": {
108
- "Fn::Join": [
109
- "",
110
- [
111
- {
112
- "Fn::Select": [
113
- 0,
114
- {
115
- "Fn::Split": [
116
- "||",
117
- {
118
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
119
- }
120
- ]
121
- }
122
- ]
123
- },
124
- {
125
- "Fn::Select": [
126
- 1,
127
- {
128
- "Fn::Split": [
129
- "||",
130
- {
131
- "Ref": "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D"
132
- }
133
- ]
134
- }
135
- ]
136
- }
137
- ]
138
- ]
139
- }
107
+ "S3Key": "8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420.zip"
140
108
  },
141
109
  "Role": {
142
110
  "Fn::GetAtt": [
@@ -298,17 +266,37 @@
298
266
  }
299
267
  },
300
268
  "Parameters": {
301
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3Bucket749AC458": {
302
- "Type": "String",
303
- "Description": "S3 bucket for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
304
- },
305
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420S3VersionKeyFF5CC16D": {
306
- "Type": "String",
307
- "Description": "S3 key for asset version \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
308
- },
309
- "AssetParameters8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420ArtifactHashA71E92AD": {
310
- "Type": "String",
311
- "Description": "Artifact hash for asset \"8efd3dd9643a4d64a128ad582cab718a1e464bcc719bbbcf0e7b0481188a0420\""
269
+ "BootstrapVersion": {
270
+ "Type": "AWS::SSM::Parameter::Value<String>",
271
+ "Default": "/cdk-bootstrap/hnb659fds/version",
272
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store."
273
+ }
274
+ },
275
+ "Rules": {
276
+ "CheckBootstrapVersion": {
277
+ "Assertions": [
278
+ {
279
+ "Assert": {
280
+ "Fn::Not": [
281
+ {
282
+ "Fn::Contains": [
283
+ [
284
+ "1",
285
+ "2",
286
+ "3",
287
+ "4",
288
+ "5"
289
+ ],
290
+ {
291
+ "Ref": "BootstrapVersion"
292
+ }
293
+ ]
294
+ }
295
+ ]
296
+ },
297
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
298
+ }
299
+ ]
312
300
  }
313
301
  }
314
302
  }