-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DBInstance][DBCluster] Add more terminal states
This change is to add more terminal states so that instance/cluster operations fail fast if these states are reached, instead of waiting for the stabilization process to time out. Status references: - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/accessing-monitoring.html - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/accessing-monitoring.html
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
aws-rds-cfn-common/src/main/java/software/amazon/rds/common/status/TerminableStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
package software.amazon.rds.common.status; | ||
|
||
/** | ||
* Represents a status that could be considered "terminal" for a resource. | ||
* Terminal states cause resource stabilization to fail immediately. If a | ||
* resource enters a terminal state following a mutation, the operation fails | ||
* with a {@link software.amazon.cloudformation.exceptions.CfnNotStabilizedException}. | ||
*/ | ||
public interface TerminableStatus extends Status { | ||
/** | ||
* Returns true if the status is terminal. | ||
*/ | ||
boolean isTerminal(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters