@aws-solutions-constructs/resources 2.47.0 → 2.49.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/.eslintignore CHANGED
@@ -1,5 +1,3 @@
1
- index.js
2
- lib/*.js
3
- test/*.js
4
- *.d.ts
5
- coverage
1
+ **/*.js
2
+ **/*.d.ts
3
+ coverage
package/.jsii CHANGED
@@ -7,9 +7,14 @@
7
7
  ],
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
+ "bundled": {
11
+ "@aws-sdk/client-kms": "^3.478.0",
12
+ "@aws-sdk/client-s3": "^3.478.0",
13
+ "aws-sdk-client-mock": "^3.0.0"
14
+ },
10
15
  "dependencies": {
11
- "@aws-solutions-constructs/core": "2.47.0",
12
- "aws-cdk-lib": "^2.111.0",
16
+ "@aws-solutions-constructs/core": "2.49.0",
17
+ "aws-cdk-lib": "^2.118.0",
13
18
  "constructs": "^10.0.0"
14
19
  },
15
20
  "dependencyClosure": {
@@ -247,6 +252,8 @@
247
252
  }
248
253
  }
249
254
  },
255
+ "aws-cdk-lib.aws_apigatewayv2_authorizers": {},
256
+ "aws-cdk-lib.aws_apigatewayv2_integrations": {},
250
257
  "aws-cdk-lib.aws_appconfig": {
251
258
  "targets": {
252
259
  "dotnet": {
@@ -377,6 +384,19 @@
377
384
  }
378
385
  }
379
386
  },
387
+ "aws-cdk-lib.aws_arczonalshift": {
388
+ "targets": {
389
+ "dotnet": {
390
+ "package": "Amazon.CDK.AWS.ARCZonalShift"
391
+ },
392
+ "java": {
393
+ "package": "software.amazon.awscdk.services.arczonalshift"
394
+ },
395
+ "python": {
396
+ "module": "aws_cdk.aws_arczonalshift"
397
+ }
398
+ }
399
+ },
380
400
  "aws-cdk-lib.aws_athena": {
381
401
  "targets": {
382
402
  "dotnet": {
@@ -455,6 +475,19 @@
455
475
  }
456
476
  }
457
477
  },
478
+ "aws-cdk-lib.aws_b2bi": {
479
+ "targets": {
480
+ "dotnet": {
481
+ "package": "Amazon.CDK.AWS.B2BI"
482
+ },
483
+ "java": {
484
+ "package": "software.amazon.awscdk.services.b2bi"
485
+ },
486
+ "python": {
487
+ "module": "aws_cdk.aws_b2bi"
488
+ }
489
+ }
490
+ },
458
491
  "aws-cdk-lib.aws_backup": {
459
492
  "targets": {
460
493
  "dotnet": {
@@ -474,7 +507,7 @@
474
507
  "package": "Amazon.CDK.AWS.BackupGateway"
475
508
  },
476
509
  "java": {
477
- "package": "services.backupgateway"
510
+ "package": "software.amazon.awscdk.services.backupgateway"
478
511
  },
479
512
  "python": {
480
513
  "module": "aws_cdk.aws_backupgateway"
@@ -494,6 +527,19 @@
494
527
  }
495
528
  }
496
529
  },
530
+ "aws-cdk-lib.aws_bedrock": {
531
+ "targets": {
532
+ "dotnet": {
533
+ "namespace": "Amazon.CDK.AWS.Bedrock"
534
+ },
535
+ "java": {
536
+ "package": "software.amazon.awscdk.services.bedrock"
537
+ },
538
+ "python": {
539
+ "module": "aws_cdk.aws_bedrock"
540
+ }
541
+ }
542
+ },
497
543
  "aws-cdk-lib.aws_billingconductor": {
498
544
  "targets": {
499
545
  "dotnet": {
@@ -578,7 +624,7 @@
578
624
  "package": "Amazon.CDK.AWS.CleanRooms"
579
625
  },
580
626
  "java": {
581
- "package": "services.cleanrooms"
627
+ "package": "software.amazon.awscdk.services.cleanrooms"
582
628
  },
583
629
  "python": {
584
630
  "module": "aws_cdk.aws_cleanrooms"
@@ -1320,7 +1366,7 @@
1320
1366
  "package": "Amazon.CDK.AWS.EntityResolution"
1321
1367
  },
1322
1368
  "java": {
1323
- "package": "services.entityresolution"
1369
+ "package": "software.amazon.awscdk.services.entityresolution"
1324
1370
  },
1325
1371
  "python": {
1326
1372
  "module": "aws_cdk.aws_entityresolution"
@@ -1580,7 +1626,7 @@
1580
1626
  "package": "Amazon.CDK.AWS.HealthImaging"
1581
1627
  },
1582
1628
  "java": {
1583
- "package": "services.healthimaging"
1629
+ "package": "software.amazon.awscdk.services.healthimaging"
1584
1630
  },
1585
1631
  "python": {
1586
1632
  "module": "aws_cdk.aws_healthimaging"
@@ -2243,7 +2289,7 @@
2243
2289
  "package": "Amazon.CDK.AWS.MediaPackageV2"
2244
2290
  },
2245
2291
  "java": {
2246
- "package": "services.mediapackagev2"
2292
+ "package": "software.amazon.awscdk.services.mediapackagev2"
2247
2293
  },
2248
2294
  "python": {
2249
2295
  "module": "aws_cdk.aws_mediapackagev2"
@@ -2328,6 +2374,19 @@
2328
2374
  }
2329
2375
  }
2330
2376
  },
2377
+ "aws-cdk-lib.aws_neptunegraph": {
2378
+ "targets": {
2379
+ "dotnet": {
2380
+ "package": "Amazon.CDK.AWS.NeptuneGraph"
2381
+ },
2382
+ "java": {
2383
+ "package": "software.amazon.awscdk.services.neptunegraph"
2384
+ },
2385
+ "python": {
2386
+ "module": "aws_cdk.aws_neptunegraph"
2387
+ }
2388
+ }
2389
+ },
2331
2390
  "aws-cdk-lib.aws_networkfirewall": {
2332
2391
  "targets": {
2333
2392
  "dotnet": {
@@ -2464,7 +2523,7 @@
2464
2523
  "package": "Amazon.CDK.AWS.OSIS"
2465
2524
  },
2466
2525
  "java": {
2467
- "package": "services.osis"
2526
+ "package": "software.amazon.awscdk.services.osis"
2468
2527
  },
2469
2528
  "python": {
2470
2529
  "module": "aws_cdk.aws_osis"
@@ -2490,7 +2549,7 @@
2490
2549
  "package": "Amazon.CDK.AWS.PCAConnectorAD"
2491
2550
  },
2492
2551
  "java": {
2493
- "package": "services.pcaconnectorad"
2552
+ "package": "software.amazon.awscdk.services.pcaconnectorad"
2494
2553
  },
2495
2554
  "python": {
2496
2555
  "module": "aws_cdk.aws_pcaconnectorad"
@@ -2555,7 +2614,7 @@
2555
2614
  "package": "Amazon.CDK.AWS.Proton"
2556
2615
  },
2557
2616
  "java": {
2558
- "package": "services.proton"
2617
+ "package": "software.amazon.awscdk.services.proton"
2559
2618
  },
2560
2619
  "python": {
2561
2620
  "module": "aws_cdk.aws_proton"
@@ -2874,6 +2933,19 @@
2874
2933
  }
2875
2934
  }
2876
2935
  },
2936
+ "aws-cdk-lib.aws_s3express": {
2937
+ "targets": {
2938
+ "dotnet": {
2939
+ "package": "Amazon.CDK.AWS.S3Express"
2940
+ },
2941
+ "java": {
2942
+ "package": "software.amazon.awscdk.services.s3express"
2943
+ },
2944
+ "python": {
2945
+ "module": "aws_cdk.aws_s3express"
2946
+ }
2947
+ }
2948
+ },
2877
2949
  "aws-cdk-lib.aws_s3objectlambda": {
2878
2950
  "targets": {
2879
2951
  "dotnet": {
@@ -3049,7 +3121,7 @@
3049
3121
  "package": "Amazon.CDK.AWS.Shield"
3050
3122
  },
3051
3123
  "java": {
3052
- "package": "services.shield"
3124
+ "package": "software.amazon.awscdk.services.shield"
3053
3125
  },
3054
3126
  "python": {
3055
3127
  "module": "aws_cdk.aws_shield"
@@ -3270,7 +3342,7 @@
3270
3342
  "package": "Amazon.CDK.AWS.VerifiedPermissions"
3271
3343
  },
3272
3344
  "java": {
3273
- "package": "services.verifiedpermissions"
3345
+ "package": "software.amazon.awscdk.services.verifiedpermissions"
3274
3346
  },
3275
3347
  "python": {
3276
3348
  "module": "aws_cdk.aws_verifiedpermissions"
@@ -3368,13 +3440,26 @@
3368
3440
  }
3369
3441
  }
3370
3442
  },
3443
+ "aws-cdk-lib.aws_workspacesthinclient": {
3444
+ "targets": {
3445
+ "dotnet": {
3446
+ "package": "Amazon.CDK.AWS.WorkSpacesThinClient"
3447
+ },
3448
+ "java": {
3449
+ "package": "software.amazon.awscdk.services.workspacesthinclient"
3450
+ },
3451
+ "python": {
3452
+ "module": "aws_cdk.aws_workspacesthinclient"
3453
+ }
3454
+ }
3455
+ },
3371
3456
  "aws-cdk-lib.aws_workspacesweb": {
3372
3457
  "targets": {
3373
3458
  "dotnet": {
3374
3459
  "package": "Amazon.CDK.AWS.WorkSpacesWeb"
3375
3460
  },
3376
3461
  "java": {
3377
- "package": "services.workspacesweb"
3462
+ "package": "software.amazon.awscdk.services.workspacesweb"
3378
3463
  },
3379
3464
  "python": {
3380
3465
  "module": "aws_cdk.aws_workspacesweb"
@@ -3579,7 +3664,7 @@
3579
3664
  },
3580
3665
  "description": "Resource CDK Constructs for patterns library",
3581
3666
  "homepage": "https://github.com/awslabs/aws-solutions-constructs.git",
3582
- "jsiiVersion": "1.92.0 (build db7f27d)",
3667
+ "jsiiVersion": "1.94.0 (build b380f01)",
3583
3668
  "license": "Apache-2.0",
3584
3669
  "metadata": {
3585
3670
  "jsii": {
@@ -3621,6 +3706,44 @@
3621
3706
  }
3622
3707
  },
3623
3708
  "types": {
3709
+ "@aws-solutions-constructs/resources.CreateKeyPolicyUpdaterResponse": {
3710
+ "assembly": "@aws-solutions-constructs/resources",
3711
+ "datatype": true,
3712
+ "fqn": "@aws-solutions-constructs/resources.CreateKeyPolicyUpdaterResponse",
3713
+ "kind": "interface",
3714
+ "locationInModule": {
3715
+ "filename": "lib/key-policy-updater.ts",
3716
+ "line": 26
3717
+ },
3718
+ "name": "CreateKeyPolicyUpdaterResponse",
3719
+ "properties": [
3720
+ {
3721
+ "abstract": true,
3722
+ "immutable": true,
3723
+ "locationInModule": {
3724
+ "filename": "lib/key-policy-updater.ts",
3725
+ "line": 28
3726
+ },
3727
+ "name": "customResource",
3728
+ "type": {
3729
+ "fqn": "aws-cdk-lib.CustomResource"
3730
+ }
3731
+ },
3732
+ {
3733
+ "abstract": true,
3734
+ "immutable": true,
3735
+ "locationInModule": {
3736
+ "filename": "lib/key-policy-updater.ts",
3737
+ "line": 27
3738
+ },
3739
+ "name": "lambdaFunction",
3740
+ "type": {
3741
+ "fqn": "aws-cdk-lib.aws_lambda.Function"
3742
+ }
3743
+ }
3744
+ ],
3745
+ "symbolId": "lib/key-policy-updater:CreateKeyPolicyUpdaterResponse"
3746
+ },
3624
3747
  "@aws-solutions-constructs/resources.CreateTemplateWriterResponse": {
3625
3748
  "assembly": "@aws-solutions-constructs/resources",
3626
3749
  "datatype": true,
@@ -3628,7 +3751,7 @@
3628
3751
  "kind": "interface",
3629
3752
  "locationInModule": {
3630
3753
  "filename": "lib/template-writer.ts",
3631
- "line": 80
3754
+ "line": 82
3632
3755
  },
3633
3756
  "name": "CreateTemplateWriterResponse",
3634
3757
  "properties": [
@@ -3637,7 +3760,7 @@
3637
3760
  "immutable": true,
3638
3761
  "locationInModule": {
3639
3762
  "filename": "lib/template-writer.ts",
3640
- "line": 83
3763
+ "line": 85
3641
3764
  },
3642
3765
  "name": "customResource",
3643
3766
  "type": {
@@ -3649,7 +3772,7 @@
3649
3772
  "immutable": true,
3650
3773
  "locationInModule": {
3651
3774
  "filename": "lib/template-writer.ts",
3652
- "line": 81
3775
+ "line": 83
3653
3776
  },
3654
3777
  "name": "s3Bucket",
3655
3778
  "type": {
@@ -3661,7 +3784,7 @@
3661
3784
  "immutable": true,
3662
3785
  "locationInModule": {
3663
3786
  "filename": "lib/template-writer.ts",
3664
- "line": 82
3787
+ "line": 84
3665
3788
  },
3666
3789
  "name": "s3Key",
3667
3790
  "type": {
@@ -3671,6 +3794,70 @@
3671
3794
  ],
3672
3795
  "symbolId": "lib/template-writer:CreateTemplateWriterResponse"
3673
3796
  },
3797
+ "@aws-solutions-constructs/resources.KeyPolicyUpdaterProps": {
3798
+ "assembly": "@aws-solutions-constructs/resources",
3799
+ "datatype": true,
3800
+ "fqn": "@aws-solutions-constructs/resources.KeyPolicyUpdaterProps",
3801
+ "kind": "interface",
3802
+ "locationInModule": {
3803
+ "filename": "lib/key-policy-updater.ts",
3804
+ "line": 31
3805
+ },
3806
+ "name": "KeyPolicyUpdaterProps",
3807
+ "properties": [
3808
+ {
3809
+ "abstract": true,
3810
+ "immutable": true,
3811
+ "locationInModule": {
3812
+ "filename": "lib/key-policy-updater.ts",
3813
+ "line": 33
3814
+ },
3815
+ "name": "distribution",
3816
+ "type": {
3817
+ "fqn": "aws-cdk-lib.aws_cloudfront.Distribution"
3818
+ }
3819
+ },
3820
+ {
3821
+ "abstract": true,
3822
+ "immutable": true,
3823
+ "locationInModule": {
3824
+ "filename": "lib/key-policy-updater.ts",
3825
+ "line": 32
3826
+ },
3827
+ "name": "encryptionKey",
3828
+ "type": {
3829
+ "fqn": "aws-cdk-lib.aws_kms.IKey"
3830
+ }
3831
+ },
3832
+ {
3833
+ "abstract": true,
3834
+ "immutable": true,
3835
+ "locationInModule": {
3836
+ "filename": "lib/key-policy-updater.ts",
3837
+ "line": 35
3838
+ },
3839
+ "name": "memorySize",
3840
+ "optional": true,
3841
+ "type": {
3842
+ "primitive": "number"
3843
+ }
3844
+ },
3845
+ {
3846
+ "abstract": true,
3847
+ "immutable": true,
3848
+ "locationInModule": {
3849
+ "filename": "lib/key-policy-updater.ts",
3850
+ "line": 34
3851
+ },
3852
+ "name": "timeout",
3853
+ "optional": true,
3854
+ "type": {
3855
+ "fqn": "aws-cdk-lib.Duration"
3856
+ }
3857
+ }
3858
+ ],
3859
+ "symbolId": "lib/key-policy-updater:KeyPolicyUpdaterProps"
3860
+ },
3674
3861
  "@aws-solutions-constructs/resources.TemplateValue": {
3675
3862
  "assembly": "@aws-solutions-constructs/resources",
3676
3863
  "datatype": true,
@@ -3682,7 +3869,7 @@
3682
3869
  "kind": "interface",
3683
3870
  "locationInModule": {
3684
3871
  "filename": "lib/template-writer.ts",
3685
- "line": 39
3872
+ "line": 41
3686
3873
  },
3687
3874
  "name": "TemplateValue",
3688
3875
  "properties": [
@@ -3694,7 +3881,7 @@
3694
3881
  "immutable": true,
3695
3882
  "locationInModule": {
3696
3883
  "filename": "lib/template-writer.ts",
3697
- "line": 43
3884
+ "line": 45
3698
3885
  },
3699
3886
  "name": "id",
3700
3887
  "type": {
@@ -3709,7 +3896,7 @@
3709
3896
  "immutable": true,
3710
3897
  "locationInModule": {
3711
3898
  "filename": "lib/template-writer.ts",
3712
- "line": 47
3899
+ "line": 49
3713
3900
  },
3714
3901
  "name": "value",
3715
3902
  "type": {
@@ -3726,7 +3913,7 @@
3726
3913
  "kind": "interface",
3727
3914
  "locationInModule": {
3728
3915
  "filename": "lib/template-writer.ts",
3729
- "line": 50
3916
+ "line": 52
3730
3917
  },
3731
3918
  "name": "TemplateWriterProps",
3732
3919
  "properties": [
@@ -3739,7 +3926,7 @@
3739
3926
  "immutable": true,
3740
3927
  "locationInModule": {
3741
3928
  "filename": "lib/template-writer.ts",
3742
- "line": 56
3929
+ "line": 58
3743
3930
  },
3744
3931
  "name": "templateBucket",
3745
3932
  "type": {
@@ -3754,7 +3941,7 @@
3754
3941
  "immutable": true,
3755
3942
  "locationInModule": {
3756
3943
  "filename": "lib/template-writer.ts",
3757
- "line": 60
3944
+ "line": 62
3758
3945
  },
3759
3946
  "name": "templateKey",
3760
3947
  "type": {
@@ -3769,7 +3956,7 @@
3769
3956
  "immutable": true,
3770
3957
  "locationInModule": {
3771
3958
  "filename": "lib/template-writer.ts",
3772
- "line": 65
3959
+ "line": 67
3773
3960
  },
3774
3961
  "name": "templateValues",
3775
3962
  "type": {
@@ -3790,7 +3977,7 @@
3790
3977
  "immutable": true,
3791
3978
  "locationInModule": {
3792
3979
  "filename": "lib/template-writer.ts",
3793
- "line": 77
3980
+ "line": 79
3794
3981
  },
3795
3982
  "name": "memorySize",
3796
3983
  "optional": true,
@@ -3807,7 +3994,7 @@
3807
3994
  "immutable": true,
3808
3995
  "locationInModule": {
3809
3996
  "filename": "lib/template-writer.ts",
3810
- "line": 71
3997
+ "line": 73
3811
3998
  },
3812
3999
  "name": "timeout",
3813
4000
  "optional": true,
@@ -3819,6 +4006,6 @@
3819
4006
  "symbolId": "lib/template-writer:TemplateWriterProps"
3820
4007
  }
3821
4008
  },
3822
- "version": "2.47.0",
3823
- "fingerprint": "PbiHcO1FJ3NhNj+G4JN7uqh/DLP1pddIH5Qa0RAukDg="
4009
+ "version": "2.49.0",
4010
+ "fingerprint": "/Kgwyc+QVmvwKhOVzE6GDKDscGzfsx7OAUKkIbQttXU="
3824
4011
  }
package/index.d.ts CHANGED
@@ -10,4 +10,5 @@
10
10
  * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
11
  * and limitations under the License.
12
12
  */
