@aws-solutions-constructs/resources 2.56.0 → 2.58.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.
Files changed (25) hide show
  1. package/.jsii +46 -7
  2. package/lib/key-policy-updater.d.ts +1 -1
  3. package/lib/key-policy-updater.js +13 -18
  4. package/lib/template-writer.js +16 -37
  5. package/package.json +6 -6
  6. package/test/integ.key-policy-updater.d.ts +13 -0
  7. package/test/integ.key-policy-updater.js +65 -0
  8. package/test/integ.key-policy-updater.js.snapshot/asset.4a4b024f310aca2784b69bcb790e9ccaef785e9ad5d1b73624144f88c4465b4f/index.d.ts +30 -0
  9. package/test/integ.key-policy-updater.js.snapshot/asset.4a4b024f310aca2784b69bcb790e9ccaef785e9ad5d1b73624144f88c4465b4f/index.js +127 -0
  10. package/test/integ.key-policy-updater.js.snapshot/cdk.out +1 -0
  11. package/test/integ.key-policy-updater.js.snapshot/integ.json +12 -0
  12. package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.assets.json +45 -0
  13. package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.template.json +518 -0
  14. package/test/integ.key-policy-updater.js.snapshot/keypolicyupdaterIntegDefaultTestDeployAssert2855331B.assets.json +19 -0
  15. package/test/integ.key-policy-updater.js.snapshot/keypolicyupdaterIntegDefaultTestDeployAssert2855331B.template.json +36 -0
  16. package/test/integ.key-policy-updater.js.snapshot/manifest.json +185 -0
  17. package/test/integ.key-policy-updater.js.snapshot/tree.json +795 -0
  18. package/test/integ.template-writer-from-asset.js.snapshot/manifest.json +27 -9
  19. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.assets.json +5 -5
  20. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.template.json +65 -121
  21. package/test/integ.template-writer-from-asset.js.snapshot/tree.json +128 -192
  22. package/test/integ.template-writer-from-large-asset.js.snapshot/manifest.json +27 -9
  23. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.assets.json +5 -5
  24. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.template.json +65 -121
  25. package/test/integ.template-writer-from-large-asset.js.snapshot/tree.json +128 -192
@@ -40,20 +40,20 @@
40
40
  }
41
41
  }
42
42
  },
