forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rds): introduce type-safe engine versions
Change engine versions, for boh cluster and instance engines, from strings to strongly-typed classes with static constants representing common versions. Fixes aws#6532 BREAKING CHANGE: the property 'version' has been changed from string to an engine-specific version class; use VersionClass.of() if you need to create a specific version of an engine from a string * **rds**: the property engineVersion in IClusterEngine changed from an optional string to a required EngineVersion * **rds**: the property engineVersion in IInstanceEngine changed from an optional string to a required EngineVersion
- Loading branch information
Showing
18 changed files
with
1,127 additions
and
283 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* A version of an engine - | ||
* for either a cluster, or instance. | ||
*/ | ||
export interface EngineVersion { | ||
/** | ||
* The full version string of the engine, | ||
* for example, "5.6.mysql_aurora.1.22.1". | ||
* It can be undefined, | ||
* which means RDS should use whatever version it deems appropriate for the given engine type. | ||
* | ||
* @default - no version specified | ||
*/ | ||
readonly fullVersion?: string; | ||
|
||
/** | ||
* The major version of the engine, | ||
* for example, "5.6". | ||
* Used in specifying the ParameterGroup family | ||
* and OptionGroup version for this engine. | ||
*/ | ||
readonly majorVersion: string; | ||
} |
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
Oops, something went wrong.