Skip to content

Commit 07f1d0a

Browse files
authored
feat(neptune-alpha): add engine versions up to v1.4.5.0 (#33989)
### Issue # (if applicable) Closes #33807 ### Reason for this change Neptune engine versions not up-to-date. ### Description of changes Added engine up to most recently released version as specified here https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html ### Describe any new or updated permissions being added N/A ### Description of how you validated changes Integration test ### 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*
1 parent 93313dd commit 07f1d0a

13 files changed

+1383
-1
lines changed

Diff for: packages/@aws-cdk/aws-neptune-alpha/README.md

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

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`.
103+
Note: To use the Neptune engine versions `1.2.0.0` or later, including the newly added `1.4` series, it's necessary to specify the appropriate `engineVersion` prop in `neptune.DatabaseCluster`. Additionally, for both 1.2, 1.3 and 1.4 series, the corresponding `family` prop must be set to `ParameterGroupFamily.NEPTUNE_1_2`, `ParameterGroupFamily.NEPTUNE_1_3` or `ParameterGroupFamily.NEPTUNE_1_4` respectively in `neptune.ClusterParameterGroup` and `neptune.ParameterGroup`.
104104

105105
## Adding replicas
106106

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

+24
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,30 @@ export class EngineVersion {
109109
* Neptune engine version 1.3.4.0
110110
*/
111111
public static readonly V1_3_4_0 = new EngineVersion('1.3.4.0');
112+
/**
113+
* Neptune engine version 1.4.0.0
114+
*/
115+
public static readonly V1_4_0_0 = new EngineVersion('1.4.0.0');
116+
/**
117+
* Neptune engine version 1.4.1.0
118+
*/
119+
public static readonly V1_4_1_0 = new EngineVersion('1.4.1.0');
120+
/**
121+
* Neptune engine version 1.4.2.0
122+
*/
123+
public static readonly V1_4_2_0 = new EngineVersion('1.4.2.0');
124+
/**
125+
* Neptune engine version 1.4.3.0
126+
*/
127+
public static readonly V1_4_3_0 = new EngineVersion('1.4.3.0');
128+
/**
129+
* Neptune engine version 1.4.4.0
130+
*/
131+
public static readonly V1_4_4_0 = new EngineVersion('1.4.4.0');
132+
/**
133+
* Neptune engine version 1.4.5.0
134+
*/
135+
public static readonly V1_4_5_0 = new EngineVersion('1.4.5.0');
112136

113137
/**
114138
* Constructor for specifying a custom engine version

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

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export class ParameterGroupFamily {
1919
* Family used by Neptune engine versions 1.3.0.0 and later
2020
*/
2121
public static readonly NEPTUNE_1_3 = new ParameterGroupFamily('neptune1.3');
22+
/**
23+
* Family used by Neptune engine versions 1.4.0.0 and later
24+
*/
25+
public static readonly NEPTUNE_1_4 = new ParameterGroupFamily('neptune1.4');
2226

2327
/**
2428
* Constructor for specifying a custom parameter group family

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

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ describe('DatabaseCluster', () => {
121121

122122
test.each([
123123
['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],
124+
['1.4.0.0', EngineVersion.V1_4_0_0],
124125
])('can create a cluster for engine version %s', (expected, version) => {
125126
// GIVEN
126127
const stack = testStack();

Diff for: packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev14.js.snapshot/ClusterTestDefaultTestDeployAssert6A1BBA9D.assets.json

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev14.js.snapshot/ClusterTestDefaultTestDeployAssert6A1BBA9D.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/@aws-cdk/aws-neptune-alpha/test/integ.cluster-ev14.js.snapshot/aws-cdk-neptune-integ.assets.json

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)