Skip to content

Commit

Permalink
feat(rds): supports minors 11.4.4, 10.11.10, 10.6.20, 10.5.27 for RDS…
Browse files Browse the repository at this point in the history
… for MariaDB (#32632)

Add new minor versions.

Ref: [Amazon RDS for MariaDB supports minors 11.4.4, 10.11.10, 10.6.20, 10.5.27](https://aws.amazon.com/about-aws/whats-new/2024/12/amazon-rds-mariadb-supports-new-minors/)

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mazyu36 authored Dec 23, 2024
1 parent 079c1e2 commit b8e79b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ export class MariaDbEngineVersion {
public static readonly VER_10_5_25 = MariaDbEngineVersion.of('10.5.25', '10.5');
/** Version "10.5.26". */
public static readonly VER_10_5_26 = MariaDbEngineVersion.of('10.5.26', '10.5');
/** Version "10.5.27". */
public static readonly VER_10_5_27 = MariaDbEngineVersion.of('10.5.27', '10.5');

/** Version "10.6" (only a major version, without a specific minor version). */
public static readonly VER_10_6 = MariaDbEngineVersion.of('10.6', '10.6');
Expand Down Expand Up @@ -543,6 +545,8 @@ export class MariaDbEngineVersion {
public static readonly VER_10_6_18 = MariaDbEngineVersion.of('10.6.18', '10.6');
/** Version "10.6.19". */
public static readonly VER_10_6_19 = MariaDbEngineVersion.of('10.6.19', '10.6');
/** Version "10.6.20". */
public static readonly VER_10_6_20 = MariaDbEngineVersion.of('10.6.20', '10.6');

/** Version "10.11" (only a major version, without a specific minor version). */
public static readonly VER_10_11 = MariaDbEngineVersion.of('10.11', '10.11');
Expand All @@ -558,8 +562,12 @@ export class MariaDbEngineVersion {
public static readonly VER_10_11_8 = MariaDbEngineVersion.of('10.11.8', '10.11');
/** Version "10.11.9". */
public static readonly VER_10_11_9 = MariaDbEngineVersion.of('10.11.9', '10.11');
/** Version "10.11.10". */
public static readonly VER_10_11_10 = MariaDbEngineVersion.of('10.11.10', '10.11');
/** Version "11.4.3". */
public static readonly VER_11_4_3 = MariaDbEngineVersion.of('11.4.3', '11.4');
/** Version "11.4.4". */
public static readonly VER_11_4_4 = MariaDbEngineVersion.of('11.4.4', '11.4');

/**
* Create a new MariaDbEngineVersion with an arbitrary version.
Expand Down
4 changes: 4 additions & 0 deletions packages/aws-cdk-lib/aws-rds/test/instance-engine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ describe('instance engine', () => {
['10.5.24', rds.MariaDbEngineVersion.VER_10_5_24],
['10.5.25', rds.MariaDbEngineVersion.VER_10_5_25],
['10.5.26', rds.MariaDbEngineVersion.VER_10_5_26],
['10.5.27', rds.MariaDbEngineVersion.VER_10_5_27],
['10.6', rds.MariaDbEngineVersion.VER_10_6],
['10.6.13', rds.MariaDbEngineVersion.VER_10_6_13],
['10.6.14', rds.MariaDbEngineVersion.VER_10_6_14],
Expand All @@ -289,14 +290,17 @@ describe('instance engine', () => {
['10.6.17', rds.MariaDbEngineVersion.VER_10_6_17],
['10.6.18', rds.MariaDbEngineVersion.VER_10_6_18],
['10.6.19', rds.MariaDbEngineVersion.VER_10_6_19],
['10.6.20', rds.MariaDbEngineVersion.VER_10_6_20],
['10.11', rds.MariaDbEngineVersion.VER_10_11],
['10.11.4', rds.MariaDbEngineVersion.VER_10_11_4],
['10.11.5', rds.MariaDbEngineVersion.VER_10_11_5],
['10.11.6', rds.MariaDbEngineVersion.VER_10_11_6],
['10.11.7', rds.MariaDbEngineVersion.VER_10_11_7],
['10.11.8', rds.MariaDbEngineVersion.VER_10_11_8],
['10.11.9', rds.MariaDbEngineVersion.VER_10_11_9],
['10.11.10', rds.MariaDbEngineVersion.VER_10_11_10],
['11.4.3', rds.MariaDbEngineVersion.VER_11_4_3],
['11.4.4', rds.MariaDbEngineVersion.VER_11_4_4],
])('is passed correctly for %s', (engineVersion, version) => {

// WHEN
Expand Down

0 comments on commit b8e79b6

Please sign in to comment.