@aws-solutions-constructs/aws-lambda-sns 2.51.0 → 2.52.1

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.
Files changed (40) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  6. package/test/integ.lamsns-deployFunction.js +5 -2
  7. package/test/integ.lamsns-deployFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  8. package/test/integ.lamsns-deployFunction.js.snapshot/cdk.out +1 -0
  9. package/test/integ.lamsns-deployFunction.js.snapshot/integ.json +12 -0
  10. package/test/integ.lamsns-deployFunction.js.snapshot/lamsns-deployFunction.assets.json +32 -0
  11. package/test/integ.lamsns-deployFunction.js.snapshot/lamsns-deployFunction.template.json +302 -0
  12. package/test/integ.lamsns-deployFunction.js.snapshot/lamsnsdeployFunctionIntegDefaultTestDeployAssert36FE5D09.assets.json +19 -0
  13. package/test/integ.lamsns-deployFunction.js.snapshot/lamsnsdeployFunctionIntegDefaultTestDeployAssert36FE5D09.template.json +36 -0
  14. package/test/integ.lamsns-deployFunction.js.snapshot/manifest.json +137 -0
  15. package/test/integ.lamsns-deployFunction.js.snapshot/tree.json +474 -0
  16. package/test/integ.lamsns-deployFunctionWithVpc.js +6 -2
  17. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  18. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  19. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  20. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/cdk.out +1 -0
  21. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/integ.json +12 -0
  22. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/lamsns-deployFunctionWithVpc.assets.json +45 -0
  23. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/lamsns-deployFunctionWithVpc.template.json +829 -0
  24. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.assets.json +19 -0
  25. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.template.json +36 -0
  26. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/manifest.json +239 -0
  27. package/test/integ.lamsns-deployFunctionWithVpc.js.snapshot/tree.json +1113 -0
  28. package/test/integ.lamsns-existingFunction.js +5 -2
  29. package/test/integ.lamsns-existingFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  30. package/test/integ.lamsns-existingFunction.js.snapshot/cdk.out +1 -0
  31. package/test/integ.lamsns-existingFunction.js.snapshot/integ.json +12 -0
  32. package/test/integ.lamsns-existingFunction.js.snapshot/lamsns-existingFunction.assets.json +32 -0
  33. package/test/integ.lamsns-existingFunction.js.snapshot/lamsns-existingFunction.template.json +302 -0
  34. package/test/integ.lamsns-existingFunction.js.snapshot/lamsnsexistingFunctionIntegDefaultTestDeployAssert733AE3CB.assets.json +19 -0
  35. package/test/integ.lamsns-existingFunction.js.snapshot/lamsnsexistingFunctionIntegDefaultTestDeployAssert733AE3CB.template.json +36 -0
  36. package/test/integ.lamsns-existingFunction.js.snapshot/manifest.json +137 -0
  37. package/test/integ.lamsns-existingFunction.js.snapshot/tree.json +474 -0
  38. package/test/integ.lamsns-deployFunction.expected.json +0 -302
  39. package/test/integ.lamsns-deployFunctionWithVpc.expected.json +0 -744
  40. package/test/integ.lamsns-existingFunction.expected.json +0 -302
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.template.json",
7
+ "packaging": "file"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ }
17
+ },
18
+ "dockerImages": {}
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "Parameters": {
3
+ "BootstrapVersion": {
4
+ "Type": "AWS::SSM::Parameter::Value<String>",
5
+ "Default": "/cdk-bootstrap/hnb659fds/version",
6
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7
+ }
8
+ },
9
+ "Rules": {
10
+ "CheckBootstrapVersion": {
11
+ "Assertions": [
12
+ {
13
+ "Assert": {
14
+ "Fn::Not": [
15
+ {
16
+ "Fn::Contains": [
17
+ [
18
+ "1",
19
+ "2",
20
+ "3",
21
+ "4",
22
+ "5"
23
+ ],
24
+ {
25
+ "Ref": "BootstrapVersion"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "version": "36.0.0",
3
+ "artifacts": {
4
+ "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.assets": {
5
+ "type": "cdk:asset-manifest",
6
+ "properties": {
7
+ "file": "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.assets.json",
8
+ "requiresBootstrapStackVersion": 6,
9
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
10
+ }
11
+ },
12
+ "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408": {
13
+ "type": "aws:cloudformation:stack",
14
+ "environment": "aws://unknown-account/unknown-region",
15
+ "properties": {
16
+ "templateFile": "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.template.json",
17
+ "terminationProtection": false,
18
+ "validateOnSynth": false,
19
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
20
+ "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
21
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
22
+ "requiresBootstrapStackVersion": 6,
23
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
24
+ "additionalDependencies": [
25
+ "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.assets"
26
+ ],
27
+ "lookupRole": {
28
+ "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
29
+ "requiresBootstrapStackVersion": 8,
30
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
31
+ }
32
+ },
33
+ "dependencies": [
34
+ "lamsnsdeployFunctionWithVpcIntegDefaultTestDeployAssertEDF33408.assets"
35
+ ],
36
+ "metadata": {
37
+ "/lamsns-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/BootstrapVersion": [
38
+ {
39
+ "type": "aws:cdk:logicalId",
40
+ "data": "BootstrapVersion"
41
+ }
42
+ ],
43
+ "/lamsns-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
44
+ {
45
+ "type": "aws:cdk:logicalId",
46
+ "data": "CheckBootstrapVersion"
47
+ }
48
+ ]
49
+ },
50
+ "displayName": "lamsns-deployFunctionWithVpc/Integ/DefaultTest/DeployAssert"
51
+ },
52
+ "lamsns-deployFunctionWithVpc.assets": {
53
+ "type": "cdk:asset-manifest",
54
+ "properties": {
55
+ "file": "lamsns-deployFunctionWithVpc.assets.json",
56
+ "requiresBootstrapStackVersion": 6,
57
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
58
+ }
59
+ },
60
+ "lamsns-deployFunctionWithVpc": {
61
+ "type": "aws:cloudformation:stack",
62
+ "environment": "aws://unknown-account/unknown-region",
63
+ "properties": {
64
+ "templateFile": "lamsns-deployFunctionWithVpc.template.json",
65
+ "terminationProtection": false,
66
+ "validateOnSynth": false,
67
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
+ "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/eaa0346c4ff539bfe6679152cc21c124666aaee311fcd3a0fbd5d5f8f0a70943.json",
70
+ "requiresBootstrapStackVersion": 6,
71
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
+ "additionalDependencies": [
73
+ "lamsns-deployFunctionWithVpc.assets"
74
+ ],
75
+ "lookupRole": {
76
+ "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
77
+ "requiresBootstrapStackVersion": 8,
78
+ "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
79
+ }
80
+ },
81
+ "dependencies": [
82
+ "lamsns-deployFunctionWithVpc.assets"
83
+ ],
84
+ "metadata": {
85
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/LambdaFunctionServiceRole/Resource": [
86
+ {
87
+ "type": "aws:cdk:logicalId",
88
+ "data": "testlambdasnsLambdaFunctionServiceRole9C412F74"
89
+ }
90
+ ],
91
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
92
+ {
93
+ "type": "aws:cdk:logicalId",
94
+ "data": "testlambdasnsLambdaFunctionServiceRoleDefaultPolicyBB1D55CB"
95
+ }
96
+ ],
97
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/ReplaceDefaultSecurityGroup-security-group/Resource": [
98
+ {
99
+ "type": "aws:cdk:logicalId",
100
+ "data": "testlambdasnsReplaceDefaultSecurityGroupsecuritygroup071D13CB"
101
+ }
102
+ ],
103
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/LambdaFunction/Resource": [
104
+ {
105
+ "type": "aws:cdk:logicalId",
106
+ "data": "testlambdasnsLambdaFunctionD8BC8ABA"
107
+ }
108
+ ],
109
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/SnsTopic/Resource": [
110
+ {
111
+ "type": "aws:cdk:logicalId",
112
+ "data": "testlambdasnsSnsTopic57DFED98"
113
+ }
114
+ ],
115
+ "/lamsns-deployFunctionWithVpc/test-lambda-sns/SnsTopic/Policy/Resource": [
116
+ {
117
+ "type": "aws:cdk:logicalId",
118
+ "data": "testlambdasnsSnsTopicPolicy4481ABC3"
119
+ }
120
+ ],
121
+ "/lamsns-deployFunctionWithVpc/Vpc/Resource": [
122
+ {
123
+ "type": "aws:cdk:logicalId",
124
+ "data": "Vpc8378EB38"
125
+ }
126
+ ],
127
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet1/Subnet": [
128
+ {
129
+ "type": "aws:cdk:logicalId",
130
+ "data": "VpcisolatedSubnet1SubnetE62B1B9B"
131
+ }
132
+ ],
133
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet1/RouteTable": [
134
+ {
135
+ "type": "aws:cdk:logicalId",
136
+ "data": "VpcisolatedSubnet1RouteTableE442650B"
137
+ }
138
+ ],
139
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet1/RouteTableAssociation": [
140
+ {
141
+ "type": "aws:cdk:logicalId",
142
+ "data": "VpcisolatedSubnet1RouteTableAssociationD259E31A"
143
+ }
144
+ ],
145
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet2/Subnet": [
146
+ {
147
+ "type": "aws:cdk:logicalId",
148
+ "data": "VpcisolatedSubnet2Subnet39217055"
149
+ }
150
+ ],
151
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet2/RouteTable": [
152
+ {
153
+ "type": "aws:cdk:logicalId",
154
+ "data": "VpcisolatedSubnet2RouteTable334F9764"
155
+ }
156
+ ],
157
+ "/lamsns-deployFunctionWithVpc/Vpc/isolatedSubnet2/RouteTableAssociation": [
158
+ {
159
+ "type": "aws:cdk:logicalId",
160
+ "data": "VpcisolatedSubnet2RouteTableAssociation25A4716F"
161
+ }
162
+ ],
163
+ "/lamsns-deployFunctionWithVpc/Vpc/RestrictDefaultSecurityGroupCustomResource/Default": [
164
+ {
165
+ "type": "aws:cdk:logicalId",
166
+ "data": "VpcRestrictDefaultSecurityGroupCustomResourceC73DA2BE"
167
+ }
168
+ ],
169
+ "/lamsns-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/Resource": [
170
+ {
171
+ "type": "aws:cdk:logicalId",
172
+ "data": "VpcFlowLogIAMRole6A475D41"
173
+ }
174
+ ],
175
+ "/lamsns-deployFunctionWithVpc/Vpc/FlowLog/IAMRole/DefaultPolicy/Resource": [
176
+ {
177
+ "type": "aws:cdk:logicalId",
178
+ "data": "VpcFlowLogIAMRoleDefaultPolicy406FB995"
179
+ }
180
+ ],
181
+ "/lamsns-deployFunctionWithVpc/Vpc/FlowLog/LogGroup/Resource": [
182
+ {
183
+ "type": "aws:cdk:logicalId",
184
+ "data": "VpcFlowLogLogGroup7B5C56B9"
185
+ }
186
+ ],
187
+ "/lamsns-deployFunctionWithVpc/Vpc/FlowLog/FlowLog": [
188
+ {
189
+ "type": "aws:cdk:logicalId",
190
+ "data": "VpcFlowLog8FF33A73"
191
+ }
192
+ ],
193
+ "/lamsns-deployFunctionWithVpc/Vpc/SNS/Resource": [
194
+ {
195
+ "type": "aws:cdk:logicalId",
196
+ "data": "VpcSNS5B664381"
197
+ }
198
+ ],
199
+ "/lamsns-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
200
+ {
201
+ "type": "aws:cdk:logicalId",
202
+ "data": "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0"
203
+ }
204
+ ],
205
+ "/lamsns-deployFunctionWithVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler": [
206
+ {
207
+ "type": "aws:cdk:logicalId",
208
+ "data": "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E"
209
+ }
210
+ ],
211
+ "/lamsns-deployFunctionWithVpc/lamsns-deployFunctionWithVpc-SNS-security-group/Resource": [
212
+ {
213
+ "type": "aws:cdk:logicalId",
214
+ "data": "lamsnsdeployFunctionWithVpcSNSsecuritygroup072F337C"
215
+ }
216
+ ],
217
+ "/lamsns-deployFunctionWithVpc/BootstrapVersion": [
218
+ {
219
+ "type": "aws:cdk:logicalId",
220
+ "data": "BootstrapVersion"
221
+ }
222
+ ],
223
+ "/lamsns-deployFunctionWithVpc/CheckBootstrapVersion": [
224
+ {
225
+ "type": "aws:cdk:logicalId",
226
+ "data": "CheckBootstrapVersion"
227
+ }
228
+ ]
229
+ },
230
+ "displayName": "lamsns-deployFunctionWithVpc"
231
+ },
232
+ "Tree": {
233
+ "type": "cdk:tree",
234
+ "properties": {
235
+ "file": "tree.json"
236
+ }
237
+ }
238
+ }
239
+ }