upsert-slr 1.0.4__py3-none-any.whl → 1.0.6__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 upsert-slr might be problematic. Click here for more details.
- upsert_slr/__init__.py +20 -2
- upsert_slr/_jsii/__init__.py +20 -2
- upsert_slr/_jsii/upsert-slr@1.0.6.jsii.tgz +0 -0
- {upsert_slr-1.0.4.dist-info → upsert_slr-1.0.6.dist-info}/METADATA +6 -6
- upsert_slr-1.0.6.dist-info/RECORD +9 -0
- {upsert_slr-1.0.4.dist-info → upsert_slr-1.0.6.dist-info}/WHEEL +1 -1
- upsert_slr/_jsii/upsert-slr@1.0.4.jsii.tgz +0 -0
- upsert_slr-1.0.4.dist-info/RECORD +0 -9
- {upsert_slr-1.0.4.dist-info → upsert_slr-1.0.6.dist-info}/LICENSE +0 -0
- {upsert_slr-1.0.4.dist-info → upsert_slr-1.0.6.dist-info}/top_level.txt +0 -0
upsert_slr/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'''
|
|
1
|
+
r'''
|
|
2
2
|
# Upsert Service-Linked Role
|
|
3
3
|
|
|
4
4
|
AWS CDK construct to create a [service-linked role (SLR)](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html) if there is no SLR for the same service, and if there is, skip the creation process.
|
|
@@ -36,6 +36,9 @@ Also, even if CFn successfully creates a role, resources that depend on the role
|
|
|
36
36
|
|
|
37
37
|
To avoid the IAM propagation delay, this construct also waits for some time after a role is created.
|
|
38
38
|
'''
|
|
39
|
+
from pkgutil import extend_path
|
|
40
|
+
__path__ = extend_path(__path__, __name__)
|
|
41
|
+
|
|
39
42
|
import abc
|
|
40
43
|
import builtins
|
|
41
44
|
import datetime
|
|
@@ -46,7 +49,22 @@ import jsii
|
|
|
46
49
|
import publication
|
|
47
50
|
import typing_extensions
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
import typeguard
|
|
53
|
+
from importlib.metadata import version as _metadata_package_version
|
|
54
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
55
|
+
|
|
56
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
57
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
58
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
59
|
+
else:
|
|
60
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
61
|
+
pass
|
|
62
|
+
else:
|
|
63
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
64
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
65
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
66
|
+
else:
|
|
67
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
50
68
|
|
|
51
69
|
from ._jsii import *
|
|
52
70
|
|
upsert_slr/_jsii/__init__.py
CHANGED
|
@@ -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,13 +11,28 @@ 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
|
-
"upsert-slr", "1.0.
|
|
35
|
+
"upsert-slr", "1.0.6", __name__[0:-6], "upsert-slr@1.0.6.jsii.tgz"
|
|
18
36
|
)
|
|
19
37
|
|
|
20
38
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: upsert-slr
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Manage AWS service-linked roles in a better way.
|
|
5
5
|
Home-page: https://github.com/tmokmss/upsert-slr.git
|
|
6
6
|
Author: tmokmss<tmokmss@users.noreply.github.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
|
|
24
|
-
Requires-Dist: constructs
|
|
25
|
-
Requires-Dist: jsii
|
|
26
|
-
Requires-Dist: publication
|
|
27
|
-
Requires-Dist: typeguard
|
|
23
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.1.0
|
|
24
|
+
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.104.0
|
|
26
|
+
Requires-Dist: publication>=0.0.3
|
|
27
|
+
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
28
28
|
|
|
29
29
|
# Upsert Service-Linked Role
|
|
30
30
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
upsert_slr/__init__.py,sha256=oItQwYXeoJ07nUMzood7SZ3pk_xeDkwlpac6uccgfDE,9009
|
|
2
|
+
upsert_slr/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
upsert_slr/_jsii/__init__.py,sha256=N7ZBHkaNSp2G05a7aeSWKLG-she1CUzKsoUQ7F9YHa0,1431
|
|
4
|
+
upsert_slr/_jsii/upsert-slr@1.0.6.jsii.tgz,sha256=S3_mrvp64zmKvm9VSI0I1mzNEHcfRt8yKte11jkjUKc,46187
|
|
5
|
+
upsert_slr-1.0.6.dist-info/LICENSE,sha256=VzrQW_MkzGeSrHRz1BexFMLgDyQWX42aZ7Y7cCm9-8E,1051
|
|
6
|
+
upsert_slr-1.0.6.dist-info/METADATA,sha256=xas6MtuMknpfdfVvAj1uSLnYiCuI2KL4iaYwgr0vaqk,2829
|
|
7
|
+
upsert_slr-1.0.6.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
8
|
+
upsert_slr-1.0.6.dist-info/top_level.txt,sha256=x0hhdmxmID546u8_HGfktN_5e8MB8JI0S7zRGjdolkQ,11
|
|
9
|
+
upsert_slr-1.0.6.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
upsert_slr/__init__.py,sha256=kz3yZZNQdKleE7t5XAbCz3EMX0scfr2ytYWy1OR1ylA,7964
|
|
2
|
-
upsert_slr/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
upsert_slr/_jsii/__init__.py,sha256=qhrc0PgYMPlYcCxzqnNbgPoVkd2jpMMOQF7WlqLd6a4,387
|
|
4
|
-
upsert_slr/_jsii/upsert-slr@1.0.4.jsii.tgz,sha256=VcRA1ygYP2jOE3H04CfdWBEBbjfIw3U-QVk9qyImS-Q,45665
|
|
5
|
-
upsert_slr-1.0.4.dist-info/LICENSE,sha256=VzrQW_MkzGeSrHRz1BexFMLgDyQWX42aZ7Y7cCm9-8E,1051
|
|
6
|
-
upsert_slr-1.0.4.dist-info/METADATA,sha256=WfIfSiliscWHQlcR3aAIdeeZALQXPuvTYC-RH1E2EpY,2826
|
|
7
|
-
upsert_slr-1.0.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
8
|
-
upsert_slr-1.0.4.dist-info/top_level.txt,sha256=x0hhdmxmID546u8_HGfktN_5e8MB8JI0S7zRGjdolkQ,11
|
|
9
|
-
upsert_slr-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|