gammarers.aws-rds-database-running-schedule-stack 2.1.0__py3-none-any.whl → 2.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 gammarers.aws-rds-database-running-schedule-stack might be problematic. Click here for more details.

@@ -8,6 +8,8 @@ r'''
8
8
  [![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-rds-database-running-schedule-stack/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers/aws-rds-database-running-schedule-stack/actions/workflows/release.yml)
9
9
  [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-rds-database-running-schedule-stack?sort=semver&style=flat-square)](https://github.com/gammarers/aws-rds-database-running-schedule-stack/releases)
10
10
 
11
+ [![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-rds-database-running-schedule-stack)](https://constructs.dev/packages/@gammarers/aws-rds-database-running-schedule-stack)
12
+
11
13
  This AWS CDK Construct Stack controls the starting and stopping of RDS DB instances and clusters based on specified tags, ensuring they only run during working hours. It uses EventBridge Scheduler to trigger a StepFunctions State Machine at the start and end of the working hours(default 07:50(UTC) - 21:10(UTC)), which then starts or stops the databases depending on the mode.
12
14
 
13
15
  ## Fixed
@@ -107,7 +109,22 @@ import jsii
107
109
  import publication
108
110
  import typing_extensions
109
111
 
110
- from typeguard import check_type
112
+ import typeguard
113
+ from importlib.metadata import version as _metadata_package_version
114
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
115
+
116
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
117
+ if TYPEGUARD_MAJOR_VERSION <= 2:
118
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
119
+ else:
120
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
121
+ pass
122
+ else:
123
+ if TYPEGUARD_MAJOR_VERSION == 3:
124
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
125
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
126
+ else:
127
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
111
128
 
112
129
  from ._jsii import *
113
130
 
@@ -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
  "@gammarers/aws-rds-database-running-schedule-stack",
21
- "2.1.0",
36
+ "2.1.2",
22
37
  __name__[0:-6],
23
- "aws-rds-database-running-schedule-stack@2.1.0.jsii.tgz",
38
+ "aws-rds-database-running-schedule-stack@2.1.2.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gammarers.aws-rds-database-running-schedule-stack
3
- Version: 2.1.0
3
+ Version: 2.1.2
4
4
  Summary: AWS RDS Database Running Scheduler
5
5
  Home-page: https://github.com/gammarers/aws-rds-database-running-schedule-stack.git
6
6
  Author: yicr<yicr@users.noreply.github.com>
@@ -22,9 +22,9 @@ Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.120.0
24
24
  Requires-Dist: constructs<11.0.0,>=10.0.5
25
- Requires-Dist: jsii<2.0.0,>=1.102.0
25
+ Requires-Dist: jsii<2.0.0,>=1.103.0
26
26
  Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard~=2.13.3
27
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
28
28
 
29
29
  # AWS RDS Database Running Schedule Stack
30
30
 
@@ -35,6 +35,8 @@ Requires-Dist: typeguard~=2.13.3
35
35
  [![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-rds-database-running-schedule-stack/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers/aws-rds-database-running-schedule-stack/actions/workflows/release.yml)
36
36
  [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-rds-database-running-schedule-stack?sort=semver&style=flat-square)](https://github.com/gammarers/aws-rds-database-running-schedule-stack/releases)
37
37
 
38
+ [![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-rds-database-running-schedule-stack)](https://constructs.dev/packages/@gammarers/aws-rds-database-running-schedule-stack)
39
+
38
40
  This AWS CDK Construct Stack controls the starting and stopping of RDS DB instances and clusters based on specified tags, ensuring they only run during working hours. It uses EventBridge Scheduler to trigger a StepFunctions State Machine at the start and end of the working hours(default 07:50(UTC) - 21:10(UTC)), which then starts or stops the databases depending on the mode.
39
41
 
40
42
  ## Fixed
@@ -0,0 +1,9 @@
1
+ gammarers/aws_rds_database_running_schedule_stack/__init__.py,sha256=i0CoC22hIfOnoVsUIZO3i2yIq-4FoP1mN3XsTAG67-Y,37735
2
+ gammarers/aws_rds_database_running_schedule_stack/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ gammarers/aws_rds_database_running_schedule_stack/_jsii/__init__.py,sha256=qfoFoDhnjI_LIIb-4qF4h5uOWYXoKHC8z9d3gGkdLzE,1513
4
+ gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.1.2.jsii.tgz,sha256=SRHBrX58PNbWVGBfQxq83M0IQlnYr4XvLchm0qQlrPc,38887
5
+ gammarers.aws_rds_database_running_schedule_stack-2.1.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ gammarers.aws_rds_database_running_schedule_stack-2.1.2.dist-info/METADATA,sha256=jeFkGsS_8WbtYE_AiWl5F-9baii6t5PH9_PWFP1h4s0,4678
7
+ gammarers.aws_rds_database_running_schedule_stack-2.1.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ gammarers.aws_rds_database_running_schedule_stack-2.1.2.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
9
+ gammarers.aws_rds_database_running_schedule_stack-2.1.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- gammarers/aws_rds_database_running_schedule_stack/__init__.py,sha256=Q470aIuG5Lt2T8Av4XwzAzUYyCV_4n1jOgu6z7dosUM,36566
2
- gammarers/aws_rds_database_running_schedule_stack/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- gammarers/aws_rds_database_running_schedule_stack/_jsii/__init__.py,sha256=Oy0DyF9_YtqkzBvhixqG_W9S-J0u6Ro5LAVbS8de0lM,545
4
- gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.1.0.jsii.tgz,sha256=v_9ZsH-GeykjVFQSzz9_nwchRNdu7DF9-tnoVYUYch0,38809
5
- gammarers.aws_rds_database_running_schedule_stack-2.1.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- gammarers.aws_rds_database_running_schedule_stack-2.1.0.dist-info/METADATA,sha256=ChOzRlcWvUJq77WwyPuw95CA-OsIqql-pKMHeZrf88g,4470
7
- gammarers.aws_rds_database_running_schedule_stack-2.1.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- gammarers.aws_rds_database_running_schedule_stack-2.1.0.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
9
- gammarers.aws_rds_database_running_schedule_stack-2.1.0.dist-info/RECORD,,