Skip to content

Commit 957598b

Browse files
feat(neptune-alpha): engineVersion v1.3 (#28647)
This PR implements support for the [v1.3 engine](https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases-1.3.0.0.html). Closes #28648. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b9fbce2 commit 957598b

14 files changed

+2204
-4
lines changed

packages/@aws-cdk/aws-neptune-alpha/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const cluster = new neptune.DatabaseCluster(this, 'Database', {
100100
});
101101
```
102102

103-
Note: if you want to use Neptune engine `1.2.0.0` or later, you need to specify the corresponding `engineVersion` prop to `neptune.DatabaseCluster` and `family` prop of `ParameterGroupFamily.NEPTUNE_1_2` to `neptune.ClusterParameterGroup` and `neptune.ParameterGroup`.
103+
Note: To use the Neptune engine versions `1.2.0.0` or later, including the newly added `1.3` series, it's necessary to specify the appropriate `engineVersion` prop in `neptune.DatabaseCluster`. Additionally, for both 1.2 and 1.3 series, the corresponding `family` prop must be set to `ParameterGroupFamily.NEPTUNE_1_2` or `ParameterGroupFamily.NEPTUNE_1_3` respectively in `neptune.ClusterParameterGroup` and `neptune.ParameterGroup`.
104104

105105
## Adding replicas
106106

packages/@aws-cdk/aws-neptune-alpha/lib/cluster.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export class EngineVersion {
7676
* Neptune engine version 1.2.1.0
7777
*/
7878
public static readonly V1_2_1_0 = new EngineVersion('1.2.1.0');
79+
/**
80+
* Neptune engine version 1.3.0.0
81+
*/
82+
public static readonly V1_3_0_0 = new EngineVersion('1.3.0.0');
7983

8084
/**
8185
* Constructor for specifying a custom engine version

packages/@aws-cdk/aws-neptune-alpha/lib/parameter-group.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export class ParameterGroupFamily {
1515
* Family used by Neptune engine versions 1.2.0.0 and later
1616
*/
1717
public static readonly NEPTUNE_1_2 = new ParameterGroupFamily('neptune1.2');
18+
/**
19+
* Family used by Neptune engine versions 1.3.0.0 and later
20+
*/
21+
public static readonly NEPTUNE_1_3 = new ParameterGroupFamily('neptune1.3');
1822

1923
/**
2024
* Constructor for specifying a custom parameter group famil

packages/@aws-cdk/aws-neptune-alpha/test/cluster.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('DatabaseCluster', () => {
121121
});
122122

123123
test.each([
124-
['1.1.1.0', EngineVersion.V1_1_1_0], ['1.2.0.0', EngineVersion.V1_2_0_0],
124+
['1.1.1.0', EngineVersion.V1_1_1_0], ['1.2.0.0', EngineVersion.V1_2_0_0], ['1.3.0.0', EngineVersion.V1_3_0_0],
125125
])('can create a cluster for engine version %s', (expected, version) => {
126126
// GIVEN
127127
const stack = testStack();

packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev13.js.snapshot/ClusterTestDefaultTestDeployAssert6A1BBA9D.assets.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev13.js.snapshot/ClusterTestDefaultTestDeployAssert6A1BBA9D.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev13.js.snapshot/aws-cdk-neptune-integ.assets.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)