43
- "7382a0addb9f34974a1ea6c6c9b063882af874828f366f5c93b2b7b64db15c94": {
43
+ "3542be390685e0c8353d92ccb5796d343cd93ca946b6b0de798004206a199adc": {
44
44
  "source": {
45
- "path": "asset.7382a0addb9f34974a1ea6c6c9b063882af874828f366f5c93b2b7b64db15c94",
45
+ "path": "asset.3542be390685e0c8353d92ccb5796d343cd93ca946b6b0de798004206a199adc",
46
46
  "packaging": "zip"
47
47
  },
48
48
  "destinations": {
49
49
  "current_account-current_region": {
50
50
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
51
- "objectKey": "7382a0addb9f34974a1ea6c6c9b063882af874828f366f5c93b2b7b64db15c94.zip",
51
+ "objectKey": "3542be390685e0c8353d92ccb5796d343cd93ca946b6b0de798004206a199adc.zip",
52
52
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
53
53
  }
54
54
  }
55
55
  },
56
- "607f8919f35dbe3be4de5051acf319da2372109f3746775b9d7275220e050c54": {
56
+ "3213fb7881b23f688306a63ce482339ecdd784c63cdc80c7cb4e432ad6804a58": {
57
57
  "source": {
58
58
  "path": "template-writer-from-large-asset.template.json",
59
59
  "packaging": "file"
@@ -61,7 +61,7 @@
61
61
  "destinations": {
62
62
  "current_account-current_region": {
63
63
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
64
- "objectKey": "607f8919f35dbe3be4de5051acf319da2372109f3746775b9d7275220e050c54.json",
64
+ "objectKey": "3213fb7881b23f688306a63ce482339ecdd784c63cdc80c7cb4e432ad6804a58.json",
65
65
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
66
66
  }
67
67
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Description": "Integration Test for Template Writer Resource",
3
3
  "Resources": {
4
- "TestTemplateWriterLambdaRole192FE23A": {
4
+ "LambdaFunctionServiceRole0C4CDE0B": {
5
5
  "Type": "AWS::IAM::Role",
6
6
  "Properties": {
7
7
  "AssumeRolePolicyDocument": {
@@ -16,7 +16,6 @@
16
16
  ],
17
17
  "Version": "2012-10-17"
18
18
  },
19
- "Description": "Role used by the TemplateWriterLambda to transform the incoming asset",
20
19
  "Policies": [
21
20
  {
22
21
  "PolicyDocument": {
@@ -52,68 +51,12 @@
52
51
  ],
53
52
  "Version": "2012-10-17"
54
53
  },
55
- "PolicyName": "CloudWatchLogsPolicy"
56
- },
57
- {
58
- "PolicyDocument": {
59
- "Statement": [
60
- {
61
- "Action": "s3:GetObject",
62
- "Effect": "Allow",
63
- "Resource": {
64
- "Fn::Join": [
65
- "",
66
- [
67
- "arn:",
68
- {
69
- "Ref": "AWS::Partition"
70
- },
71
- ":s3:::",
72
- {
73
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
74
- },
75
- "/122da676fba68619def0d539ff80855eaa0ba3686fb37faa298ce277c4feb8f8.122da676fba68619def0d539ff80855eaa0ba3686fb37faa298ce277c4feb8f8"
76
- ]
77
- ]
78
- }
79
- }
80
- ],
81
- "Version": "2012-10-17"
82
- },
83
- "PolicyName": "ReadInputAssetPolicy"
84
- },
85
- {
86
- "PolicyDocument": {
87
- "Statement": [
88
- {
89
- "Action": "s3:PutObject",
90
- "Effect": "Allow",
91
- "Resource": {
92
- "Fn::Join": [
93
- "",
94
- [
95
- "arn:",
96
- {
97
- "Ref": "AWS::Partition"
98
- },
99
- ":s3:::",
100
- {
101
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
102
- },
103
- "/*"
104
- ]
105
- ]
106
- }
107
- }
108
- ],
109
- "Version": "2012-10-17"
110
- },
111
- "PolicyName": "WriteOutputAssetPolicy"
54
+ "PolicyName": "LambdaFunctionServiceRolePolicy"
112
55
  }
113
56
  ]
114
57
  }
115
58
  },
116
- "TestTemplateWriterLambdaRoleDefaultPolicyBCFD88FC": {
59
+ "LambdaFunctionServiceRoleDefaultPolicy126C8897": {
117
60
  "Type": "AWS::IAM::Policy",
118
61
  "Properties": {
119
62
  "PolicyDocument": {
@@ -129,10 +72,10 @@
129
72
  ],
130
73
  "Version": "2012-10-17"
131
74
  },
132
- "PolicyName": "TestTemplateWriterLambdaRoleDefaultPolicyBCFD88FC",
75
+ "PolicyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
133
76
  "Roles": [
134
77
  {
135
- "Ref": "TestTemplateWriterLambdaRole192FE23A"
78
+ "Ref": "LambdaFunctionServiceRole0C4CDE0B"
136
79
  }
137
80
  ]
138
81
  },
@@ -147,61 +90,6 @@
147
90
  }
148
91
  }
149
92
  },
150
- "LambdaFunctionServiceRole0C4CDE0B": {
151
- "Type": "AWS::IAM::Role",
152
- "Properties": {
153
- "AssumeRolePolicyDocument": {
154
- "Statement": [
155
- {
156
- "Action": "sts:AssumeRole",
157
- "Effect": "Allow",
158
- "Principal": {
159
- "Service": "lambda.amazonaws.com"
160
- }
161
- }
162
- ],
163
- "Version": "2012-10-17"
164
- },
165
- "Policies": [
166
- {
167
- "PolicyDocument": {
168
- "Statement": [
169
- {
170
- "Action": [
171
- "logs:CreateLogGroup",
172
- "logs:CreateLogStream",
173
- "logs:PutLogEvents"
174
- ],
175
- "Effect": "Allow",
176
- "Resource": {
177
- "Fn::Join": [
178
- "",
179
- [
180
- "arn:",
181
- {
182
- "Ref": "AWS::Partition"
183
- },
184
- ":logs:",
185
- {
186
- "Ref": "AWS::Region"
187
- },
188
- ":",
189
- {
190
- "Ref": "AWS::AccountId"
191
- },
192
- ":log-group:/aws/lambda/*"
193
- ]
194
- ]
195
- }
196
- }
197
- ],
198
- "Version": "2012-10-17"
199
- },
200
- "PolicyName": "LambdaFunctionServiceRolePolicy"
201
- }
202
- ]
203
- }
204
- },
205
93
  "LambdaFunctionBF21E41F": {
206
94
  "Type": "AWS::Lambda::Function",
207
95
  "Properties": {
@@ -215,7 +103,7 @@
215
103
  "MemorySize": 1024,
216
104
  "Role": {
217
105
  "Fn::GetAtt": [
218
- "TestTemplateWriterLambdaRole192FE23A",
106
+ "LambdaFunctionServiceRole0C4CDE0B",
219
107
  "Arn"
220
108
  ]
221
109
  },
@@ -226,8 +114,8 @@
226
114
  }
227
115
  },
228
116
  "DependsOn": [
229
- "TestTemplateWriterLambdaRoleDefaultPolicyBCFD88FC",
230
- "TestTemplateWriterLambdaRole192FE23A"
117
+ "LambdaFunctionServiceRoleDefaultPolicy126C8897",
118
+ "LambdaFunctionServiceRole0C4CDE0B"
231
119
  ],
232
120
  "Metadata": {
233
121
  "cfn_nag": {
@@ -248,6 +136,62 @@
248
136
  }
249
137
  }
250
138
  },
139
+ "TestTemplateWriterPolicy8177DE02": {
140
+ "Type": "AWS::IAM::Policy",
141
+ "Properties": {
142
+ "PolicyDocument": {
143
+ "Statement": [
144
+ {
145
+ "Action": "s3:GetObject",
146
+ "Effect": "Allow",
147
+ "Resource": {
148
+ "Fn::Join": [
149
+ "",
150
+ [
151
+ "arn:",
152
+ {
153
+ "Ref": "AWS::Partition"
154
+ },
155
+ ":s3:::",
156
+ {
157
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
158
+ },
159
+ "/122da676fba68619def0d539ff80855eaa0ba3686fb37faa298ce277c4feb8f8.122da676fba68619def0d539ff80855eaa0ba3686fb37faa298ce277c4feb8f8"
160
+ ]
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ "Action": "s3:PutObject",
166
+ "Effect": "Allow",
167
+ "Resource": {
168
+ "Fn::Join": [
169
+ "",
170
+ [
171
+ "arn:",
172
+ {
173
+ "Ref": "AWS::Partition"
174
+ },
175
+ ":s3:::",
176
+ {
177
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
178
+ },
179
+ "/*"
180
+ ]
181
+ ]
182
+ }
183
+ }
184
+ ],
185
+ "Version": "2012-10-17"
186
+ },
187
+ "PolicyName": "TestTemplateWriterPolicy8177DE02",
188
+ "Roles": [
189
+ {
190
+ "Ref": "LambdaFunctionServiceRole0C4CDE0B"
191
+ }
192
+ ]
193
+ }
194
+ },
251
195
  "TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A": {
252
196
  "Type": "AWS::IAM::Role",
253
197
  "Properties": {
@@ -328,7 +272,7 @@
328
272
  "S3Bucket": {
329
273
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
330
274
  },
331
- "S3Key": "7382a0addb9f34974a1ea6c6c9b063882af874828f366f5c93b2b7b64db15c94.zip"
275
+ "S3Key": "3542be390685e0c8353d92ccb5796d343cd93ca946b6b0de798004206a199adc.zip"
332
276
  },
333
277
  "Description": "AWS CDK resource provider framework - onEvent (template-writer-from-large-asset/TestTemplateWriterProvider)",
334
278
  "Environment": {