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): unify ParameterGroup and ClusterParameterGroup (aws#8959)
The classes ParameterGroup and ClusterParameterGroup were basically identical; they only differed in the L1 that was created in their scope. Unify the classes by adding a bind()-like protocol between ParameterGroup and cluster/instance, which allows us to only have a single class instead of 2. Fixes aws#8932 BREAKING CHANGE: the class ClusterParameterGroup has been removed - use ParameterGroup instead ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
14 changed files
with
259 additions
and
186 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
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,26 @@ | ||
/** | ||
* A common interface for database engines. | ||
* Don't implement this interface directly, | ||
* instead implement one of the known sub-interfaces, | ||
* like IClusterEngine and IInstanceEngine. | ||
*/ | ||
export interface IEngine { | ||
/** The type of the engine, for example "mysql". */ | ||
readonly engineType: string; | ||
|
||
/** | ||
* The exact version of the engine that is used, | ||
* for example "5.1.42". | ||
* | ||
* @default - use the default version for this engine type | ||
*/ | ||
readonly engineVersion?: string; | ||
|
||
/** | ||
* The family to use for ParameterGroups using this engine. | ||
* This is usually equal to "<engineType><engineMajorVersion>", | ||
* but can sometimes be a variation of that. | ||
* You can pass this property when creating new ParameterGroup. | ||
*/ | ||
readonly parameterGroupFamily: 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
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
Oops, something went wrong.