13
+ export * from './lib/key-policy-updater';
13
14
  export * from './lib/template-writer';
package/index.js CHANGED
@@ -22,5 +22,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
+ __exportStar(require("./lib/key-policy-updater"), exports);
25
26
  __exportStar(require("./lib/template-writer"), exports);
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7O0dBV0c7Ozs7Ozs7Ozs7OztBQUVILHdEQUFzQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogIENvcHlyaWdodCBBbWF6b24uY29tLCBJbmMuIG9yIGl0cyBhZmZpbGlhdGVzLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpLiBZb3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlXG4gKiAgd2l0aCB0aGUgTGljZW5zZS4gQSBjb3B5IG9mIHRoZSBMaWNlbnNlIGlzIGxvY2F0ZWQgYXRcbiAqXG4gKiAgICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqICBvciBpbiB0aGUgJ2xpY2Vuc2UnIGZpbGUgYWNjb21wYW55aW5nIHRoaXMgZmlsZS4gVGhpcyBmaWxlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuICdBUyBJUycgQkFTSVMsIFdJVEhPVVQgV0FSUkFOVElFU1xuICogIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGV4cHJlc3Mgb3IgaW1wbGllZC4gU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zXG4gKiAgYW5kIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3RlbXBsYXRlLXdyaXRlcic7Il19
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7O0dBV0c7Ozs7Ozs7Ozs7OztBQUVILDJEQUF5QztBQUN6Qyx3REFBc0MiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqICBDb3B5cmlnaHQgQW1hem9uLmNvbSwgSW5jLiBvciBpdHMgYWZmaWxpYXRlcy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKS4gWW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZVxuICogIHdpdGggdGhlIExpY2Vuc2UuIEEgY29weSBvZiB0aGUgTGljZW5zZSBpcyBsb2NhdGVkIGF0XG4gKlxuICogICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiAgb3IgaW4gdGhlICdsaWNlbnNlJyBmaWxlIGFjY29tcGFueWluZyB0aGlzIGZpbGUuIFRoaXMgZmlsZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAnQVMgSVMnIEJBU0lTLCBXSVRIT1VUIFdBUlJBTlRJRVNcbiAqICBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBleHByZXNzIG9yIGltcGxpZWQuIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9uc1xuICogIGFuZCBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9rZXktcG9saWN5LXVwZGF0ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdGVtcGxhdGUtd3JpdGVyJzsiXX0=
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright 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 declare const handler: (event: any, context: any) => Promise<{
14
+ Status: string;
15
+ Reason: string;
16
+ PhysicalResourceId: any;
17
+ StackId: any;
18
+ RequestId: any;
19
+ LogicalResourceId: any;
20
+ Data: {};
21
+ }>;
22
+ /**
23
+ * Updates a provided key policy with a provided key policy statement. First checks whether the provided key policy statement
24
+ * already exists. If an existing key policy is found with a matching sid, the provided key policy will overwrite the existing
25
+ * key policy. If no matching key policy is found, the provided key policy will be appended onto the array of policy statements.
26
+ * @param keyPolicy - the JSON.parse'd result of the otherwise stringified key policy.
27
+ * @param keyPolicyStatement - the key policy statement to be added to the key policy.
28
+ * @returns keyPolicy - the updated key policy.
29
+ */
30
+ export declare const updateKeyPolicy: (keyPolicy: any, keyPolicyStatement: any) => any;