Skip to content

docs: include valid values for S3 checksum options#10047

Open
droppingbeans wants to merge 4 commits intoaws:developfrom
droppingbeans:docs-s3-checksum-enums
Open

docs: include valid values for S3 checksum options#10047
droppingbeans wants to merge 4 commits intoaws:developfrom
droppingbeans:docs-s3-checksum-enums

Conversation

@droppingbeans
Copy link

Adds valid enum values to help text for --checksum-mode and --checksum-algorithm so generated documentation includes them.

Fixes #10025

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Adds valid enum values to help text for --checksum-mode and --checksum-algorithm
so generated documentation includes them.

Fixes aws#10025
@adev-code adev-code self-requested a review February 4, 2026 17:10
@adev-code adev-code added the documentation This is a problem with documentation. label Feb 4, 2026
@adev-code
Copy link
Contributor

Hello @droppingbeans, thanks for making this PR. I have added some comment changes that inlines with our format. Let us know when changes are made, tested and if theres any issues.

@droppingbeans
Copy link
Author

Thanks for the review!

I’ve applied the suggested formatting changes and pushed an update to the PR. Please let me know if anything else is needed.

'name': 'checksum-mode', 'choices': ['ENABLED'],
'help_text': 'To retrieve the checksum, this mode must be enabled. If the object has a '
'checksum, it will be verified.'
'checksum, it will be verified. Valid values: ENABLED.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'checksum, it will be verified. Valid values: ENABLED.'
'checksum, it will be verified. Valid value: ENABLED.'

'name': 'checksum-algorithm', 'choices': ['CRC64NVME', 'CRC32', 'SHA256', 'SHA1', 'CRC32C'],
'help_text': 'Indicates the algorithm used to create the checksum for the object.'
'help_text': 'Indicates the algorithm used to create the checksum for the object. '
'Valid values: CRC64NVME, CRC32, CRC32C, SHA1, and SHA256.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Valid values: CRC64NVME, CRC32, CRC32C, SHA1, and SHA256.'
"Valid choices are: CRC64NVME | CRC32 | SHA256 | SHA1 | CRC32C. Defaults to 'CRC64NVME'."

@adev-code
Copy link
Contributor

@droppingbeans, thanks for the reply. Apologies, looks like the request for change comment did not go through but now the changes needed should be visible now that inlines with our guidelines. Let us know when the changes are made.

- Remove backticks from ENABLED value
- Change 'is' to ':' for checksum-mode
- Change 'values' to 'choices' for checksum-algorithm
- Use pipe separators instead of commas
- Add default value for checksum-algorithm
@droppingbeans
Copy link
Author

@adev-code Formatting changes applied as requested in commit 72e1f0e. Both help texts now follow the AWS CLI documentation guidelines. Ready for re-review.

@adev-code
Copy link
Contributor

Tested it and appears on cp,mv and sync. LGTM! Running tests workflow.
Screenshot 2026-02-06 at 11 46 53 AM
Screenshot 2026-02-06 at 11 47 09 AM

@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.40%. Comparing base (c4681b5) to head (4da3614).
⚠️ Report is 122 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10047      +/-   ##
===========================================
+ Coverage    93.39%   93.40%   +0.01%     
===========================================
  Files          210      210              
  Lines        17052    17139      +87     
===========================================
+ Hits         15925    16009      +84     
- Misses        1127     1130       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adev-code adev-code requested a review from kdaily February 11, 2026 22:58
'help_text': 'Indicates the algorithm used to create the checksum for the object.'
'help_text': (
'Indicates the algorithm used to create the checksum for the object. '
'Valid choices are: CRC64NVME | CRC32 | SHA256 | SHA1 | CRC32C. Defaults to \'CRC64NVME\'.'
Copy link
Member

Choose a reason for hiding this comment

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

Nit: looks like we use "Valid values" more frequently - storage class is the only other one with "choices". Let's try to improve the consistency and use "values".

'checksum, it will be verified.'
'help_text': (
'To retrieve the checksum, this mode must be enabled. If the object has a '
'checksum, it will be verified. Valid value: ENABLED.'
Copy link
Member

Choose a reason for hiding this comment

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

It looks like the existing pattern for a single value is "ENABLED is the only valid value." See SSE_C for an example.

- Changed 'Valid value: ENABLED.' to 'ENABLED is the only valid value.' (following SSE_C pattern)
- Changed 'Valid choices are:' to 'Valid values:' for consistency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This is a problem with documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws s3 cp --checksum-mode and --checksum-algorithm enum values are not documented

4 participants