Skip to content

Commit 81ab914

Browse files
committed
Version Count
1 parent 8f111cc commit 81ab914

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Examples/java/src/main/java/software/amazon/cryptography/example/DdbHelper.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ public static void createHappyCaseId(
3232
@Nonnull String kmsKeyArn,
3333
@Nonnull String branchKeyId,
3434
@Nonnull KeyStoreAdmin admin,
35-
@Nonnull HierarchyVersion hierarchyVersion
35+
@Nonnull HierarchyVersion hierarchyVersion,
36+
@Nonnull Integer versionCount
3637
) {
3738
CreateKeyExample.CreateKey(kmsKeyArn, branchKeyId, admin, hierarchyVersion);
38-
VersionKeyExample.VersionKey(kmsKeyArn, branchKeyId, admin);
39+
for (int i = 0; i < versionCount; i++) {
40+
VersionKeyExample.VersionKey(kmsKeyArn, branchKeyId, admin);
41+
}
3942
}
4043

4144
public static boolean deleteKeyStoreDdbItem(

Examples/java/src/test/java/software/amazon/cryptography/example/hierarchy/mutations/MutationKmsAccessInFlightTestRunner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public static void createHappyCaseId(
4444
kmsKeyArn,
4545
branchKeyId,
4646
admin,
47-
HierarchyVersion.v1
47+
HierarchyVersion.v1,
48+
1
4849
);
4950
if (hierarchyVersion == HierarchyVersion.v2) {
5051
Mutations mutations = Mutations

0 commit comments

Comments
 (0)