gammarers.aws-rds-database-running-schedule-stack 2.0.3__py3-none-any.whl → 2.1.1__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.
- gammarers/aws_rds_database_running_schedule_stack/__init__.py +15 -13
- gammarers/aws_rds_database_running_schedule_stack/_jsii/__init__.py +2 -2
- gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.1.1.jsii.tgz +0 -0
- {gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info → gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info}/METADATA +4 -2
- gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/RECORD +9 -0
- gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.0.3.jsii.tgz +0 -0
- gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/RECORD +0 -9
- {gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info → gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info}/LICENSE +0 -0
- {gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info → gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info}/WHEEL +0 -0
- {gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info → gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info}/top_level.txt +0 -0
|
@@ -8,6 +8,8 @@ r'''
|
|
|
8
8
|
[](https://github.com/gammarers/aws-rds-database-running-schedule-stack/actions/workflows/release.yml)
|
|
9
9
|
[](https://github.com/gammarers/aws-rds-database-running-schedule-stack/releases)
|
|
10
10
|
|
|
11
|
+
[](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
|
|
@@ -69,7 +71,7 @@ dotnet add package Gammarers.CDK.AWS.RdsDatabaseRunningScheduleStack
|
|
|
69
71
|
```python
|
|
70
72
|
import { RdsDatabaseRunningScheduler, DatabaseType } from '@gammarer/aws-rds-database-running-schedule-stack';
|
|
71
73
|
|
|
72
|
-
new
|
|
74
|
+
new RDSDatabaseRunningScheduleStack(app, 'RDSDatabaseRunningScheduleStack', {
|
|
73
75
|
targetResource: {
|
|
74
76
|
tagKey: 'WorkHoursRunning', // already tagging to rds instance or cluster
|
|
75
77
|
tagValues: ['YES'], // already tagging to rds instance or cluster
|
|
@@ -115,10 +117,10 @@ import aws_cdk as _aws_cdk_ceddda9d
|
|
|
115
117
|
import constructs as _constructs_77d1e7e8
|
|
116
118
|
|
|
117
119
|
|
|
118
|
-
class
|
|
120
|
+
class RDSDatabaseRunningScheduleStack(
|
|
119
121
|
_aws_cdk_ceddda9d.Stack,
|
|
120
122
|
metaclass=jsii.JSIIMeta,
|
|
121
|
-
jsii_type="@gammarers/aws-rds-database-running-schedule-stack.
|
|
123
|
+
jsii_type="@gammarers/aws-rds-database-running-schedule-stack.RDSDatabaseRunningScheduleStack",
|
|
122
124
|
):
|
|
123
125
|
def __init__(
|
|
124
126
|
self,
|
|
@@ -159,10 +161,10 @@ class RdsDatabaseRunningScheduleStack(
|
|
|
159
161
|
:param termination_protection: Whether to enable termination protection for this stack. Default: false
|
|
160
162
|
'''
|
|
161
163
|
if __debug__:
|
|
162
|
-
type_hints = typing.get_type_hints(
|
|
164
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c1280dc248fa00837f0fd9aade32e57cf0658d41b8f0e88b4b04685819fded2e)
|
|
163
165
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
164
166
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
165
|
-
props =
|
|
167
|
+
props = RDSDatabaseRunningScheduleStackProps(
|
|
166
168
|
target_resource=target_resource,
|
|
167
169
|
enable_scheduling=enable_scheduling,
|
|
168
170
|
start_schedule=start_schedule,
|
|
@@ -183,7 +185,7 @@ class RdsDatabaseRunningScheduleStack(
|
|
|
183
185
|
|
|
184
186
|
|
|
185
187
|
@jsii.data_type(
|
|
186
|
-
jsii_type="@gammarers/aws-rds-database-running-schedule-stack.
|
|
188
|
+
jsii_type="@gammarers/aws-rds-database-running-schedule-stack.RDSDatabaseRunningScheduleStackProps",
|
|
187
189
|
jsii_struct_bases=[_aws_cdk_ceddda9d.StackProps],
|
|
188
190
|
name_mapping={
|
|
189
191
|
"analytics_reporting": "analyticsReporting",
|
|
@@ -202,7 +204,7 @@ class RdsDatabaseRunningScheduleStack(
|
|
|
202
204
|
"stop_schedule": "stopSchedule",
|
|
203
205
|
},
|
|
204
206
|
)
|
|
205
|
-
class
|
|
207
|
+
class RDSDatabaseRunningScheduleStackProps(_aws_cdk_ceddda9d.StackProps):
|
|
206
208
|
def __init__(
|
|
207
209
|
self,
|
|
208
210
|
*,
|
|
@@ -246,7 +248,7 @@ class RdsDatabaseRunningScheduleStackProps(_aws_cdk_ceddda9d.StackProps):
|
|
|
246
248
|
if isinstance(stop_schedule, dict):
|
|
247
249
|
stop_schedule = ScheduleProperty(**stop_schedule)
|
|
248
250
|
if __debug__:
|
|
249
|
-
type_hints = typing.get_type_hints(
|
|
251
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3a02c77b05b4403ac204e4b21fbecf9f310b2adf40ef9f6754f8cde04bbb117)
|
|
250
252
|
check_type(argname="argument analytics_reporting", value=analytics_reporting, expected_type=type_hints["analytics_reporting"])
|
|
251
253
|
check_type(argname="argument cross_region_references", value=cross_region_references, expected_type=type_hints["cross_region_references"])
|
|
252
254
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
@@ -494,7 +496,7 @@ class RdsDatabaseRunningScheduleStackProps(_aws_cdk_ceddda9d.StackProps):
|
|
|
494
496
|
return not (rhs == self)
|
|
495
497
|
|
|
496
498
|
def __repr__(self) -> str:
|
|
497
|
-
return "
|
|
499
|
+
return "RDSDatabaseRunningScheduleStackProps(%s)" % ", ".join(
|
|
498
500
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
499
501
|
)
|
|
500
502
|
|
|
@@ -623,15 +625,15 @@ class TargetResourceProperty:
|
|
|
623
625
|
|
|
624
626
|
|
|
625
627
|
__all__ = [
|
|
626
|
-
"
|
|
627
|
-
"
|
|
628
|
+
"RDSDatabaseRunningScheduleStack",
|
|
629
|
+
"RDSDatabaseRunningScheduleStackProps",
|
|
628
630
|
"ScheduleProperty",
|
|
629
631
|
"TargetResourceProperty",
|
|
630
632
|
]
|
|
631
633
|
|
|
632
634
|
publication.publish()
|
|
633
635
|
|
|
634
|
-
def
|
|
636
|
+
def _typecheckingstub__c1280dc248fa00837f0fd9aade32e57cf0658d41b8f0e88b4b04685819fded2e(
|
|
635
637
|
scope: _constructs_77d1e7e8.Construct,
|
|
636
638
|
id: builtins.str,
|
|
637
639
|
*,
|
|
@@ -653,7 +655,7 @@ def _typecheckingstub__6fffbb5d99d9dae64eeda4fe6ceb7a65d991f000e6cc360aa27fa2514
|
|
|
653
655
|
"""Type checking stubs"""
|
|
654
656
|
pass
|
|
655
657
|
|
|
656
|
-
def
|
|
658
|
+
def _typecheckingstub__e3a02c77b05b4403ac204e4b21fbecf9f310b2adf40ef9f6754f8cde04bbb117(
|
|
657
659
|
*,
|
|
658
660
|
analytics_reporting: typing.Optional[builtins.bool] = None,
|
|
659
661
|
cross_region_references: typing.Optional[builtins.bool] = None,
|
|
@@ -18,9 +18,9 @@ import constructs._jsii
|
|
|
18
18
|
|
|
19
19
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
20
20
|
"@gammarers/aws-rds-database-running-schedule-stack",
|
|
21
|
-
"2.
|
|
21
|
+
"2.1.1",
|
|
22
22
|
__name__[0:-6],
|
|
23
|
-
"aws-rds-database-running-schedule-stack@2.
|
|
23
|
+
"aws-rds-database-running-schedule-stack@2.1.1.jsii.tgz",
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gammarers.aws-rds-database-running-schedule-stack
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
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>
|
|
@@ -35,6 +35,8 @@ Requires-Dist: typeguard~=2.13.3
|
|
|
35
35
|
[](https://github.com/gammarers/aws-rds-database-running-schedule-stack/actions/workflows/release.yml)
|
|
36
36
|
[](https://github.com/gammarers/aws-rds-database-running-schedule-stack/releases)
|
|
37
37
|
|
|
38
|
+
[](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
|
|
@@ -96,7 +98,7 @@ dotnet add package Gammarers.CDK.AWS.RdsDatabaseRunningScheduleStack
|
|
|
96
98
|
```python
|
|
97
99
|
import { RdsDatabaseRunningScheduler, DatabaseType } from '@gammarer/aws-rds-database-running-schedule-stack';
|
|
98
100
|
|
|
99
|
-
new
|
|
101
|
+
new RDSDatabaseRunningScheduleStack(app, 'RDSDatabaseRunningScheduleStack', {
|
|
100
102
|
targetResource: {
|
|
101
103
|
tagKey: 'WorkHoursRunning', // already tagging to rds instance or cluster
|
|
102
104
|
tagValues: ['YES'], // already tagging to rds instance or cluster
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
gammarers/aws_rds_database_running_schedule_stack/__init__.py,sha256=blE_muakSG3iHoLMYg4SxUzU_MRHCiUwfbvJ46cp1wQ,36767
|
|
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=xh7nyhAXBDRLDGZkVthwHusSLU7leE0ydpPuZg57Bac,545
|
|
4
|
+
gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.1.1.jsii.tgz,sha256=r6BONOFUm-Jt2JCVwHSFQf020togAwHZcMJ6x0vvlMQ,38884
|
|
5
|
+
gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
+
gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/METADATA,sha256=xjCNlRtzrrt_iyjxYyKJiK5dyEy6NIPCarfPGu4q9EU,4671
|
|
7
|
+
gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
8
|
+
gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
|
|
9
|
+
gammarers.aws_rds_database_running_schedule_stack-2.1.1.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
gammarers/aws_rds_database_running_schedule_stack/__init__.py,sha256=9blwW8IGlG268QxdzosrLJ7rFC5yjVvthAOD9hDYXpk,36568
|
|
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=0s3MOMZJ_hKqeJdVvAH9kWiJehJixquhwZf31PvB9JI,545
|
|
4
|
-
gammarers/aws_rds_database_running_schedule_stack/_jsii/aws-rds-database-running-schedule-stack@2.0.3.jsii.tgz,sha256=stY7TOLQvCo8gL6eOS3MQTqV2LWg7GoT3dhnAijlODs,38799
|
|
5
|
-
gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
-
gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/METADATA,sha256=ebrVcAg5rBTQTHh7EBjg6djZcegJD6Vul3SQy4j6goc,4472
|
|
7
|
-
gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
8
|
-
gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
|
|
9
|
-
gammarers.aws_rds_database_running_schedule_stack-2.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|