@aws-solutions-constructs/aws-cloudfront-s3 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 +127 -31
- package/README.md +10 -9
- package/lib/index.d.ts +30 -2
- package/lib/index.js +11 -7
- package/package.json +18 -18
- package/test/integ.custom-originPath.d.ts +13 -0
- package/test/integ.custom-originPath.expected.json +425 -0
- package/test/integ.custom-originPath.js +28 -0
- package/test/integ.custom-security-headers.expected.json +35 -1
- package/test/integ.customCloudFrontLoggingBucket.d.ts +13 -0
- package/test/integ.customCloudFrontLoggingBucket.expected.json +424 -0
- package/test/integ.customCloudFrontLoggingBucket.js +36 -0
- package/test/integ.customLoggingBucket.d.ts +13 -0
- package/test/integ.customLoggingBucket.expected.json +424 -0
- package/test/integ.customLoggingBucket.js +35 -0
- package/test/integ.existing-bucket.expected.json +35 -1
- package/test/integ.existing-bucket.js +2 -2
- package/test/integ.no-arguments.expected.json +46 -91
- package/test/integ.no-arguments.js +10 -3
- package/test/integ.no-security-headers.expected.json +34 -0
- package/test/test.cloudfront-s3.test.js +143 -82
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Description": "Integration Test for aws-cloudfront-s3 custom CloudFront Logging Bubkcet",
|
|
3
|
+
"Resources": {
|
|
4
|
+
"testcloudfronts3S3LoggingBucket90D239DD": {
|
|
5
|
+
"Type": "AWS::S3::Bucket",
|
|
6
|
+
"Properties": {
|
|
7
|
+
"AccessControl": "LogDeliveryWrite",
|
|
8
|
+
"BucketEncryption": {
|
|
9
|
+
"ServerSideEncryptionConfiguration": [
|
|
10
|
+
{
|
|
11
|
+
"ServerSideEncryptionByDefault": {
|
|
12
|
+
"SSEAlgorithm": "AES256"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"PublicAccessBlockConfiguration": {
|
|
18
|
+
"BlockPublicAcls": true,
|
|
19
|
+
"BlockPublicPolicy": true,
|
|
20
|
+
"IgnorePublicAcls": true,
|
|
21
|
+
"RestrictPublicBuckets": true
|
|
22
|
+
},
|
|
23
|
+
"VersioningConfiguration": {
|
|
24
|
+
"Status": "Enabled"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"UpdateReplacePolicy": "Delete",
|
|
28
|
+
"DeletionPolicy": "Delete",
|
|
29
|
+
"Metadata": {
|
|
30
|
+
"cfn_nag": {
|
|
31
|
+
"rules_to_suppress": [
|
|
32
|
+
{
|
|
33
|
+
"id": "W35",
|
|
34
|
+
"reason": "This S3 bucket is used as the access logging bucket for another bucket"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"testcloudfronts3S3LoggingBucketPolicy529D4CFF": {
|
|
41
|
+
"Type": "AWS::S3::BucketPolicy",
|
|
42
|
+
"Properties": {
|
|
43
|
+
"Bucket": {
|
|
44
|
+
"Ref": "testcloudfronts3S3LoggingBucket90D239DD"
|
|
45
|
+
},
|
|
46
|
+
"PolicyDocument": {
|
|
47
|
+
"Statement": [
|
|
48
|
+
{
|
|
49
|
+
"Action": "*",
|
|
50
|
+
"Condition": {
|
|
51
|
+
"Bool": {
|
|
52
|
+
"aws:SecureTransport": "false"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"Effect": "Deny",
|
|
56
|
+
"Principal": {
|
|
57
|
+
"AWS": "*"
|
|
58
|
+
},
|
|
59
|
+
"Resource": [
|
|
60
|
+
{
|
|
61
|
+
"Fn::Join": [
|
|
62
|
+
"",
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
"Fn::GetAtt": [
|
|
66
|
+
"testcloudfronts3S3LoggingBucket90D239DD",
|
|
67
|
+
"Arn"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"/*"
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"Fn::GetAtt": [
|
|
76
|
+
"testcloudfronts3S3LoggingBucket90D239DD",
|
|
77
|
+
"Arn"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"Sid": "HttpsOnly"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"Version": "2012-10-17"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"testcloudfronts3S3BucketE0C5F76E": {
|
|
89
|
+
"Type": "AWS::S3::Bucket",
|
|
90
|
+
"Properties": {
|
|
91
|
+
"BucketEncryption": {
|
|
92
|
+
"ServerSideEncryptionConfiguration": [
|
|
93
|
+
{
|
|
94
|
+
"ServerSideEncryptionByDefault": {
|
|
95
|
+
"SSEAlgorithm": "AES256"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"LifecycleConfiguration": {
|
|
101
|
+
"Rules": [
|
|
102
|
+
{
|
|
103
|
+
"NoncurrentVersionTransitions": [
|
|
104
|
+
{
|
|
105
|
+
"StorageClass": "GLACIER",
|
|
106
|
+
"TransitionInDays": 90
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"Status": "Enabled"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"LoggingConfiguration": {
|
|
114
|
+
"DestinationBucketName": {
|
|
115
|
+
"Ref": "testcloudfronts3S3LoggingBucket90D239DD"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"PublicAccessBlockConfiguration": {
|
|
119
|
+
"BlockPublicAcls": true,
|
|
120
|
+
"BlockPublicPolicy": true,
|
|
121
|
+
"IgnorePublicAcls": true,
|
|
122
|
+
"RestrictPublicBuckets": true
|
|
123
|
+
},
|
|
124
|
+
"VersioningConfiguration": {
|
|
125
|
+
"Status": "Enabled"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"UpdateReplacePolicy": "Delete",
|
|
129
|
+
"DeletionPolicy": "Delete"
|
|
130
|
+
},
|
|
131
|
+
"testcloudfronts3S3BucketPolicy250F1F61": {
|
|
132
|
+
"Type": "AWS::S3::BucketPolicy",
|
|
133
|
+
"Properties": {
|
|
134
|
+
"Bucket": {
|
|
135
|
+
"Ref": "testcloudfronts3S3BucketE0C5F76E"
|
|
136
|
+
},
|
|
137
|
+
"PolicyDocument": {
|
|
138
|
+
"Statement": [
|
|
139
|
+
{
|
|
140
|
+
"Action": "*",
|
|
141
|
+
"Condition": {
|
|
142
|
+
"Bool": {
|
|
143
|
+
"aws:SecureTransport": "false"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"Effect": "Deny",
|
|
147
|
+
"Principal": {
|
|
148
|
+
"AWS": "*"
|
|
149
|
+
},
|
|
150
|
+
"Resource": [
|
|
151
|
+
{
|
|
152
|
+
"Fn::Join": [
|
|
153
|
+
"",
|
|
154
|
+
[
|
|
155
|
+
{
|
|
156
|
+
"Fn::GetAtt": [
|
|
157
|
+
"testcloudfronts3S3BucketE0C5F76E",
|
|
158
|
+
"Arn"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"/*"
|
|
162
|
+
]
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"Fn::GetAtt": [
|
|
167
|
+
"testcloudfronts3S3BucketE0C5F76E",
|
|
168
|
+
"Arn"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"Sid": "HttpsOnly"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"Action": "s3:GetObject",
|
|
176
|
+
"Effect": "Allow",
|
|
177
|
+
"Principal": {
|
|
178
|
+
"CanonicalUser": {
|
|
179
|
+
"Fn::GetAtt": [
|
|
180
|
+
"testcloudfronts3CloudFrontDistributionOrigin1S3Origin4695F058",
|
|
181
|
+
"S3CanonicalUserId"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"Resource": {
|
|
186
|
+
"Fn::Join": [
|
|
187
|
+
"",
|
|
188
|
+
[
|
|
189
|
+
{
|
|
190
|
+
"Fn::GetAtt": [
|
|
191
|
+
"testcloudfronts3S3BucketE0C5F76E",
|
|
192
|
+
"Arn"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"/*"
|
|
196
|
+
]
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"Version": "2012-10-17"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"Metadata": {
|
|
205
|
+
"cfn_nag": {
|
|
206
|
+
"rules_to_suppress": [
|
|
207
|
+
{
|
|
208
|
+
"id": "F16",
|
|
209
|
+
"reason": "Public website bucket policy requires a wildcard principal"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"testcloudfronts3SetHttpSecurityHeaders6C5A1E69": {
|
|
216
|
+
"Type": "AWS::CloudFront::Function",
|
|
217
|
+
"Properties": {
|
|
218
|
+
"Name": "SetHttpSecurityHeadersc88d4d30b2e66a3bd009aa7f11e35596ee70824ece",
|
|
219
|
+
"AutoPublish": true,
|
|
220
|
+
"FunctionCode": "function handler(event) { var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; headers['content-security-policy'] = { value: \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'\"}; headers['x-content-type-options'] = { value: 'nosniff'}; headers['x-frame-options'] = {value: 'DENY'}; headers['x-xss-protection'] = {value: '1; mode=block'}; return response; }",
|
|
221
|
+
"FunctionConfig": {
|
|
222
|
+
"Comment": "SetHttpSecurityHeadersc88d4d30b2e66a3bd009aa7f11e35596ee70824ece",
|
|
223
|
+
"Runtime": "cloudfront-js-1.0"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"testcloudfronts3CloudfrontLoggingBucket985C0FE8": {
|
|
228
|
+
"Type": "AWS::S3::Bucket",
|
|
229
|
+
"Properties": {
|
|
230
|
+
"AccessControl": "LogDeliveryWrite",
|
|
231
|
+
"BucketEncryption": {
|
|
232
|
+
"ServerSideEncryptionConfiguration": [
|
|
233
|
+
{
|
|
234
|
+
"ServerSideEncryptionByDefault": {
|
|
235
|
+
"SSEAlgorithm": "AES256"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
"PublicAccessBlockConfiguration": {
|
|
241
|
+
"BlockPublicAcls": true,
|
|
242
|
+
"BlockPublicPolicy": true,
|
|
243
|
+
"IgnorePublicAcls": true,
|
|
244
|
+
"RestrictPublicBuckets": true
|
|
245
|
+
},
|
|
246
|
+
"VersioningConfiguration": {
|
|
247
|
+
"Status": "Enabled"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"UpdateReplacePolicy": "Delete",
|
|
251
|
+
"DeletionPolicy": "Delete",
|
|
252
|
+
"Metadata": {
|
|
253
|
+
"cfn_nag": {
|
|
254
|
+
"rules_to_suppress": [
|
|
255
|
+
{
|
|
256
|
+
"id": "W35",
|
|
257
|
+
"reason": "This S3 bucket is used as the access logging bucket for CloudFront Distribution"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"testcloudfronts3CloudfrontLoggingBucketPolicyDF55851B": {
|
|
264
|
+
"Type": "AWS::S3::BucketPolicy",
|
|
265
|
+
"Properties": {
|
|
266
|
+
"Bucket": {
|
|
267
|
+
"Ref": "testcloudfronts3CloudfrontLoggingBucket985C0FE8"
|
|
268
|
+
},
|
|
269
|
+
"PolicyDocument": {
|
|
270
|
+
"Statement": [
|
|
271
|
+
{
|
|
272
|
+
"Action": "*",
|
|
273
|
+
"Condition": {
|
|
274
|
+
"Bool": {
|
|
275
|
+
"aws:SecureTransport": "false"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"Effect": "Deny",
|
|
279
|
+
"Principal": {
|
|
280
|
+
"AWS": "*"
|
|
281
|
+
},
|
|
282
|
+
"Resource": [
|
|
283
|
+
{
|
|
284
|
+
"Fn::Join": [
|
|
285
|
+
"",
|
|
286
|
+
[
|
|
287
|
+
{
|
|
288
|
+
"Fn::GetAtt": [
|
|
289
|
+
"testcloudfronts3CloudfrontLoggingBucket985C0FE8",
|
|
290
|
+
"Arn"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"/*"
|
|
294
|
+
]
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"Fn::GetAtt": [
|
|
299
|
+
"testcloudfronts3CloudfrontLoggingBucket985C0FE8",
|
|
300
|
+
"Arn"
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"Sid": "HttpsOnly"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"Version": "2012-10-17"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"testcloudfronts3CloudFrontDistributionOrigin1S3Origin4695F058": {
|
|
312
|
+
"Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
313
|
+
"Properties": {
|
|
314
|
+
"CloudFrontOriginAccessIdentityConfig": {
|
|
315
|
+
"Comment": "Identity for customCloudFrontLoggingBuckettestcloudfronts3CloudFrontDistributionOrigin115B4D0FD"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"testcloudfronts3CloudFrontDistribution0565DEE8": {
|
|
320
|
+
"Type": "AWS::CloudFront::Distribution",
|
|
321
|
+
"Properties": {
|
|
322
|
+
"DistributionConfig": {
|
|
323
|
+
"DefaultCacheBehavior": {
|
|
324
|
+
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
|
|
325
|
+
"Compress": true,
|
|
326
|
+
"FunctionAssociations": [
|
|
327
|
+
{
|
|
328
|
+
"EventType": "viewer-response",
|
|
329
|
+
"FunctionARN": {
|
|
330
|
+
"Fn::GetAtt": [
|
|
331
|
+
"testcloudfronts3SetHttpSecurityHeaders6C5A1E69",
|
|
332
|
+
"FunctionARN"
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"TargetOriginId": "customCloudFrontLoggingBuckettestcloudfronts3CloudFrontDistributionOrigin115B4D0FD",
|
|
338
|
+
"ViewerProtocolPolicy": "redirect-to-https"
|
|
339
|
+
},
|
|
340
|
+
"DefaultRootObject": "index.html",
|
|
341
|
+
"Enabled": true,
|
|
342
|
+
"HttpVersion": "http2",
|
|
343
|
+
"IPV6Enabled": true,
|
|
344
|
+
"Logging": {
|
|
345
|
+
"Bucket": {
|
|
346
|
+
"Fn::GetAtt": [
|
|
347
|
+
"testcloudfronts3CloudfrontLoggingBucket985C0FE8",
|
|
348
|
+
"RegionalDomainName"
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"Origins": [
|
|
353
|
+
{
|
|
354
|
+
"DomainName": {
|
|
355
|
+
"Fn::GetAtt": [
|
|
356
|
+
"testcloudfronts3S3BucketE0C5F76E",
|
|
357
|
+
"RegionalDomainName"
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
"Id": "customCloudFrontLoggingBuckettestcloudfronts3CloudFrontDistributionOrigin115B4D0FD",
|
|
361
|
+
"S3OriginConfig": {
|
|
362
|
+
"OriginAccessIdentity": {
|
|
363
|
+
"Fn::Join": [
|
|
364
|
+
"",
|
|
365
|
+
[
|
|
366
|
+
"origin-access-identity/cloudfront/",
|
|
367
|
+
{
|
|
368
|
+
"Ref": "testcloudfronts3CloudFrontDistributionOrigin1S3Origin4695F058"
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"Metadata": {
|
|
379
|
+
"cfn_nag": {
|
|
380
|
+
"rules_to_suppress": [
|
|
381
|
+
{
|
|
382
|
+
"id": "W70",
|
|
383
|
+
"reason": "Since the distribution uses the CloudFront domain name, CloudFront automatically sets the security policy to TLSv1 regardless of the value of MinimumProtocolVersion"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"Parameters": {
|
|
391
|
+
"BootstrapVersion": {
|
|
392
|
+
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
393
|
+
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
394
|
+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store."
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"Rules": {
|
|
398
|
+
"CheckBootstrapVersion": {
|
|
399
|
+
"Assertions": [
|
|
400
|
+
{
|
|
401
|
+
"Assert": {
|
|
402
|
+
"Fn::Not": [
|
|
403
|
+
{
|
|
404
|
+
"Fn::Contains": [
|
|
405
|
+
[
|
|
406
|
+
"1",
|
|
407
|
+
"2",
|
|
408
|
+
"3",
|
|
409
|
+
"4",
|
|
410
|
+
"5"
|
|
411
|
+
],
|
|
412
|
+
{
|
|
413
|
+
"Ref": "BootstrapVersion"
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
|
|
6
|
+
* with the License. A copy of the License is located at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
|
|
11
|
+
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
|
|
12
|
+
* and limitations under the License.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
// Imports
|
|
16
|
+
const core_1 = require("@aws-cdk/core");
|
|
17
|
+
const aws_s3_1 = require("@aws-cdk/aws-s3");
|
|
18
|
+
const lib_1 = require("../lib");
|
|
19
|
+
const core_2 = require("@aws-solutions-constructs/core");
|
|
20
|
+
// Setup
|
|
21
|
+
const app = new core_1.App();
|
|
22
|
+
const stack = new core_1.Stack(app, core_2.generateIntegStackName(__filename));
|
|
23
|
+
stack.templateOptions.description = 'Integration Test for aws-cloudfront-s3 custom CloudFront Logging Bubkcet';
|
|
24
|
+
new lib_1.CloudFrontToS3(stack, 'test-cloudfront-s3', {
|
|
25
|
+
bucketProps: {
|
|
26
|
+
removalPolicy: core_1.RemovalPolicy.DESTROY,
|
|
27
|
+
},
|
|
28
|
+
cloudFrontLoggingBucketProps: {
|
|
29
|
+
removalPolicy: core_1.RemovalPolicy.DESTROY,
|
|
30
|
+
encryption: aws_s3_1.BucketEncryption.S3_MANAGED,
|
|
31
|
+
versioned: true
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Synth
|
|
35
|
+
app.synth();
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3VzdG9tQ2xvdWRGcm9udExvZ2dpbmdCdWNrZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jdXN0b21DbG91ZEZyb250TG9n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VzY3JpcHRpb24gPSAnSW50ZWdyYXRpb24gVGVzdCBmb3IgYXdzLWNsb3VkZnJvbnQtczMgY3VzdG9tIENsb3VkRnJvbnQgTG9nZ2luZyBCdWJrY2V0JztcblxubmV3IENsb3VkRnJvbnRUb1MzKHN0YWNrLCAndGVzdC1jbG91ZGZyb250LXMzJywge1xuICBidWNrZXRQcm9wczoge1xuICAgIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgfSxcbiAgY2xvdWRGcm9udExvZ2dpbmdCdWNrZXRQcm9wczoge1xuICAgIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgICBlbmNyeXB0aW9uOiBCdWNrZXRFbmNyeXB0aW9uLlMzX01BTkFHRUQsXG4gICAgdmVyc2lvbmVkOiB0cnVlXG4gIH1cbn0pO1xuXG4vLyBTeW50aFxuYXBwLnN5bnRoKCk7XG4iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
|
|
5
|
+
* with the License. A copy of the License is located at
|
|
6
|
+
*
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
|
|
10
|
+
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
|
|
11
|
+
* and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
export {};
|