Skip to content

Conversation

@rishav-karanjit
Copy link
Member

@rishav-karanjit rishav-karanjit commented Apr 24, 2025

Issue #, if available:

Description of changes:

  • add examples for mutation using kmsSimple to hv-2
  • related transitive changes
  • add examples to run mutation to hv-2 for decrypt/encrypt strategy

Squash/merge commit message, if applicable:

chore(java): add examples for mutation to hv-2 

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rishav-karanjit rishav-karanjit changed the title chore(dafny): refactor to support HV on mutation chore(dafny): add examples for mutation to hv-2 Apr 24, 2025
@rishav-karanjit rishav-karanjit marked this pull request as ready for review April 25, 2025 21:55
@rishav-karanjit rishav-karanjit requested a review from a team as a code owner April 25, 2025 21:55
@rishav-karanjit rishav-karanjit changed the title chore(dafny): add examples for mutation to hv-2 chore(dafny): add examples for mutation using kmsSimple to hv-2 Apr 25, 2025
@rishav-karanjit rishav-karanjit changed the title chore(dafny): add examples for mutation using kmsSimple to hv-2 chore(dafny): add examples for mutation to hv-2 using kmsSimple Apr 25, 2025
@rishav-karanjit
Copy link
Member Author

I'm merging #1479 into this PR (#1477) as the combined diff is not long

@rishav-karanjit rishav-karanjit changed the title chore(dafny): add examples for mutation to hv-2 using kmsSimple chore(dafny): add examples for mutation to hv-2 Apr 28, 2025
@rishav-karanjit rishav-karanjit changed the title chore(dafny): add examples for mutation to hv-2 chore(java): add examples for mutation to hv-2 Apr 28, 2025
texastony
texastony previously approved these changes Apr 28, 2025
Comment on lines 40 to 43
@Nonnull AwsKms terminalAwsKms,
@Nullable HierarchyVersion terminalHierarchyVersion,
@Nonnull SystemKey systemKey,
@Nullable KeyStoreAdmin admin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Keep your required args and your non-required args in groups.
Honestly, Smithy is correct, parameters should never be set by argument ordering,
but Java predates Smithy.

Suggested change
@Nonnull AwsKms terminalAwsKms,
@Nullable HierarchyVersion terminalHierarchyVersion,
@Nonnull SystemKey systemKey,
@Nullable KeyStoreAdmin admin
@Nonnull AwsKms terminalAwsKms,
@Nonnull SystemKey systemKey,
@Nullable HierarchyVersion terminalHierarchyVersion,
@Nullable KeyStoreAdmin admin

@Nullable SystemKey systemKey,
@Nullable KeyStoreAdmin admin
@Nullable KeyStoreAdmin admin,
final boolean doNotVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefect! Like this.

Comment on lines +119 to +120
@Nullable final HierarchyVersion terminalHVersion,
@Nullable final Boolean doNotVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Praise: Here, Boolean is used, which does support Null, and these are the final values, so this is all correct!

Co-authored-by: Tony Knapp <[email protected]>
texastony
texastony previously approved these changes Apr 28, 2025
@rishav-karanjit rishav-karanjit merged commit 63b1008 into hv-2/hv-2 Apr 28, 2025
136 checks passed
@rishav-karanjit rishav-karanjit deleted the rishav/hv-2/M4/addMutationExamples branch April 28, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants