cloudsnorkel.cdk-rds-sanitized-snapshots 0.1.1__py3-none-any.whl → 0.1.2__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 cloudsnorkel.cdk-rds-sanitized-snapshots might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # CDK Construct for RDS Sanitized Snapshots
3
3
 
4
4
  [![NPM](https://img.shields.io/npm/v/@cloudsnorkel/cdk-rds-sanitized-snapshots?label=npm&logo=npm)](https://www.npmjs.com/package/@cloudsnorkel/cdk-rds-sanitized-snapshots)
@@ -122,7 +122,22 @@ import jsii
122
122
  import publication
123
123
  import typing_extensions
124
124
 
125
- from typeguard import check_type
125
+ import typeguard
126
+ from importlib.metadata import version as _metadata_package_version
127
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
128
+
129
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
130
+ if TYPEGUARD_MAJOR_VERSION <= 2:
131
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
132
+ else:
133
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
134
+ pass
135
+ else:
136
+ if TYPEGUARD_MAJOR_VERSION == 3:
137
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
138
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
139
+ else:
140
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
126
141
 
127
142
  from ._jsii import *
128
143
 
@@ -555,7 +570,7 @@ class RdsSanitizedSnapshotter(
555
570
  if __debug__:
556
571
  type_hints = typing.get_type_hints(_typecheckingstub__df51411713b297623720935bb6779afc65503804a74afed6b48f5754baba7f14)
557
572
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
558
- jsii.set(self, "snapshotter", value)
573
+ jsii.set(self, "snapshotter", value) # pyright: ignore[reportArgumentType]
559
574
 
560
575
 
561
576
  __all__ = [
@@ -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
  "@cloudsnorkel/cdk-rds-sanitized-snapshots",
21
- "0.1.1",
36
+ "0.1.2",
22
37
  __name__[0:-6],
23
- "cdk-rds-sanitized-snapshots@0.1.1.jsii.tgz",
38
+ "cdk-rds-sanitized-snapshots@0.1.2.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudsnorkel.cdk-rds-sanitized-snapshots
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: CDK construct to periodically take snapshots of RDS databases, sanitize them, and share with selected accounts.
5
5
  Home-page: https://github.com/CloudSnorkel/cdk-rds-sanitized-snapshots.git
6
6
  Author: Amir Szekely<amir@cloudsnorkel.com>
@@ -20,11 +20,11 @@ Classifier: License :: OSI Approved
20
20
  Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: aws-cdk-lib <3.0.0,>=2.85.0
24
- Requires-Dist: constructs <11.0.0,>=10.0.5
25
- Requires-Dist: jsii <2.0.0,>=1.97.0
26
- Requires-Dist: publication >=0.0.3
27
- Requires-Dist: typeguard ~=2.13.3
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.85.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.103.1
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
28
28
 
29
29
  # CDK Construct for RDS Sanitized Snapshots
30
30
 
@@ -0,0 +1,9 @@
1
+ cloudsnorkel/cdk_rds_sanitized_snapshots/__init__.py,sha256=npc7X2j7P12nDfHq4XMXzR-aJ616VUZyJVcgZ9pgTSU,22376
2
+ cloudsnorkel/cdk_rds_sanitized_snapshots/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/__init__.py,sha256=wHF_0PIra3xjGtpCG8zzpN5GmEqQShx3HbamzIDkyAU,1492
4
+ cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/cdk-rds-sanitized-snapshots@0.1.2.jsii.tgz,sha256=UTbC0NbSXwawEgrZqMqVS4lPdAJYpRj_WVkkthIVI0Q,74627
5
+ cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/METADATA,sha256=iCfE9D1hZmON86X-71q7-7Z-Amwy3anJ2yzQfDF4dlY,6493
7
+ cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
9
+ cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- cloudsnorkel/cdk_rds_sanitized_snapshots/__init__.py,sha256=81Fb1dPEfBg4SRLDp5tD9NDS5GgfbSMeFKvfzq94Xfc,21369
2
- cloudsnorkel/cdk_rds_sanitized_snapshots/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/__init__.py,sha256=WF99Pef5fg1ISuHaIa_nmHINjfLgRb5KUnaAa4gGEZI,524
4
- cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/cdk-rds-sanitized-snapshots@0.1.1.jsii.tgz,sha256=j2cUkVID_llqM_1Cd7_VZjWrEqK1OP1Jpz-yA_PXa9s,74630
5
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.1.dist-info/METADATA,sha256=8JVCHMSt4d491aj-uptO4wOwLoSVRrnCBZZ9IvgHtV4,6490
7
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
8
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.1.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
9
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.1.dist-info/RECORD,,