aws-cdk-lib 2.174.1__py3-none-any.whl → 2.175.0__py3-none-any.whl

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.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

Files changed (36) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.174.1.jsii.tgz → aws-cdk-lib@2.175.0.jsii.tgz} +0 -0
  3. aws_cdk/aws_apigateway/__init__.py +164 -0
  4. aws_cdk/aws_apigatewayv2/__init__.py +248 -0
  5. aws_cdk/aws_applicationautoscaling/__init__.py +6 -3
  6. aws_cdk/aws_autoscaling/__init__.py +8 -8
  7. aws_cdk/aws_certificatemanager/__init__.py +28 -0
  8. aws_cdk/aws_chatbot/__init__.py +28 -0
  9. aws_cdk/aws_cloudfront/__init__.py +92 -0
  10. aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
  11. aws_cdk/aws_cloudwatch/__init__.py +146 -0
  12. aws_cdk/aws_codebuild/__init__.py +84 -0
  13. aws_cdk/aws_dynamodb/__init__.py +300 -0
  14. aws_cdk/aws_ec2/__init__.py +97 -0
  15. aws_cdk/aws_ecs/__init__.py +351 -110
  16. aws_cdk/aws_ecs_patterns/__init__.py +77 -42
  17. aws_cdk/aws_elasticloadbalancing/__init__.py +3 -6
  18. aws_cdk/aws_elasticloadbalancingv2/__init__.py +732 -7
  19. aws_cdk/aws_elasticsearch/__init__.py +260 -0
  20. aws_cdk/aws_kinesis/__init__.py +324 -0
  21. aws_cdk/aws_kms/__init__.py +197 -0
  22. aws_cdk/aws_lambda/__init__.py +144 -0
  23. aws_cdk/aws_logs/__init__.py +58 -0
  24. aws_cdk/aws_opensearchservice/__init__.py +260 -0
  25. aws_cdk/aws_rds/__init__.py +384 -0
  26. aws_cdk/aws_sns/__init__.py +164 -0
  27. aws_cdk/aws_sqs/__init__.py +164 -0
  28. aws_cdk/aws_stepfunctions/__init__.py +288 -0
  29. aws_cdk/aws_synthetics/__init__.py +18 -0
  30. aws_cdk/cx_api/__init__.py +42 -0
  31. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/METADATA +1 -1
  32. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/RECORD +36 -36
  33. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/LICENSE +0 -0
  34. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/NOTICE +0 -0
  35. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/WHEEL +0 -0
  36. {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/top_level.txt +0 -0
@@ -252,6 +252,26 @@ key = kms.Key(self, "MyKey",
252
252
  > It is highly recommended that the key policy grants access to the account root, rather than specific principals.
253
253
  > See https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html for more information.
254
254
 
255
+ ### Signing and Verification key policies
256
+
257
+ Creating signatures and verifying them with KMS requires specific permissions.
258
+ The respective policies can be attached to a principal via the `grantSign` and `grantVerify` methods.
259
+
260
+ ```python
261
+ key = kms.Key(self, "MyKey")
262
+ user = iam.User(self, "MyUser")
263
+ key.grant_sign(user) # Adds 'kms:Sign' to the principal's policy
264
+ key.grant_verify(user)
265
+ ```
266
+
267
+ If both sign and verify permissions are required, they can be applied with one method called `grantSignVerify`.
268
+
269
+ ```python
270
+ key = kms.Key(self, "MyKey")
271
+ user = iam.User(self, "MyUser")
272
+ key.grant_sign_verify(user)
273
+ ```
274
+
255
275
  ### HMAC specific key policies
256
276
 
257
277
  HMAC keys have a different key policy than other KMS keys. They have a policy for generating and for verifying a MAC.
@@ -2006,6 +2026,30 @@ class IKey(_IResource_c80c4260, typing_extensions.Protocol):
2006
2026
  '''
2007
2027
  ...
2008
2028
 
2029
+ @jsii.member(jsii_name="grantSign")
2030
+ def grant_sign(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2031
+ '''Grant sign permissions using this key to the given principal.
2032
+
2033
+ :param grantee: -
2034
+ '''
2035
+ ...
2036
+
2037
+ @jsii.member(jsii_name="grantSignVerify")
2038
+ def grant_sign_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2039
+ '''Grant sign and verify permissions using this key to the given principal.
2040
+
2041
+ :param grantee: -
2042
+ '''
2043
+ ...
2044
+
2045
+ @jsii.member(jsii_name="grantVerify")
2046
+ def grant_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2047
+ '''Grant verify permissions using this key to the given principal.
2048
+
2049
+ :param grantee: -
2050
+ '''
2051
+ ...
2052
+
2009
2053
  @jsii.member(jsii_name="grantVerifyMac")
2010
2054
  def grant_verify_mac(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2011
2055
  '''Grant permissions to verifying MACs to the given principal.
@@ -2129,6 +2173,39 @@ class _IKeyProxy(
2129
2173
  check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2130
2174
  return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantGenerateMac", [grantee]))
2131
2175
 
2176
+ @jsii.member(jsii_name="grantSign")
2177
+ def grant_sign(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2178
+ '''Grant sign permissions using this key to the given principal.
2179
+
2180
+ :param grantee: -
2181
+ '''
2182
+ if __debug__:
2183
+ type_hints = typing.get_type_hints(_typecheckingstub__17bf7cf2a33c9cdda910f2942efab62c58f1c1a7a7dd9458dde25eeca2f4682d)
2184
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2185
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSign", [grantee]))
2186
+
2187
+ @jsii.member(jsii_name="grantSignVerify")
2188
+ def grant_sign_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2189
+ '''Grant sign and verify permissions using this key to the given principal.
2190
+
2191
+ :param grantee: -
2192
+ '''
2193
+ if __debug__:
2194
+ type_hints = typing.get_type_hints(_typecheckingstub__c990d684da172804daae0cf29edc7427216184b33a70a020885b86aa21a224d2)
2195
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2196
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSignVerify", [grantee]))
2197
+
2198
+ @jsii.member(jsii_name="grantVerify")
2199
+ def grant_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2200
+ '''Grant verify permissions using this key to the given principal.
2201
+
2202
+ :param grantee: -
2203
+ '''
2204
+ if __debug__:
2205
+ type_hints = typing.get_type_hints(_typecheckingstub__5f56ca61f2a3a6b4719a05ed3f1c1897c7b914146a2f92ae8dd0313130d7111c)
2206
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2207
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantVerify", [grantee]))
2208
+
2132
2209
  @jsii.member(jsii_name="grantVerifyMac")
2133
2210
  def grant_verify_mac(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2134
2211
  '''Grant permissions to verifying MACs to the given principal.
@@ -2442,6 +2519,39 @@ class Key(
2442
2519
  check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2443
2520
  return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantGenerateMac", [grantee]))
2444
2521
 
2522
+ @jsii.member(jsii_name="grantSign")
2523
+ def grant_sign(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2524
+ '''Grant sign permissions using this key to the given principal.
2525
+
2526
+ :param grantee: -
2527
+ '''
2528
+ if __debug__:
2529
+ type_hints = typing.get_type_hints(_typecheckingstub__6461815f1d37e6ba54e3cbf1944f9dfd4919e6778f163b7d761b4addf454e443)
2530
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2531
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSign", [grantee]))
2532
+
2533
+ @jsii.member(jsii_name="grantSignVerify")
2534
+ def grant_sign_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2535
+ '''Grant sign and verify permissions using this key to the given principal.
2536
+
2537
+ :param grantee: -
2538
+ '''
2539
+ if __debug__:
2540
+ type_hints = typing.get_type_hints(_typecheckingstub__c9dd17cfd9ba136ab5eb61bfd08f31dab5e9e96d93c1a2e94c0610a4b97524bd)
2541
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2542
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSignVerify", [grantee]))
2543
+
2544
+ @jsii.member(jsii_name="grantVerify")
2545
+ def grant_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2546
+ '''Grant verify permissions using this key to the given principal.
2547
+
2548
+ :param grantee: -
2549
+ '''
2550
+ if __debug__:
2551
+ type_hints = typing.get_type_hints(_typecheckingstub__6177dbf335c9d10ef7ab31fb9b38bda2e2a5301aaa124f44ce6112399ec6d8a6)
2552
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
2553
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantVerify", [grantee]))
2554
+
2445
2555
  @jsii.member(jsii_name="grantVerifyMac")
2446
2556
  def grant_verify_mac(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2447
2557
  '''Grant permissions to verifying MACs to the given principal.
@@ -3277,6 +3387,39 @@ class Alias(
3277
3387
  check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
3278
3388
  return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantGenerateMac", [grantee]))
3279
3389
 
3390
+ @jsii.member(jsii_name="grantSign")
3391
+ def grant_sign(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
3392
+ '''Grant sign permissions using this key to the given principal.
3393
+
3394
+ :param grantee: -
3395
+ '''
3396
+ if __debug__:
3397
+ type_hints = typing.get_type_hints(_typecheckingstub__9930639ecbcd35ed216f2d886dc8190db34758bfddca534c0b1a15eec5b03bd4)
3398
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
3399
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSign", [grantee]))
3400
+
3401
+ @jsii.member(jsii_name="grantSignVerify")
3402
+ def grant_sign_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
3403
+ '''Grant sign and verify permissions using this key to the given principal.
3404
+
3405
+ :param grantee: -
3406
+ '''
3407
+ if __debug__:
3408
+ type_hints = typing.get_type_hints(_typecheckingstub__fa123781beb7a446099dc1bd3f1e2905a09dd2781b09e4876768625072421ff6)
3409
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
3410
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSignVerify", [grantee]))
3411
+
3412
+ @jsii.member(jsii_name="grantVerify")
3413
+ def grant_verify(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
3414
+ '''Grant verify permissions using this key to the given principal.
3415
+
3416
+ :param grantee: -
3417
+ '''
3418
+ if __debug__:
3419
+ type_hints = typing.get_type_hints(_typecheckingstub__b324b24cb913496e78f2a43c74194efd7b11966ae5d2d3b1a5d17611af6d6fca)
3420
+ check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
3421
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantVerify", [grantee]))
3422
+
3280
3423
  @jsii.member(jsii_name="grantVerifyMac")
3281
3424
  def grant_verify_mac(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
3282
3425
  '''Grant permissions to verifying MACs to the given principal.
@@ -3649,6 +3792,24 @@ def _typecheckingstub__678d44f30b3f7854df209779d1ab6c27a0eac432204e7f4ac90a02792
3649
3792
  """Type checking stubs"""
3650
3793
  pass
3651
3794
 
3795
+ def _typecheckingstub__17bf7cf2a33c9cdda910f2942efab62c58f1c1a7a7dd9458dde25eeca2f4682d(
3796
+ grantee: _IGrantable_71c4f5de,
3797
+ ) -> None:
3798
+ """Type checking stubs"""
3799
+ pass
3800
+
3801
+ def _typecheckingstub__c990d684da172804daae0cf29edc7427216184b33a70a020885b86aa21a224d2(
3802
+ grantee: _IGrantable_71c4f5de,
3803
+ ) -> None:
3804
+ """Type checking stubs"""
3805
+ pass
3806
+
3807
+ def _typecheckingstub__5f56ca61f2a3a6b4719a05ed3f1c1897c7b914146a2f92ae8dd0313130d7111c(
3808
+ grantee: _IGrantable_71c4f5de,
3809
+ ) -> None:
3810
+ """Type checking stubs"""
3811
+ pass
3812
+
3652
3813
  def _typecheckingstub__e10fb25b1b8146054e097c61432d71d4ae4493eb15e2a482f90f513e686b24ee(
3653
3814
  grantee: _IGrantable_71c4f5de,
3654
3815
  ) -> None:
@@ -3755,6 +3916,24 @@ def _typecheckingstub__440bf3733f200027c74618bbc6f89d59b060f4aa9d88bb6dbfb057771
3755
3916
  """Type checking stubs"""
3756
3917
  pass
3757
3918
 
3919
+ def _typecheckingstub__6461815f1d37e6ba54e3cbf1944f9dfd4919e6778f163b7d761b4addf454e443(
3920
+ grantee: _IGrantable_71c4f5de,
3921
+ ) -> None:
3922
+ """Type checking stubs"""
3923
+ pass
3924
+
3925
+ def _typecheckingstub__c9dd17cfd9ba136ab5eb61bfd08f31dab5e9e96d93c1a2e94c0610a4b97524bd(
3926
+ grantee: _IGrantable_71c4f5de,
3927
+ ) -> None:
3928
+ """Type checking stubs"""
3929
+ pass
3930
+
3931
+ def _typecheckingstub__6177dbf335c9d10ef7ab31fb9b38bda2e2a5301aaa124f44ce6112399ec6d8a6(
3932
+ grantee: _IGrantable_71c4f5de,
3933
+ ) -> None:
3934
+ """Type checking stubs"""
3935
+ pass
3936
+
3758
3937
  def _typecheckingstub__de56bfcabbb83e3ba315f07ba084787bd71e82306a46ddc61555bc4f07b77538(
3759
3938
  grantee: _IGrantable_71c4f5de,
3760
3939
  ) -> None:
@@ -3867,6 +4046,24 @@ def _typecheckingstub__a08117fd4a61f5dbdfb60de37f9aafd66666c36ccbd553402d5504cdd
3867
4046
  """Type checking stubs"""
3868
4047
  pass
3869
4048
 
4049
+ def _typecheckingstub__9930639ecbcd35ed216f2d886dc8190db34758bfddca534c0b1a15eec5b03bd4(
4050
+ grantee: _IGrantable_71c4f5de,
4051
+ ) -> None:
4052
+ """Type checking stubs"""
4053
+ pass
4054
+
4055
+ def _typecheckingstub__fa123781beb7a446099dc1bd3f1e2905a09dd2781b09e4876768625072421ff6(
4056
+ grantee: _IGrantable_71c4f5de,
4057
+ ) -> None:
4058
+ """Type checking stubs"""
4059
+ pass
4060
+
4061
+ def _typecheckingstub__b324b24cb913496e78f2a43c74194efd7b11966ae5d2d3b1a5d17611af6d6fca(
4062
+ grantee: _IGrantable_71c4f5de,
4063
+ ) -> None:
4064
+ """Type checking stubs"""
4065
+ pass
4066
+
3870
4067
  def _typecheckingstub__889887809ebfcb10b086b9443331082b607fe1c8b476e14ebc492583598f19a2(
3871
4068
  grantee: _IGrantable_71c4f5de,
3872
4069
  ) -> None: