cloudsnorkel.cdk-rds-sanitized-snapshots 0.1.0__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.
- cloudsnorkel/cdk_rds_sanitized_snapshots/__init__.py +21 -3
- cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/__init__.py +21 -3
- cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/cdk-rds-sanitized-snapshots@0.1.2.jsii.tgz +0 -0
- {cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info → cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info}/METADATA +7 -8
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info/RECORD +9 -0
- {cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info → cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info}/WHEEL +1 -1
- cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/cdk-rds-sanitized-snapshots@0.1.0.jsii.tgz +0 -0
- cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/RECORD +0 -9
- {cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info → cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info}/LICENSE +0 -0
- {cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info → cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'''
|
|
1
|
+
r'''
|
|
2
2
|
# CDK Construct for RDS Sanitized Snapshots
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@cloudsnorkel/cdk-rds-sanitized-snapshots)
|
|
@@ -109,6 +109,9 @@ on giving other accounts access to the key.
|
|
|
109
109
|
npm run bundle && npm run integ:default:deploy
|
|
110
110
|
```
|
|
111
111
|
'''
|
|
112
|
+
from pkgutil import extend_path
|
|
113
|
+
__path__ = extend_path(__path__, __name__)
|
|
114
|
+
|
|
112
115
|
import abc
|
|
113
116
|
import builtins
|
|
114
117
|
import datetime
|
|
@@ -119,7 +122,22 @@ import jsii
|
|
|
119
122
|
import publication
|
|
120
123
|
import typing_extensions
|
|
121
124
|
|
|
122
|
-
|
|
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
|
|
123
141
|
|
|
124
142
|
from ._jsii import *
|
|
125
143
|
|
|
@@ -552,7 +570,7 @@ class RdsSanitizedSnapshotter(
|
|
|
552
570
|
if __debug__:
|
|
553
571
|
type_hints = typing.get_type_hints(_typecheckingstub__df51411713b297623720935bb6779afc65503804a74afed6b48f5754baba7f14)
|
|
554
572
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
555
|
-
jsii.set(self, "snapshotter", value)
|
|
573
|
+
jsii.set(self, "snapshotter", value) # pyright: ignore[reportArgumentType]
|
|
556
574
|
|
|
557
575
|
|
|
558
576
|
__all__ = [
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
|
3
|
+
|
|
1
4
|
import abc
|
|
2
5
|
import builtins
|
|
3
6
|
import datetime
|
|
@@ -8,16 +11,31 @@ import jsii
|
|
|
8
11
|
import publication
|
|
9
12
|
import typing_extensions
|
|
10
13
|
|
|
11
|
-
|
|
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
|
|
12
30
|
|
|
13
31
|
import aws_cdk._jsii
|
|
14
32
|
import constructs._jsii
|
|
15
33
|
|
|
16
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
17
35
|
"@cloudsnorkel/cdk-rds-sanitized-snapshots",
|
|
18
|
-
"0.1.
|
|
36
|
+
"0.1.2",
|
|
19
37
|
__name__[0:-6],
|
|
20
|
-
"cdk-rds-sanitized-snapshots@0.1.
|
|
38
|
+
"cdk-rds-sanitized-snapshots@0.1.2.jsii.tgz",
|
|
21
39
|
)
|
|
22
40
|
|
|
23
41
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudsnorkel.cdk-rds-sanitized-snapshots
|
|
3
|
-
Version: 0.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>
|
|
@@ -10,7 +10,6 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.8
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -18,14 +17,14 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
17
|
Classifier: Typing :: Typed
|
|
19
18
|
Classifier: Development Status :: 4 - Beta
|
|
20
19
|
Classifier: License :: OSI Approved
|
|
21
|
-
Requires-Python: ~=3.
|
|
20
|
+
Requires-Python: ~=3.8
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
22
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: aws-cdk-lib
|
|
25
|
-
Requires-Dist: constructs
|
|
26
|
-
Requires-Dist: jsii
|
|
27
|
-
Requires-Dist: publication
|
|
28
|
-
Requires-Dist: typeguard
|
|
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
|
|
29
28
|
|
|
30
29
|
# CDK Construct for RDS Sanitized Snapshots
|
|
31
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,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cloudsnorkel/cdk_rds_sanitized_snapshots/__init__.py,sha256=Fxn2rBhNMIKVY71crZCYNgEFKVHl1VGQJr6NtyvF9nc,21293
|
|
2
|
-
cloudsnorkel/cdk_rds_sanitized_snapshots/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/__init__.py,sha256=v4zZbwCDSYNqxcjAbVOaDRZNdxf_71sZpHilW8Ad3pY,448
|
|
4
|
-
cloudsnorkel/cdk_rds_sanitized_snapshots/_jsii/cdk-rds-sanitized-snapshots@0.1.0.jsii.tgz,sha256=eGOhsbkYZCvwZzHhhjUe2oaNv5ZzmYTSNwX-PUfnAaw,74512
|
|
5
|
-
cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
-
cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/METADATA,sha256=tne-dYpvjnYNO1Wr_PE3AOm4xsxdS5SkzWCBfXATLek,6540
|
|
7
|
-
cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
|
8
|
-
cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
|
|
9
|
-
cloudsnorkel.cdk_rds_sanitized_snapshots-0.1.0.dist-info/RECORD,,
|
|
File without changes
|