Skip to content

docs: include valid values for S3 checksum options#10047

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

docs: include valid values for S3 checksum options#10047
droppingbeans wants to merge 3 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.39%. Comparing base (c4681b5) to head (72e1f0e).
⚠️ Report is 102 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #10047   +/-   ##
========================================
  Coverage    93.39%   93.39%           
========================================
  Files          210      210           
  Lines        17052    17069   +17     
========================================
+ Hits         15925    15941   +16     
- Misses        1127     1128    +1     

☔ 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.

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

3 participants