aws-cdk.aws-ec2-alpha 2.157.0a0__py3-none-any.whl → 2.158.0a0__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.aws-ec2-alpha might be problematic. Click here for more details.

@@ -214,7 +214,22 @@ import jsii
214
214
  import publication
215
215
  import typing_extensions
216
216
 
217
- from typeguard import check_type
217
+ import typeguard
218
+ from importlib.metadata import version as _metadata_package_version
219
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
220
+
221
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
222
+ if TYPEGUARD_MAJOR_VERSION <= 2:
223
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
224
+ else:
225
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
226
+ pass
227
+ else:
228
+ if TYPEGUARD_MAJOR_VERSION == 3:
229
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
230
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
231
+ else:
232
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
218
233
 
219
234
  from ._jsii import *
220
235
 
@@ -11,16 +11,31 @@ import jsii
11
11
  import publication
12
12
  import typing_extensions
13
13
 
14
- from typeguard import check_type
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
15
30
 
16
31
  import aws_cdk._jsii
17
32
  import constructs._jsii
18
33
 
19
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
35
  "@aws-cdk/aws-ec2-alpha",
21
- "2.157.0-alpha.0",
36
+ "2.158.0-alpha.0",
22
37
  __name__[0:-6],
23
- "aws-ec2-alpha@2.157.0-alpha.0.jsii.tgz",
38
+ "aws-ec2-alpha@2.158.0-alpha.0.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aws-cdk.aws-ec2-alpha
3
- Version: 2.157.0a0
3
+ Version: 2.158.0a0
4
4
  Summary: The CDK construct library for VPC V2
5
5
  Home-page: https://github.com/aws/aws-cdk
6
6
  Author: Amazon Web Services
@@ -23,11 +23,11 @@ Requires-Python: ~=3.8
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  License-File: NOTICE
26
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.157.0
26
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.158.0
27
27
  Requires-Dist: constructs<11.0.0,>=10.0.0
28
- Requires-Dist: jsii<2.0.0,>=1.102.0
28
+ Requires-Dist: jsii<2.0.0,>=1.103.1
29
29
  Requires-Dist: publication>=0.0.3
30
- Requires-Dist: typeguard~=2.13.3
30
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
31
31
 
32
32
  # Amazon VpcV2 Construct Library
33
33
 
@@ -0,0 +1,10 @@
1
+ aws_cdk/aws_ec2_alpha/__init__.py,sha256=QQ_lnVjar6ZclLIUWxEPxRuqHGhY6f6ITlefrVyBXhY,224590
2
+ aws_cdk/aws_ec2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ aws_cdk/aws_ec2_alpha/_jsii/__init__.py,sha256=DMQcfNeFASVKWWPrIO053FMzpM2ihB976Wj5k0g_cmo,1479
4
+ aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.158.0-alpha.0.jsii.tgz,sha256=1N-m6cAwzctWcyCbfsKC28h3uk7sxFZ-w4OcofWSEP0,121968
5
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/METADATA,sha256=g1u2eZ5HgNAyAYL4dD82oPwFM9pQK30A16dro5-WXjQ,8040
7
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/NOTICE,sha256=dXf56qvx2VDNCaqiRscOD2IH5GbmqbnKRzroZCeLtaQ,113
8
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
+ aws_cdk.aws_ec2_alpha-2.158.0a0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- aws_cdk/aws_ec2_alpha/__init__.py,sha256=xZTLcPL2cJ841gpfYtp2adOIfv6iAzb_CUC8Vr8v00c,223622
2
- aws_cdk/aws_ec2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- aws_cdk/aws_ec2_alpha/_jsii/__init__.py,sha256=0OKDFsd0kQHZAsOoT5dbJDGxi9b1WL1UpPP0Z3NOPjk,511
4
- aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.157.0-alpha.0.jsii.tgz,sha256=gHDtdVUV5qow0Mbg2eh4S0JxbH_ch6reqMCyJyAT__A,121963
5
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/METADATA,sha256=E-6ILk0Ct5o4_q90269rTQB3F6cAKCRRRRi7xRMUDRE,8033
7
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/NOTICE,sha256=dXf56qvx2VDNCaqiRscOD2IH5GbmqbnKRzroZCeLtaQ,113
8
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
- aws_cdk.aws_ec2_alpha-2.157.0a0.dist-info/RECORD,,