File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ node_modules
5
5
# CDK asset staging directory
6
6
.cdk.staging
7
7
cdk.out
8
- .DS_Store
8
+ .DS_Store
9
+ .vscode
Original file line number Diff line number Diff line change @@ -76,12 +76,14 @@ def handle_message(message, message_id):
76
76
# Each snapshot type and source requires a slightly different handling
77
77
for i , rds_event_id in enumerate (rds_event_ids ):
78
78
79
+ # Identify and process an automated RDS snapshot
79
80
if message ["Event ID" ].endswith (rds_event_id ) and re .match (
80
81
"^rds:" + DB_NAME + "-\d{4}-\d{2}-\d{2}-\d{2}-\d{2}$" ,
81
82
message ["Source ID" ],
82
83
) and rds_snapshot_types [i ] == RdsSnapshotType .AUTOMATED :
83
84
process_automated_snapshot (message , message_id , db_snapshot_types [i ])
84
85
break
86
+ # Identify and process an Manual RDS snapshot, which was not created by AWS Backup
85
87
elif message ["Event ID" ].endswith (rds_event_id ) and (
86
88
not re .match (
87
89
"^rds:" + DB_NAME + "-\d{4}-\d{2}-\d{2}-\d{2}-\d{2}$" ,
@@ -91,6 +93,7 @@ def handle_message(message, message_id):
91
93
) and rds_snapshot_types [i ] == RdsSnapshotType .MANUAL :
92
94
process_manual_snapshot (message , message_id , db_snapshot_types [i ])
93
95
break
96
+ # Identify and process an AWS Backup snapshot
94
97
elif (message ["Event ID" ].endswith (rds_event_id ) and
95
98
message ["Source ID" ].startswith ("awsbackup:job-" ) and
96
99
rds_snapshot_types [i ] == RdsSnapshotType .BACKUP
You can’t perform that action at this time.
0 commit comments